/* =========================================
   DRIFT AGENCY — Landing Page
   Warm coral/terracotta palette
   DM Sans + Cormorant Garamond
   ========================================= */

:root {
  --bg: #faf6f1;
  --bg-warm: #f5ede3;
  --surface: #ffffff;
  --surface-warm: #fdf8f3;
  --border: #e8ddd4;
  --coral: #e8704a;
  --coral-dim: rgba(232, 112, 74, 0.12);
  --coral-glow: rgba(232, 112, 74, 0.06);
  --terracotta: #c4563a;
  --cream: #fdf4ec;
  --text: #1c1714;
  --text-muted: #7a6e65;
  --text-dim: #a89888;
  --white: #ffffff;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 3px rgba(28, 23, 20, 0.08);
  --shadow: 0 4px 16px rgba(28, 23, 20, 0.10);
  --shadow-lg: 0 12px 40px rgba(28, 23, 20, 0.14);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  background: rgba(250, 246, 241, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.nav-logo span { color: var(--coral); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--coral);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  transition: background var(--transition), transform 0.15s !important;
}
.nav-cta:hover {
  background: var(--terracotta);
  transform: translateY(-1px);
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bg);
  padding: 140px 0 100px;
}

.hero-content {
  position: relative;
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--coral-dim);
  border: 1px solid rgba(232, 112, 74, 0.3);
  color: var(--terracotta);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--coral);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: normal;
  color: var(--coral);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 40px;
  max-width: 520px;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--coral);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--terracotta);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 112, 74, 0.35);
}
.btn-primary svg { transition: transform var(--transition); }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 14px 24px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  text-decoration: none;
}
.btn-ghost:hover { background: var(--surface); border-color: var(--text-muted); color: var(--text); }

/* ---- SERVICES ---- */
.section { padding: 100px 0; }
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 540px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  cursor: default;
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(232, 112, 74, 0.3);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--coral-dim);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.4rem;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--terracotta);
  background: var(--coral-dim);
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.02em;
}

/* ---- VIBE ---- */
.vibe-section {
  background: var(--bg-warm);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.vibe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 56px;
}

.vibe-item { text-align: center; }

.vibe-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--coral);
  line-height: 1;
  margin-bottom: 8px;
}

.vibe-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.vibe-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- VIBE CODING ---- */
.vibe-coding {
  background: var(--text);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.vibe-coding::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(232,112,74,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.vibe-coding .section-tag { color: #ffb8a0; }
.vibe-coding .section-title { color: var(--white); }
.vibe-coding .section-sub { color: rgba(255,255,255,0.6); }

.code-block {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-top: 48px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
}

.code-block .cb-tag { color: #ffb8a0; }
.code-block .cb-attr { color: #ffd4c4; }
.code-block .cb-val { color: #a8e6cf; }
.code-block .cb-comment { color: rgba(255,255,255,0.35); font-style: italic; }

/* ---- CTA ---- */
.cta-section {
  background: var(--coral);
  color: var(--white);
  text-align: center;
  padding: 100px 0;
}

.cta-section .section-title { color: var(--white); font-size: clamp(2rem, 4.5vw, 3.5rem); }
.cta-section .section-sub { color: rgba(255,255,255,0.8); max-width: 500px; margin: 0 auto 40px; }

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--coral);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* ---- FOOTER ---- */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.5);
  padding: 40px 0;
  font-size: 0.875rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
}
.footer-logo span { color: var(--coral); }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav-links { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .vibe-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 120px 0 80px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .section { padding: 70px 0; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
}