body {
    margin: 0;
    padding: 0;
    background-color: #050505;
    color: #e0e0e0;
    font-family: 'Rajdhani', sans-serif;
}

* { box-sizing: border-box; }

.mil-wrapper {
    width: 100%;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
    background-color: #050505;
}

.mil-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 5;
}

.center { text-align: center; }
.text-cyan { color: #00d4ff; }
.mil-mask.text-highlight { color: #00d4ff; }

.mil-universe-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: -3;
    background-image: linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: moveGrid 60s linear infinite;
    transform: perspective(500px) rotateX(20deg) scale(1.5);
    opacity: 0.4;
    pointer-events: none;
}

.mil-cyber-grid {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: -2;
    background-image: radial-gradient(#00d4ff 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.07;
    pointer-events: none;
}

.mil-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: -1;
    background: radial-gradient(circle at 40% 50%, transparent 0%, #050505 90%);
    pointer-events: none;
}

@keyframes moveGrid {
    0% { background-position: 0 0; }
    100% { background-position: 0 1000px; }
}

.mil-big-title {
    font-family: 'Teko', sans-serif;
    font-size: clamp(50px, 7vw, 100px);
    line-height: 0.9;
    margin: 0;
    color: #fff;
    text-transform: uppercase;
}

.mil-subtitle {
    font-family: 'Teko', sans-serif;
    font-size: clamp(30px, 4vw, 60px);
    color: #00d4ff;
    margin: 10px 0 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    text-align: left !important;
}

.mil-label-box {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid #00d4ff;
    color: #00d4ff;
    font-size: 14px;
    letter-spacing: 3px;
    margin-bottom: 25px;
    background: rgba(0,212,255,0.05);
}

.mil-btn-group {
    display: flex;
    gap: 20px;
    margin-top: 1vw;
    justify-content: flex-start;
}

.mil-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 40px;
    font-family: 'Teko', sans-serif;
    font-size: 24px;
    text-transform: uppercase;
    text-decoration: none;
    transition: 0.3s;
    letter-spacing: 1px;
}

.mil-btn--cyan { background: #00d4ff; color: #000; font-weight: 600; }
.mil-btn--cyan:hover { background: #fff; box-shadow: 0 0 30px #00d4ff; }
.mil-btn--outline { border: 1px solid rgba(255,255,255,0.3); color: #fff; }
.mil-btn--outline:hover { border-color: #00d4ff; color: #00d4ff; }

.mil-section {
    padding: 120px 0;
    border-bottom: 1px solid #111;
    position: relative;
}

.mil-section::before, .mil-section::after {
    content:""; position:absolute; left:-10%; right:-10%; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0,212,255,.35), rgba(124,58,237,.22), transparent);
    filter: drop-shadow(0 0 14px rgba(0,212,255,.18)); opacity: .9; pointer-events:none; z-index: 0;
}
.mil-section::before{ top: 0; }
.mil-section::after{ bottom: 0; }

.mil-section .mil-noise{
    position:absolute; inset:0; pointer-events:none; opacity:.08; z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
    background-size: 180px 180px;
}
.mil-section > .mil-container { position: relative; z-index: 2; }

.mil-hero {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    text-align: left !important;
}

.mil-hero * { text-align: left !important; }

.mil-hero .mil-container {
    position: absolute;
    top: 60px;
    left: 80px;
    max-width: 800px;
    padding: 0;
    z-index: 10;
}

.mil-hero-top-left { margin: 0 0 40px 0; }
.mil-hero-content-wrapper { margin: 0; padding: 0; max-width: 800px; }

.mil-hero-desc p {
    font-size: 22px;
    color: #ccc;
    max-width: 600px;
    margin: 0 0 40px 0;
    text-align: left;
}

.mil-hero-logo-bg-right,
.mil-hero-logo-bg-left {
    position: absolute; bottom: 0; height: auto;
    z-index: 0; opacity: 0.4; pointer-events: none;
    display: flex; align-items: flex-end;
}

.mil-hero-logo-bg-right { right: 0; width: 60%; justify-content: flex-end; }
.mil-hero-logo-bg-left { left: 0; width: 60%; justify-content: flex-start; opacity: 0.5; }

.mil-hero-logo-bg-right img,
.mil-hero-logo-bg-left img {
    height: auto;
    will-change: transform, opacity, filter;
    transform: translate3d(0,0,0);
    -webkit-transform: translate3d(0,0,0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.mil-hero-logo-bg-right img {
    width: 70%;
    object-fit: contain; object-position: right bottom;
}

.mil-hero-logo-bg-left img {
    width: 100%;
    object-fit: contain; object-position: left bottom;
    filter: grayscale(100%) brightness(1.2) blur(2px);
    transform: translateX(6%) translate3d(0,0,0);
}

.mil-hero-logo-bg-right::before,
.mil-hero-logo-bg-left::before {
    content: '';
    position: absolute;
    z-index: -1;
    width: 120%;
    height: 120%;
    filter: blur(60px);
    opacity: 0.5;
    pointer-events: none;
}

.mil-hero-logo-bg-right::before {
    bottom: -10%; right: -10%;
    background: radial-gradient(circle at center, rgba(0, 212, 255, 0.7) 0%, transparent 70%);
}

.mil-hero-logo-bg-left::before {
    bottom: -10%; left: -10%;
    background: radial-gradient(circle at center, rgba(0, 212, 255, 0.6) 0%, transparent 70%);
}

.mil-marquee-layer {
    position: absolute; top: 40%; left: 0; width: 100%; overflow: hidden; z-index: 0;
    opacity: 0.4; transform: rotate(-3deg) scale(1.1); pointer-events: none; filter: blur(1px);
}
.mil-marquee {
    display: flex; width: max-content; will-change: transform;
    animation: marqueeScroll 50s linear infinite;
}
.mil-track {
    flex: 0 0 auto; padding-right: 60px; white-space: nowrap;
    font-family: 'Rajdhani', sans-serif; font-weight: 800; font-size: 140px;
    color: rgba(255, 255, 255, 0.01); -webkit-text-stroke: 4px rgba(255, 255, 255, 0.15);
    text-transform: uppercase; letter-spacing: 6px;
}
@keyframes marqueeScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.mil-section.mil-product {
    position: relative; overflow: hidden;
    padding-top: 200px; padding-bottom: 200px;
}

.mil-prod-marquee-top,
.mil-prod-marquee-bottom {
    position: absolute; left: 0; width: 100%;
    z-index: 0; opacity: 0.15; pointer-events: none; overflow: hidden;
    display: flex;
}
.mil-prod-marquee-top { top: 12px; }
.mil-prod-marquee-bottom { bottom: 30px; }

.mil-prod-track {
    white-space: nowrap;
    font-family: 'Rajdhani', sans-serif; font-weight: 800; font-size: 120px;
    color: transparent; -webkit-text-stroke: 2px #fff;
    text-transform: uppercase;
    padding-right: 300px;
}

.mil-prod-marquee-top .mil-prod-track { animation: prodMarqueeRight 50s linear infinite; }
.mil-prod-marquee-bottom .mil-prod-track { animation: prodMarqueeLeft 50s linear infinite; }

@keyframes prodMarqueeRight { 0% { transform: translateX(-50%); } 100% { transform: translateX(0%); } }
@keyframes prodMarqueeLeft { 0% { transform: translateX(0%); } 100% { transform: translateX(-50%); } }

.mil-prod-flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    min-height: unset;
    align-items: start;
    padding-top: 0; margin-top: 0;
}

.mil-product .mil-head-flex { margin-top: 8px; margin-bottom: 10px; }
.mil-product .mil-prod-info .mil-label-box { margin-bottom: 10px; }

.mil-h2 {
    font-family: 'Teko', sans-serif;
    font-size: 60px;
    line-height: 1;
    color: #fff;
    margin: 0 0 30px;
    text-transform: uppercase;
}

.mil-product .mil-h2 { margin-top: 0; margin-bottom: 14px; }

.mil-specs { display: flex; gap: 40px; margin: 30px 0; border-top: 1px solid #333; padding-top: 25px; }
.mil-specs span { display: block; font-size: 12px; color: #666; margin-bottom: 4px; letter-spacing: 1px; }
.mil-specs strong { font-family: 'Teko', sans-serif; font-size: 26px; color: #fff; }

.mil-desc-lg p, .mil-desc-lg { font-size: 24px; color: #ccc; max-width: 800px; line-height: 1.5; font-weight: 400; }

.mil-drone-wrap { position: relative; height: 100%; display: flex; align-items: center; justify-content: center; }
.mil-drone-img {
    width: 120%; max-width: none; height: auto;
    position: absolute; right: -80%;
    filter: drop-shadow(0 0 40px rgba(0,0,0,0.8)); z-index: 5;
}

#services {
    background: radial-gradient(1200px 700px at 20% 10%, rgba(0,212,255,.10), transparent 60%),
    radial-gradient(1000px 700px at 80% 20%, rgba(124,58,237,.08), transparent 62%),
    linear-gradient(180deg, #050505 0%, #070a10 55%, #050505 100%);
}

.mil-head-flex { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 70px; flex-wrap: wrap; gap: 30px; }
.mil-sect-title { font-family: 'Teko', sans-serif; font-size: 50px; margin: 0; color: #fff; }
.mil-sect-line { flex-grow: 1; height: 1px; background: #333; margin-bottom: 15px; margin-left: 30px; }

.mil-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; align-items: start; }

.mil-card {
    background: #0b0b0b; border: 1px solid #222; padding: 40px 30px; transition: 0.4s;
    display: flex; flex-direction: column;
    opacity: 1 !important; filter: none !important; transform: none;
}
.mil-card:hover { border-color: #00d4ff; transform: translateY(-10px); background: #101010; }

.mil-icon-box { margin-bottom: 25px; width: 45px; height: 45px; }
.mil-card h4 { font-family: 'Teko', sans-serif; font-size: 32px; margin: 0 0 10px; color: #fff; text-transform: uppercase; }
.mil-lead { color: #00d4ff; font-weight: 700; font-size: 14px; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; }
.mil-body { font-size: 17px; color: #aaa; margin-bottom: 20px; }

.mil-list { list-style: none; padding: 0; border-top: 1px solid #222; padding-top: 15px; margin-bottom: 0; }
.mil-list li { font-size: 15px; color: #777; margin-bottom: 6px; }
.mil-list li::before { content: '>'; color: #00d4ff; margin-right: 8px; font-weight: bold; }

.mil-about-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; align-items: start; }
.mil-prose-lg p { font-size: 20px; line-height: 1.7; color: #bbb; margin-bottom: 25px; }
.mil-prose-lg strong { color: #fff; font-weight: 600; }

.mil-strat-col { display: flex; flex-direction: column; gap: 30px; margin-top: 40px; }
.mil-strat-card { border-left: 2px solid #333; padding-left: 30px; transition: 0.3s; }
.mil-strat-card:hover { border-left-color: #00d4ff; }

.mil-strat-card.highlight {
    border-left: 4px solid #00d4ff;
    background: linear-gradient(90deg, rgba(0,212,255,0.05), transparent);
    padding: 30px;
}
.mil-strat-head { font-family: 'Teko', sans-serif; font-size: 28px; color: #fff; margin-bottom: 10px; letter-spacing: 1px; }
.mil-lrg-italic { font-size: 26px !important; color: #00d4ff !important; font-style: italic; font-family: 'Teko', sans-serif; line-height: 1.2; margin: 0; }
.mil-strat-card p { font-size: 16px; color: #888; margin: 0; }

.mil-footer .mil-desc-lg{ max-width: 800px; margin: 0 auto 26px; text-align: center; }

.mil-partners-wrapper { margin-top: 40px; }
.mil-partners-grid { display: flex; flex-wrap: wrap; gap: 30px; justify-content: flex-start; }

.mil-partner-card {
    display: flex; align-items: center; justify-content: center;
    width: 300px; height: 140px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #222;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative; overflow: hidden;
}

.mil-partner-card img {
    max-width: 100%; max-height: 100%; object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: 0.4s;
}

.mil-partner-card:hover {
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.05);
    box-shadow: 0 10px 30px -10px rgba(0, 212, 255, 0.2);
    transform: translateY(-5px);
}

.mil-partner-card:hover img { filter: grayscale(0%) opacity(1) brightness(1.2); }

@media (max-width: 1024px) {
    .mil-container { padding: 0 20px; }
    .mil-hero { flex-direction: column; padding-top: 120px; justify-content: flex-start; }
    .mil-hero-top-left { position: relative; top: 0; left: 0; text-align: center; margin-bottom: 40px; }
    .mil-hero-content-wrapper { margin-top: 20px; text-align: center; padding-left: 0; }
    .mil-hero-desc p { margin: 0 auto 40px auto; text-align: center; }
    .mil-hero-logo-bg-right, .mil-hero-logo-bg-left { width: 90%; opacity: 0.2; position: absolute; }
    .mil-hero-logo-bg-left { bottom: 0; }
    .mil-prod-flex, .mil-about-grid { grid-template-columns: 1fr; }
    .mil-drone-img { position: relative; right: auto; width: 100%; margin: 50px 0; }
    .mil-big-title { font-size: 60px; }
    .mil-prod-track { font-size: 80px; }
    .mil-btn-group { flex-direction: column; justify-content: center; }
    .mil-btn { width: 100%; }
}

@media (max-width: 768px) {
    .mil-hero .mil-container { position: relative; top: auto; left: auto; padding: 120px 20px 0; }
    .mil-hero, .mil-hero * { text-align: center !important; }
    .mil-btn-group { justify-content: center;}
    .mil-partners-grid { justify-content: center; }
    .mil-partner-card { width: 100%; max-width: 350px; }
}


:root{
  --safeTop: env(safe-area-inset-top);
  --safeBot: env(safe-area-inset-bottom);
}

/* avoid iOS text zoom surprises */
body{ -webkit-text-size-adjust: 100%; }

/* iOS vh fix */
.mil-hero{ min-height: 100svh; }

@media (max-width: 768px){
  .mil-universe-bg,
  .mil-cyber-grid,
  .mil-overlay{
    position:absolute;
    height: 120vh;
  }
}

@media (max-width: 900px){
  .mil-hero .mil-container{
    position: relative;
    top: auto;
    left: auto;
    max-width: 100%;
    padding: calc(96px + var(--safeTop)) 18px 24px;
  }
}

@media (max-width: 900px){
  .mil-hero,
  .mil-hero *{
    text-align: center !important;
  }
}

@media (max-width: 900px){
  .mil-hero-top-left{ margin: 0 0 18px 0; }
  .mil-hero-desc p{
    font-size: 18px;
    max-width: 34rem;
    margin: 0 auto 18px;
  }
}

@media (max-width: 900px){
  .mil-big-title{
    font-size: clamp(44px, 12vw, 76px);
    line-height: .92;
  }
}

@media (max-width: 900px){
  .mil-btn-group{
    margin-top: 550px;
    gap: 12px;
    justify-content: center;
    align-items: center;
  }
  .mil-btn{
    width: 100%;
    max-width: 360px;
    padding: 14px 18px;
    font-size: 22px;
    border-radius: 12px;
    min-height: 48px;
  }
}

@media (max-width: 900px){
  .mil-hero-logo-bg-right{
    width: 100%;
    opacity: .18;
  }
  .mil-hero-logo-bg-right img{
    width: min(520px, 92vw);
  }
}

/* Marquee: too heavy on mobile -> soften (or disable) */
@media (max-width: 900px){
  .mil-marquee-layer{
    top: 52%;
    opacity: .18;
    filter: blur(.6px);
  }
  .mil-track{
    font-size: 64px;
    -webkit-text-stroke: 2px rgba(255,255,255,0.12);
    letter-spacing: 2px;
  }
}
@media (max-width: 520px){
  .mil-marquee-layer{ display:none; } /* huge perf win */
}

/* SECTIONS: reduce padding */
@media (max-width: 900px){
  .mil-section{ padding: 70px 0; }
  .mil-head-flex{ margin-bottom: 34px; gap: 16px; }
  .mil-sect-title{ font-size: 38px; }
  .mil-sect-line{ display:none; }
}

/* Cards: avoid min 350 that overflows on small devices */
@media (max-width: 900px){
  .mil-grid-3{
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .mil-card{ padding: 22px 18px; }
  .mil-card h4{ font-size: 28px; }
  .mil-body{ font-size: 16px; }
}

/* PRODUCT: make drone image behave on phones */
@media (max-width: 900px){
  .mil-section.mil-product{
    padding-top: 110px;
    padding-bottom: 110px;
  }
  .mil-prod-flex{
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
  }
  .mil-specs{
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .mil-specs strong{ font-size: 22px; }

  .mil-drone-wrap{
    position: relative;
    min-height: 260px;
    display:flex;
    justify-content:center;
    align-items:center;
  }
  .mil-drone-img{
    position: relative; /* was absolute */
    right: auto;        /* remove off-screen */
    width: min(520px, 96vw);
    max-width: 100%;
    filter: drop-shadow(0 0 30px rgba(0,0,0,0.75));
  }
}

/* product marquees: shrink on mobile */
@media (max-width: 900px){
  .mil-prod-track{ font-size: 56px; padding-right: 140px; -webkit-text-stroke: 1px #fff; }
}

/* ABOUT: single column + smaller spacing */
@media (max-width: 900px){
  .mil-about-grid{ grid-template-columns: 1fr; gap: 28px; }
  .mil-prose-lg p{ font-size: 18px; }
  .mil-strat-card.highlight{ padding: 18px; }
  .mil-lrg-italic{ font-size: 22px !important; }
}

/* PARTNERS: center cards nicely */
@media (max-width: 900px){
  .mil-partners-grid{ justify-content: center; }
  .mil-partner-card{ width: min(360px, 92vw); height: 120px; padding: 18px; }
}

/* Reduce hover “jump” on touch devices */
@media (hover: none){
  .mil-card:hover{ transform: none; }
  .mil-btn--cyan:hover{ box-shadow: none; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .mil-marquee{ animation: none !important; }
  .mil-universe-bg{ animation: none !important; }
}

body { margin: 0; padding: 0; }

.custodia-header, .custodia-header * {
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
  font-family: Orbitron, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  box-sizing: border-box;
}

.custodia-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 10000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(148,163,184,0.35);
  transition: transform .28s ease;
}

.custodia-header.is-nav-hidden:not(.is-menu-open) {
  transform: translateY(-100%);
}

.custodia-header__inner {
  max-width: none;
  margin: 0 auto;
  padding: 6px clamp(12px, 1.6vw, 20px);
  display: flex;
  align-items: center;
  gap: 12px;
}

.custodia-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #0b1220;
  min-width: 0;
  flex: 0 0 auto;
}

.custodia-brand__logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex: 0 0 auto;
  display: block;
}

.custodia-brand__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.custodia-brand__wordmark {
  display: block;
  height: 52px;
  width: auto;
  object-fit: contain;
  max-width: 320px;
}

.custodia-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
  margin-left: auto;
}

.custodia-nav__link, .custodia-lang {
  position: relative;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #0b1220;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: 2px;
  padding: 8px 4px;
  opacity: 0.90;
  white-space: nowrap;
  line-height: 1;
}

.custodia-nav__link:hover, .custodia-lang:hover,
.custodia-nav__link[aria-current="page"] {
  opacity: 1;
}

.custodia-nav__link::after, .custodia-lang::after {
  content:"";
  position:absolute;
  left:0;
  bottom:2px;
  height:3px;
  width:0;
  border-radius:3px;
  background: linear-gradient(90deg, #00d4ff, #7c3aed);
  transition: width .18s ease;
}

.custodia-nav__link:hover::after, .custodia-lang:hover::after,
.custodia-nav__link[aria-current="page"]::after {
  width:100%;
}

.custodia-nav__cta {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: 2px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 2px solid rgba(0,212,255,0.85);
  color:#0b1220;
  background: rgba(255,255,255,0.45);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
  line-height: 1;
}

.custodia-nav__cta:hover {
  background: rgba(0,212,255,0.12);
  box-shadow: 0 0 0 6px rgba(0,212,255,0.08);
  transform: translateY(-1px);
}

.custodia-nav__dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.custodia-nav__dropdown::after {
  content:"";
  position:absolute;
  left:-14px;
  right:-14px;
  top:100%;
  height:40px;
  pointer-events:auto;
}

.custodia-nav__link--chev {
  padding-right: 20px;
}

.custodia-nav__link--chev::before {
  content:"";
  position:absolute;
  right:2px;
  top:40%;
  width:8px;
  height:8px;
  border-right:2px solid rgba(11,18,32,0.55);
  border-bottom:2px solid rgba(11,18,32,0.55);
  transform: translateY(-50%) rotate(45deg);
}

.custodia-dropdown {
  position: absolute;
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-top: 3px solid #00d4ff;
  border-radius: 4px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: all .25s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 9999;
  min-width: 360px; /* Mai lat */
}

.custodia-dropdown--root {
  top: calc(100% + 30px);
  left: -20px;
}

.custodia-nav__dropdown:hover > .custodia-dropdown--root {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.custodia-dropdown__item {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  padding: 16px;
  border-radius: 4px;
  background: transparent;
  border: 1px solid transparent;
  transition: all .2s ease;
  margin-bottom: 4px;
}
.custodia-dropdown__link{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    width: 100%;
    text-decoration: none;
    color: inherit;
}
.custodia-dropdown__item:last-child {
  margin-bottom: 0;
}

.custodia-dropdown__item:hover {
  background: rgba(0, 212, 255, 0.04);
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateX(4px);
}
/* ===== SWS SUBMENU ===== */

.custodia-dropdown__item{
    position: relative;
}

/* item SWS */
.custodia-dropdown__item--has-sub{
    flex-wrap: wrap;
    align-items: center;
    position: relative;
}

/* linkul SWS (clickable) */
.custodia-dropdown__link{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    padding:16px;
    width:100%;
    color:inherit;
    text-decoration:none;
    border-radius:4px;
}

/* hover pe link */
.custodia-dropdown__item--has-sub:hover > .custodia-dropdown__link{
    background: rgba(0,212,255,0.04);
    border: 1px solid rgba(0,212,255,0.30);
    transform: translateX(4px);
}

/* chevron */
.custodia-subchev{
    width:8px;
    height:8px;
    border-right:2px solid rgba(11,18,32,0.55);
    border-bottom:2px solid rgba(11,18,32,0.55);
    transform: rotate(45deg);
    opacity:.9;
    flex: 0 0 auto;
}

/* submenu */
.custodia-submenu{
    width:100%;
    margin-top:10px;
    padding-top:10px;
    border-top:1px solid rgba(0,212,255,0.18);

    display:grid;
    gap:6px;

    max-height:0;
    overflow:hidden;
    opacity:0;
    transform: translateY(-6px);
    pointer-events:none;

    transition: max-height .22s ease, opacity .18s ease, transform .18s ease;
}

/* show on hover */
.custodia-dropdown__item--has-sub:hover .custodia-submenu{
    max-height:220px;
    opacity:1;
    transform: translateY(0);
    pointer-events:auto;
}

/* subitems */
.custodia-subitem{
    display:flex;
    align-items:center;
    padding:12px 14px 12px 34px;
    border-radius:4px;
    border:1px solid rgba(0,212,255,0.0);
    background: transparent;

    font-weight:800;
    color:#0b1220;
    text-transform:uppercase;
    letter-spacing:1.2px;
    font-size:14px;

    transition: all .18s ease;
    position:relative;
}
.custodia-subitem::before{
    content:"";
    position:absolute;
    left:14px;
    width:10px;
    height:10px;
    border:1px solid rgba(0,212,255,0.45);
    background: rgba(0,212,255,0.10);
}
.custodia-subitem:hover{
    background: rgba(0,212,255,0.04);
    border-color: rgba(0,212,255,0.30);
    transform: translateX(4px);
}

/* rotate chevron when open */
.custodia-dropdown__item--has-sub:hover .custodia-subchev{
    transform: rotate(225deg);
}

.custodia-dropdown__item:hover .custodia-tech-icon {
  border-color: #00d4ff;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.custodia-dropdown__item:hover .custodia-tech-icon::before,
.custodia-dropdown__item:hover .custodia-tech-icon::after {
  background: #00d4ff;
}

.custodia-dropdown__item:hover .custodia-tech-icon span {
  background: #00d4ff;
}

.custodia-item-content {
  display: flex;
  flex-direction: column;
}

.custodia-dropdown__title {
  font-weight: 800;
  color: #0b1220;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 15px;
  line-height: 1.2;
}

.custodia-dropdown__sub {
  margin-top: 4px;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

button.custodia-burger {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,0.32);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  user-select: none;
}

body header#custodiaHeader button.custodia-burger,
body header#custodiaHeader button.custodia-burger:hover,
body header#custodiaHeader button.custodia-burger:focus,
body header#custodiaHeader button.custodia-burger:active,
body header#custodiaHeader button.custodia-burger:focus-visible {
  background-color: rgba(255, 255, 255, 0.55) !important;
  background: rgba(255, 255, 255, 0.55) !important;
  border-color: rgba(148, 163, 184, 0.32) !important;
  color: inherit !important;
  box-shadow: none !important;
  outline: none !important;
}

button.custodia-burger span {
  position: absolute;
  width: 22px;
  height: 2px;
  background: rgba(11,18,32,0.78);
  border-radius: 2px;
  transition: transform .22s ease, opacity .18s ease, top .22s ease;
}

button.custodia-burger span:nth-child(1){ top: 14px; }
button.custodia-burger span:nth-child(2){ top: 20px; }
button.custodia-burger span:nth-child(3){ top: 26px; }

.custodia-header.is-menu-open button.custodia-burger span:nth-child(1){ top: 20px; transform: rotate(45deg); }
.custodia-header.is-menu-open button.custodia-burger span:nth-child(2){ opacity: 0; }
.custodia-header.is-menu-open button.custodia-burger span:nth-child(3){ top: 20px; transform: rotate(-45deg); }

.custodia-overlay {
  display:none;
  position: fixed;
  inset: 0;
  background: rgba(2,6,23,0.55);
  backdrop-filter: blur(4px);
  z-index: 9998;
}

.custodia-header.is-menu-open + .custodia-overlay {
  display:block;
}

@media (max-width: 768px) {
  .custodia-header__inner { padding: 8px 12px; }
  .custodia-brand__logo { width: 44px; height: 44px; }
  .custodia-brand__wordmark { height: 28px; max-width: 60vw; }

  button.custodia-burger { display: inline-flex; }

  .custodia-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: rgba(255,255,255,0.98);
    border-bottom: 1px solid rgba(148,163,184,0.30);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;

    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform .22s ease, opacity .22s ease;
    z-index: 9999;
  }

  .custodia-header.is-menu-open .custodia-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .custodia-nav__link, .custodia-lang {
    width: 100%;
    justify-content: center;
    padding: 20px 10px;
    font-size: 13px;
    letter-spacing: 1.4px;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(148,163,184,0.1);
    border-right: 1px solid rgba(148,163,184,0.1);
    background: transparent;
  }


  .custodia-dropdown__item {
    padding: 20px 10px;
    margin: 0;
    border: none;
    border-radius: 0;
    display: flex;
    justify-content: center;
    text-align: center;
    border-bottom: 1px solid rgba(148,163,184,0.1);
    border-right: 1px solid rgba(148,163,184,0.1);
  }

  .custodia-tech-icon,
  .custodia-dropdown__sub {
    display: none;
  }

  .custodia-dropdown__title {
    font-size: 13px;
    letter-spacing: 1.4px;
    font-weight: 800;
  }

  .custodia-nav__link:nth-child(2n) {
    border-right: none;
  }

  .custodia-dropdown__item:hover {
     background: transparent;
     transform: none;
  }

  .custodia-nav__link::after, .custodia-lang::after { display:none; }

  .custodia-nav__cta {
    grid-column: 1 / -1;
    width: 100%;
    border-radius: 0;
    padding: 24px;
    background: #f8fafc;
    border: none;
    border-top: 1px solid rgba(148,163,184,0.2);
  }

  .custodia-dropdown { display:none !important; }
  .custodia-nav__dropdown::after { display:none; }
  .custodia-nav__link--chev::before { display:none; }
  .custodia-nav__link--chev { padding-right: 10px; }

  .custodia-nav__dropdown {
    width: 100% !important;
    display: contents !important;
  }
}
.custodia-footer{
    margin-top: 60px;
    background: #07101f;
    color: rgba(226,232,240,0.92);
    border-top: 1px solid rgba(148,163,184,0.25);
    font-family: "Segoe UI", Roboto, sans-serif;
}

.custodia-footer__inner{
    max-width: 1200px;
    margin: 0 auto;
    padding: 44px 18px 26px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 26px;
}

.custodia-footer__brand{
    font-weight: 900;
    letter-spacing: 1.2px;
    font-size: 14px;
}

.custodia-footer__title{
    font-weight: 900;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    font-size: 12px;
    margin-bottom: 12px;
    color: rgba(0,212,255,0.95);
}

.custodia-footer__text{
    margin-top: 10px;
    color: rgba(226,232,240,0.75);
    line-height: 1.55;
    font-size: 13px;
    max-width: 520px;
}

.custodia-footer__fine{
    margin-top: 12px;
    color: rgba(226,232,240,0.55);
    font-size: 12px;
    line-height: 1.45;
}

.custodia-footer__link{
    display: block;
    text-decoration: none;
    color: rgba(226,232,240,0.78);
    padding: 6px 0;
    font-size: 13px;
}
.custodia-footer__link:hover{
    color: rgba(0,212,255,0.95);
}

.custodia-footer__bottom{
    border-top: 1px solid rgba(148,163,184,0.18);
    padding: 14px 18px;
    text-align: center;
    font-size: 12px;
    color: rgba(226,232,240,0.55);
}
/* FIX culoare linkuri footer */
.custodia-footer a,
.custodia-footer a:visited {
    color: rgba(226,232,240,0.85);
    text-decoration: none;
}

.custodia-footer a:hover {
    color: #00d4ff;
    text-decoration: underline;
}
@media (max-width: 900px){
    .custodia-footer__inner{ grid-template-columns: 1fr; }
}
/* ===== SWS SUBMENU ===== */

.custodia-dropdown__item{
    position: relative;
}

/* ===== SWS SUBMENU (INLINE, same look as dropdown) ===== */

/* item SWS devine “stack” când se deschide submenu-ul */
.custodia-dropdown__item--has-sub{
    flex-wrap: wrap;
    align-items: center;
    position: relative;
}

/* chevron mic, stil identic cu cel de sus */
.custodia-subchev{
    margin-left: auto;
    width: 8px;
    height: 8px;
    border-right: 2px solid rgba(11,18,32,0.55);
    border-bottom: 2px solid rgba(11,18,32,0.55);
    transform: rotate(45deg);
    opacity: .9;
}

/* submenu stays inside the same dropdown */
.custodia-submenu{
    width: 100%;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0,212,255,0.18);

    display: grid;
    gap: 6px;

    /* hidden by default */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;

    transition: max-height .22s ease, opacity .18s ease, transform .18s ease;
}

/* show submenu on hover */
.custodia-dropdown__item--has-sub:hover .custodia-submenu{
    max-height: 220px; /* suficient pentru 3 linkuri */
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* sub-items look like normal items but slightly indented */
.custodia-subitem{
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border-radius: 4px;
    border: 1px solid rgba(0,212,255,0.0);
    background: rgba(255,255,255,0.0);

    font-weight: 800;
    color: #0b1220;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-size: 14px;

    transition: all .18s ease;
    position: relative;
    padding-left: 34px; /* indent */
}

/* tiny cyan marker like your “tech” vibe */
.custodia-subitem::before{
    content:"";
    position:absolute;
    left: 14px;
    width: 10px;
    height: 10px;
    border: 1px solid rgba(0,212,255,0.45);
    background: rgba(0,212,255,0.10);
}

/* hover like your main dropdown item hover */
.custodia-subitem:hover{
    background: rgba(0, 212, 255, 0.04);
    border-color: rgba(0, 212, 255, 0.30);
    transform: translateX(4px);
}

/* rotate chevron when open */
.custodia-dropdown__item--has-sub:hover .custodia-subchev{
    transform: rotate(225deg);
}