/* Tokens, reset and base type */
:root {
  --bg:          #020617;
  --bg-alt:      #060d24;
  --surface:     #0b1530;
  --surface-2:   #101c3d;
  --border:      #1e2f5a;
  --text:        #e8edf7;
  --muted:       #8b9ac0;
  --accent:      #22d3ee;
  --accent-2:    #3b82f6;
  --accent-soft: rgba(34, 211, 238, 0.12);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  --wrap: 1140px;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.1rem, 5.5vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.16rem; font-weight: 600; }

p { margin: 0 0 1rem; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #001018;
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}


/* Layout helpers */
.wrap {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
}

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

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

.small { font-size: 0.86rem; color: var(--muted); }


/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #00131c;
  box-shadow: 0 10px 28px rgba(34, 211, 238, 0.22);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-block { width: 100%; }


/* Nav, language switch and mobile menu */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(2, 6, 23, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.nav.is-scrolled { border-bottom-color: var(--border); }

.nav-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  margin-right: auto;
}
.brand:hover { text-decoration: none; }
.brand-mark { font-family: var(--font-mono); color: var(--accent); font-size: 0.95rem; }
.accent { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

.nav-cta {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text) !important;
}
.nav-cta:hover { border-color: var(--accent); color: var(--accent) !important; }

/* Language switch */
.lang {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.lang-btn {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 7px 11px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.lang-btn.is-active { background: var(--accent-soft); color: var(--accent); }

/* Burger, mobile only */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.burger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}


/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(70px, 12vw, 130px) 0 clamp(60px, 9vw, 100px);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.hero-glow {
  position: absolute;
  top: -180px;
  right: -140px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.20), transparent 68%);
  pointer-events: none;
}

.hero-inner { position: relative; max-width: 860px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: 30px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 46px; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 38px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text);
}
.hero-stats span {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}


/* Shared section styling */
.section { padding: clamp(60px, 9vw, 100px) 0; }
.section-alt { background: var(--bg-alt); }

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-lead {
  color: var(--muted);
  max-width: 68ch;
  margin-bottom: 36px;
}

.section h2 { margin-bottom: 36px; }
.section-lead + .grid-3 { margin-top: 0; }


/* Service cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.22s ease, border-color 0.22s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }

.card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.15rem;
  margin-bottom: 16px;
}

.card p { color: var(--muted); font-size: 0.94rem; margin: 0; }


/* Project cards and client quotes */
.work {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
}

.work-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.work-head h3 { margin-bottom: 14px; }

.badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--accent-soft);
  color: var(--accent);
  white-space: nowrap;
}
.badge-alt {
  background: rgba(139, 154, 192, 0.12);
  color: var(--muted);
}

.work p { color: var(--muted); font-size: 0.94rem; }

.tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 4px 0 16px; }
.tags li {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
}

.work-result {
  color: var(--text) !important;
  font-size: 0.9rem !important;
  border-left: 2px solid var(--accent);
  padding-left: 12px;
}

.work-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin-top: auto;
}

.quotes {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quote {
  margin: 36px 0 0;
  padding: 26px 30px;
  background: var(--surface-2);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.quote p { font-size: 1.05rem; font-style: italic; }
.quote cite {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  font-style: normal;
}

.quotes .quote + .quote { margin-top: 0; }


/* Pricing tiers and extras */
.pricing { align-items: stretch; }

.plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
}

.plan-featured {
  border-color: var(--accent);
  background: var(--surface-2);
  box-shadow: var(--shadow);
}

.plan-flag {
  position: absolute;
  top: -12px;
  left: 26px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #00131c;
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 600;
}

.price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 4px 0 4px;
}

.plan-for {
  color: var(--muted);
  font-size: 0.88rem;
  min-height: 42px;
  margin-bottom: 18px;
}

.plan ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 26px;
  flex: 1;
}
.plan ul li {
  position: relative;
  padding-left: 24px;
  font-size: 0.92rem;
  color: var(--muted);
}
.plan ul li::before {
  content: "+";
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 600;
}

.plan .btn { text-align: center; }

.extras {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 26px;
  padding: 26px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.extras h4 {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.extras strong { font-family: var(--font-display); font-size: 1.3rem; }
.extras p { margin-bottom: 4px; }


/* Process steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  counter-reset: step;
}
.steps li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.step-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--accent);
  opacity: 0.55;
  margin-bottom: 12px;
}
.steps p { color: var(--muted); font-size: 0.93rem; margin: 0; }


/* Contact block and form */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-copy p { color: var(--muted); }

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 26px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.96rem;
  color: var(--muted);
}
.contact-list span { color: var(--accent); }

.form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
}

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  transition: border-color 0.18s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--accent); outline: none; }

.field textarea { resize: vertical; }

.field.has-error input,
.field.has-error textarea { border-color: #f87171; }

.error {
  display: block;
  color: #f87171;
  font-size: 0.8rem;
  margin-top: 5px;
  min-height: 1em;
}

/* Honeypot, hidden from real users */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 14px 0 0;
  font-size: 0.9rem;
  min-height: 1.2em;
}
.form-status.ok { color: var(--accent); }
.form-status.bad { color: #f87171; }


/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 26px 0;
  background: var(--bg-alt);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}
.footer p { margin: 0; font-size: 0.86rem; color: var(--muted); }


/* Scroll reveal. Disabled if the visitor prefers reduced motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero-canvas { display: none; }
}


/* Breakpoints. Mobile menu takes over below 720 */
@media (max-width: 860px) {
  .contact-wrap { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  .burger { display: flex; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links.is-open { max-height: 420px; }
  .nav-links a {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
  }
  .nav-cta { border: 0; border-radius: 0; }

  .hero-stats { gap: 24px; }
  .hero-cta .btn { flex: 1; text-align: center; }
}
