:root {
  color-scheme: light;

  /* Refined Stationery Palette (Warm Cream & Deep Ink) - Forced Light Mode */
  --paper: oklch(98% 0.012 60);
  --paper-subtle: oklch(96% 0.015 60);
  --paper-deep: oklch(92% 0.025 60);

  --ink: oklch(22% 0.024 60);
  --ink-soft: oklch(42% 0.02 60);

  --accent: oklch(62% 0.16 34);
  --accent-soft: oklch(94% 0.03 34);
  --accent-deep: oklch(48% 0.18 34);

  --line: oklch(0% 0 0 / 0.1);
  --line-strong: oklch(0% 0 0 / 0.2);

  --shadow-sm: 0 2px 8px oklch(0% 0 0 / 0.04);
  --shadow-md: 0 12px 32px -4px oklch(0% 0 0 / 0.08);
  --shadow-lg: 0 24px 64px -12px oklch(0% 0 0 / 0.12);
>>>>>>> fc6ddb3 (Refine GitHub Pages landing page with Gemini.)

  --radius: 32px;
  --radius-sm: 16px;

  --font-display: 'Fraunces', serif;
  --font-body: 'Manrope', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background-color: var(--paper);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(at 0% 0%, var(--accent-soft) 0px, transparent 50%),
    radial-gradient(at 100% 0%, var(--paper-deep) 0px, transparent 50%);
}

/* Subtle Paper Texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.03;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  z-index: 100;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}

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

.page-shell {
  width: min(1280px, 100% - 48px);
  margin: 0 auto;
}

/* --- Header & Navigation --- */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  margin-bottom: clamp(48px, 10vh, 96px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.topnav {
  display: flex;
  gap: 32px;
}

.topnav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
}

.topnav a:hover {
  color: var(--ink);
}

.topbar-action {
  background: var(--ink);
  color: var(--paper);
  padding: 10px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.topbar-action:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* --- Hero Section --- */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 128px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.eyebrow {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-variation-settings: "opsz" 72;
}

.hero-intro {
  font-size: 1.25rem;
  color: var(--ink-soft);
  max-width: 42ch;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.button {
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.button-primary {
  background: var(--accent);
  color: var(--paper);
  box-shadow: var(--shadow-md);
}

.button-primary:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.button-secondary {
  border-color: var(--line-strong);
  color: var(--ink);
}

.button-secondary:hover {
  background: var(--paper-subtle);
  transform: translateY(-2px);
}

/* --- Hero Proof (The Stacked Look) --- */
.hero-proof {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  max-width: 600px;
  perspective: 1000px;
}

.proof-panel {
  position: absolute;
  padding: 24px;
  border-radius: var(--radius-sm);
  background: var(--paper-subtle);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  width: 85%;
  transition: 
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    z-index 0s 0.1s,
    filter 0.4s ease,
    opacity 0.4s ease,
    box-shadow 0.4s ease;
  cursor: pointer;
}

.proof-input {
  top: 0;
  left: 0;
  z-index: 2;
  transform: rotate(-3deg) translateZ(20px);
}

.proof-output {
  bottom: 0;
  right: 0;
  z-index: 1;
  transform: rotate(3deg) translateZ(0);
  background: var(--paper-deep);
}

/* Individual Hover State */
.proof-panel:hover {
  z-index: 10;
  transform: scale(1.05) rotate(0deg) translateZ(50px) !important;
  box-shadow: var(--shadow-lg), 0 0 0 2px var(--accent);
  transition: 
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    z-index 0s,
    filter 0.4s ease,
    opacity 0.4s ease,
    box-shadow 0.4s ease;
}

/* Interaction: Other card recedes */
.hero-proof:has(.proof-output:hover) .proof-input {
  transform: rotate(-10deg) translate(-30px, -10px) scale(0.9);
  opacity: 0.6;
  filter: blur(2px);
  z-index: 1;
}

.hero-proof:has(.proof-input:hover) .proof-output {
  transform: rotate(10deg) translate(30px, 10px) scale(0.9);
  opacity: 0.6;
  filter: blur(2px);
  z-index: 1;
}

.proof-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}

/* Simulated Note UI */
.note-canvas {
  background: white;
  padding: 24px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px var(--line);
}

.note-title {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.note-line {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-top: 12px;
}

.note-link {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 2px;
  color: var(--ink);
}

.floating-tools {
  display: flex;
  gap: 8px;
  background: var(--ink);
  padding: 8px;
  border-radius: 12px;
  margin-top: 24px;
}

.floating-tools span {
  width: 28px;
  height: 28px;
  background: oklch(100% 0 0 / 0.1);
  border-radius: 6px;
  color: white;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
}

.slash-command {
  margin-top: 16px;
  background: var(--accent-soft);
  padding: 12px 16px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.slash-command span { font-weight: 800; color: var(--accent-deep); }
.slash-command small { color: var(--accent-deep); opacity: 0.7; }

/* File Stack UI */
.file-stack pre {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 20px;
  border-radius: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  overflow: hidden;
}

.file-tree {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.file-tree span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
}

/* --- Features Section --- */
.section {
  padding: 128px 0;
}

.section-heading {
  margin-bottom: 64px;
  max-width: 640px;
}

.section-heading h2 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-top: 16px;
}

.proof-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.proof-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.column-kicker {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.proof-column h3 {
  font-size: 1.75rem;
}

.proof-column ul {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.proof-column li {
  position: relative;
  padding-left: 24px;
  color: var(--ink-soft);
}

.proof-column li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

/* --- Workflow Section --- */
.workflow-rail {
  counter-reset: steps;
  display: grid;
  gap: 32px;
}

.workflow-rail li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: start;
  padding: 48px;
  background: var(--paper-subtle);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: transform 0.3s ease;
}

.workflow-rail li:hover {
  transform: scale(1.01);
  background: var(--paper-deep);
}

.step-index {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent-soft);
}

.workflow-rail h3 {
  font-size: 2rem;
  margin-bottom: 16px;
}

/* --- FAQ Section --- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-list details {
  background: var(--paper-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 24px;
}

.faq-list summary {
  list-style: none;
  font-weight: 800;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-list summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  margin-top: 16px;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* --- Footer --- */
.site-footer {
  padding: 96px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-copy strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  display: block;
  margin-bottom: 8px;
}

.footer-copy p {
  color: var(--ink-soft);
  max-width: 32ch;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-copy {
    align-items: center;
  }

  .hero-intro {
    max-width: none;
  }

  .hero-proof {
    aspect-ratio: auto;
    height: 500px;
    max-width: 600px;
    margin: 0 auto;
  }

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

@media (max-width: 768px) {
  .topbar {
    flex-direction: column;
    gap: 24px;
>>>>>>> fc6ddb3 (Refine GitHub Pages landing page with Gemini.)
  }

  .hero-intro {
    max-width: none;
  }

  .hero-proof {
    height: 500px;
    max-width: 600px;
    margin: 0 auto;
  }

  .proof-columns {
    grid-template-columns: 1fr;
    padding: 32px;
    gap: 24px;
  }

  .step-index {
    font-size: 3rem;
  }

  .site-footer {
    flex-direction: column;
    gap: 48px;
    text-align: center;
    align-items: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .hero-proof {
    aspect-ratio: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .proof-panel {
    position: static;
    width: 100%;
    transform: none !important;
  }
}
