@import url("../../colors_and_type.css");

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--fg-1);
  background: var(--bg-page);
  min-height: 100vh;
}
.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* ============ Header ============ */
.hd {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border-soft);
}
.hd-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.hd-logo { display: flex; align-items: center; height: 100%; }
.hd-logo img { height: 56px; display: block; border-radius: 6px; }
.hd-nav { display: flex; align-items: center; gap: 4px; }
.hd-nav a {
  display: inline-block; padding: 10px 14px; border-radius: 8px;
  font-weight: 700; font-size: 14px; color: var(--fg-1); letter-spacing: -0.01em;
  transition: background var(--dur-hover) var(--ease-out);
}
.hd-nav a:hover { background: var(--bg-muted); color: var(--fg-1); }
.hd-nav a.active { color: var(--sam-aqua-deep); }
.hd-cta { display: flex; gap: 10px; align-items: center; }

/* ============ Hero ============ */
.hero {
  position: relative; overflow: hidden;
  background: var(--sam-aqua);
  color: var(--fg-on-aqua);
  padding: 88px 0 120px;
}
.hero-rays { position: absolute; inset: 0; pointer-events: none; opacity: 0.6; }
.hero-grid {
  position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
}
.hero h1 {
  color: #fff;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(48px, 6vw, 76px);
  line-height: 1.0; letter-spacing: -0.03em;
  margin: 0 0 24px;
  text-wrap: balance;
}
.hero .intro {
  font-size: 20px; line-height: 1.45; max-width: 540px; margin: 0 0 32px;
  color: rgba(255,255,255,0.92); font-weight: 500;
}
.hero-cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* Visual: block stack on dotted-grid plinth */
.hero-visual {
  position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 480px; margin-left: auto;
}
.hero-plinth {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 95%; height: 95%;
  background-image: radial-gradient(circle, rgba(255,255,255,0.35) 1px, transparent 1.3px);
  background-size: 18px 18px;
  border-radius: 32px;
}
.block {
  position: absolute; border-radius: 18px; box-shadow: var(--shadow-product);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* ============ Buttons (marketing) ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 15px;
  padding: 14px 24px; border-radius: var(--r-sm); border: 0;
  cursor: pointer; letter-spacing: -0.01em;
  transition: all var(--dur-hover) var(--ease-out);
  text-decoration: none;
}
.btn-primary { background: var(--sam-aqua); color: #fff; }
.btn-primary:hover { background: var(--sam-aqua-deep); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(8,208,196,0.32); }
.btn-on-aqua { background: #fff; color: #000; }
.btn-on-aqua:hover { background: #000; color: #fff; }
.btn-dark { background: #000; color: #fff; }
.btn-dark:hover { background: #1a1a1a; transform: translateY(-2px); }
.btn-ghost-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.6); }
.btn-ghost-light:hover { background: #fff; color: var(--sam-aqua-deep); }
.btn:active { transform: scale(0.97); }

/* ============ Section ============ */
.section { padding: 88px 0; }
.section-dark { background: #000; color: #fff; }
.section-soft { background: var(--sam-aqua-faint); }
.section-grey { background: var(--bg-muted); }

.eyebrow {
  font-family: var(--font-mono); font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--sam-aqua-deep);
}
.eyebrow.on-dark { color: var(--sam-aqua); }
.section h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(34px, 4vw, 52px); line-height: 1.05; letter-spacing: -0.025em;
  margin: 8px 0 16px; max-width: 720px; text-wrap: balance;
}
.section .lede {
  font-size: 19px; line-height: 1.5; color: var(--fg-2); max-width: 640px; margin: 0 0 48px;
}
.section-dark h2 { color: #fff; }
.section-dark .lede { color: rgba(255,255,255,0.78); }

/* ============ Logo cloud ============ */
.cloud {
  display: flex; gap: 36px; align-items: center; justify-content: space-between;
  flex-wrap: wrap; opacity: 0.78;
}
.cloud .mark {
  font-family: var(--font-display); font-weight: 800;
  font-size: 22px; color: var(--fg-2); letter-spacing: -0.01em;
}
.cloud .mark span { font-family: var(--font-mono); font-weight: 400; opacity: 0.6; font-size: 14px; margin-left: 6px; }

/* ============ Feature grid ============ */
.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fcard {
  background: #fff; border-radius: var(--r-lg); padding: 28px;
  box-shadow: var(--shadow-2);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform var(--dur-hover) var(--ease-out), box-shadow var(--dur-hover) var(--ease-out);
}
.fcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); }
.fcard .ico-tile {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
}
.fcard h3 { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.015em; margin: 0; }
.fcard p { font-size: 15px; line-height: 1.5; color: var(--fg-2); margin: 0; }
.fcard .step { font-family: var(--font-mono); font-weight: 700; font-size: 12px; color: var(--sam-aqua-deep); text-transform: uppercase; letter-spacing: 0.1em; }

/* ============ Product row ============ */
.prow { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pcard {
  position: relative; border-radius: var(--r-lg); padding: 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 360px; overflow: hidden;
  color: #fff;
}
.pcard.aqua { background: var(--sam-aqua); }
.pcard.edu  { background: var(--sam-edu); }
.pcard .ptag {
  font-family: var(--font-mono); font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.85;
}
.pcard h3 {
  font-family: var(--font-display); font-weight: 800;
  font-size: 36px; line-height: 1.0; letter-spacing: -0.025em; margin: 8px 0 8px;
}
.pcard p { font-size: 15px; line-height: 1.5; opacity: 0.92; max-width: 380px; margin: 0; }
.pcard .pcta { margin-top: 24px; align-self: flex-start; }
.pcard .pvisual {
  position: absolute; right: -40px; bottom: -40px; width: 240px; height: 240px;
  display: flex; align-items: center; justify-content: center;
}

/* ============ Outcomes ============ */
.outcomes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.outcome {
  border-top: 2px solid rgba(255,255,255,0.18);
  padding-top: 20px;
}
.outcome .num {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(48px, 5vw, 68px); line-height: 1; letter-spacing: -0.03em;
  color: var(--sam-aqua);
}
.outcome .lbl { font-size: 14px; color: rgba(255,255,255,0.78); margin-top: 8px; max-width: 220px; line-height: 1.4; }

/* ============ Quote ============ */
.quote {
  background: #fff; border-radius: var(--r-lg); padding: 56px;
  box-shadow: var(--shadow-2);
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: center;
}
.quote .avatar {
  width: 100%; aspect-ratio: 1/1; border-radius: var(--r-md);
  background: linear-gradient(135deg, #08D0C4 0%, #0057B8 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 72px;
  position: relative; overflow: hidden;
}
.quote .avatar::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.3) 1px, transparent 1.4px);
  background-size: 14px 14px;
  opacity: 0.6;
}
.quote blockquote {
  font-family: var(--font-display); font-weight: 700; font-size: 28px;
  line-height: 1.2; letter-spacing: -0.02em; color: var(--fg-1); margin: 0 0 20px;
  text-wrap: balance;
}
.quote cite {
  font-style: normal; font-size: 14px; color: var(--fg-2);
}
.quote cite b { display: block; color: var(--fg-1); font-size: 15px; margin-bottom: 2px; }

/* ============ CTA banner ============ */
.cta-banner {
  position: relative; overflow: hidden;
  background: var(--sam-aqua); color: #fff; border-radius: var(--r-xl);
  padding: 64px 56px; text-align: center;
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.28) 1px, transparent 1.4px);
  background-size: 16px 16px;
  opacity: 0.55;
}
.cta-banner > * { position: relative; }
.cta-banner h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(36px, 4.5vw, 56px); line-height: 1.0; letter-spacing: -0.025em;
  color: #fff; margin: 0 0 14px; text-wrap: balance;
}
.cta-banner p { font-size: 18px; max-width: 540px; margin: 0 auto 28px; color: rgba(255,255,255,0.92); }
.cta-banner-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============ Footer ============ */
.ft {
  background: #0b0e10; color: #d6d8dc;
  padding: 64px 0 28px;
}
.ft-grid {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ft-grid h4 { font-family: var(--font-display); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; color: #fff; margin: 0 0 16px; }
.ft-grid a { display: block; color: #b9bcc2; font-size: 14px; padding: 6px 0; }
.ft-grid a:hover { color: #fff; }
.ft-legal {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px; font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,0.5);
}

/* ============ Mini "app" demo (used inside index.html demo) ============ */
.demo-bar {
  background: var(--sam-aqua); color: #fff;
  font-family: var(--font-mono); font-size: 12px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 6px 12px;
}
.demo-bar button {
  background: rgba(255,255,255,0.18); border: 0; color: #fff;
  font-family: var(--font-mono); font-size: 11px; padding: 4px 10px; border-radius: 4px;
  cursor: pointer;
}
.demo-bar button:hover { background: rgba(255,255,255,0.3); }
.demo-bar button.active { background: #fff; color: var(--sam-aqua-deep); }

/* mobile collapse */
@media (max-width: 880px) {
  .hd-nav { display: none; }
  .hero-grid, .prow, .fgrid, .quote, .ft-grid, .outcomes { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 72px; }
  .section { padding: 56px 0; }
}
