/* X4X landing — clean, minimal dark theme */
:root {
  --primary: #26c6da;
  --primary-light: #5ff3e6;
  --primary-rgb: 38, 198, 218;
  --background: #0c171c;
  --card: #14232a;
  --text: #eef3f5;
  --text-secondary: #9fb3bc;
  --border: #24363d;
  --hero-bg: #0a161b;
  --maxw: 1080px;
  --radius: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  background-color: var(--background);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; }
a { color: var(--primary-light); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 108px 0; }
.bg-light { background-color: var(--hero-bg); }

h1, h2, h3 { color: var(--text); line-height: 1.15; }
h1 { font-size: clamp(2.5rem, 6vw, 4rem); margin: 0 0 1.25rem; letter-spacing: -0.03em; font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 1rem; letter-spacing: -0.02em; font-weight: 700; }
h3 { font-size: 1.2rem; margin: 0 0 .5rem; font-weight: 650; }

.accent-text { color: var(--primary-light); }

.lead {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto;
}

.section-head { text-align: center; max-width: 640px; margin: 0 auto 64px; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--primary); color: #06121a;
  padding: 10px 16px; border-radius: 0 0 10px 0; z-index: 200; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 22, 27, 0);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(10, 22, 27, .85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 24px;
}

/* Logo — pronounced */
.logo {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.logo-mark { height: 56px; width: auto; display: block; }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  color: var(--text-secondary); text-decoration: none;
  font-weight: 500; font-size: 1rem; transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta { color: #06121a !important; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 14px 30px; border-radius: 12px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .18s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn-sm { padding: 10px 20px; font-size: .95rem; border-radius: 10px; }
.btn-block { display: block; text-align: center; margin-top: 26px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn.primary { background-color: var(--primary); color: #06121a; }
.btn.primary:hover { background-color: var(--primary-light); }

.btn.ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn.ghost:hover { border-color: var(--primary-light); color: var(--primary-light); }

/* ---------- Hero ---------- */
.hero {
  background-color: var(--hero-bg);
  padding: 120px 0 128px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero-inner { max-width: 760px; }
.hero .subtitle {
  font-size: 1.3rem; color: var(--text-secondary);
  margin: 0 auto; max-width: 620px;
}
.cta-buttons {
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: center; margin-top: 40px;
}

/* ---------- Steps ---------- */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.step {
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  transition: transform .22s var(--ease), border-color .22s;
}
.step:hover { transform: translateY(-4px); border-color: rgba(var(--primary-rgb), .5); }
.step-num {
  display: block; font-size: .95rem; font-weight: 700;
  color: var(--primary-light); letter-spacing: .1em; margin-bottom: 14px;
}
.step p { margin: 0; color: var(--text-secondary); }

/* ---------- Features ---------- */
.features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature {
  padding: 30px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  transition: transform .22s var(--ease), border-color .22s;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(var(--primary-rgb), .5); }
.feature p { margin: 0; color: var(--text-secondary); }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px; align-items: start;
}
.pricing-card {
  position: relative;
  background-color: var(--card);
  border: 1px solid var(--border);
  padding: 38px 30px;
  border-radius: var(--radius);
  transition: transform .22s var(--ease);
}
.pricing-card:hover { transform: translateY(-4px); }
.pricing-card.featured { border: 1.5px solid var(--primary); }
.badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #06121a;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px; white-space: nowrap;
}
.price {
  font-size: 2rem; font-weight: 800; margin: 8px 0 24px; color: var(--primary-light);
}
.pricing-card ul { padding: 0; margin: 0; list-style: none; }
.pricing-card li {
  padding: 10px 0 10px 28px; position: relative;
  color: var(--text-secondary); border-top: 1px solid var(--border);
}
.pricing-card li:first-child { border-top: 0; }
.pricing-card li::before {
  content: "✓"; position: absolute; left: 0; top: 10px;
  color: var(--primary-light); font-weight: 700;
}

/* ---------- Footer ---------- */
footer {
  background-color: var(--hero-bg);
  border-top: 1px solid var(--border);
  padding: 48px 0;
}
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 18px 32px;
}
.footer-logo { text-decoration: none; }
.footer-logo .logo-mark { height: 44px; }
.copyright { margin: 0; color: var(--text-secondary); font-size: .92rem; }

/* ---------- Focus ---------- */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--primary-light); outline-offset: 3px; border-radius: 6px;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
  .section { padding: 76px 0; }
  .hero { padding: 84px 0 88px; }
  .section-head { margin-bottom: 44px; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(10, 22, 27, .97);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    max-height: 0; overflow: hidden; opacity: 0; pointer-events: none;
    transition: max-height .3s var(--ease), opacity .25s;
  }
  .nav-links.open { max-height: 360px; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 13px 4px; border-bottom: 1px solid var(--border); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-cta { text-align: center; margin-top: 10px; }

  .logo-mark { height: 48px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
