:root {
  --ink: #1b1216;
  --muted: #6c5a63;
  --accent: #f3c866;
  --accent-deep: #c79b32;
  --claret: #6f1d3a;
  --claret-deep: #4b0f27;
  --blue: #9ad0e6;
  --blue-deep: #5ba7c8;
  --surface: #f8f4f6;
  --surface-strong: #efe4e8;
  --panel: #3a1224;
  --panel-text: #fdf8fa;
  --card: #ffffff;
  --card-text: #1b1216;
  --header-bg: rgba(252, 248, 250, 0.92);
  --bg-radial-1: rgba(154, 208, 230, 0.18);
  --bg-radial-2: rgba(111, 29, 58, 0.12);
  --bg-grad-1: #fdf9fb;
  --bg-grad-2: #f4e9ee;
  --bg-grad-3: #ead7de;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(27, 18, 22, 0.16);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2e9ee;
    --muted: #c2b6bd;
    --accent: #f3c866;
    --accent-deep: #d7a73f;
    --claret: #9a2a4f;
    --claret-deep: #5d0e2f;
    --blue: #8fcfe6;
    --blue-deep: #4aa7d2;
    --surface: #1b1318;
    --surface-strong: #24171e;
    --panel: #200b14;
    --panel-text: #f8edf1;
    --card: #161017;
    --card-text: #f2e9ee;
    --header-bg: rgba(20, 14, 18, 0.9);
    --bg-radial-1: rgba(143, 207, 230, 0.12);
    --bg-radial-2: rgba(154, 42, 79, 0.22);
    --bg-grad-1: #140d12;
    --bg-grad-2: #1a1016;
    --bg-grad-3: #23131b;
    --white: #ffffff;
    --shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  }
}

[data-theme="light"] {
  --ink: #1b1216;
  --muted: #6c5a63;
  --accent: #f3c866;
  --accent-deep: #c79b32;
  --claret: #6f1d3a;
  --claret-deep: #4b0f27;
  --blue: #9ad0e6;
  --blue-deep: #5ba7c8;
  --surface: #f8f4f6;
  --surface-strong: #efe4e8;
  --panel: #3a1224;
  --panel-text: #fdf8fa;
  --card: #ffffff;
  --card-text: #1b1216;
  --header-bg: rgba(252, 248, 250, 0.92);
  --bg-radial-1: rgba(154, 208, 230, 0.18);
  --bg-radial-2: rgba(111, 29, 58, 0.12);
  --bg-grad-1: #fdf9fb;
  --bg-grad-2: #f4e9ee;
  --bg-grad-3: #ead7de;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(27, 18, 22, 0.16);
}

[data-theme="dark"] {
  --ink: #f2e9ee;
  --muted: #c2b6bd;
  --accent: #f3c866;
  --accent-deep: #d7a73f;
  --claret: #9a2a4f;
  --claret-deep: #5d0e2f;
  --blue: #8fcfe6;
  --blue-deep: #4aa7d2;
  --surface: #1b1318;
  --surface-strong: #24171e;
  --panel: #200b14;
  --panel-text: #f8edf1;
  --card: #161017;
  --card-text: #f2e9ee;
  --header-bg: rgba(20, 14, 18, 0.9);
  --bg-radial-1: rgba(143, 207, 230, 0.12);
  --bg-radial-2: rgba(154, 42, 79, 0.22);
  --bg-grad-1: #140d12;
  --bg-grad-2: #1a1016;
  --bg-grad-3: #23131b;
  --white: #ffffff;
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

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

body {
  font-family: "Space Grotesk", "Helvetica Neue", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, var(--bg-radial-1), transparent 55%),
    radial-gradient(circle at 88% 12%, var(--bg-radial-2), transparent 45%),
    linear-gradient(135deg, var(--bg-grad-1) 0%, var(--bg-grad-2) 50%, var(--bg-grad-3) 100%);
  min-height: 100vh;
  line-height: 1.6;
}

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

img {
  max-width: 100%;
  display: block;
}

.site-header {
  padding: 24px 6vw;
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}

.logo img {
  width: 80%;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.95rem;
}

.nav-link {
  position: relative;
  padding-bottom: 6px;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-link.button::after {
  display: none;
}

.nav-link.button.is-active {
  box-shadow: 0 0 0 2px rgba(154, 208, 230, 0.5);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(111, 29, 58, 0.25);
  background: rgba(255, 255, 255, 0.75);
}

.theme-button {
  border: 0;
  background: transparent;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.theme-button.is-active {
  background: var(--claret);
  color: var(--white);
}

.button {
  border: 1px solid var(--ink);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 500;
  transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--claret);
  color: var(--white);
  border-color: var(--claret-deep);
}

.button.ghost {
  border-color: rgba(106, 27, 58, 0.2);
  color: var(--claret);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  padding: 64px 6vw 80px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--muted);
}

h1,
h2,
h3,
h4 {
  font-family: "IBM Plex Serif", "Times New Roman", serif;
  font-weight: 600;
}

h1 {
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  line-height: 1.1;
}

.lead {
  font-size: 1.1rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.stat-card {
  background: var(--card);
  color: var(--card-text);
  padding: 16px 18px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  animation: floatIn 0.8s ease forwards;
  opacity: 0;
}

.stat-number {
  display: block;
  font-size: 1.4rem;
  font-weight: 600;
}

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

.hero-panel {
  display: flex;
  justify-content: center;
  align-items: center;
}

.panel-card {
  background: var(--panel);
  color: var(--panel-text);
  padding: 28px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  max-width: 360px;
  width: 100%;
  border: 1px solid rgba(154, 208, 230, 0.25);
}

.panel-card ul {
  list-style: none;
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.panel-card li::before {
  content: "•";
  color: var(--blue);
  margin-right: 8px;
}

.panel-footer {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.section {
  padding: 70px 6vw;
}

section[id] {
  scroll-margin-top: 140px;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.skill-item {
  padding: 16px;
  border-radius: 12px;
  background: var(--card);
  color: var(--card-text);
  box-shadow: var(--shadow);
  text-align: center;
  font-weight: 500;
  animation: revealUp 0.8s ease forwards;
  opacity: 0;
}

.skill-item:nth-child(1) { animation-delay: 0.1s; }
.skill-item:nth-child(2) { animation-delay: 0.2s; }
.skill-item:nth-child(3) { animation-delay: 0.3s; }
.skill-item:nth-child(4) { animation-delay: 0.4s; }
.skill-item:nth-child(5) { animation-delay: 0.5s; }
.skill-item:nth-child(6) { animation-delay: 0.6s; }

.service-card {
  padding: 24px;
  border-radius: 18px;
  background: var(--card);
  color: var(--card-text);
  box-shadow: var(--shadow);
  animation: revealUp 0.8s ease forwards;
  opacity: 0;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  background: linear-gradient(120deg, var(--surface), var(--surface-strong));
}

.process-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, auto);
  align-items: start;
}

.process-grid .section-header {
  grid-column: 1;
  grid-row: 1;
}

.process-grid .process-steps {
  grid-column: 1;
  grid-row: 2;
}

.process-grid .accent-card {
  grid-column: 2;
  grid-row: 2;
  align-self: stretch;
  min-height: 0;
  overflow: hidden;
  margin-top: 24px;
}

.process-grid .accent-card h3 {
  margin-top: 0;
}

.process-grid .accent-card ul {
  margin-top: 18px;
}

.process-steps {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 14px;
  background: var(--card);
  animation: revealUp 0.8s ease forwards;
  opacity: 0;
}

.step span {
  font-weight: 600;
  color: var(--claret);
}

.accent-card {
  background: var(--claret);
  color: var(--white);
  padding: 28px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.accent-card ul {
  list-style: none;
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.accent-card li::before {
  content: "✓";
  color: var(--blue);
  margin-right: 10px;
}

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.outcome {
  padding: 22px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid rgba(106, 27, 58, 0.15);
  animation: revealUp 0.8s ease forwards;
  opacity: 0;
}

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  background: var(--surface-strong);
  border-top: 1px solid rgba(106, 27, 58, 0.18);
}

.contact-details {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.contact-details span {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-form {
  display: grid;
  gap: 16px;
  background: var(--card);
  color: var(--card-text);
  padding: 24px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

input,
textarea {
  border: 1px solid rgba(16, 20, 24, 0.2);
  border-radius: 12px;
  padding: 10px 12px;
  font-family: inherit;
  background: var(--card);
  color: var(--card-text);
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  padding: 40px 6vw;
  background: var(--claret-deep);
  color: var(--white);
}

@media (prefers-color-scheme: dark) {
  body {
    background:
      radial-gradient(circle at 12% 20%, var(--bg-radial-1), transparent 55%),
      radial-gradient(circle at 90% 10%, var(--bg-radial-2), transparent 45%),
      linear-gradient(135deg, var(--bg-grad-1) 0%, var(--bg-grad-2) 50%, var(--bg-grad-3) 100%);
  }

  .site-header {
    background: var(--header-bg);
  }

  .theme-toggle {
    border-color: rgba(143, 207, 230, 0.35);
    background: rgba(18, 12, 16, 0.8);
  }

  .service-card,
  .stat-card,
  .contact-form {
    background: var(--card);
  }

  input,
  textarea {
    background: var(--card);
    color: var(--card-text);
    border-color: rgba(242, 233, 238, 0.2);
  }
}

.footer-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.social-links {
  display: flex;
  gap: 12px;
  align-items: center;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.social-links a:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

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

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

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .site-header {
    position: static;
  }

  .process-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .process-grid .section-header,
  .process-grid .process-steps,
  .process-grid .accent-card {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 700px) {
  .hero {
    padding-top: 32px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .panel-card {
    max-width: none;
  }

  .footer {
    flex-direction: column;
  }
}
