/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  --bg:           #09090b;
  --surface:      #111113;
  --surface-2:    #1c1c1f;
  --border:       rgba(255,255,255,0.08);
  --border-2:     rgba(255,255,255,0.14);
  --accent:       #6366f1;
  --accent-light: #818cf8;
  --green:        #22c55e;
  --red:          #f87171;
  --text:         #fafafa;
  --muted:        #a1a1aa;
  --dim:          #52525b;
  --r:            10px;
  --r-sm:         6px;
}

/* ── Base ────────────────────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  padding: 9px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, opacity 0.15s;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--accent-light); }
.btn-primary:active { opacity: 0.85; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 9px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn-ghost:hover { color: var(--text); border-color: var(--border-2); }

.btn-lg { padding: 13px 28px; font-size: 1rem; border-radius: var(--r); }

/* ── NAV ─────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(9,9,11,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.nav-logo-img {
  height: 30px;
  width: auto;
  background: #fff;
  border-radius: 6px;
  padding: 2px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-right: auto;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }

.nav-end {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lang-btn {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 5px 11px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color 0.15s, border-color 0.15s;
}
.lang-btn:hover { color: var(--text); border-color: var(--border-2); }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 96px 0 80px;
  text-align: center;
  overflow: hidden;
  background: #09090b;
}

.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Subtle top glow */
.hero-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(99,102,241,0.1) 0%, transparent 65%);
}

/* Perspective grid floor */
.hero-grid::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -80%;
  right: -80%;
  height: 60%;
  background-image:
    linear-gradient(rgba(99,102,241,0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.22) 1px, transparent 1px);
  background-size: 70px 70px;
  transform: perspective(500px) rotateX(72deg);
  transform-origin: 50% 100%;
  mask-image: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 65%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 65%);
  animation: grid-scroll 5s linear infinite;
}

@keyframes grid-scroll {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 0 70px, 0 0; }
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-title { text-shadow: 0 2px 32px rgba(0,0,0,0.95); }
.hero-sub   { text-shadow: 0 1px 12px rgba(0,0,0,0.9); }

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-light);
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.22);
  border-radius: 100px;
  padding: 5px 16px;
  margin-bottom: 2rem;
  letter-spacing: 0.01em;
}

.hero-title {
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.hero-sub {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 460px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 5rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  border-top: 1px solid var(--border);
  padding-top: 2.5rem;
  flex-wrap: wrap;
}

.stat { text-align: center; }

.stat-num {
  display: block;
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 5px;
}

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

.stat-sep {
  display: block;
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* ── SECTIONS ────────────────────────────────────────────── */
.section { padding: 80px 0; }
.section-muted { background: var(--surface); }

.section-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.625rem;
}

.section-title {
  font-size: clamp(1.625rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 2.5rem;
}

/* ── WORK GRID ───────────────────────────────────────────── */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}

.work-card {
  background: var(--bg);
  padding: 28px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: background 0.15s;
}
.work-card:hover { background: var(--surface); }

.work-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.work-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-2);
  border-radius: 100px;
  padding: 3px 10px;
  letter-spacing: 0.02em;
}

.work-live {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.06em;
}

.work-name {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 4px;
}

.work-location {
  font-size: 0.8rem;
  color: var(--dim);
  margin-bottom: 12px;
}

.work-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}

.work-cta {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-light);
  margin-top: 20px;
  transition: opacity 0.15s;
}
.work-card:hover .work-cta { opacity: 0.7; }

/* ── PROCESS ─────────────────────────────────────────────── */
.process-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.process-step:last-child { border-bottom: none; }
.process-step:hover { background: var(--surface-2); }

.process-num {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--dim);
  letter-spacing: 0.06em;
  flex-shrink: 0;
  padding-top: 3px;
  min-width: 2rem;
}

.process-name {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.process-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── CONTACT ─────────────────────────────────────────────── */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: start;
}

.contact-col-info .section-title { margin-bottom: 1rem; }

.contact-sub {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.contact-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 9px 14px;
  transition: color 0.15s, border-color 0.15s;
}
.contact-wa:hover { color: var(--text); border-color: var(--border-2); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.form-row { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
}

.req { color: var(--accent-light); margin-right: 2px; }

.form-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.15s;
  text-align: right;
}
.form-input:focus { border-color: rgba(99,102,241,0.5); }
.form-input::placeholder { color: var(--dim); }
.form-textarea { resize: vertical; min-height: 110px; }

.field-error {
  font-size: 0.75rem;
  color: var(--red);
  display: none;
}
.form-row.has-error .field-error { display: block; }
.form-row.has-error .form-input { border-color: rgba(248,113,113,0.5); }

.btn-submit {
  width: 100%;
  padding: 12px;
  font-size: 0.9rem;
  border-radius: var(--r-sm);
  justify-content: center;
  margin-top: 0.25rem;
}

.form-status {
  font-size: 0.875rem;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  line-height: 1.5;
}
.status-success { background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.2); color: #86efac; }
.status-error   { background: rgba(248,113,113,0.08); border: 1px solid rgba(248,113,113,0.2); color: #fca5a5; }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-logo {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--dim);
  margin-right: auto;
}

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

.social-link {
  display: flex;
  align-items: center;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.15s;
}
.social-link:hover { color: var(--muted); }

/* ── SCROLL REVEAL ───────────────────────────────────────── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.scroll-reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .work-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding: 64px 0 56px; }
  .hero-stats { gap: 1.5rem; }
  .stat-sep { display: none; }
  .contact-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-copy { margin-right: 0; }
}

@media (max-width: 480px) {
  .process-step { gap: 1rem; padding: 20px; }
}
