:root {
  --background: oklch(0.98 0.008 85);
  --foreground: oklch(0.22 0.02 55);
  --muted: oklch(0.48 0.02 55);
  --primary: oklch(0.52 0.14 45);
  --primary-hover: oklch(0.45 0.14 45);
  --primary-foreground: oklch(0.99 0.005 85);
  --card: oklch(1 0.004 85);
  --border: oklch(0.88 0.015 75);
  --accent-soft: oklch(0.94 0.03 75);
  --radius: 0.625rem;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, sans-serif;
  --shadow: 0 1px 2px oklch(0.2 0.02 55 / 0.06), 0 12px 40px oklch(0.2 0.02 55 / 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.65;
  min-height: 100dvh;
}

.page-texture {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 50% at 50% -10%, oklch(0.92 0.04 75 / 0.5), transparent 60%),
    linear-gradient(180deg, oklch(0.99 0.006 85), var(--background));
}

.header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9375rem;
  color: var(--foreground);
  text-decoration: none;
  margin-right: auto;
}

.logo-img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  object-fit: cover;
  flex-shrink: 0;
}

.logo-text strong {
  font-weight: 600;
}

.logo-by {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.8125rem;
}

.hero-brand {
  margin-top: 2rem;
}

.hero-logo {
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.nav {
  display: none;
  gap: 1.5rem;
}

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

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

.nav-cta {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--foreground);
  color: var(--primary-foreground);
  text-decoration: none;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

main {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.hero {
  text-align: center;
  padding: 3rem 0 4rem;
  max-width: 780px;
  margin: 0 auto;
  animation: fadeUp 0.7s ease both;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero h1 em {
  font-style: italic;
  color: oklch(0.38 0.06 45);
}

.lead {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

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

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

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

.btn-secondary:hover {
  border-color: oklch(0.75 0.02 55);
}

.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 4rem;
  animation: fadeUp 0.7s ease 0.1s both;
}

@media (min-width: 768px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat {
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  text-align: left;
}

.stat-value {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.9375rem;
  color: var(--muted);
}

.section {
  margin-bottom: 4rem;
  animation: fadeUp 0.7s ease 0.15s both;
}

.section-muted {
  background: var(--accent-soft);
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  padding: 3rem 1.5rem;
  border-radius: calc(var(--radius) + 8px);
}

.section-head {
  max-width: 640px;
  margin-bottom: 2rem;
}

.section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.section-head p {
  color: var(--muted);
  font-size: 1.0625rem;
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

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

.card {
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
}

.card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

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

.stack-list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.stack-list li {
  padding: 1rem 1.125rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
}

.stack-list code {
  font-size: 0.8125rem;
  padding: 0.1rem 0.35rem;
  border-radius: 0.25rem;
  background: oklch(0.92 0.02 75);
}

.stack-note {
  font-size: 0.875rem;
  color: var(--muted);
}

.stack-note a,
.faq a {
  color: var(--primary);
}

.contact-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.contact-lead {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.contact-facts {
  list-style: none;
  font-size: 0.875rem;
  color: var(--muted);
}

.contact-facts li {
  padding: 0.35rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.contact-facts li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.email-form {
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
}

.email-form label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.email-form input {
  width: 100%;
  padding: 0.875rem 1rem;
  font: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  outline: none;
}

.email-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px oklch(0.52 0.14 45 / 0.15);
}

.email-form input.error {
  border-color: oklch(0.55 0.2 25);
}

.email-form button {
  padding: 0.875rem 1rem;
  font: inherit;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  background: var(--foreground);
  color: var(--primary-foreground);
  cursor: pointer;
}

.email-form button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.form-message {
  min-height: 1.25rem;
  font-size: 0.8125rem;
  margin-top: 0.5rem;
}

.form-message.success {
  color: oklch(0.45 0.12 145);
}

.form-message.error {
  color: oklch(0.5 0.18 25);
}

.form-hint {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.faq details {
  border-top: 1px solid var(--border);
  padding: 1rem 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq p {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: 720px;
}

.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.footer a {
  color: var(--foreground);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
