/* AI Ed — marketing site styles. Black / white / rustic orange. */
:root {
  --bg: #08080a;
  --surface: #121215;
  --surface-2: #1a1a1f;
  --border: #26262d;
  --text: #f2f2f4;
  --text-muted: #9a9aa3;
  --text-dim: #6c6c75;
  --rust: #e0825a;
  --rust-deep: #c2562d;
  --rust-glow: rgba(224, 130, 90, 0.45);
  --max: 1180px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--rust); text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 22px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(8, 8, 10, 0.7);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: var(--text); }
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--text-muted); font-weight: 500; font-size: 15px; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--rust); color: #1a1206; font-weight: 700;
  padding: 11px 20px; border-radius: 12px; font-size: 15px;
  border: none; cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px var(--rust-glow); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--rust); box-shadow: none; }
@media (max-width: 640px) { .nav-links a:not(.btn) { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 96px 0 80px; overflow: hidden; }
#neural-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; opacity: 0.55;
}
.hero .container { position: relative; z-index: 2; }
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
}
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; text-align: center; } }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(224, 130, 90, 0.12); border: 1px solid rgba(224, 130, 90, 0.35);
  color: var(--rust); font-weight: 600; font-size: 13px; letter-spacing: .02em;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rust); box-shadow: 0 0 10px var(--rust); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
h1 { font-size: clamp(38px, 6vw, 62px); line-height: 1.04; letter-spacing: -0.02em; margin: 0 0 18px; font-weight: 800; }
h1 .grad { background: linear-gradient(110deg, var(--rust) 0%, #f4b48a 60%, var(--rust-deep) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 19px; color: var(--text-muted); max-width: 520px; margin: 0 0 30px; }
@media (max-width: 880px) { .hero p.lead { margin-inline: auto; } }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 880px) { .cta-row { justify-content: center; } }
.appstore-soon {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: #000; padding: 10px 18px; border-radius: 13px;
  font-weight: 700; opacity: .92; position: relative;
}
.appstore-soon small { display: block; font-size: 10px; font-weight: 600; color: #555; line-height: 1; }
.appstore-soon b { font-size: 18px; line-height: 1.1; }

/* phone mockup */
.phone {
  position: relative; width: 270px; margin: 0 auto;
  border-radius: 42px; padding: 12px;
  background: linear-gradient(160deg, #2a2a30, #0e0e11);
  box-shadow: 0 40px 90px rgba(0,0,0,.6), 0 0 0 1px var(--border);
}
.phone-screen {
  border-radius: 32px; aspect-ratio: 9/19.5; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, #2a1206, #08080a 60%);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 18px;
}
.phone-screen img { width: 120px; filter: drop-shadow(0 0 26px var(--rust-glow)); animation: float 5s ease-in-out infinite; }
.phone-screen .pname { font-weight: 800; font-size: 22px; }
.phone-screen .ptag { color: var(--text-muted); font-size: 13px; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* floating parallax blobs */
.blob { position: absolute; border-radius: 50%; filter: blur(60px); z-index: 1; opacity: .5; pointer-events: none; }
.blob.b1 { width: 360px; height: 360px; background: var(--rust-deep); top: -80px; left: -100px; }
.blob.b2 { width: 300px; height: 300px; background: #6d2f15; bottom: -120px; right: -80px; opacity: .4; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 92px 0; }
.eyebrow { color: var(--rust); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 12px; }
.section h2 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.02em; margin: 0 0 14px; font-weight: 800; }
.section .sub { color: var(--text-muted); font-size: 18px; max-width: 620px; }
.center { text-align: center; }
.center .sub { margin-inline: auto; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
@media (max-width: 820px) { .features { grid-template-columns: 1fr; } }
.card {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border); border-radius: 18px; padding: 26px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(224,130,90,.45); box-shadow: 0 24px 50px rgba(0,0,0,.45); }
.card .ico { font-size: 30px; margin-bottom: 14px; }
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--text-muted); font-size: 15px; }

/* parallax band */
.band { padding: 120px 0; text-align: center; position: relative; overflow: hidden; }
.band .container { position: relative; z-index: 2; }
.band-bg { position: absolute; inset: -20% 0; z-index: 0; background:
  radial-gradient(50% 50% at 20% 30%, rgba(224,130,90,.18), transparent),
  radial-gradient(40% 40% at 80% 70%, rgba(194,86,45,.16), transparent);
}
.stat-row { display: flex; justify-content: center; gap: 56px; flex-wrap: wrap; margin-top: 40px; }
.stat b { display: block; font-size: 44px; font-weight: 800; color: var(--rust); }
.stat span { color: var(--text-muted); font-size: 15px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; margin-top: 52px; }
@media (max-width: 820px){ .steps { grid-template-columns: 1fr; } }
.step .n { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; background: rgba(224,130,90,.14); color: var(--rust); border: 1px solid rgba(224,130,90,.3); margin-bottom: 16px; }
.step h3 { margin: 0 0 6px; }
.step p { color: var(--text-muted); margin: 0; font-size: 15px; }

/* ---------- Blog ---------- */
.posts { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 48px; }
@media (max-width: 820px){ .posts { grid-template-columns: 1fr; } }
.post-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  overflow: hidden; transition: transform .25s, border-color .25s; display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-6px); border-color: rgba(224,130,90,.45); }
.post-thumb { aspect-ratio: 16/9; display: grid; place-items: center; font-size: 46px; }
.post-body { padding: 20px 22px 24px; }
.post-body .tag { color: var(--rust); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.post-body h3 { margin: 8px 0 8px; font-size: 19px; line-height: 1.25; }
.post-body p { color: var(--text-muted); font-size: 14px; margin: 0 0 14px; }
.post-body .meta { color: var(--text-dim); font-size: 13px; }

/* article */
.article { max-width: 720px; margin: 0 auto; padding: 64px 22px 40px; }
.article .tag { color: var(--rust); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.article h1 { font-size: clamp(30px, 5vw, 46px); margin: 12px 0 14px; }
.article .meta { color: var(--text-dim); font-size: 14px; margin-bottom: 36px; border-bottom: 1px solid var(--border); padding-bottom: 24px; }
.article h2 { font-size: 26px; margin: 40px 0 12px; }
.article p, .article li { color: #d7d7db; font-size: 17px; line-height: 1.75; }
.article ul { padding-left: 22px; }
.article blockquote { border-left: 3px solid var(--rust); margin: 24px 0; padding: 6px 0 6px 20px; color: var(--text-muted); font-style: italic; }
.back-link { color: var(--text-muted); font-size: 14px; }

/* ---------- Footer ---------- */
.footer { background: var(--surface); border-top: 1px solid var(--border); padding: 44px 0 34px; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 1fr; gap: 22px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; }
.footer-brand img { width: 26px; height: 26px; }
.footer p { margin: 6px 0 0; font-size: 13px; color: var(--text-muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.footer-links a { color: var(--text-muted); font-size: 14px; font-weight: 500; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 22px; margin-top: 22px; border-top: 1px solid var(--border); }
.footer-bottom p { font-size: 13px; color: var(--text-dim); }
@media (min-width: 720px) { .footer-inner { grid-template-columns: 1fr auto; align-items: center; } }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .phone-screen img, .badge .dot { animation: none; }
  html { scroll-behavior: auto; }
}
