:root {
  --bg: #0c0c10;
  --fg: #f5f3ff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--fg);
}

a { text-decoration: none; color: inherit; }
::selection { background: #ff4fd8; color: #0c0c10; }
input::placeholder, textarea::placeholder { color: rgba(245,243,255,.35); }

.page {
  background: var(--bg);
  color: var(--fg);
  width: 100%;
  overflow-x: hidden;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  width: 100%;
  height: 860px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 56px;
  flex-wrap: wrap;
}
.nav-links {
  display: flex;
  gap: 36px;
  font: 500 13px 'Inter', sans-serif;
  color: rgba(245,243,255,.75);
}
.nav-links a { color: rgba(245,243,255,.75); }
.nav-links a:hover { color: #fff; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-phone {
  font: 600 13px 'Inter', sans-serif;
  color: rgba(245,243,255,.85);
  white-space: nowrap;
}
.nav-phone:hover { color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #f5f3ff;
}

.btn-gradient {
  font: 600 13px 'Inter', sans-serif;
  padding: 10px 20px;
  border-radius: 100px;
  color: #0c0c10;
  border: none;
  cursor: pointer;
}

.learn-more {
  position: absolute;
  z-index: 2;
  top: 120px;
  right: 96px;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: 1px solid rgba(245,243,255,.35);
  display: flex;
  align-items: center;
  justify-content: center;
}
.learn-more-svg { position: absolute; }
.learn-more-plus { font: 400 20px 'Inter', sans-serif; }

.hero-title-block {
  position: relative;
  z-index: 2;
  padding: 60px 56px 0;
}
.eyebrow {
  font: 600 12px ui-monospace, Menlo, monospace;
  letter-spacing: .14em;
  margin-bottom: 18px;
}
.hero-title {
  font-weight: 900;
  font-family: 'Archivo', sans-serif;
  letter-spacing: -0.03em;
  color: #fff;
}
.hero-title-accent {
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.since {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-top: 6px;
  font: 400 15px 'Inter', sans-serif;
  color: rgba(245,243,255,.5);
}
.tagline {
  font: 400 16px/1.6 'Inter', sans-serif;
  color: rgba(245,243,255,.7);
  max-width: 340px;
  margin-top: 22px;
}
.hero-phone {
  display: inline-block;
  margin-top: 24px;
  font: 700 30px 'Archivo', sans-serif;
  letter-spacing: -0.01em;
}
.hero-phone:hover { opacity: .85; }

.stat-card {
  position: absolute;
  z-index: 2;
  left: 56px;
  bottom: 56px;
  background: rgba(20,20,26,.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 26px 30px;
  display: flex;
  gap: 34px;
  align-items: flex-start;
}
.stat-num { font: 700 30px 'Archivo', sans-serif; color: #fff; }
.stat-num-sm { font-size: 22px; }
.stat-label { font: 12px 'Inter', sans-serif; color: rgba(245,243,255,.55); }
.stat-note {
  border-left: 1px solid rgba(255,255,255,.15);
  padding-left: 24px;
  max-width: 180px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.stat-note div:last-child { font: 12px/1.5 'Inter', sans-serif; color: rgba(245,243,255,.6); }
.stat-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }

/* ---------- PORTFOLIO ---------- */
.section-portfolio { padding: 72px 56px 12px; }
.portfolio-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 16px;
}
.heading { font-family: 'Archivo', sans-serif; }
.cat-filters { display: flex; gap: 10px; }
.cat-chip {
  font: 600 12.5px 'Inter', sans-serif;
  padding: 9px 16px;
  border-radius: 100px;
  cursor: pointer;
  color: rgba(245,243,255,.7);
  background: rgba(255,255,255,.08);
  border: none;
}
.cat-chip.active { color: #0c0c10; }

.portfolio-grid {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}
.portfolio-item {
  border-radius: 10px;
  overflow: hidden;
}
.portfolio-item-img-wrap {
  height: 220px;
  position: relative;
}
.portfolio-item-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}
.portfolio-item-caption { padding: 14px 2px 0; }

/* ---------- SERVICES ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 72px 56px 0;
}
.surface-card {
  border-radius: 10px;
}
.service-card { padding: 30px; }
.service-title {
  font: 700 25px 'Archivo', sans-serif;
  margin-bottom: 10px;
  text-align: center;
}
.service-desc {
  font: 13.5px/1.6 'Inter', sans-serif;
  color: rgba(245,243,255,.6);
}

/* ---------- PROCESS ---------- */
.section-process { padding: 80px 56px 0; }
.section-process .heading { margin-bottom: 36px; }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 64px;
}
.process-step { position: relative; }
.process-step:not(:last-child)::after {
  content: '→';
  position: absolute;
  top: 50%;
  left: 100%;
  width: 64px;
  transform: translateY(-50%);
  text-align: center;
  font: 700 34px 'Inter', sans-serif;
  color: rgba(245,243,255,.5);
}
.step-num {
  font: 800 18px ui-monospace, Menlo, monospace;
  margin-bottom: 14px;
  line-height: 1;
}
.step-title {
  font: 700 20px 'Archivo', sans-serif;
  margin-bottom: 8px;
  line-height: 1.3;
}
.step-desc {
  font: 15px/1.6 'Inter', sans-serif;
  color: rgba(245,243,255,.6);
}

/* ---------- CONTACT ---------- */
.contact-card {
  margin: 80px 56px 0;
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-title {
  font: 800 32px 'Archivo', sans-serif;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.contact-subtitle {
  font: 500 14px 'Inter', sans-serif;
  color: rgba(245,243,255,.5);
  margin-bottom: 14px;
}
.contact-info {
  font: 400 15px/1.7 'Inter', sans-serif;
  color: rgba(245,243,255,.6);
  max-width: 380px;
}
.contact-form-col { display: flex; flex-direction: column; gap: 14px; }
.contact-success {
  background: rgba(255,79,216,.1);
  border-radius: 8px;
  padding: 24px;
  font: 600 15px 'Inter', sans-serif;
}
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input,
.contact-form textarea {
  background: #0c0c10;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 6px;
  padding: 13px 14px;
  color: #f5f3ff;
  font: 14px 'Inter', sans-serif;
}
.contact-form textarea { resize: none; }
.contact-form input.invalid,
.contact-form textarea.invalid {
  border-color: #ff8a8a;
}
.form-error { font: 13px 'Inter', sans-serif; color: #ff8a8a; }
.btn-submit {
  padding: 15px 28px;
  text-align: center;
}

/* ---------- FOOTER ---------- */
.footer {
  display: flex;
  justify-content: space-between;
  padding: 32px 56px;
  margin-top: 72px;
  font: 12px 'Inter', sans-serif;
  color: rgba(245,243,255,.4);
  border-top: 1px solid rgba(255,255,255,.08);
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(6,6,9,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  cursor: default;
}
.lightbox-close {
  position: absolute;
  top: 22px;
  right: 28px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(20,20,26,.6);
  color: #f5f3ff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

/* ---------- TWEAK PANEL ---------- */
.tweaks {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  font-family: 'Inter', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.tweaks-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(20,20,26,.85);
  color: #f5f3ff;
  font-size: 18px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.tweaks-body {
  width: 260px;
  background: rgba(16,16,20,.92);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
}
.tweaks-body[hidden] { display: none; }
.tweaks-section-label {
  font: 700 11px 'Inter', sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(245,243,255,.4);
  margin: 16px 0 10px;
}
.tweaks-section-label:first-child { margin-top: 0; }
.tweak-group + .tweaks-section-label { margin-top: 18px; }
.tweak-label {
  font: 500 12px 'Inter', sans-serif;
  color: rgba(245,243,255,.6);
  margin-bottom: 8px;
}
.swatch-row, .pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.15);
  cursor: pointer;
  padding: 0;
}
.swatch.active { border-color: #fff; }
.tweak-pill {
  font: 500 11.5px 'Inter', sans-serif;
  padding: 7px 12px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.05);
  color: rgba(245,243,255,.75);
  cursor: pointer;
}
.tweak-pill.active {
  background: #f5f3ff;
  color: #0c0c10;
  border-color: #f5f3ff;
}

/* ============ RESPONSIVE ============ */

@media (max-width: 1024px) {
  .nav { padding: 20px 32px; }
  .hero { height: 700px; }
  .hero-title-block { padding: 44px 32px 0; }
  .learn-more { top: 90px; right: 32px; width: 86px; height: 86px; }
  .learn-more-svg { width: 82px; height: 82px; }
  .stat-card { left: 32px; right: 32px; bottom: 32px; }
  .section-portfolio { padding: 56px 32px 12px; }
  .services-grid { margin: 56px 32px 0; grid-template-columns: repeat(2, 1fr); }
  .section-process { padding: 64px 32px 0; }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 64px; }
  .process-step:nth-child(2)::after { display: none; }
  .contact-card { margin: 64px 32px 0; padding: 36px; }
  .footer { padding: 28px 32px; }
}

@media (max-width: 768px) {
  .nav { padding: 18px 24px; }
  .nav-logo { order: 0; }
  .nav-right { order: 1; margin-left: auto; gap: 14px; }
  .nav-toggle { display: flex; }
  .nav-phone { font-size: 12px; }
  .nav-links {
    order: 2;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    max-height: 0;
    overflow: hidden;
    margin-top: 0;
    transition: max-height .2s ease;
  }
  .nav-links.open { max-height: 240px; margin-top: 18px; }

  .hero { height: 620px; }
  .hero-title-block { padding: 32px 24px 0; }
  .eyebrow { font-size: 10.5px; margin-bottom: 14px; }
  .tagline { max-width: none; font-size: 14px; }
  .hero-phone { font-size: 24px; margin-top: 18px; }
  .learn-more { display: none; }
  .stat-card {
    left: 24px; right: 24px; bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
    padding: 18px 20px;
  }
  .stat-note { border-left: none; padding-left: 0; max-width: none; }

  .section-portfolio, .section-process { padding-left: 24px; padding-right: 24px; }
  .portfolio-head { gap: 12px; }
  .cat-filters { gap: 8px; }
  .cat-chip { padding: 7px 13px; font-size: 12px; }

  .services-grid { margin: 48px 24px 0; grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; gap: 8px; }
  .process-step:not(:last-child)::after {
    content: '↓';
    position: static;
    display: block;
    width: auto;
    text-align: left;
    transform: none;
    font-size: 36px;
    color: rgba(245,243,255,.5);
    margin: 14px 0 6px;
  }

  .contact-card { margin: 56px 24px 0; padding: 28px; grid-template-columns: 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; }

  .footer { flex-direction: column; align-items: flex-start; gap: 8px; padding: 24px; }

  .tweaks { right: 12px; bottom: 12px; }
  .tweaks-body { width: min(280px, calc(100vw - 24px)); }
}

@media (max-width: 480px) {
  .hero { height: 580px; }
  .hero-title-block { padding: 26px 18px 0; }
  .nav { padding: 16px 18px; }
  .stat-card { padding: 16px; gap: 14px; }
  .stat-num { font-size: 24px; }
  .section-portfolio, .section-process { padding-left: 18px; padding-right: 18px; }
  .services-grid, .contact-card, .footer { margin-left: 18px; margin-right: 18px; }
  .contact-card { padding: 22px; }
}
