/* Marketing home — luminous optical lab, full-bleed */

.home-page {
  --home-ink: #0e1520;
  --home-mute: #5a6573;
  --home-line: color-mix(in srgb, #1a73e8 12%, #d8dee8);
  --home-mist: #eef3f9;
  --home-paper: #f5f8fc;
  --home-accent: #1a73e8;
  --home-accent-deep: #1557b0;
  --home-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --home-sans: "Outfit", "Segoe UI", sans-serif;
  --home-serif: "Newsreader", "Iowan Old Style", Georgia, serif;

  overflow: auto;
  height: auto;
  min-height: 100%;
  background:
    radial-gradient(120% 80% at 85% -10%, color-mix(in srgb, #1a73e8 18%, transparent), transparent 55%),
    radial-gradient(90% 60% at -5% 30%, color-mix(in srgb, #4fc3f7 10%, transparent), transparent 50%),
    linear-gradient(180deg, #f7fafd 0%, #fff 38%, #f4f7fb 100%);
  color: var(--home-ink);
  font-family: var(--home-sans);
}

.home-page .site-logo-link,
.home-page .logo-mark,
.home-page .logo-agent,
.home-page .logo-stylus,
.home-page .home-brand-module {
  font-family: var(--home-sans);
}

.home-top {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.95rem clamp(1.25rem, 4vw, 3rem);
  border-bottom: 1px solid color-mix(in srgb, var(--home-line) 70%, transparent);
  background: color-mix(in srgb, #fff 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
}

.home-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.1rem 0.15rem;
  margin-left: auto;
}

.home-nav a {
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--home-mute);
  text-decoration: none;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease;
}

.home-nav a:hover {
  color: var(--home-ink);
  background: color-mix(in srgb, #1a73e8 8%, transparent);
}

.home-cta-top {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--home-accent);
  text-decoration: none;
  padding: 0.52rem 1.15rem;
  border-radius: 999px;
  box-shadow: 0 8px 20px color-mix(in srgb, #1a73e8 28%, transparent);
  transition: background 0.15s ease, transform 0.15s ease;
}

.home-cta-top:hover {
  background: var(--home-accent-deep);
  transform: translateY(-1px);
}

/* Hero */
.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: end;
  width: 100%;
  padding: clamp(2.5rem, 6vh, 4rem) clamp(1.25rem, 4vw, 3rem) 2.75rem;
  overflow: hidden;
}

.home-hero-atmosphere {
  position: absolute;
  inset: auto -10% -40% 40%;
  height: 120%;
  background:
    radial-gradient(closest-side, color-mix(in srgb, #1a73e8 22%, transparent), transparent 70%),
    radial-gradient(closest-side at 70% 40%, color-mix(in srgb, #90caf9 35%, transparent), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
  animation: home-atmosphere 12s ease-in-out infinite alternate;
}

@keyframes home-atmosphere {
  from { opacity: 0.7; transform: translate(0, 0) scale(1); }
  to { opacity: 1; transform: translate(-3%, 4%) scale(1.06); }
}

.home-hero-copy {
  position: relative;
  z-index: 1;
}

.home-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.7rem;
  margin: 0 0 1.25rem;
  font-family: var(--home-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--home-mute);
}

.home-meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--home-accent) 55%, var(--home-line));
}

.home-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
  margin: 0 0 1.05rem;
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
}

.home-brand .logo-mark {
  letter-spacing: -0.05em;
}

.home-brand-sep {
  font-weight: 500;
  color: color-mix(in srgb, var(--home-mute) 70%, transparent);
  letter-spacing: 0;
}

.home-brand-module {
  font-size: 0.52em;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--home-ink);
}

.home-headline {
  margin: 0;
  max-width: 18ch;
  font-family: var(--home-serif);
  font-size: clamp(1.4rem, 2.6vw, 1.95rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #2a3544;
}

.home-lede {
  margin: 1.15rem 0 0;
  max-width: 36rem;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--home-mute);
}

.home-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.75rem;
}

.home-cta-row-center {
  justify-content: center;
}

.home-agent-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.85rem 0 0;
}

.btn-home-primary,
.btn-home-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 0.78rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-home-primary {
  color: #fff;
  background: var(--home-accent);
  box-shadow: 0 10px 24px color-mix(in srgb, #1a73e8 30%, transparent);
}

.btn-home-primary:hover {
  background: var(--home-accent-deep);
  transform: translateY(-1px);
}

.btn-home-secondary {
  color: var(--home-ink);
  background: color-mix(in srgb, #fff 70%, transparent);
  border-color: color-mix(in srgb, #1a73e8 18%, #c8d2e0);
  backdrop-filter: blur(8px);
}

.btn-home-secondary:hover {
  border-color: color-mix(in srgb, #1a73e8 40%, #9aa8bc);
  background: #fff;
}

.home-hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
  margin-right: calc(-1 * clamp(1.25rem, 4vw, 3rem));
}

.home-swatch-plane {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  width: 100%;
  height: clamp(180px, 28vh, 260px);
  overflow: hidden;
  border-radius: 1.25rem 0 0 1.25rem;
  box-shadow:
    0 24px 60px color-mix(in srgb, #0e1520 14%, transparent),
    0 0 0 1px color-mix(in srgb, #1a73e8 10%, transparent);
}

.home-swatch-plane span {
  background: color-mix(
    in oklab,
    #1a73e8 calc((11 - var(--i)) * 8.5%),
    #e8f0fb calc(var(--i) * 9%)
  );
  animation: home-swatch-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i) * 48ms);
}

.home-swatch-caption {
  margin: 0;
  padding-right: clamp(1.25rem, 4vw, 3rem);
  font-family: var(--home-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--home-mute);
  text-align: right;
}

@keyframes home-swatch-in {
  from {
    opacity: 0;
    transform: scaleY(0.28);
    transform-origin: bottom;
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Why */
.home-why {
  width: 100%;
  margin: 0;
  padding: 0;
  background:
    linear-gradient(180deg, color-mix(in srgb, #1a73e8 4%, #fff) 0%, var(--home-paper) 100%);
  overflow: hidden;
}

.home-why-ticker {
  width: 100%;
  overflow: hidden;
  background: color-mix(in srgb, #0e1520 92%, #1a73e8);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.home-why-ticker-track {
  display: flex;
  width: max-content;
  animation: home-why-marquee 38s linear infinite;
  font-family: var(--home-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, #fff 55%, transparent);
  padding: 0.8rem 0;
}

.home-why-ticker-track span {
  display: inline-flex;
  align-items: center;
  padding: 0 1.2rem;
  border-right: 1px solid color-mix(in srgb, #fff 12%, transparent);
  white-space: nowrap;
}

.home-why-ticker-track span:nth-child(3n) {
  color: #ffd54f;
}

.home-why-ticker-track span:nth-child(4n) {
  color: #90caf9;
}

@keyframes home-why-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.home-why-stage {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(3rem, 8vh, 5.25rem) clamp(1.25rem, 4vw, 3rem);
}

.home-why-copy {
  min-width: 0;
}

.home-why-kicker,
.home-eyebrow {
  margin: 0 0 0.9rem;
  font-family: var(--home-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--home-mute);
}

.home-why-title {
  margin: 0;
  max-width: 14ch;
  font-family: var(--home-serif);
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--home-ink);
}

.home-why-em {
  font-style: italic;
  font-weight: 400;
  color: var(--home-accent);
}

.home-why-thread {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  width: 100%;
  min-width: 0;
}

.home-why-msg {
  margin: 0;
  padding: 1.15rem 1.35rem;
  background: color-mix(in srgb, #fff 82%, transparent);
  border: none;
  border-radius: 1.1rem;
  box-shadow: 0 1px 0 color-mix(in srgb, #1a73e8 8%, transparent);
  backdrop-filter: blur(10px);
  animation: home-msg-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-why-msg-agent {
  animation-delay: 0.05s;
  background: color-mix(in srgb, #eceff3 70%, #fff);
  width: 92%;
}

.home-why-msg-design {
  animation-delay: 0.18s;
  margin-left: 8%;
  width: 92%;
  box-shadow:
    0 0 0 1px color-mix(in srgb, #1a73e8 16%, transparent),
    0 12px 32px color-mix(in srgb, #1a73e8 8%, transparent);
}

.home-why-msg-ship {
  animation-delay: 0.3s;
  margin-left: 4%;
  width: 96%;
  background: color-mix(in srgb, #fff4f2 75%, #fff);
}

@keyframes home-msg-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.home-why-tag {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-family: var(--home-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--home-mute);
}

.home-why-msg p {
  margin: 0;
  font-family: var(--home-serif);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  line-height: 1.45;
  letter-spacing: -0.015em;
}

.home-why-msg code {
  font-family: var(--home-mono);
  font-size: 0.86em;
  background: color-mix(in srgb, #1a73e8 8%, #fff);
  color: #1557b0;
  padding: 0.12em 0.4em;
  border-radius: 0.35rem;
}

.home-why-bridge {
  margin: 1.85rem 0 0;
  max-width: 28rem;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: #2a3544;
}

.home-why-bridge strong {
  color: var(--home-ink);
  font-weight: 700;
}

.home-why-resolve {
  margin: 0.9rem 0 0;
  max-width: 42rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--home-mute);
}

.home-why-calm {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  height: 2.75rem;
  width: 100%;
}

.home-why-calm span {
  background: color-mix(
    in oklab,
    #1a73e8 calc((11 - var(--i)) * 8.5%),
    #e8f0fb calc(var(--i) * 9%)
  );
}

@media (prefers-reduced-motion: reduce) {
  .home-why-ticker-track,
  .home-swatch-plane span,
  .home-hero-atmosphere,
  .home-why-msg {
    animation: none;
  }
}

/* Capabilities + API */
.home-section {
  width: 100%;
  margin: 0;
  padding: clamp(3.25rem, 8vh, 5.5rem) clamp(1.25rem, 4vw, 3rem);
}

.home-section-alt {
  background:
    radial-gradient(80% 60% at 10% 0%, color-mix(in srgb, #1a73e8 7%, transparent), transparent 55%),
    var(--home-paper);
}

.home-section-head {
  margin-bottom: 0.25rem;
}

.home-final {
  text-align: center;
  padding-bottom: clamp(3.75rem, 9vh, 6rem);
  background:
    radial-gradient(70% 80% at 50% 100%, color-mix(in srgb, #1a73e8 12%, transparent), transparent 60%);
}

.home-final .home-eyebrow,
.home-final .home-section-lede {
  margin-left: auto;
  margin-right: auto;
}

.home-section-title {
  margin: 0;
  font-family: var(--home-serif);
  font-size: clamp(1.75rem, 3.4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--home-ink);
}

.home-section-lede {
  margin: 0.8rem 0 0;
  max-width: 40rem;
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--home-mute);
}

.home-feature-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
  margin-top: 2.75rem;
  width: 100%;
}

.home-feature {
  padding: 0.35rem 0.25rem 0.5rem;
}

.home-feature-idx {
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--home-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--home-accent);
}

.home-feature h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--home-ink);
}

.home-feature p {
  margin: 0.5rem 0 0;
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--home-mute);
}

.home-api-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.15rem;
  width: 100%;
}

.home-api-block {
  padding: 1.25rem 1.35rem;
  background: color-mix(in srgb, #0e1520 94%, #1a73e8);
  border-radius: 1rem;
  color: #e8eef7;
}

.home-api-label {
  margin: 0 0 0.55rem;
  font-family: var(--home-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, #90caf9 80%, #fff);
}

.home-api-code {
  margin: 0;
  font-family: var(--home-mono);
  font-size: clamp(0.84rem, 1.5vw, 0.98rem);
  line-height: 1.55;
  color: #f4f7fb;
  white-space: pre-wrap;
  word-break: break-word;
}

.home-agent-points {
  margin: 1.85rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem 2rem;
  width: 100%;
}

.home-agent-points li {
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--home-mute);
  padding: 0.85rem 0 0.85rem 1.1rem;
  border-left: 3px solid color-mix(in srgb, #1a73e8 55%, transparent);
  border-radius: 0 0.5rem 0.5rem 0;
  background: linear-gradient(90deg, color-mix(in srgb, #1a73e8 6%, transparent), transparent 70%);
}

.home-agent-points strong {
  color: var(--home-ink);
  font-family: var(--home-mono);
  font-size: 0.88em;
  font-weight: 500;
}

.home-page code {
  font-family: var(--home-mono);
  font-size: 0.88em;
  background: color-mix(in srgb, #1a73e8 10%, #fff);
  color: #1557b0;
  padding: 0.1em 0.35em;
  border-radius: 0.35rem;
}

.home-page .site-footer {
  margin-top: 0;
  width: 100%;
  padding-left: clamp(1.25rem, 4vw, 3rem);
  padding-right: clamp(1.25rem, 4vw, 3rem);
  background: #fff;
  border-top: 1px solid var(--home-line);
}

@media (max-width: 1100px) {
  .home-feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .home-hero {
    grid-template-columns: 1fr;
    padding-top: 1.75rem;
  }

  .home-hero-visual {
    order: -1;
    margin-right: 0;
  }

  .home-swatch-plane {
    height: 120px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    border-radius: 0;
  }

  .home-swatch-caption {
    text-align: left;
    padding-right: 0;
  }

  .home-why-stage {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .home-why-msg-agent,
  .home-why-msg-design,
  .home-why-msg-ship {
    margin-left: 0;
    width: 100%;
  }

  .home-feature-list,
  .home-agent-points,
  .home-api-grid {
    grid-template-columns: 1fr;
  }

  .home-nav {
    display: none;
  }
}
