/* main.css — Hutch LP */

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

:root {
  --bg: #f6f5f1;
  --bg-2: #ecebe5;
  --ink: #18181b;
  --ink-2: #46464d;
  --ink-3: #76767e;
  --line: rgba(0, 0, 0, 0.08);
  --card: rgba(255, 255, 255, 0.7);
}

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Hiragino Kaku Gothic ProN", "Helvetica Neue", "Inter", sans-serif;
  font-feature-settings: "palt", "kern";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.005em;
  line-height: 1.55;
}

.page {
  position: relative;
  overflow-x: hidden;
}

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--accent, #5B7CFA);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Section base */
.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 120px 56px;
  position: relative;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}
.kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: inline-block;
}
h2 {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 18px;
  text-wrap: balance;
}
.section-head p {
  font-size: 17px;
  color: var(--ink-2);
  text-wrap: pretty;
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-break: strict;
  max-width: 640px;
  margin: 0 auto;
}

/* ─── Hero ─────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 92vh;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 50% at 78% 18%, rgba(91, 124, 250, 0.18) 0%, transparent 60%),
    radial-gradient(60% 50% at 20% 80%, rgba(220, 200, 255, 0.22) 0%, transparent 60%),
    radial-gradient(50% 40% at 50% 100%, rgba(180, 230, 200, 0.18) 0%, transparent 60%),
    linear-gradient(180deg, #faf9f5 0%, #f3f1ea 100%);
  z-index: 0;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.04) 1px, transparent 0);
  background-size: 24px 24px;
  opacity: 0.5;
}

.hero-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 110px 56px 80px;
  width: 100%;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  background: rgba(255,255,255,0.6);
  border: 0.5px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
}
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; }

.hero-title {
  font-size: clamp(30px, 2.9vw, 46px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.28;
  margin-bottom: 24px;
  padding-bottom: 0.1em;
}
.hero-emph {
  font-style: italic;
  display: inline-block;
  padding: 0.05em 0.32em 0.18em 0.06em;
  margin: 0 0.05em -0.18em -0.06em;
  line-height: 1.32;
  overflow: visible;
}

.hero-lede {
  font-size: 18px;
  color: var(--ink-2);
  line-height: 1.65;
  margin-bottom: 36px;
  text-wrap: pretty;
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-break: strict;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 11px;
  background: var(--accent);
  color: white;
  border: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 6px 16px -4px rgba(91, 124, 250, 0.4), inset 0 1px 0 rgba(255,255,255,0.25);
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -4px rgba(91, 124, 250, 0.5); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 11px;
  background: rgba(255,255,255,0.6);
  border: 0.5px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: background 0.15s;
}
.btn-ghost:hover { background: rgba(255,255,255,0.9); }
.btn-lg { padding: 15px 28px; font-size: 15px; }

/* Hero stage (mac menu bar + popover) */
.hero-stage {
  position: relative;
  height: 580px;
}

.menubar {
  position: absolute;
  top: 0; left: -40px; right: -40px;
  height: 28px;
  background: rgba(245, 244, 240, 0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 8px 8px 0 0;
  border: 0.5px solid rgba(0,0,0,0.06);
  border-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: #1c1c1e;
  z-index: 5;
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}
.mb-left, .mb-right { display: flex; align-items: center; gap: 14px; }
.mb-apple { display: flex; align-items: center; }
.mb-app { font-weight: 700; }
.mb-item { color: #2c2c2e; }
.mb-icon { font-family: "SF Pro Display"; color: #46464d; }
.mb-hutch {
  display: flex;
  align-items: center;
  position: relative;
  padding: 2px 4px;
  margin: 0 -4px;
  border-radius: 4px;
}
.mb-hutch::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 6px;
  background: rgba(91, 124, 250, 0.12);
  opacity: 0;
  animation: mbPulse 2.4s ease-in-out infinite;
}
@keyframes mbPulse {
  0%, 100% { opacity: 0; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.05); }
}
.mb-time { color: #1c1c1e; font-variant-numeric: tabular-nums; }

/* Anchor (the "tether" linking menu bar icon → popover) */
.hero-anchor {
  position: absolute;
  top: 28px; right: 8px;
  width: 22px;
  z-index: 4;
}
.hero-anchor-icon { display: none; }
.hero-tether {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 0;
  background: linear-gradient(180deg, var(--accent) 0%, transparent 100%);
  opacity: 0;
  transition: height 0.5s ease, opacity 0.3s;
}
.hero-anchor.is-open .hero-tether { height: 36px; opacity: 0.5; }

/* Popover wrap */
.hero-popwrap {
  position: absolute;
  top: 60px;
  right: 30px;
  z-index: 3;
  opacity: 0;
  transform: translateY(-12px) scale(0.96);
  transform-origin: top right;
  transition: opacity 0.55s cubic-bezier(.2,.8,.2,1), transform 0.55s cubic-bezier(.2,.8,.2,1);
}
.hero-popwrap.is-open { opacity: 1; transform: translateY(0) scale(1); }

/* ─── Features grid ─────────────────────────────────────────────────────── */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 0.5px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.feature-card {
  background: rgba(255,255,255,0.5);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.2s;
}
.feature-card:hover { background: rgba(255,255,255,0.85); }
.feature-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon svg { width: 100%; height: 100%; }
.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.feature-card p {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.65;
}

/* ─── AI demo ──────────────────────────────────────────────────────────── */

.section-ai {
  background: linear-gradient(180deg, transparent 0%, rgba(91, 124, 250, 0.04) 50%, transparent 100%);
  max-width: none;
}
.section-ai > .section-head, .section-ai > .ai-stage { max-width: 1180px; margin-left: auto; margin-right: auto; padding-left: 56px; padding-right: 56px; }

.ai-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.ai-pop {
  display: flex;
  justify-content: center;
}

.ai-arrows {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-output {
  flex: 0 1 380px;
  background: rgba(255,255,255,0.6);
  border: 0.5px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  backdrop-filter: blur(20px);
  box-shadow: 0 12px 30px -10px rgba(0,0,0,0.06);
}
.ai-out-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.ai-chips {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ai-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.7);
  border-radius: 10px;
  border: 0.5px solid var(--line);
  font-size: 13px;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.4s, transform 0.4s;
}
.ai-chips.is-on .ai-chip {
  opacity: 1;
  transform: translateX(0);
  transition-delay: var(--d, 0ms);
  animation: chipIn 0.5s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes chipIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}
.ai-chip-key {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ai-chip-val {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--ink);
}
.ai-diamond {
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  border-radius: 1.5px;
}

.ai-chip-final {
  background: rgba(91, 124, 250, 0.06);
  border: 0.5px dashed rgba(91, 124, 250, 0.4);
  justify-content: flex-start;
  gap: 8px;
  font-weight: 600;
  color: var(--ink-2);
  margin-top: 4px;
}
.ai-chip-final.is-final {
  background: rgba(91, 124, 250, 0.12);
  border-style: solid;
  border-color: var(--accent);
  color: var(--ink);
}

/* ─── Subtask demo ─────────────────────────────────────────────────────── */

.sub-stage {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 60px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}

.sub-pop {
  display: flex;
  justify-content: center;
}

.sub-side { display: flex; flex-direction: column; gap: 20px; }
.sub-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 22px;
  background: rgba(255,255,255,0.5);
  border: 0.5px solid var(--line);
  border-radius: 12px;
  opacity: 0.4;
  transition: all 0.4s;
}
.sub-step.on {
  opacity: 1;
  background: rgba(255,255,255,0.85);
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.08);
}
.sub-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sub-step-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.sub-step-body {
  font-size: 13px;
  color: var(--ink-2);
}
.sub-thinking { color: var(--accent); font-weight: 600; }

/* ─── Sync section ─────────────────────────────────────────────────────── */

.section-sync {
  background: linear-gradient(180deg, transparent 0%, rgba(180, 230, 200, 0.08) 50%, transparent 100%);
  max-width: none;
  padding: 120px 56px;
}
.sync-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.sync-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.sync-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  color: var(--ink);
}
.sync-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  color: white;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sync-diagram {
  position: relative;
  height: 360px;
  background: rgba(255,255,255,0.5);
  border: 0.5px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  backdrop-filter: blur(20px);
}
.sync-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.sync-node span {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.sync-node small {
  font-size: 10.5px;
  color: var(--ink-3);
}
.sync-glyph {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: rgba(255,255,255,0.95);
  border: 0.5px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  box-shadow: 0 6px 18px -6px rgba(0,0,0,0.1);
}
.sync-node-mac { top: 30px; left: 30px; }
.sync-node-iphone { bottom: 30px; right: 50px; }
.sync-node-ipad { bottom: 30px; left: 50px; }
.sync-cloud {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.85);
  padding: 14px 22px;
  border-radius: 999px;
  border: 0.5px solid;
  box-shadow: 0 6px 18px -6px rgba(0,0,0,0.08);
}
.sync-cloud span {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}
.sync-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ─── CTA ──────────────────────────────────────────────────────────────── */

.section-cta {
  padding: 80px 56px 120px;
}
.cta-card {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  background:
    radial-gradient(80% 100% at 50% 0%, rgba(91, 124, 250, 0.08) 0%, transparent 70%),
    rgba(255,255,255,0.7);
  border: 0.5px solid var(--line);
  border-radius: 24px;
  padding: 72px 56px;
  text-align: center;
  backdrop-filter: blur(30px);
  overflow: hidden;
}
.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 1px 1px, rgba(0,0,0,0.04) 1px, transparent 0);
  background-size: 24px 24px;
  opacity: 0.4;
  pointer-events: none;
}
.cta-card h2 {
  font-size: 52px;
  margin-bottom: 18px;
}
.cta-card p {
  font-size: 17px;
  color: var(--ink-2);
  margin-bottom: 32px;
}
.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
/* ─── Footer ───────────────────────────────────────────────────────────── */

.footer {
  background: #18181b;
  color: #c8c8d0;
  padding: 64px 56px 28px;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 0.5px solid rgba(255,255,255,0.1);
}
.footer-brand p {
  margin-top: 14px;
  font-size: 13px;
  color: #9999a3;
  max-width: 280px;
  line-height: 1.6;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: white;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-cols h5 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 16px;
}
.footer-cols a {
  display: block;
  font-size: 13px;
  color: #9999a3;
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.15s;
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-break: strict;
}
.footer-cols a:hover { color: white; }

.footer-base {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: #a8a8b2;
}

/* Responsive trims */
@media (max-width: 1180px) {
  .hero-inner { gap: 40px; padding: 96px 40px 72px; }
  .hero-lede { max-width: 100%; }
}

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 56px;
    padding: 80px 32px;
    justify-items: center;
    text-align: center;
  }
  .hero-copy { max-width: 640px; width: 100%; }
  .hero-lede { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-stage {
    height: 520px;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
  }
  .menubar { left: 0; right: 0; }
  .hero-popwrap { right: 16px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .sync-grid { grid-template-columns: 1fr; gap: 40px; }
  .sub-stage { grid-template-columns: 1fr; }
  .section-ai > .section-head,
  .section-ai > .ai-stage { padding-left: 0; padding-right: 0; }
  .ai-output { max-width: 560px; width: 100%; }
  .ai-arrows { display: none; }
  h2 { font-size: 36px; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-cols { gap: 24px; }
  .footer-base { flex-wrap: wrap; gap: 8px; }
}

@media (max-width: 640px) {
  .section { padding: 80px 24px; }
  .hero-inner { padding: 64px 24px; gap: 40px; }
  .hero-stage { height: 460px; }
  .hero-popwrap { right: 8px; transform: translateY(-12px) scale(0.9); transform-origin: top right; }
  .hero-popwrap.is-open { transform: translateY(0) scale(0.9); }
  .feature-grid { grid-template-columns: 1fr; }
  h2 { font-size: 30px; }
  .footer { padding: 56px 24px 24px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .cta-card { padding: 48px 28px; }
  .cta-card h2 { font-size: 36px; }
}

@media (max-width: 480px) {
  .section { padding: 64px 16px; }
  .ai-pop { transform: scale(0.92); transform-origin: top center; }
  .ai-pop + .ai-output { margin-top: -16px; }
}

@media (max-width: 420px) {
  .footer-cols { grid-template-columns: 1fr; }
}
