@font-face {
  font-family: 'Oxanium';
  src: url('../assets/fonts/Oxanium-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Oxanium';
  src: url('../assets/fonts/Oxanium-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: 'Oxanium';
  src: url('../assets/fonts/Oxanium-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── THEME TOKENS ── */
:root {
  --accent: #0c92cc;
  --accent-glow: rgba(91, 196, 255, 0.4);

  /* dark (default) */
  --bg:          #0a1628;
  --bg-alt:      #0f2847;
  --text:        #ffffff;
  --text-muted:  rgba(255, 255, 255, 0.65);
  --icon-bg:     rgba(136, 204, 255, 0.15);
  --border:      rgba(12, 146, 204, 0.15);
  --border-nav:  rgba(12, 146, 204, 0.2);
  --nav-bg:      rgba(10, 22, 40, 0.85);
  --footer-text: rgba(255, 255, 255, 0.35);
  --privacy-sep: rgba(255, 255, 255, 0.06);
  --privacy-upd: rgba(255, 255, 255, 0.3);
  --hero-bg: url('../assets/space.png') center center / cover no-repeat,
             linear-gradient(180deg, #0a1628 0%, #0f2847 100%);
  --btn-color: #ffffff;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg:          #f4f8ff;
    --bg-alt:      #e6f0fa;
    --text:        #0a1628;
    --text-muted:  rgba(10, 22, 40, 0.6);
    --icon-bg:     rgba(12, 146, 204, 0.1);
    --border:      rgba(12, 146, 204, 0.2);
    --border-nav:  rgba(12, 146, 204, 0.15);
    --nav-bg:      rgba(244, 248, 255, 0.88);
    --footer-text: rgba(10, 22, 40, 0.45);
    --privacy-sep: rgba(10, 22, 40, 0.08);
    --privacy-upd: rgba(10, 22, 40, 0.35);
    --hero-bg: linear-gradient(180deg, #e6f0fa 0%, #f4f8ff 100%);
    --btn-color: #0a1628;
  }
}

[data-theme="dark"] {
  --bg:          #0a1628;
  --bg-alt:      #0f2847;
  --text:        #ffffff;
  --text-muted:  rgba(255, 255, 255, 0.65);
  --icon-bg:     rgba(136, 204, 255, 0.15);
  --border:      rgba(12, 146, 204, 0.15);
  --border-nav:  rgba(12, 146, 204, 0.2);
  --nav-bg:      rgba(10, 22, 40, 0.85);
  --footer-text: rgba(255, 255, 255, 0.35);
  --privacy-sep: rgba(255, 255, 255, 0.06);
  --privacy-upd: rgba(255, 255, 255, 0.3);
  --hero-bg: url('../assets/space.png') center center / cover no-repeat,
             linear-gradient(180deg, #0a1628 0%, #0f2847 100%);
  --btn-color: #ffffff;
}

[data-theme="light"] {
  --bg:          #f4f8ff;
  --bg-alt:      #e6f0fa;
  --text:        #0a1628;
  --text-muted:  rgba(10, 22, 40, 0.6);
  --icon-bg:     rgba(12, 146, 204, 0.1);
  --border:      rgba(12, 146, 204, 0.2);
  --border-nav:  rgba(12, 146, 204, 0.15);
  --nav-bg:      rgba(244, 248, 255, 0.88);
  --footer-text: rgba(10, 22, 40, 0.45);
  --privacy-sep: rgba(10, 22, 40, 0.08);
  --privacy-upd: rgba(10, 22, 40, 0.35);
  --hero-bg: linear-gradient(180deg, #e6f0fa 0%, #f4f8ff 100%);
  --btn-color: #0a1628;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Oxanium', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 3rem;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-nav);
  transition: background 0.3s, border-color 0.3s;
}
.nav-logo {
  font-family: 'Oxanium', sans-serif;
  font-size: 1.4rem;
  color: var(--text);
  letter-spacing: 4px;
  font-weight: 400;
  text-decoration: none;
}
.nav-logo span { color: var(--accent); font-weight: 800; }

.nav-links { display: flex; gap: 1.5rem; list-style: none; align-items: center; }
.nav-links a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.nav-cta {
  background: var(--accent);
  color: #ffffff;
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 20px var(--accent-glow);
}
.nav-links a.nav-cta:hover {
  transform: scale(1.04);
  box-shadow: 0 0 32px var(--accent-glow);
  color: #ffffff;
}

/* ── THEME TOGGLE ── */
.theme-toggle {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.4rem 0.75rem;
  border-radius: 100px;
  font-family: 'Oxanium', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }

/* show only the active theme icon */
.theme-toggle .icon-sun,
.theme-toggle .icon-moon,
.theme-toggle .icon-system { display: none; }

.theme-toggle[data-theme="system"] .icon-system { display: block; }
.theme-toggle[data-theme="light"]  .icon-sun    { display: block; }
.theme-toggle[data-theme="dark"]   .icon-moon   { display: block; }

/* fallback before JS runs (no data-theme attribute = system) */
.theme-toggle:not([data-theme]) .icon-system { display: block; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 8rem 2rem 5rem;
  position: relative;
  overflow: hidden;
  background: var(--hero-bg);
  transition: background 0.3s;
}

.hero-icon {
  width: 120px;
  height: 120px;
  border-radius: 26px;
  margin-bottom: 2rem;
  box-shadow: 0 0 60px rgba(91, 196, 255, 0.35), 0 8px 32px rgba(0, 0, 0, 0.3);
  animation: bob 5s ease-in-out infinite;
  position: relative; z-index: 1;
}

@keyframes bob {
  0%, 100% { transform: translateY(0);    box-shadow: 0 0 60px rgba(91,196,255,0.35), 0 8px 32px rgba(0,0,0,0.3); }
  50%       { transform: translateY(-12px); box-shadow: 0 0 80px rgba(91,196,255,0.55), 0 16px 40px rgba(0,0,0,0.2); }
}

.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
  position: relative; z-index: 1;
  animation: fadeUp 0.8s ease both;
}
.hero h1 {
  font-family: 'Oxanium', sans-serif;
  font-size: clamp(3.5rem, 9vw, 7rem);
  line-height: 1.0;
  color: var(--text);
  font-weight: 400;
  margin-bottom: 0.5rem;
  position: relative; z-index: 1;
  animation: fadeUp 0.9s ease 0.1s both;
  text-shadow: 0 0 30px rgba(91, 196, 255, 0.5);
  letter-spacing: 4px;
}
.hero h1 em { color: var(--accent); font-style: normal; font-weight: 800; }
.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 400px;
  line-height: 1.75;
  margin: 1.5rem auto 2.5rem;
  font-weight: 400;
  position: relative; z-index: 1;
  animation: fadeUp 1s ease 0.2s both;
}

.cta-group {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  position: relative; z-index: 1;
  animation: fadeUp 1s ease 0.3s both;
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent;
  color: var(--btn-color);
  text-decoration: none;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1px solid rgba(91, 196, 255, 0.4);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.btn-secondary:hover {
  transform: scale(1.05);
  border-color: var(--accent);
  background: rgba(12, 146, 204, 0.1);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── FEATURES ── */
.section { padding: 6rem 2rem; }
.section-inner { max-width: 960px; margin: 0 auto; }

.features { background: var(--bg-alt); transition: background 0.3s; }
.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-align: center;
}
.section-title {
  font-family: 'Oxanium', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  text-align: center;
  color: var(--text);
  margin-bottom: 3.5rem;
  font-weight: 800;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.feature-card {
  background: var(--bg);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s, background 0.3s;
  box-shadow: 0 0 20px rgba(91, 196, 255, 0.05);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 30px rgba(91, 196, 255, 0.12);
}
.feature-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--icon-bg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent);
}
.feature-card h3 {
  font-family: 'Oxanium', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-weight: 600;
}
.feature-card p {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-muted);
  font-weight: 400;
}

/* ── FOOTER ── */
footer {
  background: var(--bg);
  color: var(--footer-text);
  text-align: center;
  padding: 2.5rem 2rem;
  font-size: 0.82rem;
  line-height: 1.8;
  border-top: 1px solid var(--border);
  transition: background 0.3s, color 0.3s;
}
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { color: var(--text); }
.footer-logo {
  font-family: 'Oxanium', sans-serif;
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  font-weight: 400;
  letter-spacing: 2px;
}
.footer-logo span { color: var(--accent); font-weight: 800; }

/* ── PRIVACY POLICY ── */
.privacy { background: var(--bg); color: var(--text); }
.privacy-content { max-width: 700px; margin: 0 auto; }
.privacy-block {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--privacy-sep);
}
.privacy-block:last-child { border-bottom: none; margin-bottom: 0; }
.privacy-block h3 {
  font-family: 'Oxanium', sans-serif;
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.privacy-block p, .privacy-block ul {
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--text-muted);
  font-weight: 400;
}
.privacy-block ul { padding-left: 1.25rem; }
.privacy-block ul li { margin-bottom: 0.35rem; }
.privacy-updated {
  font-size: 0.75rem;
  color: var(--privacy-upd);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 3rem;
  text-align: center;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .features-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero-icon { width: 96px; height: 96px; }
  nav { padding: 1rem 1.25rem; }
  .nav-logo { font-size: 1.2rem; }
  .theme-label { display: none; }
}
