:root {
  --orange: #F28C28;
  --orange-dark: #D9701A;
  --orange-soft: #FDE7D0;
  --green: #3FAE5A;
  --green-dark: #2E8B47;
  --ink: #1C2830;
  --ink-2: #24323A;
  --text: #33424B;
  --muted: #65757E;
  --line: #E6E1D9;
  --cream: #FFF6EC;
  --white: #FFFFFF;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(28, 40, 48, 0.08);
  --font-head: "Fredoka", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 700; letter-spacing: -0.5px; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 40px); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin-bottom: .8em;
}
.lead { font-size: 1.15rem; color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
  padding: .8em 1.5em; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: var(--white); box-shadow: 0 6px 18px rgba(242, 140, 40, .35); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-ghost { color: var(--ink); border-color: var(--line); background: var(--white); }
.btn-ghost:hover { border-color: var(--orange); }
.btn-small { padding: .5em 1.1em; font-size: .95rem; background: var(--ink); color: var(--white); }
.btn-small:hover { background: var(--orange); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark { font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; color: var(--ink-2); letter-spacing: -0.5px; }
.wordmark span { color: var(--orange); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { text-decoration: none; font-weight: 500; color: var(--text); font-size: .98rem; }
.nav-links a:not(.btn):hover { color: var(--orange-dark); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* Hero */
.hero {
  padding: 80px 0 90px;
  background:
    radial-gradient(circle at 85% 20%, var(--orange-soft) 0, transparent 45%),
    radial-gradient(circle at 10% 90%, #E3F4E7 0, transparent 40%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.hero h1 { isolation: isolate; }
.hl { color: var(--orange); position: relative; white-space: nowrap; }
.hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .05em; height: .18em;
  background: var(--green); opacity: .35; border-radius: 4px; z-index: -1;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 26px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .95rem; color: var(--muted); }
.hero-points li::before { content: "✓"; color: var(--green); font-weight: 700; margin-right: 8px; }

.hero-visual { position: relative; }
.terminal {
  background: var(--ink); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 30px 60px rgba(28, 40, 48, .25);
  transform: rotate(1.5deg);
}
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #151F25; }
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3A4A54; }
.terminal-bar i:nth-child(1) { background: #FF5F57; }
.terminal-bar i:nth-child(2) { background: #FEBC2E; }
.terminal-bar i:nth-child(3) { background: #28C840; }
.terminal-bar span { margin-left: auto; font-family: var(--font-mono); font-size: .75rem; color: #7B8A93; }
.terminal-body {
  margin: 0; padding: 22px 22px 26px; font-family: var(--font-mono); font-size: .88rem; line-height: 1.8;
  color: #D5DEE3; white-space: pre-wrap; min-height: 250px;
}
.t-dim { color: #6F808A; }
.t-err { color: #FF7A6B; }
.t-ok { color: #5FD17E; }
.t-hl { color: #FFB366; }
.t-prompt { color: var(--orange); }
.cursor { animation: blink 1s steps(1) infinite; color: var(--orange); }
@keyframes blink { 50% { opacity: 0; } }

.equation {
  position: absolute; left: -30px; bottom: -34px;
  display: flex; align-items: center; gap: 10px;
  background: var(--white); border-radius: 14px; padding: 12px 20px;
  box-shadow: var(--shadow); font-family: var(--font-mono); font-size: .95rem; color: var(--ink);
  transform: rotate(-2deg);
}
.equation > span:first-child { font-size: 1.6rem; color: var(--orange); font-weight: 600; }
.eq-in { border-top: 2px solid var(--orange); padding-top: 2px; }
.eq-eq { color: var(--muted); }
.eq-out { color: var(--green-dark); font-weight: 600; }

/* Tech strip */
.tech-strip { border-block: 1px solid var(--line); padding: 26px 0; background: var(--white); }
.tech-strip .container { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.tech-strip p { margin: 0; font-family: var(--font-mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.tech-strip ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tech-strip li {
  font-family: var(--font-mono); font-size: .82rem; padding: 5px 12px; border-radius: 999px;
  background: var(--cream); color: var(--ink-2); border: 1px solid var(--line);
}

/* Sections */
.section { padding: 100px 0; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head p:last-child { color: var(--muted); font-size: 1.1rem; }
.section-dark { background: var(--ink); color: #C9D3D9; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .section-head p:last-child { color: #9FB0BA; }
.section-dark .eyebrow { color: var(--orange); }
.section-cream { background: var(--cream); }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--orange-soft); }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--cream); font-size: 1.5rem; margin-bottom: 18px;
}
.card-feature {
  grid-column: span 2; grid-row: span 2;
  background: linear-gradient(145deg, var(--ink) 0%, #2B3C46 100%); border: 0; color: #C9D3D9;
  padding: 40px; display: flex; flex-direction: column; justify-content: center;
}
.card-feature h3 { color: var(--white); font-size: 1.8rem; }
.card-feature p { color: #B4C2CA; font-size: 1.05rem; }
.card-feature .card-icon { background: rgba(255, 255, 255, .08); }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; color: var(--white); font-weight: 500; }
.ticks li::before { content: "√"; color: var(--orange); font-weight: 700; font-family: var(--font-mono); }

/* Why */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why {
  padding: 30px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08);
}
.why p { margin: 0; color: #A9B8C1; }
.why-num { display: block; font-family: var(--font-mono); color: var(--orange); font-weight: 600; margin-bottom: 14px; }

/* Steps */
.steps {
  list-style: none; padding: 0; margin: 0 0 70px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative;
}
.steps::before {
  content: ""; position: absolute; top: 24px; left: 5%; right: 5%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--orange) 0 8px, transparent 8px 16px);
}
.steps li { position: relative; }
.step-num {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px;
  background: var(--orange); color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 1.3rem;
  margin-bottom: 18px; position: relative; box-shadow: 0 0 0 6px var(--white);
}
.steps p { color: var(--muted); font-size: .95rem; margin: 0; }

.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.model { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; position: relative; }
.model p:last-child { color: var(--muted); margin: 0; }
.model-sub { font-family: var(--font-mono); font-size: .85rem; color: var(--orange-dark); margin-top: -.3em; }
.model-hl { border: 2px solid var(--orange); box-shadow: var(--shadow); }
.badge {
  position: absolute; top: -13px; right: 22px; background: var(--green); color: var(--white);
  font-size: .75rem; font-weight: 600; padding: 3px 12px; border-radius: 999px;
}

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 70px; align-items: center; }
.about-mascot { display: grid; place-items: center; }
.about-mascot img { width: 220px; height: auto; animation: bob 4s ease-in-out infinite; filter: drop-shadow(0 20px 25px rgba(217, 112, 26, .25)); }
@keyframes bob { 50% { transform: translateY(-12px) rotate(-3deg); } }
.about-sign { font-family: var(--font-head); font-size: 1.3rem; color: var(--orange-dark); font-weight: 600; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; background: var(--white); }
.faq details[open] { border-color: var(--orange); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-family: var(--font-head); font-weight: 600;
  font-size: 1.1rem; color: var(--ink); display: flex; justify-content: space-between; gap: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 1.4rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 18px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.contact .lead { color: #B4C2CA; }
.contact-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: center; color: #D5DEE3; }
.contact-list span { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); }
.contact-list a { color: var(--orange); text-decoration: none; font-weight: 600; }
.contact-form {
  background: var(--white); border-radius: var(--radius); padding: 34px; display: grid; gap: 16px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .25);
}
.contact-form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--ink); }
.opt { font-weight: 400; color: var(--muted); }
.contact-form input, .contact-form textarea {
  font: inherit; font-weight: 400; color: var(--ink); padding: 12px 14px; border-radius: 10px;
  border: 1.5px solid var(--line); background: #FCFBF9; resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--orange); background: var(--white); }
.contact-form .invalid { border-color: #E05545; }
.form-note { margin: 0; font-size: .9rem; color: var(--muted); min-height: 1.4em; }
.form-note.ok { color: var(--green-dark); }
.form-note.err { color: #C9412F; }

/* Footer */
.site-footer { background: #151F25; color: #8797A0; padding: 34px 0; font-size: .9rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-inner p { margin: 0; }
.site-footer .wordmark { color: var(--white); font-size: 1.3rem; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .about-mascot img, .cursor { animation: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero-visual { max-width: 560px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card-feature { grid-column: span 2; grid-row: auto; }
  .why-grid, .models { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .steps::before { top: 0; bottom: 0; left: 24px; right: auto; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--orange) 0 8px, transparent 8px 16px); }
  .steps li { padding-left: 76px; }
  .step-num { position: absolute; left: 0; top: 0; }
  .about-mascot img { width: 160px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .container, .narrow { width: calc(100% - 32px); }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 16px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 14px; }
  .hero { padding: 50px 0 80px; }
  .section { padding: 70px 0; }
  .cards, .why-grid, .models { grid-template-columns: 1fr; }
  .card-feature { grid-column: auto; padding: 30px; }
  .terminal { transform: none; }
  .terminal-body { font-size: .76rem; padding: 18px; }
  .equation { left: 10px; bottom: -28px; font-size: .82rem; }
  .contact-form { padding: 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
