/* RasanAI Studio for Mac: a calm product page. Indigo on rice, no yellow. */
[hidden] { display: none !important; }
.home { --accent: #2a31a8; --deep: #1b1f5e; --white: #fff; background: var(--paper); color: var(--ink); }
.home h1, .home h2, .home h3 { text-wrap: balance; color: var(--deep); }
.home p, .home li { text-wrap: pretty; }
.home :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.home .skip { background: var(--deep); color: #fff; }
.home ::selection { background: var(--accent); color: #fff; }

/* nav */
.top { position: sticky; top: 0; z-index: 30; background: rgba(247, 246, 242, .82); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid var(--line-light); }
.home .nav { min-height: 68px; padding-top: 10px; padding-bottom: 10px; }
.home .brand img { height: 30px; }
.home .nav-links { gap: clamp(20px, 3vw, 40px); font-size: .93rem; }
.home .nav-links a { color: var(--ink-2); min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; transition: color .2s; }
.home .nav-links a:hover { color: var(--deep); text-decoration: none; }
.home .nav-links .nav-action { color: #fff; background: var(--accent); padding: 0 18px; min-height: 36px; border-radius: 999px; font-weight: 600; }
.home .nav-links .nav-action:hover { color: #fff; background: var(--deep); }

/* buttons */
.home .btn { border-radius: 999px; min-height: 48px; transition: background .2s, color .2s, transform .2s, box-shadow .2s; }
.home .btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 8px 24px rgba(42, 49, 168, .28); }
.home .btn-primary:hover { background: var(--deep); transform: translateY(-1px); }
.home .btn-light { background: #fff; color: var(--deep); }
.home .btn-light:hover { background: var(--rice); transform: translateY(-1px); }
.home .btn:active { transform: translateY(1px); }
.home .btn-lg { min-height: 54px; padding: 14px 28px; font-size: 1.05rem; }
.home .btn svg { width: 17px; height: 17px; }
.home .text-link { color: var(--accent); font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.home .text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.home .link { color: var(--accent); }
.home .eyebrow { font: 500 .78rem/1 var(--mono); letter-spacing: .1em; color: var(--accent); margin-bottom: 20px; }

/* hero */
.hero { background: radial-gradient(900px 480px at 50% -80px, rgba(42, 49, 168, .13), transparent 70%), var(--paper); color: var(--ink); padding: 0; overflow: hidden; }
.hero-copy { text-align: center; padding-top: clamp(48px, 7vw, 96px); }
.home .hero h1 { font-size: clamp(2.9rem, 7.4vw, 6.4rem); line-height: .96; letter-spacing: -.035em; margin: 0 auto 26px; max-width: 12em; }
.home .hero h1 em { color: var(--accent); font-style: normal; }
.hero-sub { max-width: 36rem; margin: 0 auto 30px; font-size: clamp(1.1rem, 1.7vw, 1.35rem); line-height: 1.5; color: var(--ink-2); }
.hero-cta { display: flex; justify-content: center; align-items: center; gap: 12px 28px; flex-wrap: wrap; margin: 0; }
.hero-meta { font: .8rem/1.5 var(--mono); color: var(--ink-2); margin: 22px 0 0; }
.hero-shot { padding-top: clamp(44px, 6vw, 80px); padding-bottom: clamp(36px, 5vw, 64px); }
.shot-note { text-align: center; font-size: .85rem; color: var(--ink-2); margin: 28px 0 0; }
.hero-shot .window { max-width: 1100px; margin: 0 auto; transform-origin: 50% 0; will-change: transform; }

/* macOS window frame: the screenshot already has its title bar */
.window { border-radius: 14px; overflow: hidden; background: #ececec; box-shadow: 0 0 0 1px rgba(27, 31, 94, .12), 0 2px 6px rgba(27, 31, 94, .06), 0 30px 70px -10px rgba(27, 31, 94, .28); }
.window img { display: block; width: 100%; height: auto; }

/* sections */
.home .section { padding: clamp(72px, 9vw, 136px) 0; }
.home h2 { font-size: clamp(2.3rem, 4.8vw, 4.2rem); line-height: 1; letter-spacing: -.03em; margin-bottom: 22px; }
.home .lede { color: var(--ink-2); max-width: 34rem; }
.tint { background: var(--rice); }
.head { max-width: 46rem; margin-bottom: clamp(36px, 5vw, 64px); }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.split-rev { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.split-copy p { color: var(--ink-2); }
.points { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 0; }
.points li { padding: 16px 0; border-top: 1px solid var(--line-light); color: var(--ink-2); font-size: 1rem; line-height: 1.5; }
.points li b { display: block; color: var(--deep); font-size: 1.08rem; font-weight: 600; margin-bottom: 2px; }
.stack { display: grid; gap: 22px; }
.file-chip { display: inline-flex; align-items: center; gap: 10px; justify-self: start; font: .82rem/1 var(--mono); color: var(--ink-2); background: #fff; border: 1px solid var(--line-light); padding: 12px 16px; border-radius: 10px; margin: 0; }
.file-chip b { color: var(--deep); font-weight: 500; }

/* five calls */
.calls-wrap { overflow: hidden; }
.cxs { list-style: none; margin: 0; padding: 4px max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad))) 28px; display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad))); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cxs::-webkit-scrollbar { display: none; }
.cx { flex: 0 0 min(440px, 82vw); scroll-snap-align: start; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px var(--line-light), 0 14px 34px -12px rgba(27, 31, 94, .16); display: flex; flex-direction: column; }
.cx figure { margin: 0; aspect-ratio: 1040 / 560; background: #141414; overflow: hidden; }
.cx img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cx > div { padding: 22px 24px 28px; }
.cx-n { font: .75rem/1 var(--mono); color: var(--accent); letter-spacing: .08em; }
.cx h3 { font-size: 1.7rem; margin: 10px 0 8px; letter-spacing: -.02em; }
.cx p { margin: 0; color: var(--ink-2); font-size: .97rem; line-height: 1.5; }
.cx p b { color: var(--ink); font-weight: 600; }
.calls-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.calls-foot p { margin: 0; font-size: .86rem; color: var(--ink-2); }
.calls-nav { display: none; gap: 10px; }
.interactive-calls .calls-nav { display: flex; }
.calls-nav button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(27, 31, 94, .08); color: var(--deep); cursor: pointer; display: grid; place-items: center; transition: background .2s, opacity .2s; }
.calls-nav button:hover { background: rgba(27, 31, 94, .16); }
.calls-nav button[disabled] { opacity: .35; cursor: default; }
.calls-nav svg { width: 18px; height: 18px; }
.calls-nav button:first-child svg { transform: scaleX(-1); }

/* reels */
.dark-band { background: var(--deep); color: var(--on-indigo); }
.dark-band h2, .dark-band h3 { color: #fff; }
.dark-band .eyebrow { color: #a9aff0; }
.dark-band .lede { color: var(--on-indigo-2); }
.quad { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; }
.quad li { border-top: 1px solid var(--line-dark); padding-top: 20px; display: grid; gap: 8px; align-content: start; }
.quad b { font: 700 1.5rem/1.1 var(--display); font-stretch: 90%; color: #fff; letter-spacing: -.01em; }
.quad span { color: var(--on-indigo-2); font-size: .98rem; line-height: 1.5; }

/* gallery */
.visual-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.visual-grid figure { margin: 0; min-width: 0; }
.visual-grid img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: 14px; background: var(--rice); box-shadow: 0 0 0 1px var(--line-light); }
.visual-grid .visual-feature { grid-column: 1 / -1; }
.visual-grid figcaption { display: flex; flex-direction: column; margin-top: 14px; line-height: 1.3; gap: 5px; }
.visual-grid figcaption b { font-size: 1.15rem; font-weight: 600; color: var(--deep); }
.visual-grid figcaption span { color: var(--ink-2); font-size: .85rem; }
.section-bottom { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-top: 32px; }
.section-bottom p { font-size: .86rem; color: var(--ink-2); margin: 0; }
.section-bottom a { white-space: nowrap; }

/* finished */
.finished .window { max-width: 900px; margin: clamp(36px, 5vw, 56px) auto 0; }

/* download */
.download { background: radial-gradient(800px 400px at 85% 0, #2a31a8 0, transparent 70%), var(--deep); color: var(--on-indigo); scroll-margin-top: 60px; }
.download h2, .download h3 { color: #fff; }
.download .eyebrow { color: #a9aff0; }
.download .lede { color: var(--on-indigo-2); margin-bottom: 30px; }
.dl-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.dl-meta { font: .82rem/1.7 var(--mono); color: var(--on-indigo-2); margin: 22px 0 0; }
.dl-links { display: flex; gap: 24px; margin: 18px 0 0; }
.dl-links a { color: #fff; text-underline-offset: 4px; }
.dl-detail h3 { font-size: 1.25rem; margin: 0 0 12px; }
.dl-detail h3:not(:first-child) { margin-top: 34px; }
.dl-detail ul, .dl-detail ol { margin: 0 0 14px; padding-left: 1.2em; color: var(--on-indigo-2); }
.dl-detail li { padding: 3px 0; }
.dl-detail li::marker { color: #8f96ea; }
.dl-detail p { color: var(--on-indigo-2); }
.dl-detail b { color: #fff; font-weight: 600; }
.honest { margin: clamp(44px, 6vw, 72px) 0 0; padding-top: 26px; border-top: 1px solid var(--line-dark); color: var(--on-indigo-2); max-width: 46rem; font-size: .97rem; }
.honest b { color: #fff; }
.honest a { color: #fff; text-underline-offset: 4px; }
.home .download :focus-visible { outline-color: #fff; }

/* skill */
.skill { padding-bottom: clamp(40px, 5vw, 64px) !important; }
.skill-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.skill h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.skill p { color: var(--ink-2); }
.skill-commands { min-width: 0; }
.skill-commands .cmd { background: var(--rice); color: var(--ink); border: 1px solid var(--line-light); border-radius: 10px; }
.skill-commands .cmd code { color: var(--ink); white-space: normal; overflow-wrap: anywhere; padding-right: 52px; }
.skill-commands .copy { color: var(--accent); min-width: 44px; min-height: 44px; }
.skill-commands .command-label { font: .75rem/1.4 var(--mono); margin: 22px 0 10px; }
#copy-status { min-height: 1.5em; font-size: .85rem; margin: 12px 0 0; }
.home-signoff { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding-top: 24px; padding-bottom: 72px; }
.home-signoff p { margin: 0; }
.home-signoff p:first-child { font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.2; color: var(--accent); }
.home-signoff span { font-family: var(--tamil); font-weight: 600; }
.home-signoff p:last-child { color: var(--ink-2); }
.home .foot { padding: 36px 0; }
.home-footer { display: flex; justify-content: space-between; align-items: center; gap: 24px 32px; flex-wrap: wrap; }
.home-footer p { margin: 0; color: var(--on-indigo-2); font-size: .9rem; }
.home-footer > div { display: flex; gap: 24px; flex-wrap: wrap; }
.home-footer a { text-underline-offset: 4px; }
.home .menu-toggle { display: none; }

/* scroll reveal, only when JS opts in */
.js-reveal .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.js-reveal .reveal.in { opacity: 1; transform: none; }

.field-guide .nav { flex-wrap: wrap; }
.field-guide .nav-links { flex-wrap: wrap; }
.field-guide .hero h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
.field-guide .nav-links a { min-height: 44px; display: inline-flex; align-items: center; }
.field-guide .lib-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.field-guide pre { max-width: 100%; overflow-x: auto; }
.field-guide p code { overflow-wrap: anywhere; }
.copy-feedback { position: fixed; bottom: 20px; left: 20px; z-index: 20; background: var(--indigo); color: var(--on-indigo); padding: 12px 20px; border-radius: 6px; max-width: calc(100% - 40px); }
.copy-feedback:empty { display: none; }
.copy-buffer { position: fixed; left: -10000px; top: 0; }
@media (max-width: 1000px) {
  .quad { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .dl-grid { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .split, .split-rev { grid-template-columns: 1fr; }
  .split-rev .stack { order: 2; }
  .skill-grid { grid-template-columns: 1fr; }
  .visual-grid { gap: 16px; }
  .section-bottom { align-items: start; flex-direction: column; gap: 12px; }
  .home-signoff { flex-direction: column; gap: 0; padding-bottom: 40px; }
}
@media (max-width: 620px) {
  .home .nav { position: relative; flex-wrap: wrap; gap: 8px; }
  .home .nav-links { width: 100%; gap: 0; flex-wrap: wrap; font-size: 1rem; }
  .home.nav-enabled .nav-links { display: none; }
  .home.nav-enabled .menu-toggle { display: flex; align-items: center; gap: 12px; min-height: 40px; border: 1px solid var(--line-light); background: transparent; color: var(--deep); padding: 6px 14px; border-radius: 999px; font: inherit; font-size: .9rem; cursor: pointer; }
  .home.nav-enabled .nav[data-open="true"] .nav-links { display: flex; flex-direction: column; align-items: stretch; padding-bottom: 12px; }
  .home .nav-links a { border-top: 1px solid var(--line-light); }
  .home .nav-links .nav-action { margin-top: 10px; justify-content: center; min-height: 48px; border-top: 0; }
  .hero-shot { padding-left: 12px; padding-right: 12px; }
  .hero-shot .window, .window { border-radius: 10px; }
  .visual-grid { grid-template-columns: 1fr; gap: 28px; }
  .quad { grid-template-columns: 1fr; }
  .calls-foot p { max-width: 14rem; }
  .home-footer { flex-direction: column; align-items: start; }
  .field-guide .nav-links { width: 100%; gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .home *, .home *::before, .home *::after { scroll-behavior: auto !important; transition: none !important; }
  .js-reveal .reveal { opacity: 1; transform: none; }
  .hero-shot .window { transform: none !important; }
}
