:root {
  --ink: #0a0a0a;
  --ink-2: #525252;
  --ink-3: #737373;
  --paper: #fafafa;
  --card: #ffffff;
  --accent: #2563eb;
  --border: #e5e5e5;
  --ring: rgba(37, 99, 235, 0.3);
  --shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-weight: 400;
  font-optical-sizing: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
.header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}

.logo {
  width: 6px;
  height: 6px;
  background: var(--ink);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--ink);
}

.brand span {
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--ink-3);
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.2s;
}

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

.btn-header {
  background: var(--ink);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-header:hover {
  background: var(--ink-2);
  transform: translateY(-1px);
}

/* Hero Section */
.hero {
  padding: 5rem 0 6rem;
  background: var(--paper);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.hero-badge {
  display: inline-block;
  background: var(--card);
  color: var(--ink-3);
  padding: 0.375rem 0.75rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.hero-title strong {
  font-weight: 700;
}

.hero-subtitle {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 2rem;
  line-height: 1.2;
}

.hero-description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink-2);
  margin-bottom: 3rem;
  max-width: 700px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--ink);
  color: white;
  padding: 0.875rem 1.75rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--ink-2);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--ink-2);
  padding: 0.875rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 400;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: var(--card);
  color: var(--ink);
  border-color: var(--ink-3);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-light {
  background: var(--card);
}

/* Add proper spacing between sections */
section + section {
  margin-top: 5rem;
}

/* Override for sections that already have .section class */
.section + .section {
  margin-top: 0;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--ink-2);
  margin-bottom: 3rem;
  max-width: 600px;
  line-height: 1.6;
}

/* Card Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--card);
  padding: 2.5rem;
  border-radius: 0;
  transition: all 0.3s;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--ink-3);
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1.25rem;
  line-height: 1.3;
}

.service-card p {
  font-size: 1rem;
  color: var(--ink-2);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.service-card ul {
  list-style: none;
  padding: 0;
}

.service-card li {
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.6;
  padding-left: 1rem;
  margin-bottom: 0.5rem;
  position: relative;
}

.service-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 3px;
  height: 3px;
  background: var(--accent);
  border-radius: 50%;
}

.service-card strong {
  color: var(--ink);
  font-weight: 600;
}

/* Special dark card */
.service-card.dark {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.service-card.dark h3,
.service-card.dark p,
.service-card.dark li,
.service-card.dark strong {
  color: white;
}

.service-card.dark li::before {
  background: var(--accent);
}

/* Two column layout */
.two-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.column-card {
  background: var(--card);
  padding: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 0;
  box-shadow: var(--shadow);
}

.column-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.column-card p {
  font-size: 1rem;
  color: var(--ink-2);
  line-height: 1.6;
}

/* Clickable service cards (for links to service pages) */
a.service-card {
  position: relative;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}

a.service-card:hover,
a.service-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--ink-3);
  text-decoration: none;
  color: inherit;
}

a.service-card:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

a.service-card::after {
  content: "→";
  position: absolute;
  right: 2.5rem;
  bottom: 2.5rem;
  font-weight: 700;
  color: var(--ink-3);
  opacity: 0;
  transform: translateX(-0.5rem);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

a.service-card:hover::after,
a.service-card:focus-visible::after {
  opacity: 0.7;
  transform: translateX(0);
  color: var(--accent);
}

a.service-card h3,
a.service-card p {
  text-decoration: none;
  color: inherit;
}

/* FAQ Section */
.faq-grid {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
  max-width: 800px;
}

.faq-item {
  background: var(--card);
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 0;
  box-shadow: var(--shadow);
}

.faq-item h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.faq-item p {
  font-size: 1rem;
  color: var(--ink-2);
  line-height: 1.6;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin-top: 3rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
  background: var(--card);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--ring);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
.footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  color: var(--ink-3);
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: var(--ink);
  stroke-width: 2;
}

/* Mobile Navigation */
.nav-menu-mobile {
  position: fixed;
  top: 4rem;
  right: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
  z-index: 100;
  min-width: 12rem;
  display: none;
}

.nav-menu-mobile.active {
  opacity: 1;
  transform: translateX(0);
  display: block;
}

.nav-menu-mobile a {
  display: block;
  padding: 0.5rem 0;
  text-decoration: none;
  color: var(--ink-3);
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.2s;
  border-bottom: 1px solid var(--border);
}

.nav-menu-mobile a:last-child {
  border-bottom: none;
}

.nav-menu-mobile a:hover {
  color: var(--ink);
}

.nav-menu-mobile .btn-header {
  margin-top: 0.5rem;
  text-align: center;
  border: none;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .nav-menu {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .hero {
    padding: 3rem 0 4rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.5rem;
  }

  .section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .services-grid,
  .two-column {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-card,
  .column-card {
    padding: 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}