/* 
  Scarlet Landing Page CSS
  Concept: Centered with Context
  Constraint: No Frameworks, purely CSS Custom Properties & Semantic approach.
*/

:root {
  --bg: #f5f3ee;
  --bg-alt: #f0ede6;
  --white: #ffffff;
  --green: #4a7c59;
  --green-dark: #3d7a5c;
  --green-deep: #2d4a3e;
  --green-light: #6a9e78;
  --green-pale: #e8f0eb;
  --text: #1e2d24;
  --text-mid: #3d5245;
  --text-muted: #7a9485;
  --text-hint: #a8b9b0;
  --border: #dde5df;
  --border-dark: #c8d8cc;
  --error: #c0392b;
  --amber: #d97706;
  --amber-pale: #fef7e6;
  
  --font-serif: 'Outfit', system-ui, sans-serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

/* =========================================================================
   COMMON UTILS
========================================================================= */
.eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.eyebrow::before {
  content: '';
  width: 14px;
  height: 1px;
  background-color: var(--green);
}
.stretch-text { justify-content: center; width: 100%; }

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-small {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Scroll reveal variables */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.d-1 { transition-delay: 0.1s; }
.d-2 { transition-delay: 0.2s; }
.d-3 { transition-delay: 0.3s; }

/* =========================================================================
   1. NAVBAR
========================================================================= */
.navbar {
  position: fixed;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 1040px;
  height: 64px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 100px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.02);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px 0 12px;
  z-index: 1000;
  transition: all 0.3s ease;
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo-badge {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--green), var(--amber));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.2);
}
.nav-brand {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  margin-left: 4px;
}
.nav-center {
  display: flex;
  gap: 4px;
}
.nav-link {
  font-size: 15px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 100px;
  transition: all 0.2s ease;
}
.nav-link:hover {
  background: var(--amber-pale);
  color: var(--amber);
  transform: translateY(-1px);
}
.nav-right {
  display: flex;
  gap: 8px;
  align-items: center;
}
.btn-ghost {
  font-size: 15px;
  color: var(--text-mid);
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 100px;
  transition: all 0.2s;
}
.btn-ghost:hover {
  color: var(--text);
  background: var(--bg-alt);
}
.btn-solid {
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  background: linear-gradient(135deg, var(--green), var(--green-light));
  text-decoration: none;
  padding: 10px 24px;
  border-radius: 100px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(74, 124, 89, 0.2);
}
.btn-solid:hover {
  background: linear-gradient(135deg, var(--amber), #f59e0b);
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.3);
  transform: translateY(-1px);
}

/* =========================================================================
   2. HERO
========================================================================= */
.hero {
  padding: 160px 24px 80px;
  position: relative;
  background-image: radial-gradient(circle, #dde5df 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 50%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.hero-content {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 10;
}
.hero-content.text-left {
  align-items: flex-start;
  text-align: left;
}
.justify-start {
  justify-content: flex-start;
}
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  position: relative;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(42px, 6vw, 64px);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 24px;
}
.hero h1 em {
  color: var(--green-light);
  font-style: italic;
}
.hero-sub {
  font-size: 19px;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.75;
  margin-bottom: 40px;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.cta-primary {
  background: var(--green);
  color: var(--white);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}
.cta-primary:hover { background: var(--green-dark); }
.cta-secondary {
  border: 1px solid var(--border-dark);
  color: var(--text-mid);
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 10px;
  transition: background 0.2s;
}
.cta-secondary:hover { background: rgba(0,0,0,0.03); }

/* Flashcard Scene */
.fc-stage {
  position: relative;
  width: 340px;
  height: 400px;
  perspective: 1000px;
  z-index: 5;
}

@keyframes float1 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-8px) rotate(-3deg); }
}
@keyframes float3 {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50% { transform: translateY(-6px) rotate(3deg); }
}
@keyframes floatBadge1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes floatBadge2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.fc-depth {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 22px;
  border: 1px solid var(--border);
}
.fc-depth-1 {
  background: #edf4ef;
  transform: rotate(-2deg);
  z-index: 1;
  animation: float2 6s ease-in-out infinite;
}
.fc-depth-2 {
  background: rgba(106, 158, 120, 0.1);
  transform: rotate(2deg);
  z-index: 2;
  animation: float3 7s ease-in-out infinite;
}
.fc-main {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--white);
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
  z-index: 3;
  padding: 24px;
  display: flex;
  flex-direction: column;
  animation: float1 5s ease-in-out infinite;
  text-align: left;
}
.fc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.fc-pill {
  font-size: 9px;
  text-transform: uppercase;
  font-weight: 600;
  background: var(--bg-alt);
  color: var(--text-mid);
  padding: 4px 8px;
  border-radius: 20px;
}
.fc-dots { display: flex; gap: 4px; }
.fcd { width: 6px; height: 6px; border-radius: 50%; }
.fcd.done { background: var(--green); }
.fcd.curr { background: var(--green-light); }
.fcd.empt { background: var(--border); }

.fc-label {
  font-size: 9px;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.hint-txt { color: var(--text-hint); }

.fc-q {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 20px;
}
.fc-div {
  height: 1px;
  background: var(--border);
  margin-bottom: 20px;
}
.fc-a {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: auto;
}
.fc-ratings {
  display: flex;
  gap: 6px;
  margin-top: 24px;
  margin-bottom: 16px;
}
.fcr {
  flex: 1;
  font-size: 10px;
  font-weight: 500;
  text-align: center;
  padding: 8px 0;
  border-radius: 6px;
}
.fcr-1 { background: #fdf3f2; color: var(--error); }
.fcr-2 { background: #fef7e6; color: #d97706; }
.fcr-3 { background: var(--green-pale); color: var(--green); }
.fcr-4 { background: var(--green); color: var(--white); }

.fc-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}
.pulse-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(74, 124, 89, 0.4);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 124, 89, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(74, 124, 89, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 124, 89, 0); }
}
.fc-footer-text {
  font-size: 10px;
  color: var(--text-hint);
}

.fl-badge {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  z-index: 4;
  text-align: left;
  white-space: nowrap;
}
.fl-b-l { left: -140px; top: 80px; animation: floatBadge1 4s ease-in-out infinite; }
.fl-b-r { right: -160px; bottom: 100px; animation: floatBadge2 6s ease-in-out infinite; }
.fl-icon { font-size: 16px; }
.fl-text strong { display: block; font-size: 13px; font-weight: 600; color: var(--text); }
.fl-text small { display: block; font-size: 11px; color: var(--text-hint); }

/* =========================================================================
   3. MARQUEE STRIP
========================================================================= */
.marquee {
  width: 100%;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  overflow: hidden;
  display: flex;
  white-space: nowrap;
}
.marquee-content {
  display: flex;
  align-items: center;
  gap: 24px;
  animation: scroll 30s linear infinite;
}
.marquee-item {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 24px;
}
.marquee-dot {
  width: 4px; height: 4px;
  background: var(--green);
  border-radius: 50%;
}
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =========================================================================
   4. VALUE PROPS (Alternating)
========================================================================= */
.props-section {
  padding-top: 64px;
  padding-bottom: 64px;
}
.value-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.value-row:nth-child(even) {
  flex-direction: row-reverse;
}
.vr-text {
  flex: 1;
  padding: 64px 48px;
}
.vr-visual {
  flex: 1;
  padding: 64px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  position: relative;
}
.vr-visual::before {
  content: '';
  position: absolute;
  top: 40px; bottom: 40px; left: 20px; right: 20px;
  background: var(--bg-alt);
  border-radius: 24px;
  z-index: 0;
  border: 1px solid var(--border);
}
.vr-visual > * {
  position: relative;
  z-index: 1;
}
.value-row:nth-child(even) .vr-visual::before {
  left: 20px; right: 20px;
}
.vr-num {
  font-family: var(--font-serif);
  font-size: 48px;
  color: var(--border-dark);
  line-height: 1;
  margin-bottom: 16px;
}
.vr-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 16px;
}
.vr-title em {
  color: var(--green-light);
  font-style: italic;
}
.vr-desc {
  font-size: 18px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 420px;
}

/* Visualization Mini Components */
.vis-cards { display: flex; gap: 16px; }
.v-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  width: 140px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}
.card-offset { transform: translateY(20px); }
.vc-val { font-family: var(--font-serif); font-size: 32px; font-weight: 500; line-height: 1; margin-bottom: 4px; }
.vc-val.c-green { color: var(--green); }
.vc-val.c-amber { color: #d97706; }
.vc-lbl { font-size: 11px; color: var(--text-hint); text-transform: uppercase; margin-bottom: 12px; display: block; }
.vc-bar-bg { height: 4px; border-radius: 2px; background: var(--border); width: 100%; }
.vc-bar-fill { height: 100%; border-radius: 2px; }
.bg-green { background: var(--green); }
.bg-amber { background: #d97706; }
.bg-error { background: var(--error); }
.width-89 { width: 89%; }
.width-60 { width: 60%; }
.width-72 { width: 72%; }
.width-58 { width: 58%; }
.width-45 { width: 45%; }
.c-error { color: var(--error); }

.vis-bars { width: 100%; max-width: 320px; display: flex; flex-direction: column; gap: 16px; }
.vb-item { background: var(--white); border: 1px solid var(--border); padding: 16px; border-radius: 10px; }
.vb-top { display: flex; justify-content: space-between; font-size: 12px; font-weight: 500; margin-bottom: 8px; }

.compact-card { width: 240px; }
.mb-mini { margin-bottom: 4px; }
.c-title { font-family: var(--font-serif); font-size: 14px; margin-bottom: 12px; }
.c-flex { display: flex; gap: 4px; }
.mini-pill { font-size: 9px; padding: 4px; }


/* =========================================================================
   5. HOW IT WORKS
========================================================================= */
.how-band {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
}
.how-grid {
  display: flex;
  gap: 24px;
}
.hg-cell {
  flex: 1;
  padding: 40px 32px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: transform 0.4s;
}
.hg-cell:nth-child(even) {
  transform: translateY(40px);
}
.hg-cell:hover {
  transform: translateY(-8px);
}
.hg-cell:nth-child(even):hover {
  transform: translateY(32px);
}
.hg-num {
  font-family: var(--font-serif);
  font-size: 36px;
  color: var(--border-dark);
  transition: color 0.5s ease;
  margin-bottom: 16px;
  line-height: 1;
}
.hg-num.active { color: var(--green); }
.hg-ttl { font-size: 18px; font-weight: 500; color: var(--text); margin-bottom: 8px; }
.hg-desc { font-size: 15px; font-weight: 300; color: var(--text-muted); line-height: 1.6; }

/* =========================================================================
   6. FEATURES GRID
========================================================================= */
.features-sec { padding: 100px 0; }
.f-grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.f-grid-container.bento-grid {
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(280px, auto);
}
.f-cell {
  background: var(--bg-alt);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  border-radius: 16px;
  border: 1px solid var(--border);
}
.f-cell:hover {
  background: var(--white);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.05);
}
.bento-span-2 { grid-column: span 2; }
.bento-tall { grid-row: span 2; }
.f-icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: var(--white);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.f-icon svg { stroke: var(--green); stroke-width: 1.75px; width: 18px; height: 18px; fill: none; }
.f-ttl { font-size: 18px; font-weight: 500; color: var(--text); margin-bottom: 10px; }
.f-desc { font-size: 15px; font-weight: 300; color: var(--text-muted); line-height: 1.65; margin-bottom: 24px; }
.f-pill {
  margin-top: auto;
  align-self: flex-start;
  font-size: 10px; font-weight: 500;
  color: var(--green); background: var(--green-pale);
  padding: 4px 10px; border-radius: 20px;
}

/* =========================================================================
   7. STATS STRIP
========================================================================= */
.stats-strip {
  background: var(--green-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-inner {
  display: flex;
}
.st-cell {
  flex: 1;
  padding: 40px 24px;
  border-right: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}
.st-cell:last-child { border-right: none; }
.st-num { font-family: var(--font-serif); font-size: 36px; color: var(--white); line-height: 1; margin-bottom: 8px;}
.st-lbl { font-size: 12px; color: rgba(255,255,255,0.6); font-weight: 300; }

/* =========================================================================
   8. FINAL CTA
========================================================================= */
.final-cta {
  padding: 120px 24px;
  text-align: center;
}
.final-cta.container {
  padding: 80px 24px 120px;
}
.final-inner {
  max-width: 560px;
  margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
}
.final-banner {
  max-width: 100%;
  background: var(--green-deep);
  border-radius: 24px;
  padding: 80px 40px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.final-banner .final-title, .final-banner .final-sub {
  color: var(--white);
}
.final-banner .final-title em { color: var(--green-light); }
.final-banner .banner-eyebrow { color: var(--green-light); }
.final-banner .banner-eyebrow::before { background-color: var(--green-light); }
.final-banner .final-hint { color: rgba(255,255,255,0.6); }
.final-banner .cta-secondary { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); color: white;}
.final-banner .cta-secondary:hover { background: rgba(255,255,255,0.2); }

.mb-cta { margin-bottom: 20px; }
.final-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 48px);
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 16px;
}
.final-title em { color: var(--green-light); font-style: italic; }
.final-sub { font-size: 18px; font-weight: 300; color: var(--text-muted); margin-bottom: 32px; max-width: 420px; }
.final-hint { font-size: 12px; color: var(--text-hint); margin-top: 16px; }
.btn-cta { padding: 16px 36px; border-radius: 10px; }
.btn-cta2 { border-radius: 10px; }


/* =========================================================================
   9. FOOTER
========================================================================= */
.footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.ft-inner {
  display: flex; justify-content: space-between; align-items: center;
}
.ft-logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-serif); font-size: 16px; font-weight: 600; color: var(--text); text-decoration: none;}
.ft-s { width: 24px; height: 24px; background: var(--green); color: white; display: flex; align-items: center; justify-content: center; border-radius: 6px; font-size: 13px; font-weight: 400;}
.ft-links { display: flex; gap: 24px; }
.ft-link { font-size: 13px; color: var(--text-hint); text-decoration: none; transition: color 0.2s; }
.ft-link:hover { color: var(--green); }
.ft-copy { font-size: 12px; color: var(--text-hint); }


/* =========================================================================
   RESPONSIVE
========================================================================= */
@media (max-width: 960px) {
  .hero-split { flex-direction: column; text-align: center; gap: 60px; }
  .hero-content.text-left { align-items: center; text-align: center; }
  .justify-start { justify-content: center; }
  
  .value-row, .value-row:nth-child(even) { flex-direction: column; }
  .vr-text, .vr-visual { width: 100%; border-left: none !important; border-right: none !important; padding: 48px 24px; }
  .vr-visual::before { top: 0; bottom: 0; left: 0; right: 0; border-radius: 0; }
  
  .how-grid { flex-wrap: wrap; }
  .hg-cell { flex: 1 1 100%; border-right: none; border-bottom: none; transform: translateY(0) !important; margin-bottom: 16px; }
  .hg-cell:hover { transform: translateY(-4px) !important; }

  .f-grid-container.bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-tall { grid-row: auto; }
  .bento-span-2 { grid-column: span 2; }
  
  .st-cell { padding: 32px 16px; }
  .st-num { font-size: 28px; }
}

@media (max-width: 640px) {
  .nav-center { display: none; }
  .nav-right .btn-ghost { display: none; }
  .fl-b-l, .fl-b-r { display: none; }
  
  .hg-cell { flex: 1 1 100%; border-right: none; border-bottom: 1px solid var(--border); }
  .hg-cell:last-child { border-bottom: none; }
  
  .f-grid-container { grid-template-columns: 1fr; }
  
  .stats-inner { flex-direction: column; }
  .st-cell { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 24px;}
  .st-cell:last-child { border-bottom: none; }

  .ft-inner { flex-direction: column; gap: 24px; text-align: center; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas a { width: 100%; justify-content: center; }
}
