/* ==========================================================================
   Base — reset, typography, layout primitives & shared components
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  color: var(--text);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

strong {
  font-weight: 600;
}

section[id],
header[id] {
  scroll-margin-top: calc(var(--nav-h) + 8px);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: var(--z-skip);
  padding: 12px 18px;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform var(--t-fast) var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-y) calc(var(--section-y) + 8px);
  background: var(--bg);
  color: var(--text-2);
}

/* Boxed module: an inset panel that floats inside the white page */
.section-boxed {
  padding: clamp(8px, 1.1vw, 16px);
  background: var(--white);
}

.panel {
  position: relative;
  border-radius: var(--r-xl);
  padding-block: var(--section-y) calc(var(--section-y) + 8px);
  background: var(--bg);
  color: var(--text-2);
  overflow: hidden;
  isolation: isolate;
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}

/* --------------------------------------------------------------------------
   Section headers: eyebrow → headline → supporting copy
   -------------------------------------------------------------------------- */

.section-head {
  display: grid;
  gap: var(--s-2);
  max-width: 760px;
  margin-bottom: var(--s-6);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}

.section-head--split {
  max-width: none;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: end;
}

.section-head--split > :first-child {
  grid-column: 1 / span 7;
  display: grid;
  gap: var(--s-2);
}

.section-head--split > .section-sub {
  grid-column: 9 / span 4;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: currentColor;
  flex-shrink: 0;
}

.h2 {
  font-size: var(--fs-h2);
  letter-spacing: -0.032em;
  line-height: 1.08;
}

.section-sub {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--text-2);
  max-width: 60ch;
}

/* Headline highlight: a crisp orange block sized to the letterforms,
   repeated per line when the phrase wraps */
.hl {
  color: #ffffff;
  padding-inline: 0.14em;
  margin-inline: -0.02em;
  background-image: linear-gradient(var(--orange), var(--orange));
  background-repeat: no-repeat;
  background-size: 100% 1.02em;
  background-position: 0 58%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.theme-orange .hl {
  background-image: linear-gradient(var(--ink), var(--ink));
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease),
    background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform var(--t-fast) var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-lg {
  min-height: 60px;
  padding: 0 30px;
  font-size: 1.0625rem;
}

.btn-sm {
  min-height: 44px;
  padding: 0 18px;
  font-size: var(--fs-sm);
}

.btn-primary {
  background: var(--orange);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--orange-hover);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), var(--shadow-orange);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--text);
  box-shadow: var(--shadow-md);
}

.btn-light {
  background: #ffffff;
  color: var(--ink);
}

.btn-light:hover {
  box-shadow: 0 14px 28px -12px rgba(23, 19, 15, 0.45);
}

.btn-outline-light {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-outline-light:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-block {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Cards, icon tiles, tags, stars
   -------------------------------------------------------------------------- */

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(24px, 2.3vw, 32px);
  transition: transform var(--t-med) var(--ease), border-color var(--t-med) var(--ease),
    box-shadow var(--t-med) var(--ease);
}

.card-hover:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.theme-dark .card-hover:hover {
  box-shadow: 0 18px 36px -18px rgba(0, 0, 0, 0.7);
}

.card-title {
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--text);
}

.card-text {
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--text-2);
}

.icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.icon-tile {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  background: var(--icon-bg);
  color: var(--accent);
  transition: transform var(--t-med) var(--ease);
}

.card-hover:hover .icon-tile {
  transform: translateY(-2px) rotate(-4deg);
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: var(--r-xs);
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: var(--fs-xs);
  font-weight: 500;
  line-height: 1;
  color: var(--text-2);
  white-space: nowrap;
}

.stars {
  display: flex;
  gap: 2px;
  color: var(--accent);
}

.stars svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.check-list {
  align-content: start;
  display: grid;
  gap: 12px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--text-2);
}

.check-list .icon {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  stroke-width: 2.25;
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Motion: load entrance (hero) & scroll reveal (rest of page)
   -------------------------------------------------------------------------- */

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

.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* Small phones: icon-left compact cards keep long card lists scannable */
@media (max-width: 560px) {
  .card.card--compact-sm {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    column-gap: var(--s-2);
    row-gap: 4px;
    padding: 20px;
  }

  .card.card--compact-sm > .icon-tile {
    grid-row: span 3;
    width: 44px;
    height: 44px;
    margin: 0;
  }

  .card.card--compact-sm > :not(.icon-tile) {
    grid-column: 2;
  }
}

@media (max-width: 1023px) {
  .section-head--split > :first-child,
  .section-head--split > .section-sub {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  :root {
    --nav-h: 64px;
  }

  .section-head {
    margin-bottom: var(--s-4);
  }

  .panel {
    border-radius: var(--r-lg);
  }

  .btn-lg {
    min-height: 56px;
    padding: 0 24px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
