@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=DM+Sans:wght@300;400;500&display=swap');

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

:root {
  /* Backgrounds */
  --bg-primary: #070709;
  --bg-elevated: #111118;
  --bg-surface: #1A1A22;
  --bg-hover: #242430;

  /* Purple accent system */
  --purple: #7c3aed;
  --purple-hover: #6d28d9;
  --purple-light: rgba(124, 58, 237, 0.15);
  --purple-text: #a78bfa;

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-muted: rgba(255, 255, 255, 0.4);

  /* Borders */
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);

  /* Typography */
  --serif: 'Instrument Serif', serif;
  --sans: 'DM Sans', -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.6;
}

/* =================== NAV =================== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 60px; height: 64px;
  background: rgba(7, 7, 9, 0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  display: flex; align-items: baseline;
  font-weight: 500; font-size: 20px; color: var(--text-primary);
  text-decoration: none;
}
.nav-logo .logo-e {
  color: var(--purple); font-weight: 900; margin-right: 3px;
  font-family: var(--serif); font-style: italic; font-size: 1.3em;
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 14px; color: var(--text-secondary);
  text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.nav-cta {
  background: var(--purple) !important; color: #fff !important;
  padding: 9px 20px; border-radius: 10px;
  font-weight: 500; font-size: 13px !important;
  transition: opacity 0.15s !important;
}
.nav-cta:hover { background: var(--purple-hover) !important; }
.footer-lang {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; color: var(--text-muted);
  text-decoration: none; transition: color 0.2s;
}
.footer-lang:hover { color: var(--text-primary); }

/* Mobile hamburger */
.nav-hamburger {
  display: none; background: none; border: none; cursor: pointer;
  width: 32px; height: 32px; align-items: center; justify-content: center;
}
.nav-hamburger svg { stroke: var(--text-primary); }
.nav-mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.95); backdrop-filter: blur(20px);
  flex-direction: column; align-items: center; justify-content: flex-start;
  padding-top: 48px; gap: 24px; z-index: 99;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  font-size: 18px; color: var(--text-secondary);
  text-decoration: none; transition: color 0.2s;
}
.nav-mobile-menu a:hover, .nav-mobile-menu a.active { color: var(--text-primary); }
.nav-mobile-menu .nav-cta {
  background: var(--purple) !important; color: #fff !important;
  padding: 12px 28px; border-radius: 12px; font-size: 15px !important;
}

/* =================== BUTTONS =================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 12px;
  font-family: var(--sans); font-size: 15px; font-weight: 500;
  text-decoration: none; cursor: pointer; border: none;
  transition: all 0.15s;
}
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-hover); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-hover); border-color: var(--border-hover); color: var(--text-primary); }
.btn-sm { padding: 10px 20px; font-size: 13px; border-radius: 10px; }

/* =================== SHARED ELEMENTS =================== */
.section-label {
  font-size: 13px; font-weight: 500; letter-spacing: 0.14em;
  color: var(--text-secondary); text-transform: uppercase;
  text-align: center; margin-bottom: 20px;
}
.section-title {
  font-family: var(--serif); font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 400; color: var(--text-primary); text-align: center;
  letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 56px;
}
.section-title em { font-style: italic; color: var(--purple-text); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.12em;
  color: var(--purple-text); text-transform: uppercase;
  background: var(--purple-light); padding: 6px 14px;
  border-radius: 100px; margin-bottom: 32px;
}
.eyebrow-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--purple); flex-shrink: 0;
}

.back-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 400; color: var(--text-muted);
  text-decoration: none; margin-bottom: 28px;
  transition: color 0.2s;
}
.back-arrow:hover { color: var(--text-primary); }
.back-arrow svg {
  width: 16px; height: 16px; stroke: currentColor;
  stroke-width: 1.8; fill: none; transition: transform 0.2s;
}
.back-arrow:hover svg { transform: translateX(-3px); }

.check-feat { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-primary); margin-bottom: 12px; }
.check-icon {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--purple-light); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.check-icon svg { width: 10px; height: 10px; stroke: var(--purple-text); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

.card {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: 20px; padding: 36px 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* =================== FOOTER =================== */
footer { border-top: 1px solid var(--border); padding: 48px 60px; background: var(--bg-primary); }
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px;
}
.footer-brand p { font-size: 13px; color: var(--text-muted); line-height: 1.65; margin-top: 10px; max-width: 220px; }
.footer-col h4 {
  font-size: 12px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px;
}
.footer-col a {
  display: block; font-size: 14px; color: var(--text-secondary);
  text-decoration: none; margin-bottom: 10px; transition: color 0.2s;
}
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
  max-width: 1100px; margin: 32px auto 0; padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom p { font-size: 12px; color: var(--text-muted); }

/* =================== FADE ANIMATIONS =================== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.fade { animation: fadeUp 0.55s ease both; }
.fade-1 { animation-delay: 0.05s; }
.fade-2 { animation-delay: 0.12s; }
.fade-3 { animation-delay: 0.18s; }

/* =================== RESPONSIVE =================== */
@media (max-width: 768px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  footer { padding: 40px 24px; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .btn { padding: 12px 22px; font-size: 14px; }
}
