/* Circuit Breaker — marketing landing page */

:root {
  --ink: #12141a;
  --ink-soft: #2a2f3a;
  --paper: #f3efe6;
  --paper-2: #e7e1d4;
  --fog: rgba(18, 20, 26, 0.62);
  --line: rgba(18, 20, 26, 0.12);
  --accent: #1f8a4c;
  --accent-deep: #146338;
  --cream: #faf7f0;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Helvetica Neue", Helvetica, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #fffdf8 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #ebe4d6 0%, transparent 50%),
    var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 40px);
  background: linear-gradient(to bottom, rgba(243, 239, 230, 0.92), rgba(243, 239, 230, 0));
  backdrop-filter: blur(8px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.header-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-deep);
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s ease;
}

.header-cta:hover {
  border-color: var(--accent-deep);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.04);
  animation: hero-drift 18s var(--ease) infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(10, 12, 16, 0.88) 8%, rgba(10, 12, 16, 0.35) 48%, rgba(10, 12, 16, 0.25) 100%),
    linear-gradient(90deg, rgba(10, 12, 16, 0.45), transparent 55%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: clamp(100px, 18vh, 160px) clamp(20px, 5vw, 56px) clamp(48px, 8vh, 80px);
  color: #f6f3ec;
  animation: rise 0.9s var(--ease) both;
}

.brand-mark {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 6.2vw, 64px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  max-width: 14ch;
  margin-bottom: 16px;
}

.lede {
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 500;
  line-height: 1.45;
  max-width: 36ch;
  color: rgba(246, 243, 236, 0.82);
  margin-bottom: 28px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: #f7fff9;
}

.btn-primary:hover {
  background: var(--accent-deep);
}

.btn-ghost {
  background: transparent;
  color: #f6f3ec;
  border: 1px solid rgba(246, 243, 236, 0.35);
}

.btn-ghost:hover {
  border-color: rgba(246, 243, 236, 0.7);
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(72px, 12vh, 120px) clamp(20px, 5vw, 56px);
}

.section-inner {
  max-width: 880px;
  margin: 0 auto;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 14px;
}

.section h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 20px;
  max-width: 18ch;
}

.section-lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 42ch;
  margin-bottom: 36px;
}

.story {
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
}

.story-body {
  display: grid;
  gap: 18px;
  max-width: 62ch;
  font-size: 18px;
  color: var(--ink-soft);
}

.story-body p {
  animation: rise 0.8s var(--ease) both;
}

.story-body p:nth-child(2) { animation-delay: 0.08s; }
.story-body p:nth-child(3) { animation-delay: 0.16s; }

.promise {
  background: var(--ink);
  color: #f3efe6;
}

.promise .eyebrow {
  color: #6dcb8f;
}

.promise .section-lede {
  color: rgba(243, 239, 230, 0.72);
}

.steps {
  list-style: none;
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(243, 239, 230, 0.14);
}

.steps li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(243, 239, 230, 0.14);
}

.step-num {
  font-family: var(--serif);
  font-size: 22px;
  color: #6dcb8f;
  letter-spacing: -0.02em;
}

.steps h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.steps p {
  color: rgba(243, 239, 230, 0.7);
  max-width: 48ch;
}

.traits {
  background: var(--cream);
}

.trait-list {
  list-style: none;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.trait-list li {
  display: grid;
  gap: 6px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.trait-list strong {
  font-size: 18px;
  letter-spacing: -0.02em;
}

.trait-list span {
  color: var(--ink-soft);
  max-width: 52ch;
}

.close {
  background:
    radial-gradient(800px 400px at 50% 0%, #dff5e8 0%, transparent 60%),
    var(--paper);
  text-align: left;
}

.close-inner {
  max-width: 720px;
}

.close .brand-mark {
  color: var(--ink);
  margin-bottom: 12px;
}

.close .btn-primary {
  min-width: 180px;
}

.fineprint {
  margin-top: 16px;
  font-size: 13px;
  color: var(--fog);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  padding: 28px clamp(20px, 5vw, 56px) 40px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--fog);
}

@keyframes hero-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(0, -1.5%, 0); }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 640px) {
  .hero-copy {
    padding-bottom: 40px;
  }

  .hero h1 {
    max-width: none;
  }

  .steps li {
    grid-template-columns: 48px 1fr;
    gap: 12px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img,
  .hero-copy,
  .story-body p {
    animation: none !important;
  }
}
