@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ─── Design tokens — dark (default) ──────────────────────────────────────── */
:root {
  --gold:       #C9953B;
  --gold-light: #E8B86D;
  --gold-pale:  rgba(201,149,59,0.12);

  --bg:       #0A0C10;
  --surface:  #111318;
  --surface2: #16191F;
  --border:   rgba(255,255,255,0.08);
  --border2:  rgba(255,255,255,0.05);
  --text:     #F1F3F7;
  --text2:    #9CA3AF;
  --text3:    #6B7280;
  --mark:     #C9953B;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg:  0 12px 48px rgba(0,0,0,0.5);

  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   14px;
  --r-xl:   18px;
  --r-2xl:  24px;
  --r-full: 9999px;

  --dur-fast: 150ms;
  --dur-base: 260ms;
  --ease:     cubic-bezier(.16,1,.3,1);

  --nav-h: 72px;
}

/* ─── Light mode ──────────────────────────────────────────────────────────── */
[data-theme="light"] {
  --bg:       #FFFFFF;
  --surface:  #F8F9FB;
  --surface2: #F1F3F6;
  --border:   rgba(0,0,0,0.08);
  --border2:  rgba(0,0,0,0.05);
  --text:     #0D1117;
  --text2:    #4B5563;
  --text3:    #9CA3AF;
  --mark:     #C9953B;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.07);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.10);
}

/* ─── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background var(--dur-base), color var(--dur-base);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ─── Typography ──────────────────────────────────────────────────────────── */
h1 { font-size: clamp(2.6rem, 5.5vw, 4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; }
h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; }
h4 { font-size: 0.9375rem; font-weight: 600; }
p  { color: var(--text2); line-height: 1.75; }

.eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

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

/* ─── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem; font-weight: 600;
  border-radius: var(--r-lg);
  padding: 13px 26px;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease),
              background var(--dur-fast);
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn--primary {
  background: var(--gold);
  color: #0A0C10;
  border-color: var(--gold);
}
.btn--primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(201,149,59,0.35);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover {
  background: var(--surface2);
  transform: translateY(-1px);
}
.btn--sm  { padding: 9px 18px; font-size: 0.875rem; }
.btn--full { width: 100%; justify-content: center; }

/* ─── Nav ─────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 36px;
  z-index: 100;
  background: transparent;
  transition: background var(--dur-base), border-color var(--dur-base), box-shadow var(--dur-base);
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

/* Logo */
.nav__logo {
  display: flex; align-items: center; gap: 14px;
}
.nav__mark {
  width: 28px; height: 34px;
  flex-shrink: 0;
}
.nav__wordmark {
  display: flex; flex-direction: column; gap: 2px;
}
.nav__f31 {
  font-size: 1rem; font-weight: 800;
  color: var(--text); letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
}
.nav__tagline {
  font-size: 0.5625rem; font-weight: 500;
  color: var(--gold); letter-spacing: 0.1em;
  text-transform: uppercase; line-height: 1;
}

.nav__links { display: flex; align-items: center; gap: 36px; }
.nav__links a {
  font-size: 0.9375rem; font-weight: 500;
  color: var(--text2);
  transition: color var(--dur-fast);
}
.nav__links a:hover { color: var(--text); }

.nav__right { display: flex; align-items: center; gap: 16px; }

/* Theme toggle */
.theme-toggle {
  width: 36px; height: 36px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text2);
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
  flex-shrink: 0;
}
.theme-toggle:hover { background: var(--surface2); color: var(--text); border-color: var(--gold); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun  { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.nav__burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav__burger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all var(--dur-fast) var(--ease);
}

/* ─── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  padding: 160px 0 120px;
  position: relative;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 1; }

/* background gradient */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% -10%, rgba(201,149,59,0.07) 0%, transparent 60%),
              radial-gradient(ellipse 50% 50% at -10% 80%, rgba(201,149,59,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-pale);
  border: 1px solid rgba(201,149,59,0.25);
  border-radius: var(--r-full);
  padding: 6px 14px;
  margin-bottom: 28px;
}
.hero__badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.75); }
}

.hero__headline {
  color: var(--text);
  max-width: 860px;
  margin-bottom: 28px;
}
.hero__headline em {
  font-style: normal;
  color: var(--gold);
}
.hero__sub {
  color: var(--text2);
  font-size: 1.125rem;
  max-width: 520px;
  margin-bottom: 44px;
  line-height: 1.75;
}
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 72px; }

.hero__stats {
  display: flex; gap: 48px; flex-wrap: wrap;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.hero__stat-num {
  font-size: 1.75rem; font-weight: 800;
  color: var(--text); letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
}
.hero__stat-label {
  font-size: 0.8125rem; color: var(--text2); font-weight: 500;
}

/* ─── Section header shared ───────────────────────────────────────────────── */
.section-header { margin-bottom: 56px; }
.section-header h2 { color: var(--text); margin-top: 12px; }
.section-header p { margin-top: 14px; font-size: 1.0625rem; max-width: 480px; }

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

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  overflow: hidden;
}

.service-card {
  background: var(--surface);
  padding: 40px;
  transition: background var(--dur-base);
  position: relative;
}
.service-card:hover { background: var(--surface2); }
.service-card:hover .service-card__arrow { opacity: 1; transform: translate(0,0); }

.service-card__icon {
  width: 42px; height: 42px;
  background: var(--gold-pale);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  color: var(--gold);
}
.service-card__icon svg { width: 20px; height: 20px; }
.service-card h3 { color: var(--text); margin-bottom: 10px; }
.service-card p { margin-bottom: 22px; font-size: 0.9375rem; }

.service-card__list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.service-card__list li {
  font-size: 0.8125rem; color: var(--text2);
  padding-left: 16px; position: relative;
}
.service-card__list li::before {
  content: '';
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold); opacity: 0.6;
}

.service-card__arrow {
  position: absolute; top: 36px; right: 36px;
  color: var(--gold); opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity var(--dur-base), transform var(--dur-base) var(--ease);
}

/* ─── Work ────────────────────────────────────────────────────────────────── */
.work { background: var(--bg); }

.work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.work-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: 36px;
  transition: box-shadow var(--dur-base), transform var(--dur-base) var(--ease), border-color var(--dur-base);
}
.work-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: rgba(201,149,59,0.3);
}
.work-card--wide { grid-column: 1 / 3; }
.work-card__meta { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.tag {
  font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-pale);
  padding: 4px 11px; border-radius: var(--r-full);
  border: 1px solid rgba(201,149,59,0.2);
}
.work-card h3 { color: var(--text); margin-bottom: 10px; }
.work-card a { color: var(--gold); font-weight: 500; }
.work-card a:hover { text-decoration: underline; }

/* ─── About ───────────────────────────────────────────────────────────────── */
.about { background: var(--surface); }

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 88px;
  align-items: start;
}
.about__text h2 { color: var(--text); margin-top: 12px; margin-bottom: 22px; }
.about__lead { font-size: 1.125rem; color: var(--text) !important; margin-bottom: 18px; }
.about__text p + p { margin-top: 14px; }

.about__values { display: flex; flex-direction: column; gap: 0; }
.value {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display: grid; grid-template-columns: 32px 1fr; gap: 16px; align-items: start;
}
.value:last-child { border-bottom: 1px solid var(--border); }
.value__num {
  font-size: 0.625rem; font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold); padding-top: 3px;
}
.value h4 { color: var(--text); margin-bottom: 5px; }
.value p { color: var(--text2); font-size: 0.9rem; }

/* ─── Contact ─────────────────────────────────────────────────────────────── */
.contact { background: var(--bg); }
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 88px;
  align-items: start;
}
.contact__text h2 {
  color: var(--text); margin-top: 12px; margin-bottom: 18px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}
.contact__text p { margin-bottom: 12px; }
.contact__email a { color: var(--gold); font-weight: 600; }
.contact__email a:hover { text-decoration: underline; }

.contact__form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 0.8125rem; font-weight: 600; color: var(--text); }
.field input, .field textarea, .field select {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem; color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 12px 15px;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast);
  outline: none; resize: vertical;
  appearance: none; cursor: pointer;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text3); }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,149,59,0.15);
}
.form__note { font-size: 0.875rem; text-align: center; min-height: 1.2em; }
.form__note.success { color: #22c55e; }
.form__note.error   { color: #ef4444; }

/* ─── Footer ──────────────────────────────────────────────────────────────── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer__inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer__logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 0.9375rem;
  color: var(--text); letter-spacing: 0.04em;
}
.footer__logo svg { width: 18px; height: 22px; }
.footer__copy { font-size: 0.8125rem; color: var(--text3); }
.footer__email { font-size: 0.875rem; color: var(--gold); font-weight: 500; }
.footer__email:hover { text-decoration: underline; }

/* ─── Mobile menu ─────────────────────────────────────────────────────────── */
.nav__mobile-menu {
  display: none;
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  padding: 20px 32px 28px; flex-direction: column; gap: 4px;
  z-index: 99; box-shadow: var(--shadow-md);
}
.nav__mobile-menu.open { display: flex; }
.nav__mobile-menu a {
  font-size: 1rem; font-weight: 500; color: var(--text);
  padding: 13px 0; border-bottom: 1px solid var(--border);
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .work__grid { grid-template-columns: 1fr 1fr; }
  .work-card--wide { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  section { padding: 72px 0; }
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav { padding: 0 20px; }
  .hero { padding: 130px 0 80px; }
  .services__grid { grid-template-columns: 1fr; }
  .work__grid { grid-template-columns: 1fr; }
  .work-card--wide { grid-column: auto; }
  .about__inner { grid-template-columns: 1fr; gap: 52px; }
  .contact__inner { grid-template-columns: 1fr; gap: 52px; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero__stats { gap: 32px; }
}
@media (max-width: 480px) {
  .hero__cta { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}
