/*
 * Tiny Studio — Notion-inspired refinement (2026-04-06)
 *
 * Design reference: ./DESIGN.md (Notion aesthetic, from awesome-design-md)
 *
 * What changed from the prior AI-default styling:
 *   - Inter Variable from Google Fonts replaces Avenir Next as the primary
 *     sans, with Notion's negative-letter-spacing scale on display sizes.
 *   - Iowan Old Style serif retained ONLY for the brand mark (the "TS"
 *     square) and the literal hero h1 — no longer used everywhere.
 *   - Whisper borders (rgba(0,0,0,0.06)) replace medium borders.
 *   - Multi-layer shadow stack with sub-0.05 individual opacity replaces
 *     the single heavy drop shadow.
 *   - Backdrop-filter blur removed from light cream cards (Notion is opaque)
 *     and kept ONLY on the dark navy hero panel where it actually adds depth.
 *   - Four-weight typographic hierarchy: 400 / 500 / 600 / 700.
 *   - Warm near-black text via rgba(16,23,34,0.95).
 *   - Tighter vertical rhythm with explicit section spacing tokens.
 *   - Section alternation surface (.section--warm) for warm-white background
 *     rhythm between cream and tinted sections.
 *
 * What was kept (Tiny Studio's signature):
 *   - Warm cream background gradient with the radial-warmth corners.
 *   - Teal #0d8b78 as the singular brand accent.
 *   - Clay #c67a52 as the secondary warm accent.
 *   - Pill (999px) primary CTA buttons.
 *   - Generous (24-32px) radii on hero/feature cards.
 *   - Reveal-up entry animation and prefers-reduced-motion override.
 */

/*
 * Inter Variable is loaded via Google Fonts <link> in the HTML head
 * (faster than @import here). The font-family chain falls back to
 * system sans if Inter fails to load.
 */

:root {
  color-scheme: light;

  /* Surface palette — warm cream, kept from the original Tiny Studio identity */
  --bg: #f3efe7;
  --bg-soft: #fcf9f4;
  --bg-alt: #efe9de; /* warm-white alternation surface (Notion principle) */
  --surface: #fffefb;
  --surface-strong: #ffffff;
  --panel: #182028;
  --panel-soft: rgba(24, 32, 40, 0.92);

  /* Text — warm near-blacks (Notion principle: avoid pure black) */
  --text: rgba(16, 23, 34, 0.95);
  --text-strong: rgba(16, 23, 34, 1);
  --muted: #5b6676;
  --muted-soft: #7f8896;

  /* Borders — whispers (Notion principle: 1px sub-0.10 opacity) */
  --line: rgba(16, 23, 34, 0.06);
  --line-strong: rgba(16, 23, 34, 0.1);

  /* Brand accents — teal + clay, signature Tiny Studio */
  --accent: #0d8b78;
  --accent-strong: #0a6d5d;
  --accent-soft: rgba(13, 139, 120, 0.1);
  --accent-tint: rgba(13, 139, 120, 0.06);
  --warm: #c67a52;
  --warm-strong: #ab5f37;
  --warm-soft: rgba(198, 122, 82, 0.1);

  /* Multi-layer shadow stacks — Notion's depth philosophy */
  --shadow-card:
    0 0 0 1px rgba(16, 23, 34, 0.04),
    0 1px 2px rgba(16, 23, 34, 0.025),
    0 4px 12px rgba(16, 23, 34, 0.03),
    0 16px 32px rgba(16, 23, 34, 0.025);
  --shadow-deep:
    0 0 0 1px rgba(16, 23, 34, 0.04),
    0 1px 3px rgba(16, 23, 34, 0.02),
    0 4px 12px rgba(16, 23, 34, 0.03),
    0 12px 28px rgba(16, 23, 34, 0.04),
    0 32px 64px rgba(16, 23, 34, 0.05);
  --shadow-flat: none;

  /* Radii — Notion uses smaller radii but Tiny Studio's larger feel matches its softness */
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --radius-pill: 999px;

  /* Spacing scale — 8px base (Notion principle) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* Layout */
  --container: 1120px;

  /* Typography — Inter Variable for everything except the brand mark + hero serif accent */
  --sans:
    "Inter var", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Baskerville", "Times New Roman", serif;

  /* Inter OpenType features for that Notion sophistication */
  --inter-features: "cv11", "ss01", "ss03", "calt";
}

@supports (font-variation-settings: normal) {
  :root {
    --sans:
      "Inter var", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
      "Helvetica Neue", Arial, sans-serif;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 0% 0%, rgba(198, 122, 82, 0.1), transparent 30%),
    radial-gradient(circle at 100% 0%, rgba(13, 139, 120, 0.1), transparent 32%),
    linear-gradient(180deg, #faf6ee 0%, var(--bg) 38%, #ece5d9 100%);
  font-family: var(--sans);
  font-feature-settings: var(--inter-features);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
}

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

/* Skip link — accessibility, hidden until focused */
.skip-link {
  position: absolute;
  top: -48px;
  left: var(--space-4);
  z-index: 1000;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--text-strong);
  color: #fff;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
}

.skip-link:focus {
  top: var(--space-4);
}

.shell {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

/* ──────────────────────────────────────────────────────────────────────
   HEADER
   ────────────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  background: rgba(250, 246, 238, 0.78);
  border-bottom: 1px solid var(--line);
}

.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding: var(--space-4) 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(135deg, rgba(13, 139, 120, 0.16), rgba(198, 122, 82, 0.18));
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-strong);
}

.brand-copy strong,
.brand-copy span {
  display: block;
  font-family: var(--sans);
}

.brand-copy strong {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text);
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 400;
  margin-top: 1px;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  align-items: center;
}

.top-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  background: rgba(16, 23, 34, 0.04);
  color: var(--text);
  outline: none;
}

/* ──────────────────────────────────────────────────────────────────────
   HERO
   ────────────────────────────────────────────────────────────────────── */

.hero {
  padding: var(--space-9) 0 var(--space-6);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.14fr 0.86fr;
  gap: var(--space-5);
}

.hero-copy {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  padding: var(--space-7);
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: auto auto -100px -60px;
  width: 240px;
  height: 240px;
  border-radius: var(--radius-pill);
  background: radial-gradient(circle, rgba(198, 122, 82, 0.13), transparent 66%);
  pointer-events: none;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, #1a2230 0%, #111824 100%);
  color: #f7f2eb;
  box-shadow: var(--shadow-deep);
  padding: var(--space-7);
  backdrop-filter: blur(20px);
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -60px -100px auto;
  width: 240px;
  height: 240px;
  border-radius: var(--radius-pill);
  background: radial-gradient(circle, rgba(13, 139, 120, 0.18), transparent 66%);
  pointer-events: none;
}

.hero-panel .eyebrow,
.hero-panel .muted-note,
.hero-panel .metric-copy,
.hero-panel p,
.hero-panel li {
  color: rgba(247, 242, 235, 0.72);
}

/* Eyebrow — small uppercase tracked label, Notion-style accent */
.eyebrow {
  margin: 0 0 var(--space-4);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-feature-settings: var(--inter-features), "lnum";
}

/* Headings — Inter with Notion's negative letter-spacing scale */
h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 700;
  color: var(--text-strong);
  font-feature-settings: var(--inter-features), "lnum";
}

/* The single dramatic serif moment — page title */
.hero h1,
.page-main h1 {
  font-size: clamp(2.4rem, 6.6vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 700;
  color: var(--text-strong);
}

.section-title,
.footer-panel h2,
.page-card h2,
.page-card h3,
.wide-panel h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.625rem);
  line-height: 1.05;
  letter-spacing: -0.032em;
  font-weight: 700;
}

.app-card h3,
.studio-card h3 {
  font-size: 1.625rem;
  line-height: 1.15;
  letter-spacing: -0.022em;
  font-weight: 700;
}

/* Lead paragraph — body large, weight 500 for emphasis */
.hero-lead,
.page-lead {
  margin: var(--space-5) 0 0;
  max-width: 38rem;
  font-size: 1.1875rem;
  line-height: 1.5;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: -0.005em;
}

/* Standard body and muted text */
.section-copy,
.footer-copy,
.page-copy,
.muted {
  color: var(--muted);
}

p {
  margin-top: 0;
  margin-bottom: 0;
}

/* ──────────────────────────────────────────────────────────────────────
   SECTION
   ────────────────────────────────────────────────────────────────────── */

.section {
  padding: var(--space-7) 0 0;
}

.section-head {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: var(--space-5);
  align-items: end;
  margin-bottom: var(--space-5);
}

.section-copy {
  margin: 0;
  max-width: 34rem;
  font-size: 1rem;
  line-height: 1.6;
}

/* ──────────────────────────────────────────────────────────────────────
   ACTIONS, BUTTONS, CHIPS
   ────────────────────────────────────────────────────────────────────── */

.action-row {
  margin-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.meta-row {
  margin-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.chip {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  font-feature-settings: var(--inter-features);
}

.chip.accent {
  border-color: transparent;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 600;
}

.chip.warm {
  border-color: transparent;
  background: var(--warm-soft);
  color: var(--warm-strong);
  font-weight: 600;
}

.button,
.ghost-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition:
    transform 160ms cubic-bezier(0.2, 0.7, 0.2, 1),
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
  cursor: pointer;
}

.button {
  background: var(--text-strong);
  color: #fff;
  box-shadow:
    0 1px 2px rgba(16, 23, 34, 0.18),
    0 4px 14px rgba(16, 23, 34, 0.14);
}

.button:hover,
.button:focus-visible {
  background: #000;
  transform: translateY(-1px);
  box-shadow:
    0 2px 4px rgba(16, 23, 34, 0.2),
    0 8px 22px rgba(16, 23, 34, 0.18);
  outline: none;
}

.ghost-button {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--text);
}

.ghost-button:hover,
.ghost-button:focus-visible {
  background: var(--surface-strong);
  border-color: rgba(16, 23, 34, 0.16);
  transform: translateY(-1px);
  outline: none;
}

.app-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--warm-strong);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: -0.005em;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: currentColor;
  box-shadow: 0 0 0 5px rgba(198, 122, 82, 0.12);
}

/* ──────────────────────────────────────────────────────────────────────
   MINI GRID (inside hero panel)
   ────────────────────────────────────────────────────────────────────── */

.mini-grid {
  margin-top: var(--space-5);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.mini-card {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  padding: var(--space-4);
}

.mini-card strong {
  display: block;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(247, 242, 235, 0.94);
  letter-spacing: -0.005em;
  margin-bottom: 4px;
}

.mini-card span {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(247, 242, 235, 0.7);
}

.panel-note,
.muted-note {
  position: relative;
  z-index: 1;
  margin-top: var(--space-5);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(247, 242, 235, 0.74);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* ──────────────────────────────────────────────────────────────────────
   APP CARDS
   ────────────────────────────────────────────────────────────────────── */

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.app-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface-strong);
  box-shadow: var(--shadow-card);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition:
    transform 200ms cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 200ms ease;
}

.app-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-deep);
}

.app-card.promptly {
  background:
    linear-gradient(180deg, rgba(13, 139, 120, 0.06), var(--surface-strong) 36%);
}

.app-card.drishti {
  background:
    linear-gradient(180deg, rgba(198, 122, 82, 0.06), var(--surface-strong) 36%);
}

.app-card::after {
  content: "";
  position: absolute;
  inset: auto -60px -90px auto;
  width: 220px;
  height: 220px;
  border-radius: var(--radius-pill);
  background: radial-gradient(circle, rgba(13, 139, 120, 0.1), transparent 66%);
  pointer-events: none;
}

.app-card.drishti::after {
  background: radial-gradient(circle, rgba(198, 122, 82, 0.1), transparent 66%);
}

.app-card p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ──────────────────────────────────────────────────────────────────────
   STUDIO + CARD GRIDS
   ────────────────────────────────────────────────────────────────────── */

.studio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.studio-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  box-shadow: var(--shadow-card);
  padding: var(--space-6);
}

.studio-card p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted);
}

.card-list,
.plain-list,
.footer-links {
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
}

.card-list li,
.plain-list li {
  position: relative;
  padding-left: var(--space-4);
  margin-top: var(--space-2);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted);
}

.card-list li::before,
.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--accent);
}

.plain-list a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-decoration-color: rgba(13, 139, 120, 0.32);
  text-underline-offset: 3px;
  transition: text-decoration-color 160ms ease;
}

.plain-list a:hover {
  text-decoration-color: var(--accent-strong);
}

/* ──────────────────────────────────────────────────────────────────────
   PAGE CARDS
   ────────────────────────────────────────────────────────────────────── */

.page-main {
  padding: var(--space-7) 0 var(--space-5);
}

.page-shell {
  display: grid;
  gap: var(--space-5);
}

.page-hero-card {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: var(--space-5);
  align-items: start;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface-strong);
  box-shadow: var(--shadow-card);
  padding: var(--space-7);
}

.page-hero-card::before {
  content: "";
  position: absolute;
  inset: auto auto -100px -60px;
  width: 240px;
  height: 240px;
  border-radius: var(--radius-pill);
  background: radial-gradient(circle, rgba(198, 122, 82, 0.13), transparent 66%);
  pointer-events: none;
}

.page-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  box-shadow: var(--shadow-card);
  padding: var(--space-6);
}

.page-card.dark {
  border-color: rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, #1a2230 0%, #111824 100%);
  color: #f7f2eb;
  box-shadow: var(--shadow-deep);
}

.page-card.dark .eyebrow {
  color: rgba(247, 242, 235, 0.94);
}

.page-card.dark p,
.page-card.dark li {
  color: rgba(247, 242, 235, 0.74);
}

.page-card.dark .plain-list li::before {
  background: rgba(247, 242, 235, 0.7);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}

.info-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  box-shadow: var(--shadow-card);
  padding: var(--space-6);
  transition:
    transform 200ms cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 200ms ease;
}

.info-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-deep);
}

.info-card h3 {
  font-size: 1.375rem;
  line-height: 1.25;
  letter-spacing: -0.018em;
  font-weight: 700;
  margin-top: var(--space-2);
}

.info-card p {
  margin-top: var(--space-3);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted);
}

.info-card .plain-list {
  margin-top: var(--space-3);
}

.app-strip {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, var(--surface-strong) 0%, var(--surface) 100%);
  box-shadow: var(--shadow-card);
  padding: var(--space-6);
}

.app-strip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}

.app-strip article p,
.app-strip article ul {
  margin: 0;
}

.app-strip .plain-list {
  margin-top: var(--space-3);
}

.wide-panel {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: var(--space-5);
  align-items: start;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface-strong);
  box-shadow: var(--shadow-card);
  padding: var(--space-7);
}

.pill-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin: var(--space-5) 0 0;
  padding: 0;
  list-style: none;
}

.pill-list a {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.pill-list a:hover,
.pill-list a:focus-visible {
  border-color: var(--accent);
  background: var(--accent-tint);
  transform: translateY(-1px);
  outline: none;
}

.pill-list a span {
  color: var(--muted);
  font-weight: 400;
}

/* ──────────────────────────────────────────────────────────────────────
   FOOTER
   ────────────────────────────────────────────────────────────────────── */

.footer {
  padding: var(--space-9) 0 var(--space-7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  gap: var(--space-5);
}

.footer-panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface-strong);
  box-shadow: var(--shadow-card);
  padding: var(--space-7);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}

.footer-columns h3 {
  margin: 0 0 var(--space-3);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text);
  text-transform: none;
}

.footer-links {
  display: grid;
  gap: var(--space-2);
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 160ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--accent-strong);
  outline: none;
}

.copyright {
  margin-top: var(--space-6);
  color: var(--muted-soft);
  font-size: 0.8125rem;
}

/* ──────────────────────────────────────────────────────────────────────
   REVEAL ANIMATION
   ────────────────────────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: reveal-up 700ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.reveal.delay-1 {
  animation-delay: 80ms;
}

.reveal.delay-2 {
  animation-delay: 160ms;
}

.reveal.delay-3 {
  animation-delay: 240ms;
}

@keyframes reveal-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ──────────────────────────────────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────────────────────────────────── */

@media (max-width: 980px) {
  .hero-grid,
  .section-head,
  .wide-panel,
  .page-hero-card,
  .footer-grid,
  .card-grid,
  .studio-grid,
  .footer-columns,
  .app-strip-grid {
    grid-template-columns: 1fr;
  }

  .app-grid,
  .pill-list {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: var(--space-7) 0 var(--space-5);
  }
}

@media (max-width: 720px) {
  .site-header .shell {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--space-3);
  }

  .top-nav {
    width: 100%;
  }

  .top-nav a {
    flex: 1 1 auto;
    min-width: 0;
  }

  .hero {
    padding: var(--space-6) 0 var(--space-5);
  }

  .hero-copy,
  .hero-panel,
  .page-hero-card,
  .page-card,
  .wide-panel,
  .footer-panel,
  .app-card,
  .studio-card,
  .app-strip {
    padding: var(--space-5);
  }

  .action-row {
    flex-direction: column;
    align-items: stretch;
  }

  .action-row .button,
  .action-row .ghost-button {
    width: 100%;
  }

  .info-card,
  .footer-panel {
    padding: var(--space-5);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .app-card:hover,
  .info-card:hover {
    transform: none;
  }
}
