/*
  ATN Network – unified site stylesheet
  Clean corporate + futuristic tech accents (light-first).
*/

:root{
  --bg: #ffffff;
  --bg-soft: #f6f9fc;
  --card: #ffffff;
  --text: #0b1320;
  --muted: #445268;
  --line: rgba(15, 23, 42, .12);

  --brand: #0ea5e9;         /* sky */
  --brand2:#2563eb;         /* blue */
  --brand3:#22c55e;         /* green accent (rare) */

  --shadow: 0 18px 40px rgba(2, 8, 23, .10);
  --shadow2: 0 10px 24px rgba(2, 8, 23, .08);

  --radius: 18px;
  --radius2: 24px;
  --container: 1140px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background: radial-gradient(1200px 700px at 70% -10%, rgba(37,99,235,.14), transparent 60%),
              radial-gradient(1000px 600px at 10% 10%, rgba(14,165,233,.12), transparent 55%),
              var(--bg);
  line-height:1.45;
}

a{color:inherit; text-decoration:none}
a:hover{color:var(--brand2)}

.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 22px;
}

/* Header */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:18px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 220px;
}
.brand-mark{width:34px; height:34px; flex:0 0 auto}
.brand-name{
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-size:12px;
  line-height:1.1;
}
.brand-name span{display:block; font-weight:700; letter-spacing:.06em; opacity:.75; font-size:10px}

.nav-groups{flex:1}

.nav-primary,
.nav-secondary{
  display:flex;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
}
.nav-secondary{gap:14px; margin-top:6px}

.nav a{
  font-weight:600;
  font-size:14px;
  color: rgba(11,19,32,.76);
}
.nav a.active{color: var(--text)}

.chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.7);
  box-shadow: 0 6px 16px rgba(2,8,23,.06);
}
.chip small{opacity:.75; font-weight:700}

.nav-cta{
  display:flex;
  align-items:center;
  gap:10px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:999px;
  font-weight:700;
  font-size:14px;
  border:1px solid transparent;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover{transform: translateY(-1px)}
.btn:active{transform: translateY(0)}

.btn-primary{
  color:white;
  background: linear-gradient(135deg, var(--brand2), var(--brand));
  box-shadow: 0 14px 28px rgba(37,99,235,.18);
}
.btn-primary:hover{box-shadow: 0 18px 36px rgba(37,99,235,.22)}

.btn-ghost{
  background: rgba(255,255,255,.7);
  border-color: var(--line);
  color: rgba(11,19,32,.82);
}

.btn-link{padding:10px 0; border:none; background:transparent; color:rgba(11,19,32,.70)}

/* Hero */
.hero{
  position:relative;
  padding:64px 0 34px;
  overflow:hidden;
}

.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:34px;
  align-items:center;
}

.kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 12px;
  border:1px solid var(--line);
  border-radius:999px;
  background: rgba(255,255,255,.74);
  color: rgba(11,19,32,.78);
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  font-size:11px;
}

.hero h1{
  margin:18px 0 10px;
  font-size:54px;
  line-height:1.05;
  letter-spacing:-.03em;
}

.hero p{
  margin:0 0 18px;
  font-size:16px;
  color: rgba(11,19,32,.70);
  max-width: 56ch;
}

.meta{
  margin-top:10px;
  color: rgba(11,19,32,.55);
  font-size:13px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.meta span{display:inline-flex; align-items:center; gap:8px}
.dot{width:6px; height:6px; border-radius:999px; background: linear-gradient(135deg, var(--brand2), var(--brand))}

.hero-visual{
  position:relative;
  border-radius: var(--radius2);
  min-height: 320px;
  background:
    radial-gradient(380px 260px at 55% 45%, rgba(14,165,233,.22), rgba(255,255,255,0) 65%),
    radial-gradient(520px 320px at 70% 30%, rgba(37,99,235,.22), rgba(255,255,255,0) 70%),
    linear-gradient(180deg, rgba(246,249,252,.9), rgba(255,255,255,.85));
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.hero-visual .world{
  position:absolute;
  inset:0;
  opacity:.55;
}

.hero-visual .badge{
  position:absolute;
  left:50%;
  top:52%;
  transform: translate(-50%,-50%);
  width: 190px;
  height: 190px;
  filter: drop-shadow(0 18px 40px rgba(2,8,23,.18));
}

.hero-visual .glow{
  position:absolute;
  left:50%;
  top:58%;
  transform: translate(-50%,-50%);
  width: 300px;
  height: 300px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(14,165,233,.20), rgba(37,99,235,.10), transparent 60%);
}

/* Sections */
.section{padding:34px 0}
.section h2{font-size:34px; letter-spacing:-.02em; margin:0 0 10px}
.section p.lead{margin:0 0 22px; color: rgba(11,19,32,.70); max-width: 80ch}

.grid3{display:grid; grid-template-columns:repeat(3,1fr); gap:18px}
.grid2{display:grid; grid-template-columns:repeat(2,1fr); gap:18px}

.card{
  background: rgba(255,255,255,.9);
  border:1px solid rgba(15,23,42,.10);
  border-radius: var(--radius);
  padding:18px;
  box-shadow: var(--shadow2);
}

.card h3{margin:6px 0 6px; font-size:18px}
.card p{margin:0; color: rgba(11,19,32,.68)}
.tag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:11px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
  color: rgba(11,19,32,.70);
}

.icon{
  width:42px;
  height:42px;
  border-radius: 14px;
  background: radial-gradient(circle at 30% 30%, rgba(14,165,233,.22), rgba(37,99,235,.14));
  border: 1px solid rgba(15,23,42,.12);
  display:flex;
  align-items:center;
  justify-content:center;
}

.bullets{margin:10px 0 0; padding-left:16px; color: rgba(11,19,32,.66)}
.bullets li{margin:6px 0}

/* Dark tech block (for architecture/branches) */
.tech{
  background: radial-gradient(1200px 800px at 40% 0%, rgba(14,165,233,.16), transparent 60%),
              radial-gradient(900px 700px at 80% 20%, rgba(37,99,235,.20), transparent 60%),
              linear-gradient(180deg, #071427, #06101f);
  color: rgba(255,255,255,.92);
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.tech .card{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.10);
  box-shadow:none;
}
.tech h2, .tech h3{color:white}
.tech p, .tech li{color: rgba(255,255,255,.78)}
.tech .tag{color: rgba(255,255,255,.76)}
.tech .btn-ghost{border-color: rgba(255,255,255,.18); color: rgba(255,255,255,.88); background: rgba(255,255,255,.06)}

.media{
  width:100%;
  border-radius: var(--radius);
  border:1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 44px rgba(0,0,0,.35);
}

/* Footer */
.footer{
  padding:28px 0 40px;
  color: rgba(11,19,32,.64);
}
.footer-top{display:flex; align-items:flex-start; justify-content:space-between; gap:20px; flex-wrap:wrap}
.footer small{display:block; margin-top:8px; color: rgba(11,19,32,.50)}
.footer-links{display:flex; gap:14px; flex-wrap:wrap}

/* Responsive */
@media (max-width: 980px){
  .hero-grid{grid-template-columns:1fr}
  .brand{min-width:auto}
  .nav{align-items:flex-start}
  .nav-groups{display:none}
  .nav-cta{margin-left:auto}
  .hero h1{font-size:44px}
  .grid3{grid-template-columns:1fr}
  .grid2{grid-template-columns:1fr}
}

/* Simple mobile menu */
.menu-btn{display:none}
@media (max-width: 980px){
  .menu-btn{display:inline-flex}
  .nav-groups.open{display:block}
  .nav-groups.open .nav-primary, .nav-groups.open .nav-secondary{margin-top:10px}
}



/* ===============================
   NAV V2 – clean mobile drawer
   - Top nav shows only: Broadcast / Enterprise / Payments
   - Everything else goes into hamburger drawer
=================================*/

.nav.nav-v2{gap:16px;}
.brand-mark-img{width:34px;height:34px;flex:0 0 auto;border-radius:10px;display:block;}

.nav-links{
  display:flex;
  align-items:center;
  gap:22px;
}

.nav-links a{
  font-weight:700;
  font-size:14px;
  color: rgba(11,19,32,.76);
}

.nav-links a:hover{color: var(--text);}

/* Hide old menu layout if present (defensive) */
.menu-btn,
.nav-groups{display:none !important;}

/* Burger */
.burger-btn{
  width:44px;
  height:40px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.9);
  border-radius: 14px;
  display:none;
  align-items:center;
  justify-content:center;
  gap:5px;
  cursor:pointer;
  box-shadow: 0 8px 20px rgba(2,8,23,.06);
}
.burger-btn span{
  display:block;
  width:18px;
  height:2px;
  background: rgba(11,19,32,.75);
  border-radius: 3px;
}

/* Drawer overlay */
.drawer-overlay{
  position: fixed;
  inset: 0;
  background: rgba(10,15,28,.45);
  opacity: 0;
  pointer-events: none;
  transition: .22s ease;
  z-index: 60;
}

/* Drawer */
.drawer{
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(88vw, 360px);
  background: #fff;
  transform: translateX(100%);
  transition: .25s ease;
  z-index: 61;
  box-shadow: -20px 0 60px rgba(0,0,0,.15);
  display:flex;
  flex-direction: column;
}

.drawer-head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 16px 16px 10px 16px;
  border-bottom: 1px solid rgba(15, 23, 42, .10);
}

.drawer-title{
  font-weight: 800;
  letter-spacing: .04em;
}

.drawer-close{
  border:1px solid rgba(15, 23, 42, .12);
  background:#fff;
  border-radius: 12px;
  width: 40px;
  height: 40px;
  cursor:pointer;
}

.drawer-section{
  padding: 14px 16px;
  border-bottom: 1px solid rgba(15, 23, 42, .08);
}

.drawer-label{
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(11,19,32,.55);
  margin-bottom: 10px;
}

.drawer-link{
  display:block;
  padding: 12px 12px;
  border-radius: 14px;
  font-weight: 750;
  color: var(--text);
}

.drawer-link:hover{
  background: #f4f7fb;
  color: #1e6bd6;
}

.drawer-cta{
  margin-top: auto;
  border-bottom: none;
  display:flex;
  flex-direction: column;
  gap: 10px;
}

.btn-block{
  width: 100%;
  justify-content: center;
}

/* Open state */
body.drawer-open .drawer-overlay{
  opacity: 1;
  pointer-events: auto;
}
body.drawer-open .drawer{
  transform: translateX(0%);
}

/* Responsive */
@media (max-width: 900px){
  .nav-cta{display:none;}
  .nav-links{display:none;}
  .burger-btn{display:flex;}
}

/* === Mobile drawer navigation (robust) === */
:root{
  --nav-height: 76px;
  --drawer-width: min(92vw, 420px);
}

/* Keep header above everything */
.site-header{
  position: sticky;
  top: 0;
  z-index: 2000;
}

/* Desktop nav: keep primary links on one line */
.nav-links{
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: nowrap;
}

/* Burger button */
.burger-btn{
  appearance: none;
  background: transparent;
  border: 0;
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
}
.burger-btn .burger-lines{
  width: 22px;
  height: 14px;
  position: relative;
}
.burger-btn .burger-lines span{
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 999px;
  background: rgba(14, 27, 50, 0.75);
}
.burger-btn .burger-lines span:nth-child(1){ top: 0; }
.burger-btn .burger-lines span:nth-child(2){ top: 6px; }
.burger-btn .burger-lines span:nth-child(3){ top: 12px; }

/* Overlay + drawer */
.drawer-overlay{
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 35, 0.35);
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.drawer{
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: var(--drawer-width);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-left: 1px solid rgba(14, 27, 50, 0.08);
  z-index: 3100;
  transform: translateX(110%);
  transition: transform .22s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.drawer.is-open{ transform: translateX(0); }
.drawer-overlay.is-open{
  opacity: 1;
  pointer-events: auto;
}

.drawer__header{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 18px 16px;
  border-bottom: 1px solid rgba(14, 27, 50, 0.08);
}
.drawer__header h3{
  margin:0;
  font-size: 20px;
  font-weight: 700;
  color: #0e1b32;
}
.drawer__close{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(14, 27, 50, 0.10);
  background: rgba(255,255,255,0.75);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.drawer__close span{
  font-size: 24px;
  line-height: 1;
  color: rgba(14, 27, 50, 0.75);
}

.drawer__section{
  padding: 14px 16px 2px;
}
.drawer__section-title{
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(14, 27, 50, 0.55);
  margin: 10px 0 8px;
}
.drawer__links{
  display:flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(14, 27, 50, 0.06);
}
.drawer__links:last-child{ border-bottom: 0; }

.drawer__links a{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 14px 12px;
  border-radius: 14px;
  text-decoration:none;
  color: #0e1b32;
  font-weight: 650;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(14, 27, 50, 0.08);
}
.drawer__links a:hover{
  background: rgba(255,255,255,0.8);
}
.drawer__links a small{
  font-weight: 600;
  color: rgba(14, 27, 50, 0.55);
}

/* Mobile behavior */
@media (max-width: 920px){
  .nav-links{
    display:none !important;
  }
  .burger-btn{
    display:inline-flex !important;
  }
}

/* Desktop behavior */
@media (min-width: 921px){
  .drawer, .drawer-overlay{ display:none !important; }
  .burger-btn{ display:none !important; }
}


/* =========================
   Get App page (dark-blue)
   ========================= */
.page-getapp{
  background: radial-gradient(1100px 720px at 25% 0%, rgba(14,165,233,.18), transparent 60%),
              radial-gradient(900px 700px at 85% 20%, rgba(37,99,235,.22), transparent 60%),
              linear-gradient(180deg, #06101f, #050b16 70%, #040812);
  color: rgba(255,255,255,.92);
}
.page-getapp .site-header{
  background: rgba(6,16,31,.55);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
}
.page-getapp .nav a{ color: rgba(255,255,255,.82); }
.page-getapp .nav a:hover{ color: rgba(255,255,255,.98); }

.hero-getapp{
  position: relative;
  overflow: hidden;
  padding-top: 52px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.hero-getapp .hero-getapp-bg{
  position:absolute; inset:0;
  background:
    radial-gradient(800px 520px at 20% 10%, rgba(14,165,233,.22), transparent 60%),
    radial-gradient(700px 520px at 75% 20%, rgba(37,99,235,.26), transparent 60%),
    linear-gradient(180deg, rgba(6,16,31,.35), rgba(6,16,31,.80)),
    url("/assets/atn-hero-branches.jpg");
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) contrast(1.05);
  opacity: .28;
  transform: scale(1.02);
}
.hero-getapp .container{ position:relative; z-index:1; }

.card-dark{
  background: rgba(10,18,34,.62);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 46px rgba(0,0,0,.28);
  color: rgba(255,255,255,.92);
}
.card-dark .muted,
.page-getapp .muted,
.page-getapp .bullets,
.page-getapp .miniNote{
  color: rgba(255,255,255,.72);
}

.steps{ margin:0; padding-left:18px; }
.steps li{ margin:8px 0; }

.illustrationRow{
  display:flex;
  gap:10px;
  margin-top:14px;
  align-items:center;
}
.illustrationRow img{
  width:64px; height:64px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  padding:10px;
}

/* Get App — app choice row */
.appChoiceWrap{ position: relative; margin-top: 8px; }
.appChoiceGlow{
  position:absolute;
  left: 50%;
  top: 34px;
  width: min(980px, 96%);
  height: 260px;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side at 50% 40%, rgba(255,255,255,.38), rgba(59,130,246,.22), transparent 70%);
  filter: blur(18px);
  opacity: .7;
  pointer-events: none;
}

.appChoiceRow{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 12px;
}

.appChoiceCard{
  position: relative;
  background: rgba(10,18,34,.55);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 18px 46px rgba(0,0,0,.26);
  overflow: hidden;
}

.appChoiceImg{
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}

.appChoiceMeta{ margin-top: 10px; margin-bottom: 10px; }
.appChoiceTitle{ font-weight: 900; letter-spacing: .02em; }
.appChoiceDesc{ color: rgba(255,255,255,.70); font-size: .95rem; margin-top: 3px; }

.appChoiceCard .btn{ width: 100%; justify-content: center; }

.appChoiceCard.isLocked{ opacity: .78; }
.appChoiceCard.isLocked .btn{ opacity: .65; cursor: not-allowed; }

.lockPill{
  position:absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  font-size: .78rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.38);
  border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.88);
}

@media (max-width: 920px){
  .appChoiceRow{ grid-template-columns: 1fr; }
  .appChoiceGlow{ height: 420px; top: 18px; }
  .appChoiceImg{ height: 220px; }
}

/* =========================
   Get App – clickable cards
   ========================= */
.appChoiceCard--download{
  display:block;
  text-decoration:none;
  color:inherit;
  cursor:pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}

.appChoiceCard--download:hover{
  transform: translateY(-3px);
  box-shadow: 0 26px 60px rgba(0,0,0,.35);
}

.appChoiceCard--download:focus-visible{
  outline: 2px solid rgba(160,220,255,.9);
  outline-offset: 4px;
}

/* Locked cards = no click */
.appChoiceCard.isLocked{
  pointer-events:none;
}

/* ── Language Switcher ───────────────────────────────── */
.lang-switcher {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-right: 8px;
}
.lang-btn {
  background: transparent;
  border: 1px solid rgba(14,165,233,.3);
  color: var(--muted, #445268);
  border-radius: 6px;
  padding: 3px 6px;
  font-size: 18px;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s;
  line-height: 1.3;
  opacity: 0.65;
}
.lang-btn:hover {
  background: rgba(14,165,233,.12);
  border-color: var(--brand, #0ea5e9);
  opacity: 1;
  transform: scale(1.1);
}
.lang-btn--active {
  border-color: var(--brand, #0ea5e9);
  opacity: 1;
  background: rgba(14,165,233,.08);
}
