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

:root {
  --bg: #0d0d0d;
  --surface: #191715;
  --ink: #ede5d8;
  --primary: #b8832a;
  --primary-hover: oklch(0.70 0.20 80);
  --accent: #8b2020;
  --muted: #a89c88;
  --border: oklch(0.18 0.01 80);
  --focus-offset: 3px;
  --radius-sm: 2px;
  --radius-md: 6px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 32px;
  --space-xl: 64px;
  --space-xxl: 128px;
  --max-width: 1200px;
  --nav-height: 64px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

::selection {
  background: var(--primary);
  color: var(--bg);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  z-index: 100;
  padding: var(--space-sm) var(--space-md);
  background: var(--primary);
  color: var(--bg);
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-family: 'Unbounded', system-ui, sans-serif;
  font-size: 0.8125rem;
}

.skip-link:focus {
  top: var(--space-md);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Unbounded', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1.05;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.15;
}

h3 {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  line-height: 1.25;
}

p {
  max-width: 65ch;
}

a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-hover);
}

label {
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: var(--space-sm);
}

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

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-height);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.nav__inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  font-family: 'Unbounded', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav__brand:hover {
  color: var(--primary);
}

.nav__links {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
  align-items: center;
}

.nav__link {
  font-family: 'Unbounded', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--ink);
  text-decoration: none;
  padding: var(--space-sm) 0;
  position: relative;
  transition: color 0.2s ease;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  color: var(--primary);
}

.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
  width: 100%;
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  color: var(--ink);
}

.nav__toggle svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 640px) {
  .nav__toggle {
    display: block;
  }

  .nav__links {
    position: fixed;
    inset: var(--nav-height) 0 0 0;
    flex-direction: column;
    background: var(--bg);
    padding: var(--space-xl) var(--space-lg);
    gap: var(--space-lg);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-top: 1px solid var(--border);
  }

  .nav__links.is-open {
    transform: translateX(0);
  }

  .nav__link {
    font-size: 1.25rem;
  }
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Hero */
.hero {
  padding-top: calc(var(--nav-height) + var(--space-xxl));
  padding-bottom: var(--space-xxl);
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero__bg::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(184, 131, 42, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.hero__bg::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139, 32, 32, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__label {
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.hero__label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--primary);
}

.hero__title {
  margin-bottom: var(--space-lg);
  max-width: 28ch;
}

.hero__subtitle {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 50ch;
  margin-bottom: var(--space-xl);
  font-weight: 400;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  font-family: 'Unbounded', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
  line-height: 1;
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: var(--focus-offset);
}

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

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

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

.btn--secondary:hover {
  background: rgba(184, 131, 42, 0.1);
  color: var(--primary);
}

.btn--danger {
  background: var(--accent);
  color: var(--ink);
}

.btn--danger:hover {
  background: #a02525;
  color: var(--ink);
}

.btn-group {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Section */
.section {
  padding: var(--space-xxl) 0;
}

.section--surface {
  background: var(--surface);
}

.section__header {
  margin-bottom: var(--space-xl);
}

.section__label {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.section__title {
  margin-bottom: var(--space-md);
}

.section__desc {
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.5;
  max-width: 55ch;
}

/* Specimen Card */
.specimen-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.specimen-card:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  border-color: rgba(184, 131, 42, 0.3);
}

.specimen-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.specimen-card__id {
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.specimen-card__title {
  margin-bottom: var(--space-sm);
}

.specimen-card__desc {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
  margin-bottom: var(--space-md);
}

.specimen-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* Specimen Tag */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 4px;
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: box-shadow 0.2s ease;
}

.tag:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.tag--amber {
  background: var(--primary);
  color: var(--bg);
}

.tag--crimson {
  background: var(--accent);
  color: var(--ink);
}

.tag--outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
}

/* Data Row */
.data-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}

.data-row:last-child {
  border-bottom: none;
}

.data-row__key {
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.data-row__value {
  color: var(--ink);
  font-size: 0.9375rem;
}

/* Specimen Grid */
.specimen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.specimen-grid--featured {
  grid-template-columns: 1fr 1fr;
}

.specimen-grid--featured .specimen-card:first-child {
  grid-column: 1 / -1;
}

@media (max-width: 768px) {
  .specimen-grid--featured {
    grid-template-columns: 1fr;
  }
}

/* Feature List */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.feature-item {
  padding: var(--space-lg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.feature-item__icon {
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-md);
  color: var(--primary);
}

.feature-item__title {
  margin-bottom: var(--space-sm);
  font-size: 1.125rem;
}

.feature-item__desc {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* Service Card */
.service-card {
  padding: var(--space-lg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  border-color: rgba(184, 131, 42, 0.3);
}

.service-card__number {
  font-family: 'Unbounded', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--primary);
  letter-spacing: 0.06em;
  margin-bottom: var(--space-md);
}

.service-card__title {
  margin-bottom: var(--space-sm);
}

.service-card__desc {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
  margin-bottom: var(--space-md);
}

.service-card__detail {
  font-size: 0.8125rem;
  color: var(--muted);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

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

.contact-info__item {
  margin-bottom: var(--space-lg);
}

.contact-info__label {
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-sm);
}

.contact-info__value {
  font-size: 1.125rem;
}

.contact-info__value a {
  color: var(--ink);
  text-decoration: none;
}

.contact-info__value a:hover {
  color: var(--primary);
}

/* Form */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form__group {
  display: flex;
  flex-direction: column;
}

.form__input,
.form__textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px var(--space-md);
  color: var(--ink);
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 1rem;
  transition: border-color 0.2s ease;
  width: 100%;
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--primary);
}

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

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--muted);
}

/* Divider */
.divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-xl) 0;
}

/* CTA Banner */
.cta-banner {
  padding: var(--space-xl);
  border: 1px solid rgba(184, 131, 42, 0.3);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(184, 131, 42, 0.08) 0%, rgba(139, 32, 32, 0.06) 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.cta-banner__title {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  margin-bottom: var(--space-sm);
}

.cta-banner__desc {
  color: var(--muted);
  max-width: 45ch;
}

@media (max-width: 640px) {
  .cta-banner {
    flex-direction: column;
    text-align: center;
  }
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  text-align: center;
}

.stats__value {
  font-family: 'Unbounded', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--primary);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stats__label {
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 640px) {
  .stats {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

/* Quote */
.quote {
  border-left: 2px solid var(--primary);
  padding-left: var(--space-lg);
  margin: var(--space-xl) 0;
}

.quote__text {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  line-height: 1.4;
  color: var(--ink);
  font-style: italic;
  margin-bottom: var(--space-md);
}

.quote__attribution {
  font-weight: 300;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Page Header */
.page-header {
  padding-top: calc(var(--nav-height) + var(--space-xxl));
  padding-bottom: var(--space-xl);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(184, 131, 42, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

/* Dragon SVG Illustration */
.dragon-illustration {
  position: relative;
}

.dragon-illustration svg {
  width: 100%;
  height: auto;
}

/* Footer */
.footer {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

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

.footer__links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

.footer__links a {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: var(--primary);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.animate-in:nth-child(2) {
  animation-delay: 0.1s;
}

.animate-in:nth-child(3) {
  animation-delay: 0.2s;
}

.animate-in:nth-child(4) {
  animation-delay: 0.3s;
}

/* Utility */
.text-center {
  text-align: center;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mb-sm {
  margin-bottom: var(--space-sm);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.mb-xl {
  margin-bottom: var(--space-xl);
}
