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

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

:root {
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --max-width: 64rem;

  --bg: #fafaf9;
  --surface: #ffffff;
  --text: #1c1917;
  --text-muted: #57534e;
  --text-subtle: #78716c;
  --border: #e7e5e4;
  --border-strong: #d6d3d1;
  --input-bg: #fafaf9;

  --accent: #c2410c;
  --accent-hover: #9a3412;
  --on-accent: #ffffff;

  --success-bg: #f0fdf4;
  --success-text: #166534;
  --error-text: #b91c1c;

  --radius-sm: 0.625rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.25rem;

  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.05);
  --shadow-md: 0 1px 2px rgba(28, 25, 23, 0.04), 0 12px 32px -16px rgba(28, 25, 23, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0a09;
    --surface: #1c1917;
    --text: #fafaf9;
    --text-muted: #a8a29e;
    --text-subtle: #78716c;
    --border: #292524;
    --border-strong: #44403c;
    --input-bg: #0c0a09;

    --accent: #fb923c;
    --accent-hover: #fdba74;
    --on-accent: #431407;

    --success-bg: #052e16;
    --success-text: #86efac;
    --error-text: #fca5a5;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -20px rgba(0, 0, 0, 0.6);
  }
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

a {
  color: inherit;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.875rem 1rem;
}

@media (min-width: 640px) {
  .site-header-inner {
    padding: 1rem 1.5rem;
  }
}

.logo {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

@media (min-width: 640px) {
  .logo {
    font-size: 1.25rem;
  }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .site-nav {
    gap: 1.25rem;
  }
}

.nav-link {
  display: none;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
}

.nav-link:hover {
  color: var(--accent);
}

@media (min-width: 640px) {
  .nav-link {
    display: inline;
  }
}

/* Main layout */

main {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  main {
    padding: 0 1.5rem;
  }
}

section {
  padding: 3.5rem 0;
}

@media (min-width: 640px) {
  section {
    padding: 4.5rem 0;
  }
}

/* Typography */

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.375rem, 6vw, 3.5rem);
}

h1 em {
  font-style: italic;
  color: var(--accent);
}

h2 {
  font-size: clamp(1.625rem, 4vw, 2.125rem);
}

.kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  margin-bottom: 1rem;
}

.section-title {
  text-align: center;
  margin-bottom: 1rem;
}

.section-lead {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: 36rem;
  margin: 0 auto;
}

/* Hero */

.hero {
  padding-top: 4.5rem;
  padding-bottom: 3.5rem;
  text-align: center;
}

@media (min-width: 640px) {
  .hero {
    padding-top: 6.5rem;
    padding-bottom: 4.5rem;
  }
}

.hero h1 {
  max-width: 22ch;
  margin-inline: auto;
}

.hero-lead {
  margin: 1.5rem auto 0;
  max-width: 34rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-muted);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.75rem 2rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-sm {
  min-height: 2.25rem;
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--shadow-sm);
}

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

.btn-primary:disabled {
  opacity: 0.7;
  cursor: default;
}

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

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

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn-primary {
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  }

  .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
  }
}

.btn-block {
  width: 100%;
}

/* Cards */

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

/* Founder */

.card-founder {
  position: relative;
  overflow: hidden;
  padding: 0 1.5rem 2rem;
  text-align: center;
}

.founder-portrait {
  height: 22rem;
  margin: 0 -1.5rem;
  background: radial-gradient(
    closest-side at 50% 45%,
    color-mix(in srgb, var(--accent) var(--portrait-glow, 9%), transparent),
    transparent
  );
  -webkit-mask-image: linear-gradient(to bottom, #000 52%, transparent 97%);
  mask-image: linear-gradient(to bottom, #000 52%, transparent 97%);
}

@media (prefers-color-scheme: dark) {
  .founder-portrait {
    --portrait-glow: 15%;
  }
}

.founder-portrait img {
  display: block;
  height: 100%;
  width: auto;
  margin: 0 auto;
  -webkit-mask-image: linear-gradient(to right, transparent 1%, #000 16%, #000 84%, transparent 99%);
  mask-image: linear-gradient(to right, transparent 1%, #000 16%, #000 84%, transparent 99%);
}

.founder-claim {
  position: relative;
  z-index: 1;
  margin-top: -7.5rem;
  font-size: clamp(1.875rem, 8vw, 2.75rem);
}

.founder-body {
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .card-founder {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0 3rem;
    text-align: left;
  }

  .founder-portrait {
    order: 2;
    flex: 1 1 44%;
    align-self: flex-end;
    height: 24rem;
    margin: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .founder-body {
    flex: 1 1 56%;
    max-width: 32rem;
    padding: 3.5rem 0;
  }

  .founder-claim {
    margin-top: 0;
  }
}

@media (min-width: 1024px) {
  .founder-portrait {
    height: 27rem;
    margin-left: -4rem;
  }
}

.founder-body p {
  margin-top: 1rem;
  color: var(--text-muted);
}

.founder-body strong {
  color: var(--text);
  font-weight: 600;
}

.founder-body .founder-signature {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-subtle);
}

/* Motivation */

.motivation .section-title {
  margin-bottom: 2rem;
}

.motivation-body {
  max-width: 38rem;
  margin: 0 auto;
}

.motivation-body p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.75;
  text-wrap: pretty;
}

.motivation-body p + p {
  margin-top: 1.25rem;
}

.motivation-body strong {
  color: var(--text);
  font-weight: 600;
}

/* Case cards */

.case-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 38rem;
  margin: 0 auto;
}

.case-card {
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .case-card {
    padding: 1.75rem 2rem;
  }
}

.case-card h3 {
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 0.625rem;
}

.case-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  text-wrap: pretty;
}

.case-card strong {
  color: var(--text);
  font-weight: 600;
}

.case-result {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.case-result-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

/* Pilot offer */

.pilot .section-title {
  margin-bottom: 2rem;
}

.card-pilot {
  max-width: 38rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  text-align: center;
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
  border-color: color-mix(in srgb, var(--accent) 22%, var(--border));
}

@media (min-width: 768px) {
  .card-pilot {
    padding: 2.75rem 2.5rem;
  }
}

.pilot-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  border-radius: 999px;
  padding: 0.375rem 0.875rem;
  margin-bottom: 1.75rem;
}

.pilot-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 20rem;
  margin: 0 auto;
  text-align: left;
}

.pilot-step {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  position: relative;
}

.pilot-step-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.875rem;
  height: 2.875rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 1.125rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.pilot-step-body {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.pilot-step-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
}

.pilot-step-note {
  font-size: 0.8125rem;
  color: var(--text-subtle);
}

@media (min-width: 640px) {
  .pilot-steps {
    flex-direction: row;
    max-width: none;
    gap: 0;
  }

  .pilot-step {
    flex: 1;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .pilot-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 1.4375rem;
    left: 50%;
    width: 100%;
    height: 2px;
    background: color-mix(in srgb, var(--accent) 30%, var(--border));
    z-index: 0;
  }

  .pilot-step-body {
    align-items: center;
  }
}

.pilot-text {
  max-width: 32rem;
  margin: 0 auto 1.75rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
  text-wrap: pretty;
}

.pilot-text strong {
  color: var(--text);
  font-weight: 600;
}

.pilot-text:has(+ .pilot-price) {
  margin-bottom: 0.875rem;
}

.card-pilot .btn {
  width: 100%;
  max-width: 18rem;
}

/* Contact */

.contact-lead {
  margin: 3rem auto 2rem;
}

.contact-lead strong {
  color: var(--text);
  font-weight: 600;
}

.card-contact {
  max-width: 36rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

@media (min-width: 640px) {
  .card-contact {
    padding: 2.5rem;
  }
}

.contact-form {
  text-align: left;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.form-field label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.optional {
  font-weight: 400;
  color: var(--text-subtle);
}

.form-field input,
.form-field textarea {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--input-bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-field textarea {
  resize: vertical;
  min-height: 6rem;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-subtle);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.form-privacy {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-subtle);
  margin-bottom: 1rem;
}

.form-error {
  font-size: 0.875rem;
  color: var(--error-text);
  margin-bottom: 1rem;
}

.form-success {
  font-size: 0.875rem;
  color: var(--success-text);
  background: var(--success-bg);
  border-radius: var(--radius-sm);
  padding: 0.625rem 0.875rem;
  margin-bottom: 1rem;
}

.contact-alternatives {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.75rem;
  border-top: 1px solid var(--border);
  margin-top: 1.75rem;
  padding-top: 1.5rem;
}

.contact-link {
  font-size: 0.875rem;
  color: var(--text-subtle);
  text-decoration: none;
}

.contact-link:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 1rem;
  text-align: center;
}

.footer-projects {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1rem;
}

.footer-project {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--text-subtle);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-project:hover {
  color: var(--accent);
}

.footer-project img,
.footer-project-icon {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.25rem;
  flex-shrink: 0;
}

.footer-project img {
  object-fit: cover;
}

.footer-project-icon {
  color: var(--text-muted);
}

.footer-project:hover .footer-project-icon {
  color: var(--accent);
}

.footer-legal {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}

.footer-legal-link {
  font-size: 0.8125rem;
  color: var(--text-subtle);
  text-decoration: none;
}

.footer-legal-link:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-meta {
  font-size: 0.75rem;
  color: var(--text-subtle);
}

/* Legal pages */

.legal {
  max-width: 38rem;
  margin: 0 auto;
}

.legal h1 {
  font-size: clamp(1.875rem, 5vw, 2.5rem);
  margin-bottom: 2rem;
}

.legal h2 {
  font-size: 1.375rem;
  margin: 2.25rem 0 0.75rem;
}

.legal h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}

.legal p,
.legal ul {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.legal p + p {
  margin-top: 0.75rem;
}

.legal ul {
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}

.legal a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Focus */

a:focus-visible,
.btn:focus-visible,
.form-field input:focus-visible,
.form-field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
