/* Perigon Labs — Landing page styles
   Implements: Perigon Labs Landing Page.dc.html (Claude Design project)
   Tokens sourced from the Perigon Labs design system (Brand Guidelines v1.0, June 2026). */

/* ---------- Fonts ---------- */

@font-face {
  font-family: 'Nexa';
  src: url('../assets/fonts/Nexa-ExtraLight.ttf') format('truetype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nexa';
  src: url('../assets/fonts/Nexa-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nexa';
  src: url('../assets/fonts/Nexa-Heavy.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  /* Colour — white-dominant; coral is the single hot accent (~10% of any layout) */
  --coral: #FC5646;
  --coral-deep: #E04332;
  --coral-mist: #FFE9E5;
  --dusk: #273347;
  --cyan: #00AEEF;
  --ink: #1A1A1A;
  --mist: #F4F5F7;
  --slate: #8A94A6;
  --white: #FFFFFF;
  --border-subtle: #E4E7EC;

  /* Type */
  --font-sans: 'Nexa', Arial, -apple-system, 'Segoe UI', sans-serif;
  --weight-light: 200;
  --weight-regular: 400;
  --weight-heavy: 800;
  --tracking-label: 0.18em;

  /* Layout */
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-card: 0 2px 10px rgba(39, 51, 71, 0.06);
  --duration-base: 250ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: var(--weight-regular);
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-weight: var(--weight-heavy);
  color: var(--dusk);
  line-height: 1.15;
}

a { color: var(--dusk); text-decoration: none; transition: color var(--duration-base) var(--ease-out), background var(--duration-base) var(--ease-out); }
a:hover { color: var(--coral); }

::selection { background: var(--coral-mist); color: var(--dusk); }

/* ---------- Shared pieces ---------- */

.eyebrow-rule { width: 36px; border-top: 3px solid var(--coral); margin-bottom: 8px; }

.eyebrow {
  font-weight: var(--weight-heavy);
  font-size: 13px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 16px;
}

.section-title { font-size: 39px; margin: 0 0 40px; }

.btn {
  display: inline-flex;
  align-items: center;
  font-weight: var(--weight-heavy);
  border-radius: var(--radius-pill);
  line-height: 1;
}

.btn-coral { background: var(--coral); color: #fff; }
.btn-coral:hover { background: var(--coral-deep); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--dusk);
  border: 2px solid var(--dusk);
}
.btn-outline:hover { background: var(--dusk); color: #fff; }

/* ---------- Nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 64px;
  border-bottom: 1px solid var(--border-subtle);
}

.site-nav .logo { height: 34px; display: block; }

.site-nav nav { display: flex; gap: 32px; align-items: center; font-size: 15px; }

.site-nav nav a { font-weight: var(--weight-heavy); color: var(--dusk); }
.site-nav nav a:hover { color: var(--coral); }

.site-nav .btn { font-size: 14px; padding: 10px 22px; }
.site-nav .btn:hover { color: #fff; }

/* ---------- Hero ---------- */

.hero {
  padding: 96px 64px 84px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero .ring-tr {
  position: absolute; top: -140px; right: -140px;
  width: 380px; height: 380px;
  border: 3px solid var(--coral-mist);
  border-radius: 50%;
  pointer-events: none;
}

.hero .ring-bl {
  position: absolute; bottom: -180px; left: -120px;
  width: 340px; height: 340px;
  border: 3px solid var(--mist);
  border-radius: 50%;
  pointer-events: none;
}

.hero .inner { max-width: 860px; margin: 0 auto; position: relative; }

.hero .eyebrow-stack {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; margin-bottom: 20px;
}
.hero .eyebrow-stack .eyebrow-rule,
.hero .eyebrow-stack .eyebrow { margin-bottom: 0; }

.hero h1 { font-size: 61px; line-height: 1.1; margin: 0 0 22px; }

.hero .lede {
  font-size: 19px;
  line-height: 1.55;
  max-width: 620px;
  margin: 0 auto 32px;
}

.hero .cta-row { display: flex; gap: 14px; justify-content: center; align-items: center; }

.hero .btn-coral { font-size: 17px; padding: 16px 34px; }
.hero .btn-outline { font-size: 17px; padding: 14px 32px; }

.hero .lineage { margin-top: 30px; font-size: 13px; color: var(--slate); }
.hero .lineage strong { color: var(--cyan); font-weight: var(--weight-heavy); }

/* ---------- Benefits ---------- */

.benefits { background: var(--mist); padding: 80px 64px; }

.benefits .inner, .process .inner, .use-cases .inner { max-width: 1100px; margin: 0 auto; }

.benefits h2 { font-size: 39px; margin: 0 0 12px; }

.benefits .sub { font-size: 16px; line-height: 1.5; max-width: 560px; margin: 0 0 40px; }

.benefits .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.benefit-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.benefit-card .icon-tile {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--coral-mist);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}

.benefit-card h3 { font-size: 18px; margin: 0 0 8px; }
.benefit-card p { font-size: 14.5px; line-height: 1.5; margin: 0; color: var(--ink); }

/* ---------- Process ---------- */

.process { padding: 84px 64px; }

.process .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.step-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}

.step-card .step-num {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 3px solid var(--coral);
  color: var(--coral);
  font-weight: var(--weight-heavy);
  font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}

.step-card h3 { font-size: 20px; margin: 0 0 8px; }
.step-card p { font-size: 15px; line-height: 1.5; margin: 0 0 14px; }

.step-card .step-meta {
  font-size: 13px;
  font-weight: var(--weight-heavy);
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.step-card.step-dark { background: var(--dusk); border: none; }
.step-card.step-dark .step-num { background: var(--coral); border: none; color: #fff; }
.step-card.step-dark h3 { color: #fff; }
.step-card.step-dark p { color: rgba(255, 255, 255, 0.85); }

.process .cta-center { text-align: center; margin-top: 36px; }
.process .cta-center .btn { font-size: 15px; padding: 13px 28px; }

/* ---------- Use cases ---------- */

.use-cases { background: var(--mist); padding: 80px 64px; }

.use-cases .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.use-case-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-card);
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.use-case-card .icon-disc {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--coral-mist);
  display: flex; align-items: center; justify-content: center;
  flex: none;
}

.use-case-card h3 { font-size: 19px; margin: 0 0 8px; }
.use-case-card p { font-size: 14.5px; line-height: 1.5; margin: 0; }

/* ---------- About / lineage ---------- */

.about { background: var(--dusk); padding: 84px 64px; }

.about .inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: center;
}

.about .eyebrow { color: #fff; margin-bottom: 18px; }

.about .pull-quote {
  font-weight: var(--weight-light);
  font-size: 31px;
  line-height: 1.35;
  color: #fff;
  margin: 0 0 20px;
}

.about .body { font-size: 16px; line-height: 1.55; color: rgba(255, 255, 255, 0.75); margin: 0; }

.about .mark { display: flex; justify-content: center; }
.about .mark img { width: 220px; opacity: 0.9; }

/* ---------- FAQ ---------- */

.faq { padding: 84px 64px; }

.faq .inner { max-width: 760px; margin: 0 auto; }

.faq h2 { font-size: 39px; margin: 0 0 32px; }

.faq-item { border-bottom: 1px solid var(--border-subtle); }

.faq-item button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 18px 4px;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: var(--weight-heavy);
  color: var(--dusk);
  text-align: left;
}

.faq-item .marker {
  color: var(--coral);
  font-size: 22px;
  font-weight: var(--weight-regular);
  line-height: 1;
}

.faq-item .answer {
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
  padding: 0 4px 20px;
  max-width: 640px;
}

.faq-item:not(.open) .answer { display: none; }

/* ---------- Final CTA ---------- */

.final-cta {
  background: var(--coral-mist);
  padding: 80px 64px;
  text-align: center;
}

.final-cta .inner { max-width: 680px; margin: 0 auto; }
.final-cta h2 { font-size: 39px; margin: 0 0 14px; }
.final-cta p { font-size: 17px; line-height: 1.55; margin: 0 0 30px; }
.final-cta .btn { font-size: 17px; padding: 16px 34px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--dusk);
  padding: 44px 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-footer .logo { height: 30px; display: block; }
.site-footer .fine-print { font-size: 13px; color: var(--slate); }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .site-nav { padding: 16px 28px; }
  .site-nav nav { gap: 20px; }
  .site-nav nav a:not(.btn) { display: none; }

  .hero { padding: 72px 28px 64px; }
  .hero h1 { font-size: 42px; }

  .benefits, .use-cases, .final-cta { padding: 64px 28px; }
  .process, .about, .faq { padding: 64px 28px; }

  .benefits .grid, .process .grid { grid-template-columns: 1fr; }
  .use-cases .grid { grid-template-columns: 1fr; }

  .about .inner { grid-template-columns: 1fr; gap: 36px; }
  .about .mark img { width: 160px; }

  .section-title, .benefits h2, .faq h2, .final-cta h2 { font-size: 31px; }

  .site-footer { padding: 36px 28px; flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: 34px; }
  .hero .cta-row { flex-direction: column; }
}
