/* ─── Reset & Base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #080808;
  --surface:     #0e0e0e;
  --surface-2:   #141414;
  --surface-3:   #1a1a1a;
  --border:      rgba(255,255,255,0.07);
  --border-hover:rgba(255,255,255,0.14);
  --text:        #f2f2f2;
  --text-dim:    #aaa;
  --text-muted:  #555;
  --accent:      #7c6aff;
  --accent-2:    #4f8fff;
  --accent-glow: rgba(124,106,255,0.18);
  --radius:      12px;
  --radius-lg:   20px;
  --max:         1140px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

/* ─── Typography ──────────────────────────────────── */
.serif { font-family: 'Instrument Serif', serif; }

h1, h2, h3, h4 { line-height: 1.15; }

.display {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(3rem, 7vw, 6rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-weight: 400;
}

.section-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

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

section { padding: 120px 0; }

/* ─── Scroll Animations ───────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up.delay-1 { transition-delay: 0.08s; }
.fade-up.delay-2 { transition-delay: 0.16s; }
.fade-up.delay-3 { transition-delay: 0.24s; }
.fade-up.delay-4 { transition-delay: 0.32s; }
.fade-up.delay-5 { transition-delay: 0.40s; }
.fade-up.delay-6 { transition-delay: 0.48s; }

/* ─── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
}
.btn-primary:hover {
  background: #d8d8d8;
  border-color: #d8d8d8;
}

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

/* ─── Nav ─────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(8,8,8,0.9);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
  padding: 14px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Instrument Serif', serif;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  color: var(--text-dim);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  padding: 10px 20px;
  font-size: 13px;
}

/* ─── Hero ────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 160px 0 120px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(124,106,255,0.12) 0%, rgba(79,143,255,0.06) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

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

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12px;
  color: var(--text-dim);
}

.hero-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-headline {
  margin-bottom: 28px;
  color: var(--text);
}
.hero-headline em {
  font-style: italic;
  color: transparent;
  background: linear-gradient(135deg, #a89cff 0%, #7c6aff 40%, #4f8fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 44px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-social-proof {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.proof-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.proof-stat-num {
  font-family: 'Instrument Serif', serif;
  font-size: 28px;
  line-height: 1;
  color: var(--text);
}
.proof-stat-label {
  font-size: 12px;
  color: var(--text-muted);
}
.proof-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ─── Strip ───────────────────────────────────────── */
#strip {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.strip-inner {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.strip-item {
  flex: 1;
  min-width: 160px;
  text-align: center;
  padding: 16px 24px;
  position: relative;
}
.strip-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: var(--border);
}
.strip-item-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.strip-item-value {
  font-family: 'Instrument Serif', serif;
  font-size: 15px;
  color: var(--text-dim);
}

/* ─── Problem ─────────────────────────────────────── */
#problem { background: var(--bg); }

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.problem-left .section-title {
  margin-bottom: 24px;
}
.problem-left p {
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.75;
  max-width: 440px;
}

.problem-right {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.problem-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.problem-item:first-child { border-top: 1px solid var(--border); }

.problem-num {
  font-size: 11px;
  color: var(--text-muted);
  min-width: 24px;
  padding-top: 3px;
}
.problem-text {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.6;
}
.problem-text strong {
  color: var(--text);
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
}

/* ─── Services ────────────────────────────────────── */
#services { background: var(--surface); }

.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 64px;
  gap: 40px;
}
.services-header p {
  max-width: 360px;
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.7;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service-card {
  background: var(--surface);
  padding: 36px 32px;
  transition: background 0.2s;
  position: relative;
}
.service-card:hover { background: var(--surface-2); }

.service-icon {
  width: 36px; height: 36px;
  margin-bottom: 20px;
  opacity: 0.5;
}

.service-card h3 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--text);
}
.service-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

.service-tag {
  display: inline-block;
  margin-top: 16px;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* ─── Process ─────────────────────────────────────── */
#process { background: var(--bg); }

.process-header {
  max-width: 620px;
  margin-bottom: 80px;
}
.process-header .section-title { margin-bottom: 16px; }
.process-header p {
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.75;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.process-step {
  background: var(--surface);
  padding: 36px 28px 40px;
  position: relative;
  transition: background 0.2s;
}
.process-step:hover { background: var(--surface-2); }

.step-num {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.step-num::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.process-step h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 12px;
  color: var(--text);
}
.process-step p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

.process-note {
  margin-top: 40px;
  padding: 28px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: 20px;
}
.process-note-icon {
  width: 32px; height: 32px;
  opacity: 0.3;
  flex-shrink: 0;
}
.process-note p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}
.process-note strong { color: var(--text); font-weight: 500; }

/* ─── Work ────────────────────────────────────────── */
#work { background: var(--surface); }

.work-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
  gap: 40px;
}
.work-header p {
  max-width: 300px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  row-gap: 16px;
}

.work-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.work-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.work-card-thumb {
  aspect-ratio: 16/9;
  background: var(--surface-3);
  position: relative;
  overflow: hidden;
}
.work-card-thumb-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.work-card-thumb-label {
  font-size: 12px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 100px;
}

/* gradient accents per card */
.work-card:nth-child(1) .work-card-thumb {
  background: linear-gradient(135deg, #0e0e14 0%, #111827 100%);
}
.work-card:nth-child(1) .work-card-thumb::before {
  content: '';
  position: absolute;
  bottom: -40px; right: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,106,255,0.2) 0%, transparent 70%);
}
.work-card:nth-child(2) .work-card-thumb {
  background: linear-gradient(135deg, #0e1410 0%, #0f1a12 100%);
}
.work-card:nth-child(2) .work-card-thumb::before {
  content: '';
  position: absolute;
  top: -40px; left: 50%;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,200,130,0.15) 0%, transparent 70%);
}
.work-card:nth-child(3) .work-card-thumb {
  background: linear-gradient(135deg, #14100e 0%, #1a1008 100%);
}
.work-card:nth-child(3) .work-card-thumb::before {
  content: '';
  position: absolute;
  bottom: -30px; left: -30px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,160,79,0.15) 0%, transparent 70%);
}

.work-card-body { padding: 24px; }
.work-card-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.work-tag {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.work-card-body h3 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text);
}
.work-card-body p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.work-card-result {
  font-size: 13px;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  padding-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.result-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ─── About ───────────────────────────────────────── */
#about { background: var(--bg); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.about-left .section-title { margin-bottom: 24px; }
.about-left p {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-creds {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.cred-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.cred-item:last-child { border-bottom: none; }
.cred-item:hover { background: var(--surface); }
.cred-icon { font-size: 16px; opacity: 0.6; }
.cred-text {
  font-size: 13px;
  color: var(--text-dim);
}
.cred-text strong { color: var(--text); font-weight: 500; }

.about-right {
  position: relative;
}
.about-photo-frame {
  aspect-ratio: 3/4;
  max-height: 520px;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}
.about-photo-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #111 0%, #0a0a14 60%, #080808 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 40px 32px;
}
.about-photo-placeholder::before {
  content: '';
  position: absolute;
  top: 30%; left: 50%;
  transform: translate(-50%, -50%);
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,106,255,0.12) 0%, transparent 70%);
}
.about-name-plate {
  position: relative;
  z-index: 1;
  text-align: center;
}
.about-name-plate h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 6px;
}
.about-name-plate span {
  font-size: 13px;
  color: var(--text-muted);
}

/* ─── FAQ ─────────────────────────────────────────── */
#faq { background: var(--surface); }

.faq-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
}

.faq-left .section-title { margin-bottom: 16px; }
.faq-left p {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.75;
  margin-bottom: 32px;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-top: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 22px 0;
  background: none;
  border: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--text-dim); }

.faq-icon {
  width: 20px; height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, border-color 0.2s;
}
.faq-icon svg { transition: transform 0.3s; }
.faq-item.open .faq-icon { border-color: var(--border-hover); }
.faq-item.open .faq-icon svg { transform: rotate(45deg); }

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-answer-inner {
  padding-bottom: 22px;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.75;
}

/* ─── Project Form ────────────────────────────────── */
.cta-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-label {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.cta-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ─── Final CTA ───────────────────────────────────── */
#cta {
  padding: 140px 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  bottom: -100px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse at center, rgba(124,106,255,0.09) 0%, rgba(79,143,255,0.05) 40%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.cta-inner .label { margin-bottom: 24px; }
.cta-inner .section-title { margin-bottom: 20px; }
.cta-inner p {
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 40px;
}

.cta-input {
  flex: 1;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
  outline: none;
}
.cta-input:focus { border-color: var(--border-hover); }
.cta-input::placeholder { color: var(--text-muted); }

.cta-note {
  font-size: 12px;
  color: var(--text-muted);
}

/* ─── Footer ──────────────────────────────────────── */
footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: 'Instrument Serif', serif;
  font-size: 18px;
  color: var(--text-dim);
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 12px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-dim); }

/* ─── Mobile menu ─────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text-dim);
  transition: all 0.2s;
}

/* ─── Responsive ──────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(3, 1fr); }
  .about-grid { gap: 60px; }
  .faq-inner { gap: 60px; }
}

@media (max-width: 768px) {
  section { padding: 80px 0; }
  .container { padding: 0 20px; }

  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .hero-sub { font-size: 16px; }
  .hero-social-proof { gap: 24px; }

  .problem-grid { grid-template-columns: 1fr; gap: 48px; }
  .services-header { flex-direction: column; align-items: flex-start; }
  .services-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-right { display: none; }
  .faq-inner { grid-template-columns: 1fr; gap: 48px; }
  .work-header { flex-direction: column; align-items: flex-start; }
  .services-header .section-title { font-size: 2rem; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .strip-item { min-width: 140px; }
}

@media (max-width: 520px) {
  .process-steps { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}
