/* ============================================================
   ZEKARA INTELLIGENCE — light editorial minimal
   warm off-white · near-black ink · one quiet blue accent
   Inter Tight (display) · Inter (body) · calm, smooth, precise
   ============================================================ */

:root {
  --bg: #FAF9F6;
  --surface: #FFFFFF;
  --surface-soft: #F3F2ED;
  --ink: #161512;
  --text-2: #6E6C64;
  --text-3: #A3A199;
  --hairline: #E8E6DE;
  --hairline-strong: #DBD9D0;
  --accent: #2B4BE0;
  --accent-soft: #EDF0FC;

  --font-display: "Inter Tight", "Helvetica Neue", sans-serif;
  --font-body: "Inter", "Helvetica Neue", sans-serif;

  --r-md: 12px;
  --r-lg: 20px;
  --r-pill: 9999px;

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

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
}

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

html { scroll-behavior: smooth; }

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

::selection { background: var(--ink); color: var(--bg); }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ============ SHARED ============ */
.rule-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: clamp(40px, 6vw, 72px);
}
.rule-head span {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.rule-head::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: var(--r-pill);
  background: var(--accent);
}

.text-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--hairline-strong);
  padding-bottom: 2px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.text-link:hover { color: var(--accent); border-color: var(--accent); }

.pill {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-2);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-pill);
  padding: 6px 14px;
  background: var(--surface);
}
.index {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1;
  padding: 12px 24px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background-color var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
  white-space: nowrap;
}
.btn-lg { padding: 16px 30px; font-size: 15.5px; }
.btn-ink { background: var(--ink); color: #FFFFFF; }
.btn-ink:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(22, 21, 18, 0.18); }
.btn-line { border-color: var(--hairline-strong); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn-quiet { color: var(--text-2); padding: 12px 14px; }
.btn-quiet:hover { color: var(--ink); }
.btn-paper { background: #FFFFFF; color: var(--ink); }
.btn-paper:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28); }
.btn-ghostline { border-color: rgba(255, 255, 255, 0.28); color: #FFFFFF; }
.btn-ghostline:hover { border-color: #FFFFFF; transform: translateY(-1px); }
.btn-block { width: 100%; }

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.site-header.scrolled {
  background: rgba(250, 249, 246, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--hairline);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.wordmark { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); }
.wordmark-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16.5px;
  letter-spacing: -0.01em;
}
.site-nav { display: flex; gap: 32px; }
.site-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--dur) var(--ease);
}
.site-nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 8px; }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 20px; height: 1.5px;
  background: var(--ink);
  transition: transform var(--dur) var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  gap: 48px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms var(--ease), visibility 250ms var(--ease);
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 8vw, 44px);
  letter-spacing: -0.02em;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
  transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}
.mobile-menu nav a:hover { color: var(--accent); padding-left: 8px; }
.mobile-menu-cta { display: flex; flex-direction: column; gap: 10px; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 76px;
  overflow: hidden;
}
#silkCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; }
.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(48px, 9.5vw, 148px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.hero-title .line {
  display: block;
  overflow: hidden;
  /* room for descenders (g, y) inside the clip while keeping lines tight */
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}
.hero-title .line-inner {
  display: block;
  transform: translateY(112%);
  animation: rise 950ms var(--ease) 100ms forwards;
}
.hero-title .line:nth-child(2) .line-inner { animation-delay: 220ms; }
@keyframes rise { to { transform: translateY(0); } }
.title-dot { color: var(--accent); }
.hero-sub {
  max-width: 560px;
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--text-2);
  margin-top: 36px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; }

/* ============ PRODUCT ============ */
.product { padding: clamp(32px, 4.5vw, 64px) 0; }
/* first product sits right under the hero now — give it a little more breathing room on top */
#zekara-ai { padding-top: clamp(48px, 7vw, 96px); }
.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.product-flip .product-grid > .product-copy { order: 2; }
.product-flip .product-grid > .product-visual { order: 1; }

.product-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.product-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.025em;
}
.product-desc { color: var(--text-2); margin-top: 20px; max-width: 54ch; }

.capability-list {
  list-style: none;
  margin-top: 32px;
  border-top: 1px solid var(--hairline);
}
.capability-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--hairline);
}
.capability-list b {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  padding-top: 3px;
}
.capability-list span { font-size: 15px; color: var(--text-2); line-height: 1.55; }
.product-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 36px;
}

/* ---- vignettes (product visuals) ---- */
.product-visual { min-width: 0; }
.vignette {
  position: relative;
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 120% at 20% 0%, #EFF1FB 0%, var(--surface-soft) 55%);
  border: 1px solid var(--hairline);
  padding: clamp(28px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.vignette::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(22, 21, 18, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.vignette-alt {
  background:
    radial-gradient(120% 120% at 80% 0%, #EDF3F0 0%, var(--surface-soft) 55%);
}

/* assistant app card */
.app-card {
  position: relative;
  width: min(440px, 100%);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  box-shadow: 0 24px 60px rgba(22, 21, 18, 0.09);
  overflow: hidden;
}
.app-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--hairline);
}
.app-name { font-weight: 600; font-size: 14px; letter-spacing: -0.01em; }
.app-status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-2);
}
.app-status i {
  width: 7px; height: 7px;
  border-radius: var(--r-pill);
  background: #34A853;
  animation: soft-pulse 2.6s var(--ease) infinite;
}
@keyframes soft-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.app-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.msg { font-size: 13.5px; line-height: 1.55; }
.msg-user {
  align-self: flex-end;
  background: var(--ink);
  color: #FAF9F6;
  border-radius: 14px 14px 4px 14px;
  padding: 10px 14px;
  max-width: 85%;
}
.msg-ai {
  align-self: flex-start;
  background: var(--surface-soft);
  border-radius: 14px 14px 14px 4px;
  padding: 12px 14px;
  max-width: 92%;
  color: var(--ink);
}
.msg-ai ul { list-style: none; margin: 8px 0; display: flex; flex-direction: column; gap: 6px; }
.msg-ai li { display: flex; gap: 8px; align-items: baseline; color: var(--text-2); }
.msg-ai li i {
  font-style: normal;
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
}
.msg-note { color: var(--text-3); font-size: 12.5px; margin-top: 2px; }
.app-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 18px 18px;
}
.app-chips span {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-2);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  padding: 4px 11px;
  background: var(--bg);
}

/* browser / workflow card */
.browser-card {
  position: relative;
  width: min(480px, 100%);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  box-shadow: 0 24px 60px rgba(22, 21, 18, 0.09);
  overflow: hidden;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
}
.browser-bar i {
  width: 9px; height: 9px;
  border-radius: var(--r-pill);
  background: var(--hairline-strong);
}
.browser-bar em {
  font-style: normal;
  font-size: 12px;
  color: var(--text-3);
  margin-left: 10px;
  background: var(--surface-soft);
  border-radius: var(--r-pill);
  padding: 4px 14px;
}
.browser-body {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  padding: 16px;
  min-height: 250px;
}
.ui-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 10px;
  background: var(--surface-soft);
  border-radius: 8px;
}
.ui-line {
  display: block;
  height: 7px;
  border-radius: var(--r-pill);
  background: var(--hairline-strong);
}
.ui-line.active { background: var(--accent); opacity: 0.85; }
.w25 { width: 25%; } .w40 { width: 40%; } .w50 { width: 50%; }
.w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; }
.ui-main {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ui-block {
  position: relative;
  background: var(--surface-soft);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  min-height: 56px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ui-block-top { min-height: 64px; }
.ui-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ui-block-wide { flex: 1; }
.step-badge {
  position: absolute;
  top: -9px; right: -9px;
  width: 22px; height: 22px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(43, 75, 224, 0.35);
}
.step-target-1 .step-badge { animation: badge-in 7s var(--ease) infinite; }
.step-target-2 .step-badge { animation: badge-in 7s var(--ease) 0.9s infinite backwards; }
.step-target-3 .step-badge { animation: badge-in 7s var(--ease) 1.8s infinite backwards; }
@keyframes badge-in {
  0%, 4% { opacity: 0; transform: scale(0.4); }
  10%, 86% { opacity: 1; transform: scale(1); }
  94%, 100% { opacity: 0; transform: scale(0.4); }
}
.guide-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.guide-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 4 7;
  opacity: 0.8;
  animation: dash-flow 1.2s linear infinite;
}
@keyframes dash-flow { to { stroke-dashoffset: -11; } }
.guide-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 16px 16px;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  font-size: 12.5px;
  color: var(--text-2);
}
.guide-dot {
  flex: 0 0 auto;
  width: 8px; height: 8px;
  border-radius: var(--r-pill);
  background: var(--accent);
  animation: soft-pulse 2.2s var(--ease) infinite;
}
#guideText {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 200ms var(--ease);
}

/* ============ FIT ============ */
.fit { padding: clamp(40px, 6vw, 88px) 0 clamp(72px, 10vw, 140px); }
.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.fit-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: clamp(28px, 3.5vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 250ms var(--ease), box-shadow 250ms var(--ease), border-color 250ms var(--ease);
}
.fit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 56px rgba(22, 21, 18, 0.08);
  border-color: var(--hairline-strong);
}
.fit-label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.fit-card h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 2.4vw, 32px);
  letter-spacing: -0.02em;
}
.fit-card p { color: var(--text-2); font-size: 15.5px; }
.fit-card .text-link { margin-top: 10px; align-self: flex-start; }

/* ============ CLOSING ============ */
.closing {
  background: var(--ink);
  color: #FAF9F6;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: clamp(88px, 12vw, 170px) 0;
}
.closing-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}
.closing-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(44px, 7vw, 104px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.closing-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 12px; }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--ink);
  color: #FAF9F6;
  padding: 0 0 32px;
}
.site-footer .wordmark { color: #FAF9F6; }
/* On the dark footer the tile inherits currentColor (paper); flip the Z stroke to ink. */
.site-footer .wordmark-glyph .glyph-z { stroke: var(--ink); }
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 56px;
  flex-wrap: wrap;
  padding-top: 24px;
  padding-bottom: 56px;
  border-top: 1px solid rgba(250, 249, 246, 0.12);
}
.site-footer .footer-top { border-top-color: rgba(250, 249, 246, 0.12); }
.footer-brand { display: flex; flex-direction: column; gap: 16px; max-width: 300px; }
.footer-brand p { color: rgba(250, 249, 246, 0.55); font-size: 15px; }
.footer-cols { display: flex; gap: clamp(40px, 6vw, 88px); flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-head {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250, 249, 246, 0.4);
  margin-bottom: 6px;
}
.footer-col a {
  font-size: 14.5px;
  color: rgba(250, 249, 246, 0.7);
  transition: color var(--dur) var(--ease);
}
.footer-col a:hover { color: #FFFFFF; }
.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid rgba(250, 249, 246, 0.12);
}
.footer-base span { font-size: 13px; color: rgba(250, 249, 246, 0.4); }

/* ============ REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1000px) {
  .product-grid { grid-template-columns: 1fr; gap: 40px; }
  .product-flip .product-grid > .product-copy { order: 1; }
  .product-flip .product-grid > .product-visual { order: 2; }
}

@media (max-width: 880px) {
  .site-nav, .header-actions { display: none; }
  .menu-toggle { display: flex; }
  .fit-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { min-height: 92svh; }
  .capability-list li { grid-template-columns: 1fr; gap: 3px; padding: 12px 0; }
  .capability-list b { padding-top: 0; }
  .footer-base { justify-content: center; text-align: center; }
  .vignette { padding: 20px 16px; }
  .header-inner { height: 64px; }
  .hero { padding-top: 64px; }
}

@media (max-width: 480px) {
  .hero-cta, .product-cta, .closing-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn, .product-cta .btn, .closing-cta .btn { width: 100%; }
  .product-cta { gap: 16px; }
  .product-cta .text-link { align-self: center; }
  .browser-body { grid-template-columns: 64px 1fr; gap: 10px; padding: 12px; min-height: 210px; }
  .app-body { padding: 14px; }
  .app-head { padding: 12px 14px; }
  .app-chips { padding: 0 14px 14px; }
  .guide-chip { margin: 0 12px 12px; }
  .wordmark-text { font-size: 15px; }
  .footer-cols { gap: 32px; }
}

/* ============ 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;
  }
  .hero-title .line-inner { transform: none; }
  .reveal { opacity: 1; transform: none; }
}
