/* Outjae — mockup v0.1
   Palette: paper white, mist grey, graphite → ink black */
:root {
  --paper: #ffffff;
  --paper-2: #f6f6f5;
  --mist: #ececec;
  --mist-2: #e4e4e7;
  --stone: #a1a1aa;
  --muted: #6b6b73;
  --graphite: #27272a;
  --ink: #18181b;
  --black: #0b0b0c;

  --bg: var(--paper);
  --bg-2: var(--paper-2);
  --fg: var(--ink);
  --fg-muted: var(--muted);
  --line: rgba(11, 11, 10, 0.1);
  --comma: #c9c9cc;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --max: 1200px;
  --pad: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="night"] {
  --bg: #0b0b0c;
  --bg-2: #141416;
  --fg: #f4f4f5;
  --fg-muted: #9a9aa3;
  --line: rgba(255, 255, 255, 0.1);
  --comma: #3f3f46;
  --mist: #1c1c1f;
  --mist-2: #26262a;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--ink); color: var(--paper); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.serif { font-family: var(--serif); font-weight: 400; }
.mono { font-family: var(--mono); font-size: 11.5px; letter-spacing: .02em; text-transform: uppercase; }
.muted { color: var(--fg-muted); }
.max { max-width: 560px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, color .2s, box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn-sm { height: 30px; padding: 0 13px; font-size: 12.5px; }
.btn-dark { background: var(--graphite); color: #fff; }
.btn-dark:hover { background: var(--black); }
[data-theme="night"] .btn-dark { background: #f4f4f5; color: var(--black); }
[data-theme="night"] .btn-dark:hover { background: #fff; }
.btn-light { background: #fff; color: var(--black); }
.btn-light:hover { background: var(--mist-2); }
.btn-ghost { color: var(--fg); padding: 0 6px; }
.btn-ghost span { transition: transform .2s var(--ease); }
.btn-ghost:hover span { transform: translateX(3px); }

/* Nav */
.nav-wrap { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; display: flex; justify-content: center; padding: 0 12px; pointer-events: none; }
.nav {
  pointer-events: auto;
  width: 100%; max-width: 720px; height: 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 8px 0 16px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.05);
}
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--serif); font-size: 18px; letter-spacing: -.01em; }
.mark { width: 28px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { display: block; padding: 6px 10px; border-radius: 8px; font-size: 13px; color: var(--fg-muted); transition: color .2s, background-color .2s; }
.nav-links a:hover { color: var(--fg); background: var(--mist); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.status { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; color: var(--fg-muted); text-transform: uppercase; }
.status i { width: 6px; height: 6px; border-radius: 50%; background: var(--fg); position: relative; }
.status i::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1px solid var(--fg); opacity: .4; animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .6; } 100% { transform: scale(1.8); opacity: 0; } }
.theme { width: 30px; height: 30px; display: grid; place-items: center; border: 0; background: transparent; color: var(--fg-muted); border-radius: 8px; cursor: pointer; }
.theme:hover { background: var(--mist); color: var(--fg); }
.theme svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }

/* Hero */
.hero { padding-top: clamp(130px, 18vh, 180px); padding-bottom: clamp(72px, 10vh, 110px); }
.lede { font-size: 14px; max-width: 560px; margin-bottom: 22px; }
.cloud {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(44px, 7.4vw, 96px);
  line-height: 1.06; letter-spacing: -.025em;
  max-width: 1100px;
}
.cloud .w { display: inline-block; margin-right: .18em; opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease), color .3s; }
.cloud .c { color: var(--comma); font-size: .7em; margin-left: .02em; }
.cloud.in .w { opacity: 1; transform: none; }
.cloud .w:hover { color: var(--fg-muted); }
@media (max-width: 680px) { .cloud { font-size: clamp(38px, 11vw, 52px); } }
.hero-cta { display: flex; gap: 10px; align-items: center; margin-top: 44px; flex-wrap: wrap; }

/* Showcase */
.showcase { background: radial-gradient(120% 120% at 50% 0%, #2a2a2e 0%, #121214 55%, #0b0b0c 100%); color: #f4f4f5; padding: clamp(64px, 9vw, 120px) 0 clamp(40px, 6vw, 64px); overflow: hidden; }
.showcase-inner { display: flex; flex-direction: column; align-items: center; gap: 36px; }
.device { width: 100%; max-width: 980px; background: #161618; border: 1px solid rgba(255,255,255,.09); border-radius: 18px; box-shadow: 0 40px 120px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.05); overflow: hidden; }
.device-bar { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-bottom: 1px solid rgba(255,255,255,.06); }
.device-bar span { width: 9px; height: 9px; border-radius: 50%; background: #3a3a3f; }
.device-bar em { margin-left: auto; margin-right: auto; font-style: normal; font-family: var(--mono); font-size: 11px; color: #71717a; transform: translateX(-20px); }
.device-body { display: grid; grid-template-columns: 190px 1fr; min-height: 380px; }
.ds-side { padding: 20px 18px; border-right: 1px solid rgba(255,255,255,.06); display: flex; flex-direction: column; gap: 12px; }
.ds-side .mono { color: #71717a; font-size: 10.5px; }
.ds-side ul { display: flex; flex-direction: column; gap: 9px; font-family: var(--mono); font-size: 11px; color: #a1a1aa; }
.ds-side li { display: flex; align-items: center; gap: 9px; }
.ds-side b { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.ds-type { font-size: 30px; line-height: 1; color: #e4e4e7; }
.ds-type.sans { font-family: var(--sans); font-weight: 500; }
.ds-main { padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.prompt { position: relative; background: #1f1f22; border: 1px solid rgba(255,255,255,.07); border-radius: 12px; padding: 14px 16px; }
.prompt .mono { color: #71717a; font-size: 10.5px; }
.prompt p { font-family: var(--serif); font-size: 19px; margin-top: 4px; color: #f4f4f5; display: inline; }
.caret { display: inline-block; width: 2px; height: 20px; background: #f4f4f5; vertical-align: -4px; margin-left: 3px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.gen-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; flex: 1; }
.gen-card { background: #f4f4f5; color: var(--ink); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 10px; opacity: 0; transform: translateY(12px) scale(.98); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.gen-card .mono { color: #71717a; font-size: 10.5px; }
.gen-card p { font-family: var(--serif); font-size: 18px; line-height: 1.2; }
.in .gen-card { opacity: 1; transform: none; }
.in .g2 { transition-delay: .15s; } .in .g3 { transition-delay: .3s; }
.bar { margin-top: auto; height: 6px; background: #e4e4e7; border-radius: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--ink); border-radius: 6px; }
.pills { margin-top: auto; display: flex; gap: 6px; }
.pills span { font-size: 11.5px; padding: 5px 9px; border-radius: 999px; border: 1px solid #d4d4d8; }
.pills .on { background: var(--ink); color: #fff; border-color: var(--ink); }
.avatars { margin-top: auto; display: flex; }
.avatars i { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #f4f4f5; margin-left: -8px; background: linear-gradient(135deg, #d4d4d8, #a1a1aa); font-style: normal; font-size: 10px; display: grid; place-items: center; color: var(--ink); }
.avatars i:first-child { margin-left: 0; background: linear-gradient(135deg, #52525b, #18181b); }
.avatars i:nth-child(2) { background: linear-gradient(135deg, #a1a1aa, #52525b); }
.avatars i:last-child { background: #e4e4e7; font-weight: 600; }
.gen-meta { display: flex; gap: 18px; color: #71717a; font-size: 10.5px; flex-wrap: wrap; }
.showcase-cap { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; max-width: 520px; color: #a1a1aa; font-size: 14px; }
.showcase-cap .mono { color: #71717a; }
.showcase-cap .serif { color: #f4f4f5; font-size: 18px; }

/* Sections */
.section { padding-top: clamp(80px, 11vw, 140px); padding-bottom: clamp(20px, 3vw, 40px); }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 56px; }
.eyebrow { color: var(--fg-muted); }
.h2 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.08; letter-spacing: -.02em; max-width: 780px; }
.section-row { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }

/* Practice */
.practice { display: grid; grid-template-columns: 1fr 150px 1fr; gap: 24px; align-items: stretch; }
.pr { background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 14px; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.pr:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,.06); }
.pr-num { color: var(--fg-muted); }
.pr h3 { font-size: 28px; line-height: 1.12; letter-spacing: -.015em; }
.pr p { color: var(--fg-muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; }
.tags li { font-size: 12px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); }
.pr-join { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--fg-muted); }
.pr-join svg { width: 120px; fill: none; stroke: currentColor; stroke-width: 1; }
.pr-join svg circle:first-child { animation: drift 6s ease-in-out infinite alternate; }
.pr-join svg circle:last-child { animation: drift 6s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translateX(-4px); } to { transform: translateX(4px); } }

/* Work */
.work { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 28px; }
.wk { display: flex; flex-direction: column; gap: 18px; }
.wk-media { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--mist); display: grid; place-items: center; transition: transform .6s var(--ease); }
.wk:hover .wk-media { transform: scale(.985); }
.wk-info { display: flex; flex-direction: column; gap: 6px; }
.wk-info h3 { font-size: 24px; letter-spacing: -.01em; display: flex; align-items: baseline; gap: 8px; }
.arr { font-family: var(--sans); font-size: 15px; color: var(--fg-muted); transition: transform .25s var(--ease), color .2s; }
.wk:hover .arr, .channels a:hover .arr { transform: translate(3px, -3px); color: var(--fg); }
.tagline { color: var(--fg-muted); }

/* Work: media compositions (pure CSS placeholders) */
.m-system { background: #ececec; }
.sw-grid { display: grid; grid-template-columns: repeat(4, 54px); gap: 10px; position: absolute; top: 15%; }
.sw-grid i { height: 54px; border-radius: 12px; background: #d4d4d8; }
.sw-grid i:nth-child(1) { background: #0b0b0c; } .sw-grid i:nth-child(2) { background: #27272a; } .sw-grid i:nth-child(3) { background: #52525b; } .sw-grid i:nth-child(4) { background: #a1a1aa; }
.sw-grid i:nth-child(5) { background: #fff; } .sw-grid i:nth-child(6) { background: #f4f4f5; border: 1px solid #d4d4d8; }
.sw-btns { position: absolute; bottom: 18%; display: flex; gap: 8px; }
.sw-btns span { font-size: 12px; padding: 8px 14px; border-radius: 999px; }
.sw-btns .b1 { background: #18181b; color: #fff; } .sw-btns .b2 { background: #fff; color: #18181b; } .sw-btns .b3 { border: 1px solid #a1a1aa; color: #3f3f46; }
.m-brand { background: #18181b; color: #f4f4f5; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; }
.brand-word { font-size: clamp(44px, 6vw, 76px); letter-spacing: -.03em; font-weight: 300; }
.brand-sub { color: #71717a; font-size: 10.5px; }
.m-proto { background: #dcdcde; }
.phone { width: 34%; aspect-ratio: 9 / 18.5; background: #fff; border-radius: 26px; padding: 18px 14px; box-shadow: 0 24px 60px rgba(0,0,0,.18); display: flex; flex-direction: column; gap: 9px; border: 5px solid #18181b; }
.ph-top { width: 30%; height: 6px; border-radius: 6px; background: #18181b; margin: 0 auto 8px; }
.ph-line { height: 8px; border-radius: 4px; background: #d4d4d8; } .w80 { width: 80%; background: #18181b; height: 10px; } .w60 { width: 60%; }
.ph-card { flex: 1; border-radius: 12px; background: linear-gradient(160deg, #f4f4f5, #e4e4e7); }
.ph-row { display: flex; gap: 6px; } .ph-row i { flex: 1; height: 34px; border-radius: 8px; background: #f4f4f5; border: 1px solid #e4e4e7; }
.ph-btn { height: 26px; border-radius: 999px; background: #18181b; }
.m-engine { background: #f4f4f5; }
[data-theme="night"] .m-engine, [data-theme="night"] .m-system { background: #1c1c1f; }
.eng { position: relative; width: 78%; height: 56%; }
.eng svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: #a1a1aa; stroke-width: 1.2; stroke-dasharray: 4 5; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -18; } }
.node { position: absolute; z-index: 1; font-family: var(--mono); font-size: 11px; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid #d4d4d8; color: #18181b; transform: translate(-50%, -50%); }
.n1 { left: 20%; top: 50%; background: #18181b; color: #fff; border-color: #18181b; }
.n2 { left: 77%; top: 19%; } .n3 { left: 77%; top: 50%; } .n4 { left: 77%; top: 81%; }

/* Retainers band */
.band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: clamp(80px, 10vw, 130px); padding-bottom: clamp(80px, 10vw, 130px); }
.band .section { padding-top: clamp(80px, 10vw, 120px); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.plan > .mono { color: var(--fg-muted); }
.plan h3 { font-size: 24px; letter-spacing: -.01em; }
.price { display: flex; align-items: baseline; gap: 6px; padding: 8px 0 14px; border-bottom: 1px solid var(--line); }
.price .serif { font-size: 44px; letter-spacing: -.03em; line-height: 1; }
.price small { color: var(--fg-muted); font-size: 13px; }
.plan ul { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; font-size: 14px; }
.plan li { display: flex; gap: 10px; align-items: baseline; }
.plan li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .5; flex: none; transform: translateY(-2px); }
.plan-dark { background: var(--graphite); color: #f4f4f5; border-color: var(--graphite); transform: translateY(-10px); box-shadow: 0 30px 60px rgba(0,0,0,.14); }
.plan-dark > .mono, .plan-dark .price small { color: #a1a1aa; }
.plan-dark .price { border-color: rgba(255,255,255,.12); }
.plan-dark .btn { margin-top: auto; align-self: flex-start; }
[data-theme="night"] .plan-dark { background: #f4f4f5; color: var(--ink); }
[data-theme="night"] .plan-dark .price { border-color: rgba(0,0,0,.12); }
[data-theme="night"] .plan-dark .btn-light { background: var(--ink); color: #fff; }

/* Process */
.process { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.process li { padding: 28px 28px 0 0; display: flex; flex-direction: column; gap: 10px; }
.process li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.process .mono { color: var(--fg-muted); }
.process h3 { font-size: 30px; letter-spacing: -.015em; }

/* Studio / channels */
.studio { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.studio > div { display: flex; flex-direction: column; gap: 16px; }
.channels { border-top: 1px solid var(--line); }
.channels a { display: grid; grid-template-columns: 130px 140px 1fr auto; gap: 16px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); transition: padding .3s var(--ease); }
.channels a:hover { padding-left: 8px; }
.channels .serif { font-size: 24px; }
.channels .mono { color: var(--fg-muted); }
.channels .muted { font-size: 14px; }

/* Contact */
.contact { padding: clamp(100px, 14vw, 180px) 0; }
.contact-inner { max-width: 620px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.contact h2 { font-size: clamp(36px, 4.6vw, 56px); letter-spacing: -.02em; line-height: 1.05; margin-bottom: 6px; }
.contact p { color: var(--fg-muted); font-size: 16px; }
.contact .btn { margin-top: 14px; }

/* Footer */
.footer { background: var(--black); color: #e4e4e7; padding-top: 64px; overflow: hidden; }
.footer .muted { color: #71717a; }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; font-size: 14px; }
.foot-grid p + p { margin-top: 6px; }
.foot-grid .serif { font-size: 16px; }
.foot-time { text-align: center; }
.foot-right { text-align: right; }
.foot-grid a { border-bottom: 1px solid transparent; transition: border-color .2s; }
.foot-grid a:hover { border-color: currentColor; }
.wordmark { padding-top: 48px; }
.wordmark span { display: block; font-size: clamp(90px, 21vw, 300px); line-height: 1; letter-spacing: -.055em; color: #f4f4f5; text-align: center; padding-bottom: .08em; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; padding-top: 26px; padding-bottom: 26px; border-top: 1px solid rgba(255,255,255,.08); flex-wrap: wrap; position: relative; background: var(--black); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .practice { grid-template-columns: 1fr; }
  .pr-join { flex-direction: row; padding: 4px 0; }
  .pr-join svg { width: 70px; }
  .plans { grid-template-columns: 1fr; }
  .plan-dark { transform: none; }
  .studio { grid-template-columns: 1fr; gap: 32px; }
  .device-body { grid-template-columns: 1fr; }
  .ds-side { display: none; }
}
@media (max-width: 680px) {
  .status-text { display: none; }
  .work { grid-template-columns: 1fr; }
  .gen-grid { grid-template-columns: 1fr; }
  .gen-card { gap: 6px; }
  .process { grid-template-columns: 1fr; }
  .process li, .process li + li { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .channels a { grid-template-columns: 1fr auto; }
  .channels .muted { grid-column: 1 / -1; }
  .channels .mono { grid-column: 1; }
  .channels a { row-gap: 4px; }
  .channels .arr { grid-column: 2; grid-row: 1; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-time, .foot-right { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .cloud .w, .gen-card { opacity: 1 !important; transform: none !important; filter: none !important; }
  html { scroll-behavior: auto; }
}
