/* --- AGENCY DESIGN SYSTEM --- */
:root {
  /* Deep, rich dark mode palette */
  --bg-base: #030305;
  --bg-elevated: #0a0a0e;
  --bg-card: rgba(255, 255, 255, 0.02);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.15);

  /* Accents */
  --accent-primary: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.15);
  --gradient-brand: linear-gradient(135deg, #38bdf8, #818cf8);

  /* Typography */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;

  /* Animation Curves (The secret to premium feel) */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family:
    "Inter",
    -apple-system,
    sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased; /* Crisper text on Mac/iOS */
}

/* --- AMBIENT DEPTH --- */
.ambient-glow {
  position: fixed;
  top: -20%;
  left: 50%;
  width: 80vw;
  height: 80vw;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
}

/* --- LAYOUT UTILITIES --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}
.section {
  padding: 8rem 0;
}
.bg-elevated {
  background-color: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* --- SMART HEADER --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  background: rgba(3, 3, 5, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: transform 0.4s var(--ease-out-expo);
}
header.hidden {
  transform: translateY(-100%);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
  text-decoration: none;
}
.logo span {
  color: var(--accent-primary);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-links a:hover {
  color: var(--text-main);
}

/* --- BUTTONS --- */
.btn-nav {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  transition: 0.3s;
}
.btn-nav:hover {
  background: var(--text-main);
  color: var(--bg-base);
}

.btn-primary {
  background: var(--text-main);
  color: var(--bg-base);
  padding: 1rem 2rem;
  border-radius: 100px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  transition: all 0.3s var(--ease-out-expo);
}
.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.btn-secondary {
  color: var(--text-main);
  padding: 1rem 2rem;
  border-radius: 100px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border-hover);
  transition: 0.3s;
}
.btn-secondary:hover {
  background: var(--bg-card);
  border-color: var(--text-main);
}

.w-100 {
  width: 100%;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

/* --- HERO --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
}
.hero-inner {
  max-width: 900px;
}
.badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--accent-glow);
  color: var(--accent-primary);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 2rem;
}
h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.gradient-text {
  background: var(--gradient-brand);
  /* The Apple/Chrome way */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  /* The Official Standard way */
  background-clip: text;
  color: transparent;
}
.hero .lead {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-muted);
  max-width: 650px;
  margin-bottom: 3rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
}

/* --- TYPOGRAPHY UTILS --- */
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.lead-sm {
  font-size: 1.2rem;
  color: var(--text-muted);
}
.section-header {
  margin-bottom: 4rem;
  max-width: 600px;
}

/* --- METRICS GRID --- */
.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
  border-radius: 16px;
  transition: border 0.3s;
}
.metric-card:hover {
  border-color: var(--border-hover);
}
.metric-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--accent-primary);
}
.metric-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- BENTO EXPERTISE --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition:
    transform 0.4s var(--ease-out-expo),
    box-shadow 0.4s;
}
.bento-large {
  grid-column: span 2;
  min-height: 350px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02) 0%,
    rgba(56, 189, 248, 0.05) 100%
  );
}
.bento-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
  border-color: var(--border-hover);
}
.tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 1rem;
  border: 1px solid var(--border-subtle);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
}
.bento-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.bento-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- PROCESS TIMELINE --- */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.process-step {
  border-top: 1px solid var(--border-hover);
  padding-top: 2rem;
}
.step-number {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--accent-primary);
  margin-bottom: 1rem;
}
.process-step h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.process-step p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- PREMIUM FORM --- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
}
.direct-email {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  border-bottom: 2px solid var(--accent-primary);
  display: inline-block;
  margin-top: 2rem;
  padding-bottom: 0.2rem;
  transition: 0.3s;
}
.direct-email:hover {
  color: var(--accent-primary);
}

.pro-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.input-row {
  display: flex;
  gap: 1.5rem;
}
.input-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}
.pro-form label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}
.pro-form input,
.pro-form textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 1rem;
  border-radius: 12px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}
.pro-form input:focus,
.pro-form textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: rgba(56, 189, 248, 0.05);
}

/* --- FOOTER --- */
footer {
  padding: 4rem 0;
  background: var(--bg-base);
  border-top: 1px solid var(--border-subtle);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}
.footer-legal p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* --- JS ANIMATION CLASSES --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s var(--ease-out-expo),
    transform 0.8s var(--ease-out-expo);
}
.fade-in {
  opacity: 0;
  transition: opacity 1s var(--ease-out-expo);
}
.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 {
  transition-delay: 0.15s;
}
.delay-2 {
  transition-delay: 0.3s;
}

/* --- MOBILE --- */
@media (max-width: 900px) {
  .grid-2,
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .bento-grid,
  .process-timeline {
    grid-template-columns: 1fr;
  }
  .bento-large {
    grid-column: span 1;
    min-height: auto;
  }
  .hero-actions,
  .input-row {
    flex-direction: column;
  }
  .nav-links {
    display: none;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }
}
