/* ============================================================
   The Cycle — Product Update Keynote (client-facing summary)
   RTL · Hebrew · Cycle brand palette · calm, premium, confident
   Vanilla CSS, no build step.
   ============================================================ */

:root {
  --bg: #fbf6ec;          /* cream */
  --bg-2: #f4ece0;
  --surface: #ffffff;
  --surface-2: #fdfaf3;
  --ink: #26314a;
  --ink-soft: rgba(38, 49, 74, 0.74);
  --ink-faint: rgba(38, 49, 74, 0.48);
  --ink-line: rgba(38, 49, 74, 0.10);
  --ink-line-2: rgba(38, 49, 74, 0.16);

  --accent: #c46a47;      /* WCAG-safe brand orange */
  --accent-deep: #a9542f;
  --accent-soft: #f6e6dd;
  --accent-tint: #fcf2ec;

  --mint: #1f5a36;        /* success / done */
  --mint-soft: #d8ebd9;
  --mint-tint: #eef6ee;

  --gold: #b07a1a;
  --gold-soft: #f8edd2;

  --shadow-xs: 0 1px 2px rgba(38, 49, 74, 0.05);
  --shadow-sm: 0 2px 8px rgba(38, 49, 74, 0.06);
  --shadow-md: 0 8px 26px rgba(38, 49, 74, 0.08);
  --shadow-lg: 0 18px 48px rgba(38, 49, 74, 0.12);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;

  --maxw: 1120px;
  --maxw-narrow: 860px;

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

* { box-sizing: border-box; }

html {
  /* NOTE: deliberately NOT using `scroll-behavior: smooth` here.
     On long pages it caused Chrome to abort programmatic scrolls
     (anchor jumps stalled near the top). Smooth scrolling is handled
     in app.js with a manual animation that is immune to that. */
  scroll-padding-top: 88px;
  overflow-anchor: none;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Heebo", "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI",
               "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Soft, warm background wash that anchors the cream palette */
body {
  min-height: 100vh;
  background-image:
    radial-gradient(1100px 540px at 88% -8%, rgba(196, 106, 71, 0.08), transparent 60%),
    radial-gradient(900px 520px at 0% 0%, rgba(31, 90, 54, 0.05), transparent 55%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.018em;
  line-height: 1.18;
}

p { margin: 0; }

a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--accent-soft); color: var(--accent-deep); }

/* ===== Top navigation ============================================ */

.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 246, 236, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--ink-line);
}

.topnav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 13px 28px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
  flex-shrink: 0;
}

.brand-dot {
  width: 26px; height: 26px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 4px 12px rgba(196, 106, 71, 0.35);
  display: grid; place-items: center;
  position: relative;
}
.brand-dot::after {
  content: "";
  width: 11px; height: 11px;
  border: 2.5px solid #fff;
  border-radius: 999px;
  border-inline-end-color: transparent;
  transform: rotate(-20deg);
}

.brand small {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
  margin-top: -3px;
}

.nav-links {
  margin-inline-start: auto;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 600;
  padding: 8px 13px;
  border-radius: 999px;
  transition: color 160ms var(--ease), background 160ms var(--ease);
}
.nav-links a:hover { color: var(--ink); background: var(--bg-2); text-decoration: none; }
.nav-links a.is-active { color: var(--accent-deep); background: var(--accent-tint); }

.nav-toggle {
  display: none;
  margin-inline-start: auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--ink-line);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}

/* ===== Layout shells ============================================ */

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

section { scroll-margin-top: 88px; }

/* ===== Hero ===================================================== */

.hero {
  padding: 76px 0 28px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px 7px 14px;
  background: var(--surface);
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  box-shadow: var(--shadow-xs);
  margin-bottom: 26px;
}
.eyebrow .pulse {
  width: 9px; height: 9px; border-radius: 999px;
  background: var(--mint);
  position: relative;
}
.eyebrow .pulse::after {
  content: "";
  position: absolute; inset: -5px;
  border-radius: 999px;
  border: 1.5px solid var(--mint);
  opacity: 0.5;
  animation: ring 2.4s var(--ease) infinite;
}
@keyframes ring {
  0% { transform: scale(0.6); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

.hero h1 {
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 16ch;
  margin: 0 auto 22px;
}
.hero h1 .hl {
  color: var(--accent-deep);
  position: relative;
  white-space: nowrap;
}
.hero h1 .hl::after {
  content: "";
  position: absolute;
  inset-inline: -2px;
  bottom: 0.08em;
  height: 0.30em;
  background: var(--accent-soft);
  border-radius: 4px;
  z-index: -1;
}

.hero-lede {
  font-size: clamp(17px, 2.3vw, 21px);
  color: var(--ink-soft);
  max-width: 64ch;
  margin: 0 auto 30px;
  line-height: 1.62;
}

.hero-meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  justify-content: center;
}
.hero-meta .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  box-shadow: var(--shadow-xs);
}
.hero-meta .pill b { color: var(--ink); font-weight: 800; }
.hero-meta .pill .ic { color: var(--accent); font-size: 16px; line-height: 1; }

/* ===== Stat cards =============================================== */

.stats {
  padding: 40px 0 16px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.stat {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}
.stat::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 4px;
  background: var(--accent);
  opacity: 0.85;
}
.stat.mint::before { background: var(--mint); }
.stat.gold::before { background: var(--gold); }
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.stat-num {
  font-size: clamp(40px, 5vw, 54px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent-deep);
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.stat.mint .stat-num { color: var(--mint); }
.stat.gold .stat-num { color: var(--gold); }
.stat-num .unit { font-size: 0.42em; font-weight: 700; color: inherit; opacity: 0.85; letter-spacing: 0; }
.stat-label {
  margin-top: 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
}
.stat-sub {
  margin-top: 4px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.45;
}

/* ===== Section heading ========================================= */

/* padding-block only so it never clobbers .wrap's horizontal gutters
   when both classes are on the same element. */
.section-pad { padding-block: 56px; }

.sec-head {
  max-width: var(--maxw-narrow);
  margin: 0 0 34px;
}
.sec-head.center { margin-inline: auto; text-align: center; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 12px;
}
.kicker::before {
  content: "";
  width: 22px; height: 2.5px;
  background: var(--accent);
  border-radius: 3px;
}
.sec-head.center .kicker { justify-content: center; }
.sec-head.center .kicker::before { display: none; }

.sec-head h2 {
  font-size: clamp(27px, 3.6vw, 38px);
  letter-spacing: -0.025em;
}
.sec-head p {
  margin-top: 14px;
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 62ch;
  line-height: 1.6;
}
.sec-head.center p { margin-inline: auto; }

/* ===== Theme cards (overview grid) ============================= */

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

.theme-card {
  display: flex;
  flex-direction: column;
  text-align: start;
  background: var(--surface);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease);
  cursor: pointer;
  width: 100%;
}
.theme-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--ink-line-2);
  text-decoration: none;
}
.theme-ic {
  width: 50px; height: 50px;
  border-radius: 14px;
  background: var(--accent-tint);
  color: var(--accent-deep);
  display: grid; place-items: center;
  font-size: 24px;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.theme-card.mint .theme-ic { background: var(--mint-tint); color: var(--mint); }
.theme-card.gold .theme-ic { background: var(--gold-soft); color: var(--gold); }

.theme-card h3 {
  font-size: 20px;
  margin-bottom: 7px;
  letter-spacing: -0.015em;
}
.theme-card p {
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  flex: 1;
}
.theme-more {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.theme-more .arr { transition: transform 200ms var(--ease); }
.theme-card:hover .theme-more .arr { transform: translateX(-4px); }

/* ===== Drill-down feature sections ============================= */

.feature {
  border-top: 1px solid var(--ink-line);
}
.feature-inner {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 52px;
  align-items: start;
  /* padding-block only — horizontal gutters come from the .wrap class so
     they aren't clobbered by a `padding` shorthand. */
  padding-block: 64px;
}
.feature:nth-child(even) .feature-inner { direction: ltr; }
.feature:nth-child(even) .feature-aside,
.feature:nth-child(even) .feature-body { direction: rtl; }

.feature-aside { position: sticky; top: 100px; }

.feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin-bottom: 16px;
}
.feature-badge .n {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  display: grid; place-items: center;
  font-size: 14px;
  font-weight: 800;
}

.feature-aside .ficon {
  width: 64px; height: 64px;
  border-radius: 18px;
  display: grid; place-items: center;
  font-size: 30px;
  margin-bottom: 20px;
  background: var(--accent-tint);
  color: var(--accent-deep);
}
.feature.mint .ficon { background: var(--mint-tint); color: var(--mint); }
.feature.gold .ficon { background: var(--gold-soft); color: var(--gold); }

.feature-aside h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.value-box {
  background: var(--surface);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-xs);
  margin-top: 4px;
}
.value-box .vl {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 7px;
  display: flex; align-items: center; gap: 7px;
}
.feature.mint .value-box .vl { color: var(--mint); }
.feature.gold .value-box .vl { color: var(--gold); }
.value-box p {
  font-size: 15.5px;
  color: var(--ink);
  line-height: 1.58;
}

/* highlight list */
.hl-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hl-list li {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-md);
  padding: 17px 20px 17px 18px;
  padding-inline-start: 54px;
  font-size: 16.5px;
  color: var(--ink);
  line-height: 1.55;
  box-shadow: var(--shadow-xs);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), border-color 180ms var(--ease);
}
.hl-list li:hover {
  transform: translateX(-3px);
  box-shadow: var(--shadow-sm);
  border-color: var(--ink-line-2);
}
.hl-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 18px;
  top: 18px;
  width: 24px; height: 24px;
  border-radius: 999px;
  background: var(--mint-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231f5a36' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* secure variant — for security section, lock glyph */
.feature.lock .hl-list li::before {
  background-color: var(--mint-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%231f5a36' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
}

/* ===== Closing — status ======================================== */

.closing {
  background:
    linear-gradient(180deg, rgba(38, 49, 74, 0) 0%, rgba(38, 49, 74, 0.02) 100%);
  border-top: 1px solid var(--ink-line);
}

.status-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: stretch;
}

.panel {
  border-radius: var(--radius-xl);
  padding: 36px 36px;
}
.panel-now {
  background: linear-gradient(160deg, #2b3650 0%, #232d44 100%);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.panel-now h3 {
  color: #fff;
  font-size: 24px;
  margin-bottom: 8px;
}
.panel-now .lede {
  color: rgba(255,255,255,0.78);
  font-size: 16px;
  margin-bottom: 24px;
  line-height: 1.55;
}
.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 15.5px;
  font-weight: 700;
  color: #fff;
}
.status-chip .dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: #7fd6a0;
  box-shadow: 0 0 0 4px rgba(127, 214, 160, 0.18);
}

.panel-road {
  background: var(--surface);
  border: 1px solid var(--ink-line);
  box-shadow: var(--shadow-sm);
}
.panel-road h3 {
  font-size: 22px;
  margin-bottom: 6px;
}
.panel-road .lede {
  color: var(--ink-soft);
  font-size: 15.5px;
  margin-bottom: 22px;
}
.road-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.road-list li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.5;
}
.road-list li .rmark {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 8px;
  background: var(--gold-soft);
  color: var(--gold);
  display: grid; place-items: center;
  font-size: 14px;
  font-weight: 800;
  margin-top: 1px;
}
.road-list li small {
  display: block;
  font-size: 13.5px;
  color: var(--ink-faint);
  font-weight: 400;
}

/* ===== Footer ================================================== */

.footer {
  border-top: 1px solid var(--ink-line);
  padding: 40px 0 56px;
  text-align: center;
}
.footer .brand { justify-content: center; margin-bottom: 14px; }
.footer p {
  font-size: 14px;
  color: var(--ink-faint);
  line-height: 1.6;
}
.footer .sep { margin: 0 8px; opacity: 0.5; }

/* ===== Entrance animation ====================================== */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* stagger children */
.stagger > * { transition-delay: var(--d, 0ms); }

/* ===== Responsive ============================================== */

@media (max-width: 980px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .themes-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-inner { grid-template-columns: 1fr; gap: 30px; padding-block: 52px; }
  .feature:nth-child(even) .feature-inner { direction: rtl; }
  .feature-aside { position: static; }
  .status-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  html { font-size: 16.5px; scroll-padding-top: 72px; }
  .wrap { padding: 0 18px; }
  .topnav-inner { padding: 11px 18px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    inset-inline: 12px;
    top: 60px;
    flex-direction: column;
    gap: 4px;
    background: var(--surface);
    border: 1px solid var(--ink-line);
    border-radius: var(--radius-md);
    padding: 10px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open a { padding: 11px 14px; }
  .nav-toggle { display: inline-block; }
  .hero { padding: 48px 0 18px; }
  .stats-grid { grid-template-columns: 1fr; gap: 14px; }
  .themes-grid { grid-template-columns: 1fr; }
  .section-pad { padding-block: 44px; }
  .panel { padding: 28px 24px; }
  .feature-inner { padding-block: 44px; }
  .hl-list li { font-size: 16px; }
}

/* ===== Reduced motion ========================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
