/* ─────────────────────────────────────────────────────────────
   Willoe AI — Shared design system (dark theme)
   ───────────────────────────────────────────────────────────── */

:root {
  color-scheme: dark;

  --bg:        #0A0A0B;
  --bg-soft:   #131316;
  --bg-warm:   #16161A;
  --bg-elev:   #1A1A1F;
  --ink:       #F8F7F3;
  --ink-soft:  rgba(248,247,243,.88);
  --ink-mute:  rgba(248,247,243,.62);
  --line:      rgba(255,255,255,.10);
  --line-soft: rgba(255,255,255,.06);

  --accent:        #E07B5A;     /* warm terracotta accent */
  --accent-deep:   #C96442;
  --emerald:       #34D399;
  --emerald-soft:  rgba(52,211,153,.14);
  --indigo:        #7C8DFF;

  --card:        #161619;
  --card-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 24px 60px -22px rgba(0,0,0,.6);

  --radius:    18px;
  --radius-sm: 12px;

  --serif: "Fraunces", "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }

section { padding: clamp(64px, 9vw, 128px) 0; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.container--narrow { max-width: 980px; }

/* ───── Nav ───── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,11,.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav__inner {
  max-width: 1280px; margin: 0 auto;
  padding: 14px 32px;
  display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.brand__dot {
  width: 32px; height: 32px; border-radius: 8px;
  background: #0A0A0B url("../assets/images/willoe-logo.png") center/cover no-repeat;
  position: relative;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset, 0 4px 14px -4px rgba(224,123,90,.35);
}
.brand__name { letter-spacing: -.01em; font-size: 17px; color: var(--ink); }
.brand__sub { color: var(--ink-mute); font-weight: 500; }

.nav__links { display: flex; gap: 26px; margin-left: 18px; }
.nav__links a { font-size: 14.5px; color: var(--ink-soft); font-weight: 500; }
.nav__links a:hover { color: var(--ink); }
.nav__links a.is-active { color: var(--ink); position: relative; }
.nav__links a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -19px; height: 2px;
  background: var(--accent); border-radius: 2px;
}
.nav .btn { margin-left: auto; }

/* ───── Buttons ───── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  font-weight: 600; font-size: 15px; line-height: 1;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn--solid {
  background: var(--ink); color: #0A0A0B;
}
.btn--solid:hover { background: #fff; transform: translateY(-1px); }
.btn--ghost {
  background: transparent; color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--ink); }
.btn--lg { padding: 14px 22px; font-size: 16px; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-deep); transform: translateY(-1px); }

/* ───── Typography ───── */
.display {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(48px, 7.2vw, 96px);
  line-height: 1.02; letter-spacing: -0.025em;
  margin: 0 0 24px; color: var(--ink);
}
.display em { font-style: italic; color: var(--accent); }
.display--sm { font-size: clamp(40px, 5.6vw, 64px); }
.h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.06; letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.h2--center { text-align: center; }
.h3 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.1; letter-spacing: -0.015em;
  margin: 0 0 12px;
}
.lede {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55; color: var(--ink-soft);
  max-width: 620px;
}
.lede--sm { font-size: 17px; max-width: 520px; }
.lede--center { margin-left: auto; margin-right: auto; }
.kicker {
  display: inline-block;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 600;
  margin-bottom: 16px;
}
.kicker--center { display: block; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--emerald-soft);
  color: var(--emerald);
  font-size: 13px; font-weight: 600;
  margin-bottom: 28px;
}
.eyebrow__dot {
  width: 7px; height: 7px; border-radius: 999px; background: var(--emerald);
  box-shadow: 0 0 0 4px rgba(52,211,153,.18);
}

/* ───── Laptop 3D ───── */
.laptop {
  --w: 100%;
  margin: 0; position: relative;
  perspective: 1800px; width: var(--w);
  transition: transform .6s ease;
}
.laptop--floating .laptop__lid {
  transform: rotateX(6deg) rotateY(-14deg) rotateZ(-1.5deg);
  transform-origin: center bottom;
}
.laptop--left.laptop--floating .laptop__lid {
  transform: rotateX(6deg) rotateY(12deg) rotateZ(1.5deg);
}
.laptop__lid {
  background: linear-gradient(180deg, #1F1F22, #0E0E10);
  border-radius: 18px 18px 4px 4px; padding: 14px 14px 6px;
  box-shadow:
    0 1px 0 rgba(255,255,255,.06) inset,
    0 30px 80px -20px rgba(0,0,0,.6),
    0 10px 30px -10px rgba(0,0,0,.35);
  transform-style: preserve-3d;
}
.laptop__bezel {
  position: relative; border-radius: 8px; overflow: hidden;
  background: #000; aspect-ratio: 16/10;
}
.laptop__notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 130px; height: 14px; background: #0A0A0B;
  border-radius: 0 0 12px 12px; z-index: 2;
}
.laptop__screen, .laptop__video {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
}
.laptop__base {
  height: 14px; background: linear-gradient(180deg, #2A2A2D, #131316);
  border-radius: 0 0 22px 22px; margin: 0 -10px; position: relative;
}
.laptop__base::after {
  content: ""; position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%);
  width: 18%; height: 4px; background: #0B0B0D; border-radius: 4px;
}
.laptop__shadow {
  position: absolute; left: 8%; right: 8%; bottom: -18px; height: 36px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.6), transparent 70%);
  filter: blur(2px); z-index: -1;
}

/* ───── Browser frame for videos ───── */
.vid__frame {
  border-radius: 14px; overflow: hidden;
  background: #0F0F11; border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 30px 60px -25px rgba(0,0,0,.6);
}
.vid__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; background: #1A1A1D;
}
.vid__bar span { width: 11px; height: 11px; border-radius: 999px; background: #3A3A3F; }
.vid__bar span:nth-child(1) { background: #FF5F57; }
.vid__bar span:nth-child(2) { background: #FEBC2E; }
.vid__bar span:nth-child(3) { background: #28C840; }
.vid__bar b {
  margin-left: 16px; color: #9C9C9F;
  background: #0B0B0D; padding: 4px 12px; border-radius: 6px;
  font-size: 12px; font-weight: 500;
}
.vid__media { width: 100%; display: block; background: #000; aspect-ratio: 16/10; object-fit: cover; }

/* ───── Cards ───── */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 26px 24px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--line-soft);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--line); box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 30px 80px -22px rgba(0,0,0,.7); }
.card__icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; font-size: 20px; margin-bottom: 18px;
}
.card h3 {
  font-family: var(--serif); font-weight: 500;
  font-size: 22px; letter-spacing: -.01em; margin: 0 0 8px;
}
.card p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

/* ───── Feature row (alternating with mockup) ───── */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center;
  padding: clamp(40px, 6vw, 80px) 0;
  border-bottom: 1px solid var(--line-soft);
}
.feature-row--reverse .feature-row__copy { order: 2; }
.feature-row--reverse .feature-row__visual { order: 1; }
.feature-row__copy .h3 { margin-top: 4px; }
.feature-row__copy ul {
  padding: 0; list-style: none; margin: 18px 0 0;
}
.feature-row__copy ul li {
  display: flex; gap: 10px; padding: 6px 0;
  color: var(--ink-soft);
}
.feature-row__copy ul li::before {
  content: ""; flex: 0 0 6px; height: 6px; border-radius: 999px;
  background: var(--accent); margin-top: 10px;
}
.feature-row__copy .step {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 700;
}

/* ───── Footer ───── */
.foot { background: var(--bg); border-top: 1px solid var(--line-soft); padding: 56px 0 24px; }
.foot__inner {
  max-width: 1280px; margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px;
}
.foot__line { color: var(--ink-mute); font-size: 14px; max-width: 320px; margin-top: 12px; }
.foot__cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.foot__cols h5 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); margin: 0 0 14px; }
.foot__cols a { display: block; color: var(--ink-soft); font-size: 14.5px; padding: 4px 0; }
.foot__cols a:hover { color: var(--ink); }
.foot__bottom {
  max-width: 1280px; margin: 32px auto 0; padding: 24px 32px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 13px; color: var(--ink-mute);
}

/* ───── Responsive ───── */
@media (max-width: 980px) {
  .feature-row, .feature-row--reverse { grid-template-columns: 1fr; }
  .feature-row--reverse .feature-row__copy { order: 1; }
  .feature-row--reverse .feature-row__visual { order: 2; }
  .foot__inner { grid-template-columns: 1fr; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .nav__links { display: none; }
}
