/* Maanya Ventures — site styles. Plain CSS, no build step. */
@font-face { font-family: 'Fraunces'; src: url(../fonts/fraunces-latin-wght-normal.woff2) format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url(../fonts/fraunces-latin-wght-italic.woff2) format('woff2'); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(../fonts/inter-latin-wght-normal.woff2) format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --bg: #120c09;
  --bg-2: #1a120d;
  --surface: #21170f;
  --surface-2: #2b1d13;
  --line: rgba(255, 226, 190, 0.14);
  --ink: #f8eee1;
  --ink-2: #cdbba6;
  --ink-3: #9f8e7b;
  --saffron: #ffa733;
  --saffron-2: #ffcf6b;
  --coral: #ff6b4a;
  --teal: #3fe0c2;
  --on-accent: #2a1200;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius: 22px;
  --max: 1160px;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) {
    --bg: #fff9f0; --bg-2: #fff3e0; --surface: #ffffff; --surface-2: #fff0d9;
    --line: rgba(84, 44, 8, 0.14); --ink: #2a170a; --ink-2: #5b4331; --ink-3: #7d6650;
    --saffron: #e07a00; --saffron-2: #b85f00; --coral: #d6401f; --teal: #0c8f79; --on-accent: #fff;
    --shadow: 0 24px 60px rgba(120, 70, 10, 0.16); color-scheme: light;
  }
}
:root[data-theme='light'] {
  --bg: #fff9f0; --bg-2: #fff3e0; --surface: #ffffff; --surface-2: #fff0d9;
  --line: rgba(84, 44, 8, 0.14); --ink: #2a170a; --ink-2: #5b4331; --ink-3: #7d6650;
  --saffron: #e07a00; --saffron-2: #b85f00; --coral: #d6401f; --teal: #0c8f79; --on-accent: #fff;
  --shadow: 0 24px 60px rgba(120, 70, 10, 0.16); color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--saffron-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--saffron); }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--saffron); color: var(--on-accent); padding: 10px 16px; border-radius: 10px; z-index: 100; font-weight: 600; }
.skip:focus { left: 12px; }
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid transparent; transition: border-color .25s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font: 600 19px var(--display); letter-spacing: .2px; }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand small { display: block; font: 500 11px var(--body); letter-spacing: 1.6px; text-transform: uppercase; color: var(--ink-3); margin-top: -2px; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink-2); text-decoration: none; padding: 9px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; transition: background .2s, color .2s; }
.nav-links a:hover { background: var(--surface); color: var(--ink); }
.nav-links .cta { background: var(--saffron); color: var(--on-accent); font-weight: 600; margin-left: 6px; }
.nav-links .cta:hover { background: var(--saffron-2); color: var(--on-accent); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--ink); width: 44px; height: 44px; border-radius: 12px; cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; margin: auto; transition: transform .25s; }
.menu-btn span::before, .menu-btn span::after { content: ''; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav-links { position: absolute; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; background: var(--bg); padding: 12px 20px 22px; border-bottom: 1px solid var(--line); gap: 2px; display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 12px; font-size: 17px; }
  .nav-links .cta { margin: 8px 0 0; text-align: center; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 90px); overflow: hidden; isolation: isolate; }
.hero::before, .hero::after { content: ''; position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.hero::before { width: 520px; height: 520px; background: radial-gradient(circle, var(--saffron), transparent 70%); top: -160px; right: -120px; }
.hero::after { width: 460px; height: 460px; background: radial-gradient(circle, var(--coral), transparent 70%); bottom: -200px; left: -140px; animation-delay: -6s; opacity: .35; }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.08); } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 13px var(--body); letter-spacing: 1.8px; text-transform: uppercase; color: var(--saffron); }
.eyebrow::before { content: ''; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; margin: 0; }
.hero h1 { font-size: clamp(42px, 7.2vw, 86px); margin: 18px 0 22px; max-width: 15ch; }
.hero h1 em { font-style: italic; font-weight: 500; background: linear-gradient(100deg, var(--saffron-2), var(--coral)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(18px, 2.2vw, 22px); color: var(--ink-2); max-width: 56ch; margin: 0 0 32px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px; font: 600 16px var(--body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .2s, background .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--saffron); color: var(--on-accent); box-shadow: 0 10px 30px color-mix(in srgb, var(--saffron) 35%, transparent); }
.btn.primary:hover { background: var(--saffron-2); color: var(--on-accent); }
.btn.ghost { color: var(--ink); border-color: var(--line); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.btn.ghost:hover { border-color: var(--saffron); color: var(--ink); }
.stats { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.stats div { font-size: 14px; color: var(--ink-3); }
.stats b { display: block; font: 600 22px var(--display); color: var(--ink); }

/* ---------- Sections ---------- */
section { padding: clamp(56px, 8vw, 104px) 0; scroll-margin-top: 72px; }
.sec-head { max-width: 720px; margin-bottom: 48px; }
.sec-head h2 { font-size: clamp(32px, 4.6vw, 54px); margin: 14px 0 16px; }
.sec-head p { color: var(--ink-2); margin: 0; font-size: 19px; }
.alt { background: var(--bg-2); border-block: 1px solid var(--line); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 920px) { .grid-3 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; position: relative; overflow: hidden; transition: transform .3s, border-color .3s, box-shadow .3s; }
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--saffron) 50%, var(--line)); box-shadow: var(--shadow); }
.card .ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px; background: linear-gradient(135deg, color-mix(in srgb, var(--saffron) 24%, transparent), color-mix(in srgb, var(--coral) 18%, transparent)); color: var(--saffron); }
.card .ico svg { width: 26px; height: 26px; }
.card h3 { font-size: 24px; margin-bottom: 10px; }
.card p { color: var(--ink-2); margin: 0 0 16px; font-size: 16px; }
.card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; color: var(--ink-2); }
.card li { padding-left: 24px; position: relative; }
.card li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 10px; height: 10px; border-radius: 3px; background: var(--teal); transform: rotate(45deg) scale(.8); }

/* ---------- Featured product ---------- */
.feature { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 84px); align-items: center; }
@media (max-width: 920px) { .feature { grid-template-columns: 1fr; } }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font: 600 13px var(--body); background: color-mix(in srgb, var(--teal) 16%, transparent); color: var(--teal); border: 1px solid color-mix(in srgb, var(--teal) 35%, transparent); }
.badge.soon { background: color-mix(in srgb, var(--saffron) 16%, transparent); color: var(--saffron); border-color: color-mix(in srgb, var(--saffron) 38%, transparent); }
.feature h2 { font-size: clamp(34px, 5vw, 58px); margin: 18px 0 8px; }
.feature .tag { font: italic 500 22px var(--display); color: var(--saffron-2); margin: 0 0 18px; }
.feature p { color: var(--ink-2); }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 30px; padding: 0; list-style: none; }
.pills li { padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; color: var(--ink-2); }
.phones { position: relative; height: clamp(440px, 56vw, 600px); }
.phone { position: absolute; width: clamp(170px, 24vw, 260px); aspect-ratio: 9/16.6; border-radius: 36px; padding: 8px; background: linear-gradient(160deg, #3a2a1d, #120b07); box-shadow: var(--shadow), inset 0 0 0 1.5px rgba(255,255,255,.12); }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 29px; }
.phone.p1 { left: 2%; top: 9%; transform: rotate(-7deg); z-index: 1; }
.phone.p2 { left: 50%; margin-left: -9%; top: 0; z-index: 3; }
.phone.p3 { right: 0; top: 14%; transform: rotate(7deg); z-index: 2; }
@media (max-width: 920px) { .phones { height: 480px; max-width: 520px; margin-inline: auto; width: 100%; } .phone { width: clamp(150px, 38vw, 230px); } }
.phone { animation: float 7s ease-in-out infinite; }
.phone.p1 { animation-delay: -2s; } .phone.p3 { animation-delay: -4s; }
@keyframes float { 50% { translate: 0 -12px; } }

/* ---------- Motion samples ---------- */
.samples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 920px) { .samples { grid-template-columns: 1fr; } }
.sample { aspect-ratio: 4/3; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); position: relative; overflow: hidden; display: grid; place-items: center; }
.sample figcaption { position: absolute; left: 18px; bottom: 14px; font-size: 13px; color: var(--ink-3); letter-spacing: .4px; z-index: 2; }
.kinetic { font: 600 clamp(34px, 5vw, 52px) var(--display); height: 1.2em; overflow: hidden; line-height: 1.2; }
.kinetic span { display: block; animation: words 9s cubic-bezier(.7, 0, .2, 1) infinite; }
.kinetic span b { display: block; height: 1.2em; }
.kinetic span b:nth-child(1) { color: var(--saffron); } .kinetic span b:nth-child(2) { color: var(--teal); } .kinetic span b:nth-child(3) { color: var(--coral); }
@keyframes words { 0%, 25% { transform: translateY(0); } 33%, 58% { transform: translateY(-1.2em); } 66%, 92% { transform: translateY(-2.4em); } 100% { transform: translateY(-3.6em); } }
.kinetic span b:nth-child(4) { color: var(--saffron); }
.bars { display: flex; align-items: flex-end; gap: 12px; height: 120px; }
.bars i { width: 22px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--saffron-2), var(--coral)); transform-origin: bottom; animation: grow 3.6s cubic-bezier(.3, 1.3, .5, 1) infinite; }
.bars i:nth-child(1) { height: 38%; animation-delay: 0s; } .bars i:nth-child(2) { height: 62%; animation-delay: .12s; } .bars i:nth-child(3) { height: 48%; animation-delay: .24s; }
.bars i:nth-child(4) { height: 84%; animation-delay: .36s; } .bars i:nth-child(5) { height: 100%; animation-delay: .48s; background: linear-gradient(180deg, #8ff7e1, var(--teal)); }
@keyframes grow { 0% { transform: scaleY(0); } 25%, 80% { transform: scaleY(1); } 100% { transform: scaleY(0); } }
.orbit { position: relative; width: 150px; height: 150px; }
.orbit::before { content: ''; position: absolute; inset: 50%; width: 28px; height: 28px; margin: -14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--saffron) 55%, var(--coral)); box-shadow: 0 0 30px var(--saffron); }
.orbit i { position: absolute; inset: 0; border: 1px dashed var(--line); border-radius: 50%; animation: spin 8s linear infinite; }
.orbit i::after { content: ''; position: absolute; top: -7px; left: 50%; margin-left: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 16px var(--teal); }
.orbit i:nth-child(2) { inset: 24px; animation-duration: 5s; animation-direction: reverse; } .orbit i:nth-child(2)::after { background: var(--coral); box-shadow: 0 0 16px var(--coral); }
.orbit i:nth-child(3) { inset: 48px; animation-duration: 3.2s; } .orbit i:nth-child(3)::after { background: var(--saffron-2); box-shadow: 0 0 16px var(--saffron-2); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Claude skills ---------- */
.skills { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 920px) { .skills { grid-template-columns: 1fr; } }
.term { background: #0b0705; border: 1px solid rgba(255, 226, 190, .16); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; font: 14px/1.75 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; color: #e9dccb; }
.term-bar { display: flex; gap: 8px; padding: 13px 16px; border-bottom: 1px solid rgba(255, 226, 190, .12); align-items: center; }
.term-bar i { width: 12px; height: 12px; border-radius: 50%; background: #5a4a3c; } .term-bar i:nth-child(1) { background: #ff6b4a; } .term-bar i:nth-child(2) { background: #ffcf6b; } .term-bar i:nth-child(3) { background: #3fe0c2; }
.term-bar span { margin-left: 10px; font-size: 12.5px; color: #9f8e7b; }
.term pre { margin: 0; padding: 20px 22px; overflow-x: auto; white-space: pre; }
.term .k { color: #3fe0c2; } .term .s { color: #ffcf6b; } .term .c { color: #8a7a68; } .term .h { color: #ff8e72; }
.check { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.check li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; color: var(--ink-2); font-size: 16px; }
.check li::before { content: '✓'; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: color-mix(in srgb, var(--teal) 18%, transparent); color: var(--teal); font-weight: 700; font-size: 14px; }
.check b { color: var(--ink); }

/* ---------- About / contact ---------- */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 70px); }
@media (max-width: 920px) { .about { grid-template-columns: 1fr; } }
.about p { color: var(--ink-2); margin: 0 0 18px; }
.facts { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 18px; align-content: start; }
.facts div { display: grid; gap: 2px; padding-bottom: 18px; border-bottom: 1px solid var(--line); } .facts div:last-child { border: 0; padding: 0; }
.facts small { color: var(--ink-3); text-transform: uppercase; letter-spacing: 1.4px; font-size: 11.5px; font-weight: 600; }
.facts span { font: 500 19px var(--display); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { display: block; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; transition: transform .25s, border-color .25s; }
.contact-card:hover { transform: translateY(-3px); border-color: var(--saffron); color: var(--ink); }
.contact-card small { color: var(--ink-3); font-size: 13px; display: block; margin-bottom: 6px; }
.contact-card b { font: 600 19px var(--display); word-break: break-all; color: var(--saffron-2); }
.contact-card span { display: block; margin-top: 8px; color: var(--ink-2); font-size: 14.5px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 56px; color: var(--ink-3); font-size: 14.5px; }
.foot { display: flex; flex-wrap: wrap; gap: 28px 48px; justify-content: space-between; align-items: flex-start; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { color: var(--ink-2); text-decoration: none; } .foot a:hover { color: var(--saffron); }
.theme-btn { background: none; border: 1px solid var(--line); color: var(--ink-2); border-radius: 999px; padding: 8px 16px; cursor: pointer; font: 500 14px var(--body); }
.theme-btn:hover { border-color: var(--saffron); color: var(--ink); }

/* ---------- Product & legal pages ---------- */
.page-hero { padding: clamp(48px, 7vw, 96px) 0 24px; }
.page-hero h1 { font-size: clamp(38px, 6vw, 70px); margin: 16px 0 14px; }
.crumbs { font-size: 14px; color: var(--ink-3); } .crumbs a { color: var(--ink-2); text-decoration: none; } .crumbs a:hover { color: var(--saffron); }
.shots { display: flex; gap: 18px; overflow-x: auto; padding: 10px 4px 26px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.shots figure { margin: 0; flex: none; width: clamp(200px, 26vw, 250px); scroll-snap-align: start; }
.shots img { border-radius: 26px; border: 1px solid var(--line); box-shadow: var(--shadow); width: 100%; height: auto; aspect-ratio: 9/16; object-fit: cover; }
.shots figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-3); text-align: center; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 920px) { .feat-grid { grid-template-columns: 1fr 1fr; } } @media (max-width: 560px) { .feat-grid { grid-template-columns: 1fr; } }
.feat-grid .card { padding: 24px; } .feat-grid h3 { font-size: 20px; }
.prose { max-width: 760px; padding-bottom: 80px; }
.prose h2 { font-size: 28px; margin: 44px 0 12px; color: var(--saffron-2); }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 22px; display: grid; gap: 6px; }
.meta { color: var(--ink-3); margin: 0 0 28px; }
.app-head { display: flex; align-items: center; gap: 20px; margin-top: 26px; }
.app-head img { width: 84px; height: 84px; border-radius: 22px; box-shadow: var(--shadow); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Books ---------- */
.books { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 26px; }
.book { display: grid; gap: 6px; text-decoration: none; color: var(--ink); }
.book img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 6px 14px 14px 6px; box-shadow: var(--shadow), inset 6px 0 0 rgba(0,0,0,.18); transition: transform .3s; }
.book:hover img { transform: translateY(-6px) rotate(-1deg); }
.book b { font: 600 19px/1.25 var(--display); margin-top: 8px; } .book span { color: var(--ink-3); font-size: 14.5px; } .book em { color: var(--saffron-2); font-style: normal; font-size: 14.5px; font-weight: 600; }
