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

:root {
  --bg: #dfdfcf;
  --bg-dark: #0b0d0b;
  --text: #0b0d0b;
  --text-light: #595959;
  --text-inverse: #fafaf8;
  --accent: #f6833b;
  --accent-green: #00ff88;
  --cream: #fbf1c7;
  --border: rgba(135, 139, 134, 0.2);

  --type-sm: clamp(0.83rem, 0.77rem + 0.15vw, 1.13rem);
  --type-base: clamp(1rem, 0.91rem + 0.22vw, 1.25rem);
  --type-lg: clamp(1.2rem, 1.04rem + 0.4vw, 1.75rem);
  --type-xl: clamp(1.44rem, 1.14rem + 0.75vw, 2.5rem);
  --type-2xl: clamp(1.73rem, 1.18rem + 1.36vw, 3.5rem);
  --type-3xl: clamp(2.07rem, 1.07rem + 2.5vw, 5rem);

  --lh-tight: 1.1;
  --lh-snug: 1.25;
  --lh-normal: 1.5;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: var(--type-base);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: var(--lh-tight);
}

h1 {
  font-size: var(--type-3xl);
  letter-spacing: -0.04em;
}

h2 {
  font-size: var(--type-2xl);
  letter-spacing: -0.03em;
}

h3 {
  font-size: var(--type-lg);
  letter-spacing: -0.02em;
}

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

/* Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 2rem;
}

.nav {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: Georgia, serif;
  font-size: var(--type-lg);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: var(--type-sm);
  opacity: 0.7;
  transition: opacity 0.2s;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-cta {
  background: var(--text);
  color: var(--text-inverse) !important;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  opacity: 1 !important;
  font-weight: 500;
}

.nav-cta:hover {
  background: #282828;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem 2rem 6rem;
  max-width: 1000px;
  margin: 0 auto;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero .subtitle {
  font-size: var(--type-lg);
  color: var(--text-light);
  max-width: 600px;
  margin-bottom: 2.5rem;
  line-height: var(--lh-snug);
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: var(--type-sm);
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background: #282828;
  transform: translateY(-1px);
}

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

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* Sections */
.section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-dark {
  background: var(--bg-dark);
  color: var(--text-inverse);
  max-width: none;
  padding: 6rem 2rem;
}

.section-dark .section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

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

.section .lead {
  text-align: center;
  font-size: var(--type-lg);
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 4rem;
}

.section-dark .lead {
  color: rgba(255, 255, 255, 0.6);
}

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

.section-dark .lead {
  margin-bottom: 4rem;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.section-dark .feature-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.feature-card h3 {
  margin-bottom: 0.75rem;
  font-family: system-ui, sans-serif;
  font-weight: 600;
}

.feature-card p {
  color: var(--text-light);
  font-size: var(--type-sm);
  line-height: var(--lh-normal);
}

.section-dark .feature-card p {
  color: rgba(255, 255, 255, 0.6);
}

/* Steps */
.steps {
  max-width: 700px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3rem;
  align-items: flex-start;
}

.step:last-child {
  margin-bottom: 0;
}

.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--text);
  color: var(--text-inverse);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: var(--type-sm);
  font-family: system-ui, sans-serif;
}

.step-content h3 {
  margin-bottom: 0.5rem;
  font-family: system-ui, sans-serif;
  font-weight: 600;
}

.step-content p {
  color: var(--text-light);
  font-size: var(--type-sm);
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 8rem 2rem;
  background: var(--cream);
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--text-light);
  font-size: var(--type-lg);
  margin-bottom: 2rem;
}

/* Footer */
.footer {
  padding: 2rem;
  text-align: center;
  font-size: var(--type-sm);
  color: var(--text-light);
  border-top: 1px solid var(--border);
}

.footer a {
  opacity: 0.7;
  transition: opacity 0.2s;
}

.footer a:hover {
  opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 7rem 1.5rem 4rem;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }

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

  .section {
    padding: 4rem 1.5rem;
  }

  .header {
    padding: 1rem 1.5rem;
    background: rgba(223, 223, 207, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}
