@font-face {
  font-family: "Syne";
  src: url("/fonts/syne.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --bg: #0e1016;
  --bg-alt: #12151d;
  --surface: #161922;
  --surface-raised: #1c202b;
  --border: rgba(255, 176, 32, 0.14);
  --border-strong: rgba(255, 176, 32, 0.36);

  --accent: #ffb020;
  --accent-2: #ff6a3d;
  --accent-soft: rgba(255, 176, 32, 0.1);
  --accent-2-soft: rgba(255, 106, 61, 0.1);

  --text: #f3f4f7;
  --text-muted: #a3abba;
  --on-accent: #17120a;

  --font-display: "Syne", system-ui, sans-serif;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 16px;
  --radius-lg: 24px;
  --container: 1200px;
  --gutter: 24px;
  --header-height: 72px;
}

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

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 85% -10%, var(--accent-2-soft), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, var(--accent-soft), transparent 55%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
ol,
ul {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  top: 0;
  left: -9999px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(14, 16, 22, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  flex: none;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.accent-text {
  color: var(--accent);
}

.site-nav {
  display: none;
  gap: 32px;
  margin-inline: auto;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.site-nav a {
  transition: color 160ms ease;
}

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

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.btn-small {
  min-height: 40px;
  padding: 8px 18px;
  font-size: 0.875rem;
}

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

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(255, 176, 32, 0.25), 0 12px 40px -12px rgba(255, 176, 32, 0.55);
}

.btn-secondary {
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: 96px;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  margin-top: 24px;
  font-size: clamp(2.5rem, 9.5vw, 4.75rem);
  font-weight: 700;
  line-height: 1.06;
}

.gradient-text {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 42rem;
  margin-top: 24px;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
}

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

/* Sections */

.section {
  padding-block: 72px;
}

.section-alt {
  border-block: 1px solid var(--border);
  background: var(--bg-alt);
}

.section-head {
  max-width: 44rem;
}

.section-head h2,
.contact-panel h2 {
  margin-top: 16px;
  font-size: clamp(1.75rem, 4.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
}

.section-head h2 + p,
.contact-panel h2 + p {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Service cards */

.card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease, opacity 500ms ease;
}

.card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 1px rgba(255, 176, 32, 0.12), 0 12px 40px -12px rgba(255, 176, 32, 0.28);
}

.icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  margin-top: 20px;
  font-size: 1.2rem;
  font-weight: 600;
}

.card p,
.step p,
.why-item p {
  margin-top: 8px;
  color: var(--text-muted);
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.step {
  padding-top: 20px;
  border-top: 1px solid var(--border-strong);
}

.step-number {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
}

.step h3 {
  margin-top: 12px;
  font-size: 1.2rem;
  font-weight: 600;
}

/* Why us */

.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}

.why-list {
  display: grid;
  gap: 8px;
}

.why-item {
  padding-block: 20px;
  border-bottom: 1px solid var(--border);
}

.why-item:last-child {
  border-bottom: 0;
}

.why-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

/* Contact */

.contact-panel {
  padding: 48px 24px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 300px at 90% 0%, var(--accent-2-soft), transparent 70%),
    radial-gradient(600px 300px at 0% 100%, var(--accent-soft), transparent 70%),
    var(--surface);
  text-align: center;
}

.contact-panel h2 + p {
  max-width: 34rem;
  margin-inline: auto;
}

.contact-email {
  display: inline-block;
  margin-top: 28px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 5.4vw, 2.25rem);
  font-weight: 700;
  overflow-wrap: anywhere;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
}

.footer-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-block: 32px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-email:hover {
  color: var(--text);
}

/* 404 */

.not-found {
  display: grid;
  place-content: center;
  justify-items: start;
  gap: 20px;
  min-height: 70vh;
  padding-block: 64px;
}

.not-found h1 {
  margin: 0;
  font-size: clamp(2.25rem, 7vw, 3.5rem);
}

.not-found p:not(.eyebrow) {
  color: var(--text-muted);
}

/* Reveal on scroll: only hidden once the script has confirmed it can show it again. */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 500ms ease, transform 500ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (min-width: 640px) {
  .card-grid,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 900px) {
  :root {
    --gutter: 40px;
  }

  .site-nav {
    display: flex;
  }

  .hero-content {
    padding-block: 144px;
  }

  .section {
    padding-block: 104px;
  }

  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .why-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 72px;
  }

  .contact-panel {
    padding: 72px 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal,
  .btn,
  .card {
    transition: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
