/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #F5F2ED;
  --surface:     #FDFAF6;
  --text:        #2B2B2B;
  --muted:       #7A7974;
  --border:      rgba(43,43,43,0.1);

  --grounding:   #7BAAC2;
  --truth:       #C4825A;
  --momentum:    #D4A84B;
  --permission:  #8BAF8A;

  --font-display: 'Lora', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius-card:  16px;
  --shadow-card:  0 4px 24px rgba(43,43,43,0.08), 0 1px 4px rgba(43,43,43,0.06);
  --shadow-lift:  0 12px 48px rgba(43,43,43,0.12), 0 2px 8px rgba(43,43,43,0.07);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: rgba(245,242,237,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* ── Buttons ── */
.btn-primary {
  display: inline-block;
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  padding: 0.8rem 1.75rem;
  border-radius: 100px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  align-self: flex-start;
}
.btn-primary:hover { opacity: 0.85; transform: translateY(-1px); }

.btn-ghost {
  display: inline-block;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  padding: 0.8rem 1.25rem;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--text); border-color: rgba(43,43,43,0.3); }

/* ── Hero ── */
.hero {
  min-height: 92vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: clamp(4rem, 10vw, 8rem) clamp(1.5rem, 6vw, 6rem);
  max-width: 1280px;
  margin: 0 auto;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.hero-pre {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
}
.hero-headline em {
  font-style: italic;
  color: var(--grounding);
}

.hero-body {
  max-width: 40ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* ── Hero card stack ── */
.hero-cards {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-card {
  position: absolute;
  width: 280px;
  height: 380px;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2rem;
  overflow: hidden;
}

.demo-card--back2 {
  background: #EFF5EF;
  transform: rotate(-4deg) translateY(18px) scale(0.92);
  z-index: 1;
  opacity: 0.6;
}
.demo-card--back1 {
  background: #FBF5E8;
  transform: rotate(2.5deg) translateY(9px) scale(0.96);
  z-index: 2;
  opacity: 0.85;
}
.demo-card--front {
  background: #EDF4F8;
  transform: rotate(-1deg);
  z-index: 3;
  box-shadow: var(--shadow-lift);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.demo-card--front:hover {
  transform: rotate(0deg) translateY(-4px);
}

.demo-card-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 16px 16px 0 0;
  opacity: 0.7;
}

.demo-card-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.5;
  text-align: center;
  color: var(--text);
  max-width: 20ch;
}

.demo-card-dot {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  opacity: 0.4;
}

/* ── Marquee ── */
.cards-section {
  padding: 5rem 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cards-label {
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.marquee-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.55rem 1.25rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text);
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(43,43,43,0.05);
}

.marquee-pip {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  opacity: 0.55;
  flex-shrink: 0;
}

/* ── What section ── */
.what-section {
  padding: clamp(5rem, 10vw, 10rem) clamp(1.5rem, 6vw, 6rem);
  max-width: 1280px;
  margin: 0 auto;
}

.what-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.what-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.what-text h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.what-text p {
  color: var(--muted);
  max-width: 42ch;
  line-height: 1.7;
}

/* ── Sample cards ── */
.what-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.sample-card {
  background: var(--tint, var(--surface));
  border-radius: 14px;
  padding: 1.75rem 1.5rem 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sample-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--bar);
  border-radius: 14px 14px 0 0;
  opacity: 0.7;
}

.sample-card p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text);
}

.sample-dot {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  opacity: 0.35;
}

/* ── Product sections ── */
.product-section {
  padding: clamp(5rem, 10vw, 9rem) clamp(1.5rem, 6vw, 6rem);
  border-top: 1px solid var(--border);
}

.product-section .product-inner,
.product-section .app-visual {
  max-width: 1280px;
  margin: 0 auto;
}

.product-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 9rem) clamp(1.5rem, 6vw, 6rem);
}

.product-section--alt {
  grid-template-columns: 1fr 1fr;
  direction: rtl;
}
.product-section--alt > * { direction: ltr; }

.product-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product-tag {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.product-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.product-inner p {
  color: var(--muted);
  max-width: 44ch;
  line-height: 1.7;
}

.product-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.product-list li {
  font-size: 0.9rem;
  color: var(--muted);
  padding-left: 1.25rem;
  position: relative;
}
.product-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--border);
}

/* ── Deck visual ── */
.deck-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.deck-stack {
  position: relative;
  width: 260px;
  height: 360px;
}

.deck-card {
  position: absolute;
  width: 240px;
  height: 330px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.75rem;
}

.dc-3 { transform: rotate(-6deg) translate(-10px, 14px); z-index: 1; opacity: 0.5; }
.dc-2 { transform: rotate(3.5deg) translate(8px, 8px); z-index: 2; opacity: 0.7; }
.dc-1 { transform: rotate(-2deg) translate(-4px, 4px); z-index: 3; opacity: 0.85; }
.dc-0 { transform: rotate(1deg); z-index: 4; box-shadow: var(--shadow-lift); }

.deck-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 16px 16px 0 0;
  opacity: 0.7;
}

.deck-card-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  text-align: center;
  line-height: 1.55;
  color: var(--text);
}

.deck-dot {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  opacity: 0.35;
}

/* ── Phone mockup ── */
.app-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-frame {
  width: 220px;
  height: 440px;
  background: #1A1A1E;
  border-radius: 36px;
  padding: 14px;
  box-shadow: 0 20px 60px rgba(43,43,43,0.2), 0 4px 16px rgba(43,43,43,0.1), inset 0 0 0 1px rgba(255,255,255,0.08);
  position: relative;
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: rgba(255,255,255,0.12);
  border-radius: 4px;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #080B10;
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 1.5rem 1rem 1rem;
}

.phone-card {
  width: 148px;
  height: 210px;
  background: #0F1C26;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 1.5rem 1rem;
  overflow: hidden;
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}

.phone-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  border-radius: 12px 12px 0 0;
}

.phone-card-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: center;
  color: rgba(220,230,240,0.82);
}

.phone-dot {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  opacity: 0.5;
}

.phone-chrome {
  position: absolute;
  bottom: 0.75rem;
  left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}

.phone-icon {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.2);
}

.phone-swipe-hint {
  font-size: 0.55rem;
  color: rgba(255,255,255,0.15);
  letter-spacing: 0.05em;
}

/* ── Closing ── */
.closing-section {
  padding: clamp(6rem, 12vw, 12rem) clamp(1.5rem, 6vw, 6rem);
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--border);
}

.closing-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  text-align: center;
}

.closing-card {
  width: 280px;
  height: 360px;
  background: #3D3830;
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lift);
  padding: 3rem 2.5rem;
}

.closing-card-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.4;
  color: rgba(245,240,230,0.82);
  text-align: center;
}

.closing-note {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 38ch;
  line-height: 1.7;
}

/* ── Footer ── */
footer {
  padding: 2rem clamp(1.5rem, 6vw, 6rem);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-mark {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1.75rem;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

/* ── Scroll-in animation ── */
/* JS adds .js-loaded to <html>, then .reveal hides elements */
.js-loaded .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.js-loaded .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 4rem;
    gap: 3rem;
  }
  .hero-cards { height: 340px; }
  .demo-card { width: 240px; height: 320px; }

  .what-inner { grid-template-columns: 1fr; gap: 3rem; }
  .what-cards { grid-template-columns: 1fr 1fr; }

  .product-section {
    grid-template-columns: 1fr;
    gap: 3rem;
    direction: ltr;
  }
  .product-section--alt { direction: ltr; }

  .deck-visual,
  .app-visual { justify-content: flex-start; }
}

@media (max-width: 560px) {
  nav { padding: 1rem 1.25rem; }
  .nav-links { display: none; }
  .what-cards { grid-template-columns: 1fr; }
  .demo-card { width: 200px; height: 280px; }
  footer { flex-direction: column; gap: 1rem; align-items: flex-start; }
}
