/* Sogliya marketing — Threshold tokens */
:root {
  --charcoal: #2B2B2B;
  --terracotta: #C46B4A;
  --off-white: #F7F5F2;
  --white: #FFFFFF;
  --soft-gray: #E8E6E3;
  --muted: #5C5A58;
  --font: Inter, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max: 68rem;
  --radius: 0.75rem;
  --space: clamp(1.25rem, 4vw, 2rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--charcoal);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--terracotta);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--charcoal);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--white);
  color: var(--charcoal);
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: var(--space);
  top: 0.5rem;
}

.wrap {
  width: min(100% - 2 * var(--space), var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--off-white) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--soft-gray);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
  min-height: 4rem;
}

.logo {
  flex-shrink: 0;
  line-height: 0;
}

.logo img {
  height: 2.25rem;
  width: auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  align-items: center;
  justify-content: flex-end;
}

.nav a {
  color: var(--charcoal);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--terracotta);
}

.nav .nav-cta {
  color: var(--white);
  background: var(--charcoal);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-weight: 560;
}

.nav .nav-cta:hover {
  background: var(--terracotta);
  color: var(--white);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 10vw, 6rem) 0 clamp(3.5rem, 9vw, 5.5rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -10% -35% 40%;
  height: min(70vw, 28rem);
  background:
    radial-gradient(ellipse 55% 70% at 50% 100%,
      color-mix(in srgb, var(--terracotta) 18%, transparent) 0%,
      transparent 70%),
    radial-gradient(ellipse 45% 60% at 50% 100%,
      color-mix(in srgb, var(--charcoal) 10%, transparent) 0%,
      transparent 72%);
  pointer-events: none;
}

.hero::after {
  /* Abstract threshold arch — welcome entry, not logo */
  content: "";
  position: absolute;
  right: max(4%, calc(50% - 22rem));
  bottom: 8%;
  width: min(42vw, 14rem);
  height: min(52vw, 17rem);
  border: 3px solid color-mix(in srgb, var(--charcoal) 14%, transparent);
  border-bottom: none;
  border-radius: 999px 999px 0 0;
  pointer-events: none;
  opacity: 0.9;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  max-width: 42rem;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.hero .lede {
  margin: 0 0 1.5rem;
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  color: var(--muted);
  max-width: 38rem;
}

.hero .origin {
  margin: 0 0 2rem;
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 590;
  font-size: 0.975rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--charcoal);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--soft-gray);
}

.btn-ghost:hover {
  border-color: var(--charcoal);
  color: var(--charcoal);
}

/* Sections */
section {
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.section-head {
  margin: 0 0 2rem;
  max-width: 34rem;
}

.section-head h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.45rem, 3.5vw, 1.85rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

/* Cards — 2×2-friendly on tablet; 3+2 on wide desktop; stack on mobile */
.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.15rem;
  }
}

@media (min-width: 960px) {
  .cards {
    grid-template-columns: repeat(6, 1fr);
  }

  .cards .card {
    grid-column: span 2;
  }

  /* Fifth card centers under the top row of three */
  .cards .card:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .cards .card:nth-child(5) {
    grid-column: 4 / span 2;
  }
}

.card {
  background: var(--white);
  border: 1px solid var(--soft-gray);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem 1.45rem;
}

.card .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 0.85rem;
  border-radius: 999px;
  background: var(--off-white);
  color: var(--terracotta);
  font-size: 0.8rem;
  font-weight: 650;
}

.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 620;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.soft-line {
  margin: 1.75rem 0 0;
  max-width: 40rem;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Optional V1 path — secondary to hero / edges */
.path {
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
}

.path-callout {
  background: var(--white);
  border: 1px solid var(--soft-gray);
  border-radius: calc(var(--radius) + 0.15rem);
  padding: clamp(1.5rem, 4vw, 2.25rem) clamp(1.25rem, 3.5vw, 2rem);
  max-width: 52rem;
}

.path-label {
  display: inline-block;
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.path-callout > h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.2rem, 2.8vw, 1.45rem);
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.path-lede {
  margin: 0 0 0.75rem;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1rem;
}

.path-note {
  margin: 0 0 1.75rem;
  max-width: 38rem;
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
}

.path-how-head {
  margin-bottom: 1.25rem;
}

.path-how-head h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 620;
  letter-spacing: -0.01em;
}

.path-how-head p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* How it works — steps inside optional path */
.steps {
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.step {
  position: relative;
  padding: 0.25rem 0 0.25rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: var(--charcoal);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 650;
}

.step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
  font-weight: 620;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Company arc — light post-V1 directions */
.arc {
  padding-top: clamp(2rem, 5vw, 3rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.arc .section-head {
  margin-bottom: 1.25rem;
}

.arc .section-head h2 {
  font-size: clamp(1.2rem, 2.8vw, 1.45rem);
}

.arc-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 44rem;
}

.arc-list li {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--soft-gray);
  background: var(--white);
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 500;
}

/* CTA */
.cta {
  text-align: center;
}

.cta-panel {
  background: var(--charcoal);
  color: var(--white);
  border-radius: calc(var(--radius) + 0.25rem);
  padding: clamp(2rem, 5vw, 3rem) clamp(1.25rem, 4vw, 2.5rem);
  position: relative;
  overflow: hidden;
}

.cta-panel::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -40%;
  transform: translateX(-50%);
  width: min(60%, 16rem);
  height: 70%;
  border: 2px solid color-mix(in srgb, var(--terracotta) 55%, transparent);
  border-bottom: none;
  border-radius: 999px 999px 0 0;
  pointer-events: none;
}

.cta-panel h2 {
  position: relative;
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: 650;
  letter-spacing: -0.02em;
}

.cta-panel p {
  position: relative;
  margin: 0 auto 1.5rem;
  max-width: 28rem;
  color: color-mix(in srgb, var(--white) 78%, transparent);
  font-size: 1rem;
}

.cta-panel .btn-primary {
  position: relative;
}

.cta-panel a.mail {
  position: relative;
  display: inline-block;
  margin-top: 1rem;
  color: color-mix(in srgb, var(--white) 85%, transparent);
  font-size: 0.9rem;
}

.cta-panel a.mail:hover {
  color: var(--white);
}

/* Footer */
.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--soft-gray);
  font-size: 0.875rem;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: baseline;
}

.site-footer strong {
  color: var(--charcoal);
  font-weight: 620;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--terracotta);
}

@media (max-width: 520px) {
  .nav .nav-cta {
    display: none;
  }

  .logo img {
    height: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
