/*
 * Tivro landing page
 * Aesthetic mirrors the app: bg #0F0F1A, text #F0EFE8, accent #D4A838,
 * growth #2D7A5F, 8px grid, generous whitespace, large calm type.
 * No build step. One web font (Hanken Grotesk) loaded in index.html.
 */

:root {
  --bg: #0f0f1a;
  --surface: #1a1a27;
  --surface-high: #222232;
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.12);

  --text: #f0efe8;
  --text-secondary: #9a99b0;
  --text-tertiary: #5a5970;

  --accent: #d4a838;
  --accent-gold-glow: rgba(212, 168, 56, 0.15);
  --accent-gold-active: rgba(212, 168, 56, 0.08);
  --growth: #2d7a5f;
  --text-gold: #e0b94f;
  --success-sage: #2d7a5f;

  /* 8px spacing grid */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 48px;
  --s-6: 64px;
  --s-8: 96px;
  --s-10: 128px;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --max: 880px;
  --max-narrow: 620px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  --font-display: "Switzer", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  --font-body: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
}

h1,
h2,
h3,
p,
ol,
ul {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

/* ---------- accessibility helpers ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--s-2);
  top: -100px;
  z-index: 100;
  background: var(--surface-high);
  color: var(--text);
  padding: var(--s-1) var(--s-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-hover);
  transition: top 150ms var(--ease);
}
.skip-link:focus {
  top: var(--s-2);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- texture & atmospheric glow ---------- */
/* A barely-there warm vignette + grain so the dark field is not flat. */
.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      120% 80% at 50% -10%,
      rgba(212, 168, 56, 0.08),
      transparent 55%
    ),
    radial-gradient(
      100% 60% at 90% 40%,
      rgba(26, 26, 39, 0.6),
      transparent 70%
    ),
    radial-gradient(
      90% 60% at 50% 110%,
      rgba(45, 122, 95, 0.07),
      transparent 60%
    );
}

/* Atmospheric particles on page background */
.page-particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.page-particle {
  position: absolute;
  background: var(--text);
  border-radius: 50%;
  opacity: 0.04;
  pointer-events: none;
}

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--s-3);
  padding-right: var(--s-3);
}
.container.narrow {
  max-width: var(--max-narrow);
}

main {
  position: relative;
  z-index: 1;
}

.site-header {
  position: relative;
  z-index: 2;
  padding-top: var(--s-3);
  padding-bottom: var(--s-3);
  width: 100%;
}
.wordmark {
  font-family: "Clash Display", var(--font-display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.04em;
  text-transform: lowercase;
  color: var(--text);
  transition: opacity 150ms var(--ease), transform 150ms var(--ease);
}
.wordmark:hover {
  opacity: 0.8;
  transform: translateY(-0.5px);
}
.wordmark:active {
  transform: translateY(0.5px);
}

.header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #1a1408;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  padding: 8px 16px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: 
    background-color 150ms var(--ease), 
    transform 150ms var(--ease);
}

.btn-nav:hover {
  background: #e0b94f;
}

.btn-nav:active {
  transform: translateY(1px);
}

.section {
  padding-top: var(--s-8);
  padding-bottom: var(--s-8);
  position: relative;
}

/* A hairline between major sections, very faint. */
.section + .section,
.section-waitlist {
  border-top: 1px solid var(--border);
}

/* ---------- hero ---------- */
.hero {
  padding-top: var(--s-5);
  padding-bottom: var(--s-5);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--s-6);
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  perspective: 1000px;
}

.eyebrow,
.section-eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-3);
}

.hero-line {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: var(--s-4);
  max-width: 16ch;
}

.hero-sub {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 46ch;
  margin-bottom: var(--s-5);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-3);
}

/* ---------- buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #1a1408;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  padding: 14px var(--s-3);
  min-height: 48px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    transform 150ms var(--ease),
    background-color 150ms var(--ease),
    opacity 150ms var(--ease);
}
.btn-primary:hover {
  background: #e0b94f;
}
.btn-primary:active {
  transform: translateY(1px);
}
.btn-primary[disabled] {
  opacity: 0.5;
  cursor: default;
}

.btn-block {
  width: 100%;
  margin-top: var(--s-1);
}

.btn-quiet {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--text-secondary);
  font-size: 1rem;
  border-bottom: 1px solid transparent;
  transition: color 150ms var(--ease);
}
.btn-quiet:hover {
  color: var(--text);
}

/* ---------- section type ---------- */
.section-heading {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: var(--s-3);
  max-width: 22ch;
}

.section-lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 54ch;
  margin-bottom: var(--s-3);
}

/* ---------- the loop ---------- */
.loop-list {
  list-style: none;
  padding: 0;
  margin-top: var(--s-6);
  display: grid;
  gap: var(--s-2);
}
@media (min-width: 720px) {
  .loop-list {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-3);
  }
}

.loop-step {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  padding: var(--s-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 200ms var(--ease);
}
.loop-step:hover {
  border-color: var(--border-hover);
}

.loop-index {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding-top: 4px;
  font-variant-numeric: tabular-nums;
}

.loop-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: var(--s-1);
}

.loop-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ---------- witness ---------- */
.section-witness {
  text-align: left;
}
.witness-line {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 54ch;
}
.witness-mark {
  color: var(--growth);
  font-size: 1.1em;
  margin: 0 0.15em;
}

/* ---------- waitlist ---------- */
.waitlist-form {
  margin-top: var(--s-5);
  display: grid;
  gap: var(--s-3);
}

.field {
  display: grid;
  gap: var(--s-1);
}

.field label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: var(--s-1);
}
.field-optional {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-tertiary);
}

.field input,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius);
  padding: 14px var(--s-2);
  transition:
    border-color 150ms var(--ease),
    background-color 150ms var(--ease);
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-tertiary);
}
.field input:hover,
.field textarea:hover {
  border-color: rgba(255, 255, 255, 0.18);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-high);
}
.field input[aria-invalid="true"] {
  border-color: #7a4a4a;
}

.field-error {
  font-size: 0.9rem;
  color: #c98a8a;
  margin-top: 2px;
}

.form-status {
  font-size: 0.95rem;
  color: var(--text-secondary);
  min-height: 1.2em;
}
.form-status[data-state="error"] {
  color: #c98a8a;
}

/* success */
.waitlist-success {
  margin-top: var(--s-5);
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.success-line {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: var(--s-1);
}
.success-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* Founder note — a signed, human aside that earns trust before the ask. */
.founder-note {
  margin: var(--s-4) 0 var(--s-2);
  padding: var(--s-3) var(--s-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius);
}
.founder-note-body {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  font-style: italic;
  color: var(--text-secondary);
}
.founder-note-sign {
  margin-top: var(--s-2);
  font-size: 0.9rem;
  font-style: normal;
  color: var(--text-tertiary);
}

/* Founding-member perk — promoted from a whisper to a quiet, visible card. */
.founding-card {
  margin-top: var(--s-4);
  display: grid;
  gap: var(--s-1);
  padding: var(--s-3);
  background: var(--accent-gold-active);
  border: 1px solid rgba(212, 168, 56, 0.22);
  border-radius: var(--radius);
}
.founding-badge {
  justify-self: start;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.founding-card-text {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* A quiet mid-page CTA so the form is never a six-section scroll away. */
.cta-inline {
  margin-top: var(--s-6);
  display: flex;
  justify-content: center;
}

.waitlist-count {
  margin-top: var(--s-2);
  font-size: 0.9rem;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-top: var(--s-6);
  padding-bottom: var(--s-6);
  position: relative;
  z-index: 1;
}
.footer-wordmark {
  font-family: "Clash Display", var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.04em;
  text-transform: lowercase;
  color: var(--text);
}
.footer-line {
  margin-top: var(--s-1);
  font-size: 0.95rem;
  color: var(--text-tertiary);
}

/* ---------- reveal-on-scroll motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 600ms var(--ease),
    transform 600ms var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Honor reduced motion: no transforms, no smooth scroll, content always shown. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn-primary,
  .btn-quiet,
  .loop-step,
  .field input,
  .field textarea {
    transition: none;
  }
}

/* If JS never runs, content must still be visible. */
.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* ---------- small screens ---------- */
@media (max-width: 600px) {
  body {
    font-size: 17px;
  }
  .section {
    padding-top: var(--s-6);
    padding-bottom: var(--s-6);
  }
  .hero {
    padding-top: var(--s-6);
    padding-bottom: var(--s-6);
  }
  .loop-step {
    padding: var(--s-3);
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-quiet {
    justify-content: center;
  }
}

/* ---------- mobile: hero stacks ---------- */
@media (max-width: 767px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--s-4);
  }
}

/* ---------- device mockup & simulator ---------- */
.device-mockup {
  width: 310px;
  height: 610px;
  background: var(--bg);
  border: 8px solid #0d0d15;
  border-radius: 36px;
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.65), 
    inset 0 0 12px rgba(255, 255, 255, 0.05);
  outline: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 12px 20px 24px 20px;
  box-sizing: border-box;
  z-index: 1;
}

/* Phone notch / dynamic island */
.device-notch {
  width: 80px;
  height: 18px;
  background: #0d0d15;
  border-radius: 0 0 10px 10px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.device-notch::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #1c1c28;
  right: 16px;
  top: 7px;
}

/* Atmospheric glow in mockup background */
.device-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 30%, rgba(212, 168, 56, 0.05), transparent 70%);
}

.device-header {
  height: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  margin-top: 8px;
  margin-bottom: 16px;
  padding-bottom: 4px;
}

.device-day {
  color: var(--text-secondary);
}

.device-streak {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-secondary);
}

.device-streak-star {
  color: var(--accent);
  font-size: 11px;
}

.device-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

/* Mock Mission Card */
.mock-mission-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: 
    background-color 400ms var(--ease), 
    border-color 400ms var(--ease), 
    opacity 400ms var(--ease),
    transform 400ms var(--ease);
  min-height: 240px;
  justify-content: space-between;
  box-sizing: border-box;
}

.mock-mission-card.completed {
  opacity: 0.85;
  background: var(--surface);
  border-color: var(--border);
}

.mock-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.mock-card-cap {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 400ms var(--ease);
}

.mock-mission-card.completed .mock-card-cap {
  color: var(--growth);
}

.mock-card-pips {
  display: flex;
  gap: 4px;
}

.mock-card-pip {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--surface-high);
}

.mock-card-pip.filled {
  background: var(--accent);
  transition: background-color 400ms var(--ease);
}

.mock-mission-card.completed .mock-card-pip.filled {
  background: var(--growth);
}

.mock-card-text {
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.015em;
  transition: color 400ms var(--ease), opacity 400ms var(--ease);
}

.mock-mission-card.completed .mock-card-text {
  color: var(--text-secondary);
}

.mock-card-note {
  font-size: 14px;
  line-height: 1.5;
  font-style: italic;
  color: var(--text-secondary);
  margin-top: 8px;
  margin-bottom: 16px;
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: opacity 400ms var(--ease), height 400ms var(--ease), margin 400ms var(--ease);
}

.mock-mission-card.completed .mock-card-note {
  opacity: 1;
  height: auto;
  margin-top: 12px;
  margin-bottom: 12px;
}

.mock-card-footer {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: auto;
}

/* Hold interaction area */
.mock-hold-area {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.mock-hold-btn {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--surface-high);
  border: 1px solid var(--border);
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  transition: 
    background-color 200ms var(--ease), 
    border-color 200ms var(--ease), 
    transform 150ms var(--ease);
}

.mock-hold-btn:active {
  transform: scale(0.98);
}

.mock-hold-btn.holding {
  background-color: var(--accent-gold-active);
  border-color: rgba(212, 168, 56, 0.3);
}

.mock-hold-btn.completed {
  background-color: transparent;
  border-color: transparent;
  transform: scale(0.9);
  pointer-events: none;
  opacity: 0;
  transition: 
    opacity 300ms var(--ease), 
    transform 300ms var(--ease);
}

.mock-hold-text {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
  text-align: center;
  pointer-events: none;
  opacity: 1;
  transform: none;
  transition: 
    color 200ms var(--ease),
    opacity 250ms var(--ease), 
    transform 250ms var(--ease);
}

.mock-hold-btn.holding .mock-hold-text {
  opacity: 0;
  transform: scale(0.92);
}

/* SVG Progress Ring */
.mock-progress-ring {
  position: absolute;
  top: -1px;
  left: -1px;
  width: 130px;
  height: 130px;
  pointer-events: none;
  transform: rotate(-90deg);
}

.mock-progress-ring-circle {
  fill: transparent;
  stroke: var(--border);
  stroke-width: 2px;
  stroke-dasharray: 389.5; /* 2 * PI * 62 */
  stroke-dashoffset: 389.5;
  transition: stroke 200ms var(--ease);
}

.mock-hold-btn.holding .mock-progress-ring-circle {
  stroke: var(--accent);
}

/* Mockup Particles (4 particles) */
.device-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.device-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--text);
  border-radius: 50%;
  opacity: 0.04;
}

/* Reflection view revealed post-hold */
.mock-reflection-view {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: 
    opacity 600ms var(--ease), 
    transform 600ms var(--ease);
  z-index: 2;
}

.mock-reflection-view.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mock-reflection-eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--growth);
  margin-bottom: 8px;
}

.mock-reflection-text {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 20px;
  max-width: 22ch;
  min-height: 48px;
}

/* Glow effects and animation utilities */
.completion-flash-bg {
  position: absolute;
  inset: 0;
  background: var(--accent);
  opacity: 0;
  z-index: 10;
  pointer-events: none;
  border-radius: 28px;
}

.completion-flash-bg.flash {
  animation: flash-anim 600ms var(--ease) forwards;
}

@keyframes flash-anim {
  0% { opacity: 0.4; }
  20% { opacity: 0.4; }
  100% { opacity: 0; }
}

.pulse-glow {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0;
  pointer-events: none;
}

.mock-hold-btn.holding .pulse-glow {
  animation: pulse-glow-anim 2000ms infinite var(--ease);
}

@keyframes pulse-glow-anim {
  0% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.08); opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}

/* Reset / Replay Trigger button */
.mock-reset-btn {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-tertiary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 200ms var(--ease);
}

.mock-reset-btn:hover {
  color: var(--text-secondary);
}

/* Typewriter cursor effect */
.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 15px;
  background-color: var(--accent);
  margin-left: 2px;
  animation: blink 1s step-end infinite;
  vertical-align: middle;
}

@keyframes blink {
  from, to { background-color: transparent }
  50% { background-color: var(--accent) }
}

/* ---------- brand logo, header, & footer updates ---------- */
.header-logo-container {
  display: flex;
  align-items: center;
  gap: var(--s-1);
}

.site-logo {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--s-3);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-attribution {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 4px;
}

.footer-attribution a {
  color: var(--text-secondary);
  border-bottom: 1px dashed var(--text-tertiary);
  transition: color 150ms var(--ease), border-color 150ms var(--ease);
}

.footer-attribution a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.footer-links {
  display: flex;
  gap: var(--s-3);
  margin-top: 4px;
}

.footer-link {
  font-size: 14px;
  color: var(--text-tertiary);
  transition: color 150ms var(--ease);
}

.footer-link:hover {
  color: var(--text-secondary);
}

/* Philosophy Section Layout */
.section-philosophy {
  text-align: left;
}

.section-philosophy strong {
  color: var(--accent);
  font-weight: 500;
}

@media (max-width: 600px) {
  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-4);
  }
  .footer-links {
    flex-direction: column;
    gap: var(--s-2);
    margin-top: 0;
  }
}

/* ---------- very small phones (≤ 360px) ---------- */
@media (max-width: 360px) {
  .container {
    padding-left: var(--s-2);
    padding-right: var(--s-2);
  }
  .device-mockup {
    width: 284px;
    height: 558px;
    border-radius: 30px;
  }
}
