/* ═══════════════════════════════════════
   MEDIA OMNI — SHARED CSS
   Design System · Bold Blue Digital
   Fonts: Sora + Be Vietnam Pro + Roboto Mono
═══════════════════════════════════════ */

/* ── DESIGN TOKENS ── */
:root {
  --navy:     #050F2C;
  --navy2:    #0A1A3E;
  --blue:     #2563EB;
  --blue2:    #1D4ED8;
  --cyan:     #06B6D4;
  --white:    #FFFFFF;
  --paper:    #F8FAFF;
  --paper2:   #EEF4FF;
  --ink:      #0F172A;
  --muted:    #475569;
  --faint:    #94A3B8;
  --border:   rgba(37,99,235,.15);
  --border2:  rgba(37,99,235,.08);
  --success:  #10B981;
  --warning:  #F59E0B;
  --error:    #EF4444;

  --g-blue:   linear-gradient(135deg,#2563EB,#06B6D4);
  --g-hero:   linear-gradient(135deg,#050F2C 0%,#0D1F4F 40%,#0A2A6E 70%,#0E3A80 100%);
  --g-glow:   radial-gradient(ellipse 80% 60% at 60% 30%,rgba(37,99,235,.35),transparent 70%);
  --g-glow2:  radial-gradient(ellipse 60% 50% at 20% 80%,rgba(6,182,212,.2),transparent 60%);
  --g-card:   linear-gradient(135deg,rgba(37,99,235,.1),rgba(6,182,212,.08));

  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   20px;
  --r-pill: 100px;

  --f-display: 'Sora', system-ui, sans-serif;
  --f-body:    'Be Vietnam Pro', system-ui, sans-serif;
  --f-mono:    'Roboto Mono', monospace;

  --ease:      cubic-bezier(.16,1,.3,1);
  --ease-back: cubic-bezier(.34,1.56,.64,1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: var(--f-body); }
svg { display: block; }

/* ── LAYOUT ── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ── SCROLL PROGRESS ── */
#sp {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  z-index: 9999; background: var(--g-blue);
  transition: width .06s linear; pointer-events: none;
}

/* ── TYPOGRAPHY HELPERS ── */
.sec-label {
  font-family: var(--f-mono); font-size: .68rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--blue);
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.sec-label::before { content: ''; width: 24px; height: 2px; background: var(--g-blue); display: block; }
.sec-label--white { color: rgba(255,255,255,.6); }
.sec-label--white::before { background: rgba(255,255,255,.35); }

.sec-title {
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.12;
  color: var(--ink); margin-bottom: 12px;
}
.sec-title--white { color: var(--white); }
.sec-sub { font-size: 1rem; font-weight: 400; color: var(--muted); max-width: 480px; line-height: 1.75; }
.sec-sub--white { color: rgba(255,255,255,.58); }
.sec-hd { margin-bottom: 52px; }
.sec-hd-flex {
  display: flex; align-items: flex-end;
  justify-content: space-between; margin-bottom: 52px; flex-wrap: wrap; gap: 16px;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--g-blue); color: var(--white);
  font-family: var(--f-body); font-weight: 700; font-size: .95rem;
  padding: 12px 26px; border-radius: var(--r-pill); border: none;
  box-shadow: 0 4px 24px rgba(37,99,235,.4);
  transition: transform .2s var(--ease), box-shadow .2s, opacity .2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(37,99,235,.55); }
.btn-primary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1); color: var(--white);
  font-family: var(--f-body); font-weight: 600; font-size: .95rem;
  padding: 12px 26px; border-radius: var(--r-pill);
  border: 1.5px solid rgba(255,255,255,.22);
  transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.btn-ghost:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.45); transform: translateY(-2px); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: var(--blue);
  font-family: var(--f-body); font-weight: 600; font-size: .84rem;
  padding: 9px 18px; border-radius: var(--r-pill); border: 1.5px solid var(--border);
  transition: background .18s, border-color .18s, transform .2s;
}
.btn-outline:hover { background: var(--border2); border-color: rgba(37,99,235,.3); transform: translateX(4px); }

.btn-sm {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--paper); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 8px 14px; font-size: .82rem;
  font-weight: 500; color: var(--muted);
  transition: background .18s, border-color .18s;
}
.btn-sm:hover { background: var(--paper2); border-color: rgba(37,99,235,.25); color: var(--blue); }

/* ── TAGS / CHIPS ── */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-mono); font-size: .62rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .26rem .78rem; border-radius: var(--r-pill);
  border: 1px solid var(--border); color: var(--blue); background: var(--border2);
}
.tag--cyan { border-color: rgba(6,182,212,.3); color: var(--cyan); background: rgba(6,182,212,.08); }
.tag--white { border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.8); background: rgba(255,255,255,.08); }

.chip {
  font-family: var(--f-mono); font-size: .58rem; letter-spacing: .07em;
  text-transform: uppercase; padding: .18rem .62rem; border-radius: var(--r-pill);
  border: 1px solid var(--border); color: var(--blue); background: var(--border2);
  transition: background .18s, border-color .18s;
}

/* ── REVEAL ── */
.rv, .rv-l, .rv-r {
  opacity: 0; transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.rv   { transform: translateY(32px); }
.rv-l { transform: translateX(-40px); }
.rv-r { transform: translateX(40px); }
.rv.on, .rv-l.on, .rv-r.on { opacity: 1; transform: none; }
.d1{transition-delay:.06s} .d2{transition-delay:.12s} .d3{transition-delay:.18s}
.d4{transition-delay:.24s} .d5{transition-delay:.30s} .d6{transition-delay:.36s}
.d7{transition-delay:.42s} .d8{transition-delay:.48s}

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  display: flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--white);
  padding: 12px 18px; border-radius: var(--r-pill);
  font-size: .82rem; font-weight: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
  transform: translateY(80px); opacity: 0;
  transition: all .35s var(--ease); pointer-events: none;
}
.toast.show { transform: none; opacity: 1; }
.toast.success { background: var(--success); }
.toast.error   { background: var(--error); }
.toast-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.6); flex-shrink: 0; }

/* ═══ NAV ═══ */
#main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 600;
  transition: background .35s, backdrop-filter .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
#main-nav.scrolled {
  background: rgba(5,15,44,.9);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom-color: rgba(255,255,255,.08);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  height: 68px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-weight: 800;
  font-size: 1.05rem; letter-spacing: -.02em; color: var(--white);
}
.nav-logo-mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--g-blue);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 800; color: var(--white);
  box-shadow: 0 4px 14px rgba(37,99,235,.5);
  transition: transform .25s var(--ease-back), box-shadow .25s;
}
.nav-logo:hover .nav-logo-mark { transform: rotate(-8deg) scale(1.1); box-shadow: 0 8px 24px rgba(37,99,235,.7); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  font-size: .84rem; font-weight: 500; color: rgba(255,255,255,.68);
  padding: .45rem .9rem; border-radius: var(--r-sm);
  transition: color .18s, background .18s; background: none; border: none;
}
.nav-link:hover, .nav-link.active { color: var(--white); background: rgba(255,255,255,.08); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--g-blue); color: var(--white);
  font-size: .84rem; font-weight: 700;
  padding: .52rem 1.2rem; border-radius: var(--r-pill); border: none;
  box-shadow: 0 4px 16px rgba(37,99,235,.45);
  transition: opacity .2s, transform .2s, box-shadow .2s;
}
.nav-cta:hover { opacity: .9; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,.6); }
.nav-cta svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 2.2; fill: none; stroke-linecap: round; }
.nav-toggle {
  display: none; background: none; border: none;
  padding: 8px; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .3s, opacity .3s; }
.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); }
.nav-mob {
  display: none; position: absolute; top: 68px; left: 0; right: 0;
  background: rgba(5,15,44,.97); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 16px 24px 24px; flex-direction: column; gap: 4px;
}
.nav-mob.open { display: flex; animation: mobSlide .25s var(--ease); }
@keyframes mobSlide { from{opacity:0;transform:translateY(-8px)} to{opacity:1;transform:none} }
.nav-mob-link {
  font-size: .9rem; font-weight: 500; color: rgba(255,255,255,.65);
  padding: .62rem .5rem; border: none; border-bottom: 1px solid rgba(255,255,255,.06);
  text-align: left; width: 100%; background: none;
  transition: color .15s, padding-left .18s;
}
.nav-mob-link:last-child { border-bottom: none; }
.nav-mob-link:hover { color: var(--white); padding-left: .75rem; }
.mob-overlay { display: none; position: fixed; inset: 0; z-index: 590; background: rgba(0,0,0,.5); backdrop-filter: blur(4px); }
.mob-overlay.open { display: block; }

/* ═══ LOGIN MODAL ═══ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(5,15,44,.85); backdrop-filter: blur(24px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal-box {
  background: var(--white); border-radius: 20px; padding: 40px;
  width: 100%; max-width: 380px; position: relative;
  box-shadow: 0 32px 100px rgba(0,0,0,.5);
  animation: mPop .35s var(--ease-back);
}
@keyframes mPop { from{transform:translateY(24px) scale(.93);opacity:0} to{transform:none;opacity:1} }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: var(--paper); border: none;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: .85rem;
  transition: background .18s, transform .18s;
}
.modal-close:hover { background: var(--paper2); transform: rotate(90deg); }
.modal-logo { text-align: center; margin-bottom: 28px; }
.modal-mark {
  width: 52px; height: 52px; border-radius: 14px; background: var(--g-blue);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px; box-shadow: 0 8px 24px rgba(37,99,235,.4);
}
.modal-mark svg { width: 24px; height: 24px; stroke: white; stroke-width: 2; fill: none; stroke-linecap: round; }
.modal-title { font-family: var(--f-display); font-size: 1.2rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.modal-sub { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.modal-field { margin-bottom: 16px; }
.modal-label {
  display: block; font-family: var(--f-mono); font-size: .6rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.modal-input {
  width: 100%; padding: 12px 16px;
  background: var(--paper); border: 1.5px solid var(--border);
  border-radius: var(--r-sm); color: var(--ink);
  font-size: .92rem; outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.modal-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.12); background: var(--white); }
.modal-btn {
  width: 100%; padding: 13px; background: var(--g-blue); color: var(--white);
  border: none; border-radius: var(--r-pill);
  font-weight: 700; font-size: .92rem;
  box-shadow: 0 4px 20px rgba(37,99,235,.4);
  transition: opacity .18s, transform .2s, box-shadow .2s;
}
.modal-btn:hover { opacity: .9; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37,99,235,.55); }
.modal-error { color: var(--error); font-size: .76rem; text-align: center; margin-top: 10px; display: none; }

/* ═══ FOOTER ═══ */
.site-footer {
  background: #030914; color: rgba(255,255,255,.5);
  padding: 64px 0 32px; border-top: 1px solid rgba(37,99,235,.2);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand-name { font-family: var(--f-display); font-size: .95rem; font-weight: 800; color: var(--white); margin-bottom: 10px; letter-spacing: -.02em; }
.footer-brand p { font-size: .8rem; line-height: 1.8; color: rgba(255,255,255,.28); max-width: 240px; }
.footer-col h4 { font-family: var(--f-mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.2); margin-bottom: 18px; }
.footer-col a { display: block; font-size: .82rem; color: rgba(255,255,255,.4); margin-bottom: .55rem; transition: color .18s, padding-left .18s; }
.footer-col a:hover { color: var(--white); padding-left: .4rem; }
.footer-bottom { border-top: 1px solid rgba(37,99,235,.12); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: .73rem; color: rgba(255,255,255,.2); }
.footer-soc { display: flex; gap: 8px; }
.footer-soc a { width: 32px; height: 32px; border-radius: var(--r-sm); background: rgba(255,255,255,.05); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.35); transition: background .18s, color .18s, transform .18s; }
.footer-soc a svg { width: 14px; height: 14px; fill: currentColor; }
.footer-soc a:hover { background: var(--blue); color: var(--white); transform: translateY(-3px); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .sec-hd-flex { flex-direction: column; align-items: flex-start; }
}
