/* ==========================================================
   NeuroCraft — style.css
   Edit the colour tokens below to re-theme the whole site.
   ========================================================== */

:root {
  --bg: #faf8f5;
  --bg-soft: #f3effa;
  --surface: #ffffff;
  --text: #17151f;
  --text-muted: #5d5a6b;
  --border: #e8e4ef;
  --purple: #7c5cff;
  --purple-deep: #5b3fd9;
  --purple-soft: #ece7ff;
  --gradient: linear-gradient(135deg, #7c5cff 0%, #b18cff 100%);
  --radius: 20px;
  --shadow-sm: 0 2px 8px rgba(40, 20, 90, .06);
  --shadow-md: 0 18px 40px -14px rgba(60, 30, 140, .22);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--text); color: #fff;
  padding: 10px 16px; border-radius: 8px; z-index: 200;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.container { width: min(1140px, 100% - 40px); margin-inline: auto; }
.narrow { max-width: 760px; }
.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .9rem 1.7rem;
  border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-small { padding: .55rem 1.2rem; font-size: .95rem; background: var(--text); color: #fff; }
.btn-small:hover { background: var(--purple-deep); }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 10px 24px -8px rgba(124, 92, 255, .6); }
.btn-primary:hover { box-shadow: 0 14px 30px -8px rgba(124, 92, 255, .75); }
.btn-dark { background: var(--text); color: #fff; }
.btn-dark:hover { background: var(--purple-deep); box-shadow: 0 14px 30px -10px rgba(60, 30, 140, .5); }
.btn-ghost { border-color: var(--border); background: var(--surface); color: var(--text); }
.btn-ghost:hover { border-color: var(--purple); color: var(--purple-deep); }
.btn-light { background: #fff; color: var(--purple-deep); }
.btn-light:hover { box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .35); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 248, 245, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }

.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-name { font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; }

.primary-nav ul { display: flex; align-items: center; gap: 2rem; }
.primary-nav a:not(.btn) { text-decoration: none; font-weight: 500; color: var(--text-muted); position: relative; transition: color .2s; }
.primary-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--gradient); transition: width .25s;
}
.primary-nav a:not(.btn):hover { color: var(--text); }
.primary-nav a:not(.btn):hover::after { width: 100%; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 10px; cursor: pointer;
  flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .25s; }
.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); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 4.5rem 0 5.5rem; }
.hero-glow {
  position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(circle at 40% 40%, rgba(124, 92, 255, .22), rgba(177, 140, 255, .08) 45%, transparent 70%);
  filter: blur(10px); pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 3rem; }

.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--purple-deep);
  background: var(--purple-soft);
  padding: .4rem .9rem; border-radius: 999px;
  margin-bottom: 1.25rem;
}
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 800; }
.gradient-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin-top: 1.4rem; max-width: 34rem; font-size: 1.2rem; color: var(--text-muted); }
.hero-actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: .9rem; }

.hero-visual img { width: 100%; filter: drop-shadow(0 30px 40px rgba(70, 40, 160, .18)); animation: float 7s ease-in-out infinite; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; }
.section-head { max-width: 680px; margin: 0 auto 3.2rem; }
.section-sub { margin-top: 1rem; color: var(--text-muted); font-size: 1.1rem; }
.lead { margin-top: 1.4rem; font-size: 1.2rem; color: var(--text-muted); }

.about { background: var(--surface); border-block: 1px solid var(--border); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #d9d0f5; }

.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; max-width: 960px; margin-inline: auto; }

.product-card { padding: 2.2rem; display: flex; flex-direction: column; position: relative; }
.product-card h3 { font-size: 1.5rem; font-weight: 700; margin-top: 1.1rem; }
.product-desc { margin-top: .8rem; color: var(--text-muted); }
.product-card.featured { border: 1.5px solid var(--purple); background: linear-gradient(180deg, #fff 0%, #f8f5ff 100%); }

.badge { align-self: flex-start; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .35rem .8rem; border-radius: 999px; }
.badge-free { background: #e7f6ee; color: #1b7a4b; }
.badge-premium { background: var(--gradient); color: #fff; }

.check-list { margin: 1.6rem 0 2rem; display: grid; gap: .8rem; flex-grow: 1; }
.check-list li { position: relative; padding-left: 2rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .25em; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: var(--purple-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%235b3fd9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* ---------- Why ---------- */
.why { background: var(--bg-soft); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.feature-card { padding: 2rem; }
.feature-card h3 { font-size: 1.25rem; font-weight: 700; margin: 1.2rem 0 .5rem; }
.feature-card p { color: var(--text-muted); }
.icon {
  width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 14px; background: var(--gradient); color: #fff;
  box-shadow: 0 10px 20px -8px rgba(124, 92, 255, .6);
}
.icon svg { width: 26px; height: 26px; }

/* ---------- Final CTA ---------- */
.cta-box {
  text-align: center; color: #fff;
  background: radial-gradient(circle at 20% 0%, #8f73ff 0%, transparent 55%), linear-gradient(135deg, #2a1d63 0%, #17151f 100%);
  border-radius: 28px; padding: 4.5rem 1.5rem;
  box-shadow: var(--shadow-md);
}
.cta-box h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.cta-box p { margin: 1rem auto 2rem; max-width: 32rem; color: #d7d0f0; }

/* ---------- Footer ---------- */
.site-footer { padding: 3.5rem 0 2rem; border-top: 1px solid var(--border); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; align-items: flex-start; }
.footer-brand p { margin-top: .8rem; color: var(--text-muted); max-width: 22rem; }
.footer-social { display: flex; gap: 1.5rem; }
.footer-social a { text-decoration: none; font-weight: 600; color: var(--text-muted); transition: color .2s; }
.footer-social a:hover { color: var(--purple-deep); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--text-muted); font-size: .92rem; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease var(--delay, 0s), transform .7s ease var(--delay, 0s); }
.js .reveal.in-view { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { padding-top: 2.5rem; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { max-width: 520px; margin-inline: auto; }
  .product-grid { grid-template-columns: 1fr; max-width: 560px; }
  .feature-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 1rem 20px 1.5rem; display: none;
    box-shadow: 0 20px 30px -20px rgba(40, 20, 90, .25);
  }
  .primary-nav.open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 1rem; text-align: center; }
  .section { padding: 4rem 0; }
  .product-card { padding: 1.7rem; }
}

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