:root {
  color-scheme: light;
  --bg: #FBF7F2;
  --ink: #201B16;
  --ink-soft: #55504A;
  --orange: #FF5300;
  --orange-deep: #D94500;
  --blue: #3E8BA7;
  --blue-solid: #3E8BA7;
  --line: #E5DFD5;
  --card-bg: #FFFFFF;
  --input-bg: #FFFFFF;
  --max-width: 960px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #17140F;
    --ink: #F3EEE7;
    --ink-soft: #B6ADA1;
    --orange: #FF6A2B;
    --orange-deep: #FF8A50;
    --blue: #6FBBDA;
    --line: #332C23;
    --card-bg: #201B15;
    --input-bg: #201B15;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #17140F;
  --ink: #F3EEE7;
  --ink-soft: #B6ADA1;
  --orange: #FF6A2B;
  --orange-deep: #FF8A50;
  --blue: #6FBBDA;
  --line: #332C23;
  --card-bg: #201B15;
  --input-bg: #201B15;
}

html,
body,
.site-header,
.solution-card,
.form-row input,
.form-row textarea {
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--blue);
}

h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 16px;
}

p {
  margin: 0 0 16px;
  color: var(--ink-soft);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.logo-mark {
  width: 40px;
  height: 40px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

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

.primary-nav a:hover {
  color: var(--orange-deep);
}

.primary-nav a.nav-cta {
  background: var(--orange);
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
}

.primary-nav a.nav-cta:hover {
  background: var(--blue-solid);
  color: #fff;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0;
  border-radius: 999px;
}

.theme-toggle:hover {
  color: var(--orange-deep);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.theme-toggle .icon-moon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
}

/* Buttons */

.button {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
}

.button-primary {
  background: var(--orange);
  color: #fff;
}

.button-primary:hover {
  background: var(--blue-solid);
}

.button-secondary {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--line);
  padding: 12px 26px;
  margin-top: 8px;
}

.button-secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* Sections */

main section {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}

main section:last-of-type {
  border-bottom: none;
}

.section-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 48px;
}

.accent-blue {
  color: var(--blue);
  font-weight: 700;
}

/* Hero */

.hero {
  padding-top: 72px;
}

.hero-copy {
  max-width: 880px;
  margin-bottom: 40px;
}

.hero-copy p {
  max-width: 680px;
  font-size: 1.25rem;
  color: var(--ink);
}

.hero-copy .hero-open {
  max-width: 800px;
  font-size: 3.75rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 28px;
}

.hero-close {
  font-weight: 600;
}

/* How I Work */

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

.step-number {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 12px;
}

.step h3 {
  font-size: 1.15rem;
}

.how-i-work-more {
  max-width: 680px;
  margin-top: 48px;
}

.how-i-work-more p {
  font-size: 1.1rem;
}

/* Solutions */

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

.solution-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
}

.solution-card h3 {
  font-size: 1.15rem;
  color: var(--orange-deep);
}

.solution-card p {
  margin-bottom: 0;
}

/* About */

.about-layout {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.about-photo {
  flex-shrink: 0;
  width: 198px;
  height: auto;
}

.about-content {
  max-width: 680px;
}

.about-content p {
  font-size: 1.1rem;
}

.about-close {
  font-weight: 600;
  color: var(--ink);
}

/* Contact */

.contact-heading {
  font-size: 1.6rem;
  max-width: 480px;
}

.contact-form {
  max-width: 480px;
  margin-top: 32px;
}

.form-row {
  margin-bottom: 20px;
}

.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--ink);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

.form-success {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
}

.form-reset {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--blue);
  text-decoration: none;
}

.form-reset:hover {
  color: var(--orange-deep);
}

.form-error {
  margin-top: 16px;
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--orange-deep);
}

/* Footer */

.site-footer {
  padding: 32px 0;
}

.site-footer .wrap {
  color: var(--ink-soft);
  font-size: 0.85rem;
}

/* Responsive */

@media (max-width: 720px) {
  .primary-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    display: none;
  }

  .primary-nav.open {
    display: flex;
  }

  .primary-nav a {
    width: 100%;
    padding: 12px 0;
  }

  .primary-nav a.nav-cta {
    width: auto;
    margin-top: 8px;
  }

  .primary-nav .theme-toggle {
    margin-top: 12px;
  }

  .nav-toggle {
    display: flex;
  }

  main section {
    padding: 64px 0;
  }

  .steps,
  .solution-cards {
    grid-template-columns: 1fr;
  }

  .about-layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-content {
    text-align: left;
  }

  .hero-copy p {
    font-size: 1.1rem;
  }

  .hero-copy .hero-open {
    font-size: 2.25rem;
  }
}
