/* ============================================================
   Atulya — shared design system
   Compiled from the Claude Design source (.dc.html).
   Product pages share one layout with a different accent hue,
   so the accent is a token, not a duplicated sheet.
   ============================================================ */

:root {
  --bg: #FCFBF8;
  --ink: #131210;
  --muted: #48443E;
  --faint: #8B867C;
  --line: #E2DED4;
  --rule: #DDD9CE;
  --paper: #fff;

  /* Accent — warm rust. Overridden per page via [data-accent]. */
  --accent: oklch(58% 0.21 32);
  --accent-soft: oklch(80% 0.10 32);
  --accent-wash: oklch(90% 0.06 32);

  --measure: 1060px;
  --gutter: 48px;

  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: 'Archivo', system-ui, -apple-system, sans-serif;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --accent-face: 'Instrument Serif', Georgia, serif;
}

[data-accent="green"] {
  --accent: oklch(48% 0.13 155);
  --accent-soft: oklch(78% 0.09 155);
  --accent-wash: oklch(90% 0.06 155);
}

/* ---------- base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  overflow-x: hidden;
}

a { color: inherit; }
a:hover { color: var(--accent); }

::selection { background: var(--accent-wash); }

img { max-width: 100%; display: block; }

/* Visible focus for keyboard users — the source design had none. */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- motion ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes marq {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes rotword {
  0%,   22% { transform: translateY(0); }
  25%,  47% { transform: translateY(-20%); }
  50%,  72% { transform: translateY(-40%); }
  75%,  97% { transform: translateY(-60%); }
  100%      { transform: translateY(-80%); }
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(var(--bob-rot, 0deg)); }
  50%      { transform: translateY(-7px) rotate(calc(var(--bob-rot, 0deg) - .6deg)); }
}
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.rise { animation: rise .7s ease both; }
.rise-1 { animation-delay: .08s; }
.rise-2 { animation-delay: .14s; }
.rise-3 { animation-delay: .2s; }
.rise-4 { animation-delay: .26s; }
.rise-5 { animation-delay: .3s; }
.rise-6 { animation-delay: .38s; }

/* ---------- layout ---------- */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.shell {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.shell--grow { flex: 1; }

/* ---------- ticker ---------- */

.ticker {
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 9px 0;
  white-space: nowrap;
  overflow: hidden;
}

.ticker__track {
  display: inline-flex;
  animation: marq 18s linear infinite;
}

.ticker__track span { padding-right: 48px; }

/* ---------- shared type ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--faint);
}

.eyebrow--accent {
  font-size: 10px;
  color: var(--accent);
}

.kicker {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.kicker .dot { color: var(--accent); }

/* ---------- home hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 44px;
  padding-top: 52px;
  align-items: start;
}

.hero__title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(64px, 9vw, 104px);
  line-height: .95;
  letter-spacing: -.03em;
  margin: 24px 0 0;
}

.hero__lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 44ch;
  margin: 26px 0 0;
  text-wrap: pretty;
}

/* Rotating word.
   The source clipped at 1.22em, which cut the descenders on
   "debugs." / "persists." and let two words show at once.
   The track is clipped to exactly one slot height instead. */
.rotator {
  --slot: 1.18em;
  display: inline-block;
  height: var(--slot);
  overflow: hidden;
  vertical-align: bottom;
}

.rotator__track {
  display: flex;
  flex-direction: column;
  animation: rotword 8s cubic-bezier(.7, 0, .2, 1) infinite;
  font-family: var(--accent-face);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0;
}

.rotator__track span {
  height: var(--slot);
  line-height: var(--slot);
}

/* ---------- polaroid ---------- */

.polaroid-wrap { margin-top: 10px; }

.polaroid {
  position: relative;
  width: 300px;
  height: 340px;
  --bob-rot: 0deg;
  animation: bob 5s ease-in-out infinite;
}

.polaroid__frame {
  position: absolute;
  inset: 0;
  transform: rotate(2.5deg);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(19, 18, 16, .12);
  padding: 10px 10px 44px;
}

.polaroid__img {
  width: 280px;
  height: 276px;
  object-fit: cover;
  background: var(--line);
  display: block;
}

.polaroid__caption {
  position: absolute;
  left: 0; right: 0; bottom: 12px;
  text-align: center;
  font-family: var(--accent-face);
  font-style: italic;
  font-size: 16px;
  color: var(--muted);
}

.polaroid__tape {
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%) rotate(-1deg);
  width: 88px; height: 26px;
  background: oklch(90% .06 32 / .75);
  border: 1px solid oklch(80% .09 32 / .6);
}

/* ---------- project cards (home) ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.card {
  display: block;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  padding: 22px 24px;
  background: var(--bg);
  transition: background .2s ease, color .2s ease;
}

.card:hover {
  background: var(--ink);
  color: var(--bg);
}

.card__no {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Per-card accent so the home grid echoes each product's hue. */
.card--green .card__no { color: oklch(48% 0.13 155); }
.card--gold  .card__no { color: oklch(58% 0.14 70); }

.card:hover .card__no { color: var(--accent-soft); }
.card--green:hover .card__no { color: oklch(78% 0.09 155); }
.card--gold:hover  .card__no { color: oklch(80% 0.10 70); }

.card__name {
  font-family: var(--accent-face);
  font-size: 31px;
  margin-top: 8px;
}

.card__desc {
  font-size: 15px;
  line-height: 1.5;
  margin-top: 6px;
  opacity: .75;
}

/* ---------- log / footer ---------- */

.log {
  display: flex;
  align-items: baseline;
  gap: 26px;
  margin-top: 32px;
  padding: 18px 0 40px;
  border-top: 1px dashed var(--rule);
  font-family: var(--mono);
  font-size: 12px;
  color: #55524A;
  flex-wrap: wrap;
}

.log__time { color: var(--faint); }
.log__spacer { flex: 1; }

.log__link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-soft);
}

/* ---------- product page ---------- */

.pagenav {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 34px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--faint);
  gap: 20px;
}

.pagenav a { text-decoration: none; }
.pagenav a:hover { color: var(--accent); }
.pagenav__status { color: var(--accent); }

.product {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  padding-top: 48px;
  align-items: start;
}

.product__title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(56px, 8vw, 92px);
  line-height: .95;
  letter-spacing: -.03em;
  margin: 0;
}

.product__title .stop {
  font-family: var(--accent-face);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.product__tagline {
  font-family: var(--accent-face);
  font-style: italic;
  font-size: 26px;
  color: var(--accent);
  margin: 20px 0 0;
}

.product__body {
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 46ch;
  margin: 20px 0 0;
  text-wrap: pretty;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.cta {
  white-space: nowrap;
  flex: none;
  text-decoration: none;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .08em;
  padding: 16px 28px;
  border: 1.5px solid var(--ink);
  transition: background .2s ease, color .2s ease;
}

.cta:hover {
  background: var(--bg);
  color: var(--ink);
}

.cta-note {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
}

/* ---------- feature grid ---------- */

.section { margin-top: 44px; }

.section__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 14px;
}

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.feature {
  border: 1.5px solid var(--ink);
  padding: 20px 22px;
}

.feature__name {
  font-family: var(--accent-face);
  font-size: 24px;
}

.feature__desc {
  font-size: 15px;
  line-height: 1.55;
  margin-top: 6px;
  color: var(--muted);
}

/* ---------- device mockups ----------
   Aangan ships on iOS, so its frames hold real App Store captures.
   DayBreak is a macOS app — phone frames would misrepresent it — so
   it gets window chrome. Its screens are constructed, since the app
   has no shipped captures yet. */

/* iOS phone frames — Aangan */

.phones {
  position: relative;
  height: 520px;
}

.phone {
  position: absolute;
  width: 200px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 14px 36px rgba(19, 18, 16, .14);
  padding: 8px;
  animation: bob 5.5s ease-in-out infinite;
}

.phone--a {
  top: 24px;
  right: 150px;
  --bob-rot: -4deg;
}

.phone--b {
  top: 90px;
  right: -6px;
  --bob-rot: 3.5deg;
  box-shadow: 0 14px 36px rgba(19, 18, 16, .16);
  animation-delay: .8s;
}

.screen {
  width: 184px;
  height: 380px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  background: var(--bg);
}

.screen__shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* macOS windows — DayBreak */

.macs {
  position: relative;
  height: 520px;
}

.mac {
  position: absolute;
  width: 300px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(19, 18, 16, .16);
  overflow: hidden;
  animation: bob 6s ease-in-out infinite;
}

.mac--a {
  top: 22px;
  left: 0;
  --bob-rot: -1.2deg;
}

.mac--b {
  top: 210px;
  left: 40px;
  --bob-rot: 1deg;
  animation-delay: .9s;
  box-shadow: 0 18px 44px rgba(19, 18, 16, .2);
}

.mac__bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 11px;
  background: #F7F4EC;
  border-bottom: 1px solid #EFEBE1;
}

.mac__bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #DCD6C9;
  flex: none;
}

.mac__bar span {
  font-family: var(--mono);
  font-size: 7.5px;
  color: var(--faint);
  margin-left: 7px;
}

.mac__body {
  position: relative;
  height: 186px;
  padding: 15px 17px;
}

.doc__date {
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}

.doc__head {
  font-family: var(--accent-face);
  font-style: italic;
  font-size: 19px;
  margin-top: 5px;
  color: var(--ink);
}

.caret {
  display: inline-block;
  width: 1.5px;
  height: 16px;
  background: var(--accent);
  vertical-align: -2px;
  animation: blink 1.1s steps(1) infinite;
}

.doc__hint {
  font-size: 9px;
  color: var(--faint);
  margin-top: 10px;
}

.lines { margin-top: 12px; }

.lines i {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: #DAD5C9;
  margin-bottom: 6px;
}

.lines i:nth-child(4n)   { width: 62%; }
.lines i:nth-child(4n+1) { width: 100%; }
.lines i:nth-child(4n+2) { width: 92%; }
.lines i:nth-child(4n+3) { width: 97%; }

.meter {
  position: absolute;
  left: 17px; right: 17px; bottom: 13px;
}

.meter__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--muted);
  margin-bottom: 5px;
}

.meter__num { color: var(--accent); }

.meter__track {
  height: 3px;
  background: #E7E2D6;
  border-radius: 2px;
  overflow: hidden;
}

.meter__fill {
  height: 100%;
  width: 55%;
  background: var(--accent);
}

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --gutter: 28px; }

  .hero,
  .product {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero__media,
  .product__media { justify-self: center; }

  .features { grid-template-columns: 1fr; }

  /* Devices are absolutely positioned in a fixed-height stage on
     desktop; on narrow screens let them flow. */
  .phones,
  .macs {
    position: static;
    height: auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
  }

  .phone--a, .phone--b,
  .mac--a, .mac--b {
    position: static;
    top: auto;
    left: auto;
    right: auto;
  }
}

@media (max-width: 700px) {
  .cards { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  :root { --gutter: 20px; }

  .hero { padding-top: 36px; }
  .hero__title { font-size: clamp(48px, 15vw, 64px); }
  .hero__lede { font-size: 17px; }

  .log { gap: 14px; }
  .log__spacer { display: none; }

  .cta-row { gap: 12px; }
  .cta { width: 100%; text-align: center; }
}

/* ---------- reduced motion ----------
   The source design animates continuously (marquee, bob, word
   rotation). Honour the OS preference and settle everything
   into its resting state. */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .ticker__track { animation: none; }

  .rotator {
    height: auto;
    overflow: visible;
  }
  .rotator__track {
    animation: none;
    display: block;
  }
  /* Show a single word rather than a stacked column. */
  .rotator__track span { display: none; }
  .rotator__track span:first-child { display: block; }
}
