/* =================== TOKENS & RESET =================== */
:root {
  --bg-dark: #070B11;
  --bg-surface: #0E1621;
  --bg-glass: rgba(14, 22, 33, 0.65);
  
  --text-main: #F3F7FD;
  --text-muted: #9AAEC4;
  
  --accent-cyan: #00F0FF;
  --accent-cyan-dark: #008C99;
  
  --brand-blue: #1D71F2;
  
  --neon-glow: 0 0 15px rgba(0, 240, 255, 0.5), 0 0 30px rgba(0, 240, 255, 0.2);
  --neon-glow-strong: 0 0 20px rgba(0, 240, 255, 0.8), 0 0 40px rgba(0, 240, 255, 0.4);
  
  --card-border: rgba(0, 240, 255, 0.2);
  --glass-border: rgba(255, 255, 255, 0.08);

  --nav-h: 80px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background: var(--bg-dark);
  padding-top: var(--nav-h);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Background Atmospheric Gradient */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background: 
    radial-gradient(circle at 15% 50%, rgba(0, 240, 255, 0.05), transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(29, 113, 242, 0.06), transparent 50%);
  pointer-events: none;
}

/* Background Logo Watermark */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background: url('../assets/logo/logo.png') no-repeat center center;
  background-size: 40% auto;
  opacity: 0.03;
  pointer-events: none;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { max-width: 1320px; margin: 0 auto; padding: 0 24px; position: relative; }

/* =================== UTILITIES =================== */
.text-center { text-align: center; }
.neon-text {
  color: var(--accent-cyan);
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.6);
}
.neon-separator {
  width: 60px; height: 4px; background: var(--accent-cyan);
  box-shadow: var(--neon-glow); border-radius: 2px;
  margin: 24px 0;
}
.neon-separator.center { margin: 24px auto; }
.glass-box {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
}

/* =================== BUTTONS =================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 32px; border-radius: 12px; font-weight: 700; font-size: 16px;
  letter-spacing: 0.05em; transition: all 0.3s ease;
  cursor: pointer;
}
.btn-neon {
  background: transparent;
  color: var(--accent-cyan);
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0,240,255,0.2), inset 0 0 10px rgba(0,240,255,0.1);
  text-shadow: 0 0 8px rgba(0,240,255,0.4);
}
.btn-neon:hover {
  background: var(--accent-cyan);
  color: #000;
  box-shadow: var(--neon-glow-strong);
  text-shadow: none;
  transform: translateY(-2px);
}
.btn-solid {
  background: var(--text-main);
  color: var(--bg-dark);
  border: 2px solid var(--text-main);
}
.btn-solid:hover {
  background: transparent; color: var(--text-main); transform: translateY(-2px);
}

/* =================== NAVBAR =================== */
.nav {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 48px); max-width: 1200px; z-index: 100; height: 72px;
  background: rgba(14, 22, 33, 0.75);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 40px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.1);
}
.nav .container { padding: 0 8px 0 24px; width: 100%; max-width: none; }
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 100%; width: 100%; position: relative; }
.brand img { height: 44px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); }
.links { display: flex; gap: 8px; align-items: center; position: absolute; left: 50%; transform: translateX(-50%); }
.links a {
  font-size: 15px; font-weight: 500; letter-spacing: 0; text-transform: capitalize;
  color: #9AAEC4; padding: 8px 18px; border-radius: 20px; transition: all 0.3s ease;
}
.links a:hover { color: #fff !important; background: rgba(255, 255, 255, 0.05); text-shadow: none !important; }
.links a.active, .links a.active.neon-text {
  color: #fff !important; background: rgba(255, 255, 255, 0.15); text-shadow: none !important;
}
.actions { display: flex; gap: 16px; margin-left: auto; }
.actions .btn-neon {
  background: #509CFF; color: #fff !important; border: none; padding: 12px 28px; border-radius: 30px;
  box-shadow: 0 4px 15px rgba(80, 156, 255, 0.3) !important; text-transform: none; font-weight: 600; font-size: 15px; text-shadow: none !important;
}
.actions .btn-neon:hover {
  background: #6BAEFF; box-shadow: 0 6px 20px rgba(80, 156, 255, 0.5) !important; transform: translateY(-2px);
}

/* Mobile Menu Variables */
#nav-toggle, .burger { display: none; }

@media (max-width: 980px) {
  .burger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; width: 32px; z-index: 101; margin-right: 16px; }
  .burger span { display: block; width: 100%; height: 2px; background: #fff; transition: 0.3s; }
  .links, .actions {
    position: fixed; top: 108px; left: 24px; width: calc(100% - 48px); transform: none;
    background: rgba(14, 22, 33, 0.95); flex-direction: column;
    padding: 0; gap: 0; border-radius: 20px; border: 1px solid rgba(255,255,255,0.08);
    max-height: 0; overflow: hidden; opacity: 0; transition: all 0.4s ease;
  }
  .actions { top: 420px; padding: 0 24px; background: transparent; border: none; align-items: center; }
  .links a { border-bottom: 1px solid rgba(255,255,255,0.05); padding: 16px; width: 100%; text-align: center; border-radius: 0; }
  .links a:last-child { border-bottom: none; }
  
  #nav-toggle:checked ~ .links { max-height: 300px; opacity: 1; padding: 10px 0; }
  #nav-toggle:checked ~ .actions { max-height: 200px; opacity: 1; padding-top: 10px; padding-bottom: 24px; }
  #nav-toggle:checked ~ .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  #nav-toggle:checked ~ .burger span:nth-child(2) { opacity: 0; }
  #nav-toggle:checked ~ .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* =================== HERO (Redesigned) =================== */
.hero {
  position: relative; min-height: 90vh;
  display: flex; align-items: center;
  margin-top: calc(var(--nav-h) * -1); /* Full bleed behind nav */
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 1; }
.hero-video { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(135deg, rgba(7, 11, 17, 0.9) 0%, rgba(7, 11, 17, 0.4) 100%);
}
.hero-content {
  position: relative; z-index: 10; width: 100%; max-width: 800px;
}
.hero-badge {
  display: inline-block; padding: 8px 16px; border-radius: 20px;
  background: rgba(0, 240, 255, 0.1); border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--accent-cyan); font-weight: 700; font-size: 13px; letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(40px, 6vw, 76px); font-weight: 800; line-height: 1.1; margin-bottom: 24px;
}
.hero-subtitle {
  font-size: clamp(18px, 2vw, 22px); color: var(--text-muted); line-height: 1.6; margin-bottom: 40px; max-width: 650px;
}
.hero-cta { display: flex; gap: 20px; flex-wrap: wrap; }

/* =================== MODERN SECTIONS =================== */
.section { padding: 120px 0; }

.section-header { text-align: center; max-width: 700px; margin: 0 auto 64px; }
.section-header h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; }
.section-header p { color: var(--text-muted); font-size: 18px; margin-top: 16px; }

/* Grid Layouts */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 980px) { .grid-2 { grid-template-columns: 1fr; gap: 40px; } }

/* Cards */
.modern-card {
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: 20px; padding: 40px;
  transition: all 0.4s ease;
  position: relative; overflow: hidden;
}
.modern-card:hover {
  background: rgba(20, 32, 48, 0.8);
  border-color: var(--card-border);
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.08);
  transform: translateY(-5px);
}
.modern-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
  background: var(--accent-cyan); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.modern-card:hover::before { transform: scaleX(1); box-shadow: var(--neon-glow); }

.card-icon {
  width: 64px; height: 64px; display: flex; align-items: center; justify-content: center;
  border-radius: 16px; background: rgba(0, 240, 255, 0.08);
  color: var(--accent-cyan); font-size: 28px; margin-bottom: 24px;
  border: 1px solid rgba(0, 240, 255, 0.2);
}
.modern-card h3 { font-size: 24px; font-weight: 700; margin-bottom: 16px; }
.modern-card p { color: var(--text-muted); font-size: 16px; line-height: 1.7; }

/* Feature Split */
.feat-text { max-width: 500px; }
.feat-text h2 { font-size: 40px; font-weight: 800; line-height: 1.2; margin-bottom: 24px; }
.feat-text p { color: var(--text-muted); font-size: 18px; margin-bottom: 32px; }
.feat-media { position: relative; border-radius: 24px; overflow: hidden; }
.feat-media img { border-radius: 24px; border: 1px solid var(--glass-border); }
.feat-media::after {
  content: ""; position: absolute; inset: 0; border: 2px solid var(--accent-cyan);
  border-radius: 24px; opacity: 0; transition: 0.4s;
}
.feat-media:hover::after { opacity: 1; box-shadow: inset var(--neon-glow); }

/* =================== CTA BANNER =================== */
.cta-banner {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(29, 113, 242, 0.1));
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  padding: 100px 0; text-align: center; position: relative;
}
.cta-banner h2 { font-size: 48px; font-weight: 800; margin-bottom: 24px; }
.cta-banner p { font-size: 20px; color: var(--text-muted); max-width: 600px; margin: 0 auto 40px; }

/* =================== FOOTER =================== */
.footer { background: #05080C; padding: 80px 0 40px; border-top: 1px solid var(--glass-border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand img { height: 40px; margin-bottom: 24px; }
.footer-brand p { color: var(--text-muted); font-size: 15px; max-width: 300px; }
.footer-title { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 24px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-muted); transition: color 0.3s; }
.footer-links a:hover { color: var(--accent-cyan); }
.footer-bottom { 
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px; border-top: 1px solid var(--glass-border);
  color: var(--text-muted); font-size: 14px;
}
.social-links { display: flex; gap: 16px; }
.social-links a {
  width: 40px; height: 40px; border-radius: 50%; background: var(--bg-surface);
  display: flex; align-items: center; justify-content: center;
  transition: 0.3s;
}
.social-links a:hover { background: var(--accent-cyan); color: #000; box-shadow: var(--neon-glow); }

/* =================== FORMS =================== */
.modern-input {
  width: 100%; padding: 16px 20px; background: rgba(0,0,0,0.2);
  border: 1px solid var(--glass-border); border-radius: 12px;
  color: #fff; font-family: 'Inter'; font-size: 16px; transition: 0.3s;
}
.modern-input:focus {
  outline: none; border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0,240,255,0.2);
}

/* =================== ANIMATIONS =================== */
.fade-up { opacity: 0; transform: translateY(30px); transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.fade-in { opacity: 0; transition: 0.8s ease; }
.animate-in { opacity: 1 !important; transform: translateY(0) !important; }
