/* ============================================================
   WORLDTEL — Shared Design System
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

:root {
  --dark:        #030D1A;
  --navy:        #061629;
  --navy-mid:    #0D2545;
  --accent:      #00E5B0;
  --accent-dim:  #00B88C;
  --accent-glow: rgba(0,229,176,.14);
  --gold:        #F5A623;
  --gold-dim:    #D4891A;
  --white:       #FFFFFF;
  --off:         #F4F8FB;
  --text:        #0A1628;
  --muted:       #5B7A9A;
  --border:      #D4E0EC;
  --fd: 'Inter', sans-serif;
  --fb: 'DM Sans', sans-serif;
  --r:  12px;
  --rl: 22px;
  --max-w: 1140px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 120px; }
body { font-family: var(--fb); color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

h1,h2,h3,h4,h5 { font-family: var(--fd); letter-spacing: -.01em; line-height: 1.4; overflow: visible; }
h1 { font-size: clamp(2.25rem, 4vw, 3.5rem);  font-weight: 700; }
h2 { font-size: clamp(1.75rem, 2.8vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem,  1.8vw, 1.65rem); font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }
p  { font-size: 1.0625rem; color: var(--muted); max-width: 68ch; line-height: 1.75; }

.container { width: min(var(--max-w), 100% - 2.5rem); margin-inline: auto; }
.section    { padding-block: 5rem; }
.section-sm { padding-block: 3rem; }

.label {
  display: inline-block;
  font-family: var(--fd);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .65rem;
}

.text-center { text-align: center; }
.text-center p { margin-inline: auto; }

/* ---- BUTTONS ---- */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.8rem; border-radius: 50px; font-family: var(--fd); font-size: .82rem; font-weight: 700; letter-spacing: .04em; cursor: pointer; border: 2px solid transparent; transition: transform .25s cubic-bezier(.22,.68,0,1.2), box-shadow .25s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--dark); }
.btn-primary:hover { background: var(--accent-dim); box-shadow: 0 8px 28px var(--accent-glow); }
.btn-gold { background: var(--gold); color: var(--dark); }
.btn-gold:hover { background: var(--gold-dim); box-shadow: 0 8px 28px rgba(245,166,35,.25); }
.btn-outline { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent-glow); }
.btn-outline-white { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,.07); }

/* ---- NAV ---- */
#site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding-block: 1rem; background: rgba(3,13,26,.92); transition: background .28s, padding .28s, box-shadow .28s; }
#site-header.scrolled { background: rgba(3,13,26,.98); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding-block: .65rem; box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.nav-logo { font-family: var(--fd); font-size: 1.35rem; font-weight: 700; color: #fff; letter-spacing: -.02em; }
.nav-logo em { font-style: normal; color: var(--accent); }
.nav-menu { display: flex; align-items: center; gap: 2rem; }
.nav-menu a { font-family: var(--fd); font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.65); transition: color .2s; position: relative; padding: .3rem 0; }
.nav-menu a:hover, .nav-menu a.active { color: var(--accent); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .28s, opacity .28s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav { display: none; position: fixed; inset: 0; z-index: 999; background: rgba(3,13,26,.98); backdrop-filter: blur(16px); flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem; }
.mobile-nav.open { display: flex; }
.mobile-nav a { font-family: var(--fd); font-size: 1.5rem; font-weight: 700; color: rgba(255,255,255,.8); }
.mobile-nav a:hover { color: var(--accent); }

/* ---- HERO SHARED ---- */
.page-hero { background: var(--dark); padding: 9rem 0 5rem; position: relative; .page-hero-placeholder }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 60% 45%, rgba(0,229,176,.1) 0%, transparent 60%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 16ch; }
.page-hero .hero-sub { color: rgba(255,255,255,.55); margin-top: 1rem; margin-bottom: 2rem; font-size: 1.1rem; max-width: 52ch; }

/* ---- CARDS ---- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--rl); padding: 2rem 1.75rem; transition: border-color .25s, transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.card:hover { border-color: var(--accent); transform: translateY(-5px); box-shadow: 0 16px 48px rgba(3,13,26,.1); }
.card-icon { width: 50px; height: 50px; border-radius: 12px; background: var(--accent-glow); display: grid; place-items: center; font-size: 1.25rem; margin-bottom: 1.25rem; }
.card h3 { font-size: 1.15rem; color: var(--text); margin-bottom: .5rem; }
.card p { font-size: 1rem; flex: 1; }
.card-link { font-family: var(--fd); font-size: .75rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-dim); display: inline-flex; align-items: center; gap: .35rem; margin-top: 1.1rem; transition: gap .2s; }
.card:hover .card-link { gap: .6rem; }

/* ---- SECTION HEADER ---- */
.section-header { margin-bottom: 3.5rem; }
.section-header p { margin-top: .65rem; }

/* ---- 2-COL GRID ---- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: center; }
.dark-panel { background: var(--dark); border-radius: var(--rl); padding: 2.75rem; }
.dark-panel .label { color: var(--accent); }
.dark-panel h3 { color: #fff; margin-bottom: 1rem; }
.dark-panel p { color: rgba(255,255,255,.52); max-width: 100%; }

/* ---- CHECKLIST ---- */
.check-list { display: flex; flex-direction: column; gap: .65rem; margin-top: 1.5rem; }
.check-item { display: flex; gap: .75rem; align-items: flex-start; }
.check-item .chk { color: var(--accent); flex-shrink: 0; margin-top: .1rem; }
.check-item p { font-size: .9rem; max-width: 100%; margin: 0; }

/* ---- CTA BAND ---- */
.cta-band { background: linear-gradient(135deg, var(--dark) 0%, var(--navy-mid) 100%); position: relative; overflow: visible; text-align: center; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(0,229,176,.1) 0%, transparent 70%); }
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.55); margin-inline: auto; margin-top: .75rem; margin-bottom: 2rem; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---- STAT ROW ---- */
.stat-row { display: flex; gap: 3rem; flex-wrap: wrap; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.08); }
.stat strong { display: block; font-family: var(--fd); font-size: 1.6rem; font-weight: 700; color: #fff; line-height: 1.5; overflow: visible; padding-bottom: .15em; }
.stat strong em { font-style: normal; color: var(--accent); }
.stat small { font-size: .62rem; color: rgba(255,255,255,.38); letter-spacing: .07em; text-transform: uppercase; margin-top: .25rem; display: block; }

/* ---- FOOTER ---- */
#site-footer { background: var(--dark); border-top: 1px solid rgba(255,255,255,.06); padding-top: 4.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.06); }
.footer-logo { font-family: var(--fd); font-size: 1.3rem; font-weight: 700; color: #fff; letter-spacing: -.01em; margin-bottom: .6rem; }
.footer-logo em { font-style: normal; color: var(--accent); }
.footer-tagline { color: rgba(255,255,255,.35); font-size: .85rem; max-width: 28ch; line-height: 1.65; margin-bottom: 1.25rem; }
.footer-socials { display: flex; gap: .6rem; flex-wrap: wrap; }
.footer-social { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); display: grid; place-items: center; color: rgba(255,255,255,.5); transition: border-color .2s, color .2s, background .2s; }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; display: block; }
.footer-social:hover { border-color: var(--accent); color: var(--accent); }
.footer-col h4 { font-family: var(--fd); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.28); margin-bottom: .9rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .55rem; }
.footer-col a { font-size: .95rem; color: rgba(255,255,255,.45); transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-block: 1.5rem; font-size: .85rem; color: rgba(255,255,255,.22); }

/* ---- REVEAL ---- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,.68,0,1.2); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── SUBMENU BAR ── */
#sub-nav { position:fixed; top:0; left:0; right:0; z-index:1001; background:var(--navy-mid); border-bottom:1px solid rgba(255,255,255,.08); min-height:40px; }
#sub-nav .sub-inner { display:flex; align-items:center; justify-content:space-between; height:40px; gap:1rem; }
.sub-links { display:flex; align-items:center; gap:.15rem; overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:none; }
.sub-links::-webkit-scrollbar { display:none; }
.sub-links a { font-family:var(--fd); font-size:.72rem; font-weight:600; letter-spacing:.04em; color:rgba(255,255,255,.52); padding:.3rem .8rem; border-radius:5px; white-space:nowrap; transition:color .2s,background .2s; }
.sub-links a:hover { color:var(--accent); background:rgba(0,229,176,.07); }
.sign-in-btn { font-family:var(--fd); font-size:.72rem; font-weight:700; letter-spacing:.05em; color:var(--accent); border:1px solid rgba(0,229,176,.35); border-radius:6px; padding:.28rem .9rem; white-space:nowrap; flex-shrink:0; transition:background .2s,color .2s,border-color .2s; }
.sign-in-btn:hover { background:var(--accent); color:var(--dark); border-color:var(--accent); }
/* Push main header below sub-nav */
#site-header { top:40px; }
#site-header.scrolled { top:40px; }
@media(max-width:640px) { .sub-links a { font-size:.63rem; padding:.28rem .55rem; } .sign-in-btn { font-size:.63rem; padding:.25rem .65rem; } }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) { .two-col { grid-template-columns: 1fr; gap: 2.5rem; } .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) { :root { --r: 10px; --rl: 16px; } .nav-menu, .nav-menu + .btn { display: none; } .nav-toggle { display: flex; } .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } .stat-row { gap: 1.5rem; } }
