/* ===== Design tokens ===== */
:root {
  --color-bg: oklch(97% 0.015 75);
  --color-surface: oklch(99% 0.006 75);
  --color-surface-raised: oklch(100% 0 0);
  --color-text: oklch(22% 0.02 40);
  --color-text-muted: oklch(45% 0.02 40);
  --color-terracotta: oklch(56% 0.16 40);
  --color-terracotta-dark: oklch(46% 0.15 38);
  --color-teal: oklch(32% 0.06 200);
  --color-gold: oklch(74% 0.12 85);
  --color-line: oklch(88% 0.02 60);

  --text-xs: 0.8rem;
  --text-sm: 0.925rem;
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.09rem);
  --text-lg: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --text-xl: clamp(1.6rem, 1.35rem + 1.2vw, 2.4rem);
  --text-hero: clamp(2.6rem, 1.9rem + 3.4vw, 4.6rem);

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: clamp(2.5rem, 2rem + 2vw, 4rem);
  --space-section: clamp(4rem, 3rem + 5vw, 8rem);

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;

  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background:
    radial-gradient(circle at 15% 0%, oklch(93% 0.03 70 / 0.6), transparent 45%),
    radial-gradient(circle at 100% 20%, oklch(90% 0.04 40 / 0.4), transparent 40%),
    var(--color-bg);
  line-height: 1.6;
}

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

.wrap {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: oklch(97% 0.015 75 / 0.85);
  border-bottom: 1px solid var(--color-line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.9rem;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  text-decoration: none;
  color: var(--color-text);
}
.brand .mark {
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--color-terracotta);
}
.nav-links { display: flex; gap: clamp(1rem, 2vw, 2rem); align-items: center; }
.nav-links a {
  text-decoration: none;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: color var(--duration-fast) var(--ease-out-expo);
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--color-terracotta-dark); }
.nav-cta {
  background: var(--color-teal);
  color: white !important;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--color-terracotta-dark); }

/* ===== Hero ===== */
.hero {
  padding-block: clamp(3rem, 5vw, 6rem) var(--space-section);
  position: relative;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-terracotta-dark);
  background: oklch(90% 0.06 45 / 0.5);
  border: 1px solid oklch(75% 0.1 45 / 0.5);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  margin-bottom: var(--space-md);
}
h1 {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  line-height: 1.03;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-md);
  max-width: 16ch;
}
h1 em {
  font-style: normal;
  color: var(--color-terracotta);
}
.hero-sub {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 44ch;
  margin: 0 0 var(--space-lg);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: var(--text-sm);
  transition: transform var(--duration-fast) var(--ease-out-expo), box-shadow var(--duration-fast) var(--ease-out-expo);
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--color-terracotta);
  color: white;
  box-shadow: 0 8px 24px -8px oklch(56% 0.16 40 / 0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -8px oklch(56% 0.16 40 / 0.7); }
.btn-ghost {
  background: transparent;
  color: var(--color-teal);
  border: 1.5px solid var(--color-line);
}
.btn-ghost:hover { border-color: var(--color-teal); transform: translateY(-2px); }

.hero-proof {
  margin-top: var(--space-lg);
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  flex-wrap: wrap;
}
.proof-item { max-width: 20ch; }
.proof-item .num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--color-terracotta-dark);
  display: block;
}
.proof-item .lbl { font-size: var(--text-xs); color: var(--color-text-muted); }

/* ===== Section shell ===== */
section { padding-block: var(--space-section); }
.section-head { max-width: 60ch; margin-bottom: var(--space-lg); }
.section-eyebrow {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-teal);
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
}
h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin: 0 0 0.6rem;
  letter-spacing: -0.01em;
}
.section-desc { color: var(--color-text-muted); font-size: var(--text-base); }

/* ===== Pricing (bento) ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.tier-card {
  background: var(--color-surface-raised);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: transform var(--duration-normal) var(--ease-out-expo), box-shadow var(--duration-normal) var(--ease-out-expo);
  position: relative;
}
.tier-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -20px oklch(30% 0.02 40 / 0.35); }
.tier-card.featured {
  border-color: var(--color-terracotta);
  background: linear-gradient(180deg, oklch(98% 0.02 60), var(--color-surface-raised) 40%);
}
.tier-badge {
  position: absolute;
  top: -0.7rem;
  right: 1.5rem;
  background: var(--color-terracotta);
  color: white;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  letter-spacing: 0.03em;
}
.tier-name { font-family: var(--font-display); font-size: 1.3rem; margin: 0; }
.tier-price { font-family: var(--font-display); font-size: 2.2rem; margin: 0; color: var(--color-terracotta-dark); }
.tier-price small { font-family: var(--font-body); font-size: 0.9rem; color: var(--color-text-muted); font-weight: 400; }
.tier-features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; flex-grow: 1; }
.tier-features li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-left: 1.4rem;
  position: relative;
}
.tier-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  background: var(--color-gold);
  transform: rotate(45deg);
}
.tier-cta {
  width: 100%;
  text-align: center;
  background: var(--color-teal);
  color: white;
}
.tier-card.featured .tier-cta { background: var(--color-terracotta); }

/* ===== Process ===== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.process-step {
  padding: var(--space-md) var(--space-sm);
  border-left: 2px solid var(--color-line);
  position: relative;
}
.process-step .step-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--color-gold);
  display: block;
  margin-bottom: 0.4rem;
}
.process-step h3 { font-size: 1.05rem; margin: 0 0 0.3rem; }
.process-step p { margin: 0; font-size: var(--text-sm); color: var(--color-text-muted); }

/* ===== Portfolio callout ===== */
.portfolio-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-lg);
  background: var(--color-teal);
  color: oklch(96% 0.01 200);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  align-items: center;
  overflow: hidden;
  position: relative;
}
.portfolio-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, oklch(100% 0 0 / 0.06) 1px, transparent 1px);
  background-size: 16px 16px;
  pointer-events: none;
}
.portfolio-card h2 { color: white; }
.portfolio-card p { color: oklch(90% 0.02 200); }
.portfolio-visual {
  background: oklch(20% 0.03 200);
  border-radius: var(--radius-md);
  padding: 1rem;
  border: 1px solid oklch(40% 0.03 200);
}
.portfolio-visual img { border-radius: 8px; }
.portfolio-card .btn-primary { background: var(--color-gold); color: var(--color-teal); font-weight: 700; }

/* ===== Contact form ===== */
.contact-shell {
  background: var(--color-surface-raised);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}
.contact-copy .price-anchor {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-terracotta-dark);
}
form { display: flex; flex-direction: column; gap: 0.85rem; }
label { font-size: var(--text-xs); font-weight: 600; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
input, textarea, select {
  font-family: var(--font-body);
  font-size: var(--text-base);
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-line);
  background: var(--color-surface);
  color: var(--color-text);
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-terracotta);
  box-shadow: 0 0 0 3px oklch(56% 0.16 40 / 0.15);
}
textarea { resize: vertical; min-height: 90px; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.form-status { font-size: var(--text-sm); min-height: 1.4em; }
.form-status.ok { color: oklch(45% 0.14 145); }
.form-status.err { color: oklch(50% 0.18 25); }
.hp { position: absolute; left: -9999px; }

/* ===== Footer ===== */
footer {
  border-top: 1px solid var(--color-line);
  padding-block: var(--space-lg);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.footer-grid address { font-style: normal; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-card { grid-template-columns: 1fr; }
  .contact-shell { grid-template-columns: 1fr; }
  .nav-links a:not(.nav-cta) { display: none; }
}
@media (max-width: 520px) {
  .process-grid { grid-template-columns: 1fr; }
  .hero-proof { gap: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
