/* ============================================================
   CHITCHAT STUDIOS — Premium Design System v2

   DESIGN APPROACH: Dark premium theme inspired by Linear,
   Stripe, and Mercury. Glassmorphism cards, glow effects,
   animated gradients, and subtle iconography.

   TO EDIT COLOURS: Change the CSS variables below.
   TO EDIT TEXT: Edit the HTML files directly.
   ============================================================ */

/* --- CSS Variables --- */
:root {
  /* Dark palette (matched to logo's deep purple) */
  --bg-primary: #120835;
  --bg-secondary: #1A0E45;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --bg-glass: rgba(255, 255, 255, 0.05);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.18);

  /* Brand colours (matched to logo) */
  --purple-main: #6D28D9;
  --purple-light: #A78BFA;
  --purple-deep: #2A0A5E;
  --purple-faint: rgba(109, 40, 217, 0.15);
  --pink-main: #F542B0;
  --pink-light: #F87DD1;
  --pink-faint: rgba(245, 66, 176, 0.15);
  --gold-accent: #D4C94A;
  --gold-faint: rgba(212, 201, 74, 0.12);
  --gradient-brand: linear-gradient(135deg, #F542B0 0%, #D4C94A 100%);
  --gradient-brand-alt: linear-gradient(135deg, #6D28D9 0%, #F542B0 100%);
  --gradient-brand-soft: linear-gradient(135deg, rgba(245,66,176,0.2) 0%, rgba(212,201,74,0.15) 100%);

  /* Text */
  --text-primary: #F5F1FF;
  --text-secondary: rgba(245, 241, 255, 0.65);
  --text-muted: rgba(245, 241, 255, 0.4);

  /* Typography */
  --font-heading: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  /* Spacing */
  --section-padding: 120px 0;
  --container-width: 1140px;

  /* Effects */
  --glow-purple: 0 0 40px rgba(109, 40, 217, 0.25);
  --glow-pink: 0 0 40px rgba(245, 66, 176, 0.3);
  --glow-brand: 0 0 60px rgba(245, 66, 176, 0.15), 0 0 120px rgba(212, 201, 74, 0.06);
  --transition-fast: 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-medium: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Accessibility --- */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--pink-main);
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  font-size: 0.88rem;
  z-index: 9999;
  transition: top 0.2s ease;
  text-decoration: none;
}

.skip-to-content:focus {
  top: 0;
  color: var(--text-primary);
}

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

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

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
  background: var(--bg-primary);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--pink-main);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--pink-light); }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.8rem, 5.5vw, 4.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); letter-spacing: -0.01em; }

p { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }

/* Gradient text effect */
.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pink-main);
  margin-bottom: 1.2rem;
}

.section-label .icon {
  width: 16px;
  height: 16px;
  opacity: 0.8;
}

/* ============================================================
   ANIMATED BACKGROUND (gradient mesh)
   ============================================================ */
.bg-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: orbFloat 20s ease-in-out infinite;
}

.bg-orb--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245,66,176,0.2) 0%, transparent 70%);
  top: -10%;
  right: -10%;
  animation-delay: 0s;
}

.bg-orb--2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(109,40,217,0.25) 0%, transparent 70%);
  bottom: 10%;
  left: -8%;
  animation-delay: -7s;
}

.bg-orb--3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212,201,74,0.08) 0%, transparent 70%);
  top: 50%;
  right: 20%;
  animation-delay: -14s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(18, 8, 53, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.nav.scrolled {
  background: rgba(18, 8, 53, 0.92);
  box-shadow: 0 1px 40px rgba(245, 66, 176, 0.05);
}

/* Logo image in nav — prominent, readable */
.nav-logo-img {
  height: 44px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.nav-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--pink-main);
  text-decoration: none;
}

.nav-logo:hover { color: var(--pink-light); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 4px 0;
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 1px;
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--pink-main) !important;
  color: var(--text-primary) !important;
  padding: 10px 24px !important;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 16px rgba(245, 66, 176, 0.25);
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 24px rgba(245, 66, 176, 0.45) !important;
  background: #E0369E !important;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.2s ease;
}

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 120px;
}

/* Animated gradient border line at bottom of hero */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--gradient-brand);
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero h1 {
  margin-bottom: 0.4em;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 1.8vw, 1.2rem);
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 580px;
  line-height: 1.8;
}

.hero-credentials {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-credentials strong {
  color: var(--pink-main);
  font-weight: 600;
}

.hero-credentials .divider {
  width: 1px;
  height: 16px;
  background: var(--border-subtle);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Floating 3D shapes in hero */
.hero-shapes {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.shape {
  position: absolute;
  border-radius: 50%;
  animation: shapeFloat 15s ease-in-out infinite;
}

.shape--ring {
  width: 280px;
  height: 280px;
  border: 2px solid rgba(245, 66, 176, 0.2);
  top: 25%;
  right: 10%;
  animation-delay: 0s;
  transform: rotate(20deg);
}

.shape--orb {
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at 30% 30%, rgba(245,66,176,0.25), rgba(212,201,74,0.1));
  top: 40%;
  right: 30%;
  animation-delay: -5s;
  filter: blur(1px);
}

.shape--dot-grid {
  width: 200px;
  height: 200px;
  top: 15%;
  right: 35%;
  opacity: 0.15;
  background-image: radial-gradient(circle, var(--pink-light) 1px, transparent 1px);
  background-size: 20px 20px;
  border-radius: 0;
  animation-delay: -10s;
}

.shape--small-ring {
  width: 80px;
  height: 80px;
  border: 1.5px solid rgba(212, 201, 74, 0.2);
  top: 60%;
  right: 15%;
  animation-delay: -3s;
}

.shape--glow {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(245,66,176,0.15) 0%, transparent 70%);
  top: 30%;
  right: 5%;
  filter: blur(40px);
  animation-delay: -8s;
}

@keyframes shapeFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(10px, -20px) rotate(5deg); }
  50% { transform: translate(-10px, 10px) rotate(-3deg); }
  75% { transform: translate(15px, -5px) rotate(2deg); }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
  position: relative;
}

.btn-primary {
  background: var(--pink-main);
  color: var(--text-primary);
  box-shadow: 0 4px 20px rgba(245, 66, 176, 0.3);
}

.btn-primary:hover {
  color: var(--text-primary);
  background: #E0369E;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(245, 66, 176, 0.45);
}

.btn-glass {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--glow-brand);
}

.btn-arrow::after {
  content: '\2192';
  transition: transform 0.2s ease;
}

.btn-arrow:hover::after {
  transform: translateX(4px);
}

/* ============================================================
   SECTIONS
   ============================================================ */
section {
  padding: var(--section-padding);
  position: relative;
}

.section-alt {
  background: var(--bg-secondary);
}

/* Gradient divider between sections */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple-main), var(--pink-main), transparent);
  opacity: 0.2;
  margin: 0 auto;
  max-width: 80%;
}

/* ============================================================
   GLASSMORPHISM CARDS
   ============================================================ */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 40px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

/* Gradient border glow on hover */
.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.glass-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-6px);
  box-shadow: var(--glow-brand);
}

.glass-card:hover::before {
  opacity: 1;
}

/* ============================================================
   ICON CIRCLES (for service cards, etc.)
   ============================================================ */
.icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
}

.icon-circle--purple {
  background: var(--purple-faint);
  border: 1px solid rgba(109, 40, 217, 0.2);
}

.icon-circle--pink {
  background: var(--pink-faint);
  border: 1px solid rgba(245, 66, 176, 0.2);
}

.icon-circle--gold {
  background: var(--gold-faint);
  border: 1px solid rgba(212, 201, 74, 0.2);
}

.icon-circle svg {
  width: 24px;
  height: 24px;
}

.icon-circle--purple svg { color: var(--purple-light); }
.icon-circle--pink svg { color: var(--pink-light); }
.icon-circle--gold svg { color: var(--gold-accent); }

/* ============================================================
   STATS
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 20px 0;
}

.stat-item {
  text-align: center;
  padding: 32px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.stat-item:hover {
  border-color: var(--border-hover);
  box-shadow: var(--glow-brand);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 8px;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ============================================================
   SERVICES GRID
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.service-card {
  composes: glass-card;
}

.service-card h3 {
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* ============================================================
   CASE STUDIES
   ============================================================ */
.case-study {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 48px;
  transition: all 0.4s ease;
}

.case-study:hover {
  border-color: var(--border-hover);
  box-shadow: 0 16px 64px rgba(124, 58, 237, 0.08);
}

.case-study-header {
  background: linear-gradient(135deg, rgba(42,10,94,0.5) 0%, rgba(245,66,176,0.08) 100%);
  border-bottom: 1px solid var(--border-subtle);
  padding: 48px;
  position: relative;
  overflow: hidden;
}

/* Subtle dot pattern in case study header */
.case-study-header::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background-image: radial-gradient(circle, rgba(245,66,176,0.15) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.5;
  pointer-events: none;
}

.case-study-company {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pink-main);
  margin-bottom: 12px;
}

.case-study-header h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 8px;
}

.case-study-header p {
  color: var(--text-secondary);
  max-width: 600px;
}

.case-study-body {
  padding: 48px;
}

.case-study-section {
  margin-bottom: 28px;
}

.case-study-section h4 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pink-main);
  margin-bottom: 8px;
}

.case-study-section p {
  font-size: 0.95rem;
}

.case-study-results {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}

.result-item {
  padding: 20px;
  background: var(--purple-faint);
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: 14px;
}

.result-item .result-number {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.result-item .result-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ============================================================
   TEXT SECTIONS
   ============================================================ */
.text-section {
  max-width: 680px;
  margin: 0 auto;
}

.text-section h2 { margin-bottom: 1.5rem; }

.text-section p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-secondary);
}

.text-section.center { text-align: center; }

/* ============================================================
   SPEAKING / EVENTS
   ============================================================ */
.events-list {
  margin-top: 40px;
}

.event-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}

.event-item:first-child {
  border-top: 1px solid var(--border-subtle);
}

.event-item:hover {
  padding-left: 12px;
}

.event-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1rem;
}

.event-meta {
  display: flex;
  gap: 24px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.event-type {
  color: var(--pink-main);
  font-weight: 500;
}

/* Topics Grid */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

/* ============================================================
   STEPS / HOW I WORK
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.step-item {
  padding: 32px 24px;
  text-align: center;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.step-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.step-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.5;
  margin-bottom: 12px;
  line-height: 1;
}

.step-item h4 {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.step-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 14px 18px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--bg-glass);
  color: var(--text-primary);
  transition: all 0.2s ease;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--pink-main);
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 160px;
}

.contact-info h2 { margin-bottom: 1rem; }

.contact-info p {
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.2s ease;
}

.contact-link svg { color: var(--pink-main); }
.contact-link:hover { color: var(--text-primary); }

/* FAQ */
.faq-list { margin-top: 48px; }

.faq-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border-subtle);
}

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

.faq-question {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  font-size: 1rem;
}

.faq-answer {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ============================================================
   FEATURED CASE STUDY (Home)
   ============================================================ */
.featured-case {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 56px;
  position: relative;
  overflow: hidden;
}

.featured-case::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(245,66,176,0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,0.1) 0%, rgba(236,72,153,0.05) 40%, transparent 70%);
  pointer-events: none;
}

.cta-banner h2 {
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
}

.cta-banner p {
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 32px;
  font-size: 1.05rem;
  position: relative;
  z-index: 1;
}

.cta-banner .btn { position: relative; z-index: 1; }

/* ============================================================
   PAGE HEADER (inner pages)
   ============================================================ */
.page-header {
  padding: 180px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245,66,176,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple-main), var(--pink-main), transparent);
  opacity: 0.2;
}

.page-header h1 {
  position: relative;
  z-index: 1;
}

.page-header p {
  color: var(--text-secondary);
  max-width: 560px;
  font-size: 1.1rem;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 64px 0 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--pink-main);
  margin-bottom: 12px;
}

.footer-tagline { font-size: 0.88rem; margin-bottom: 12px; }

.footer-links {
  display: flex;
  gap: 64px;
}

.footer-links-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-links-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.footer-links-col a:hover { color: var(--text-primary); }

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  text-align: center;
}

.footer-disclaimer {
  font-size: 0.68rem;
  color: var(--text-muted);
  opacity: 0.6;
  max-width: 600px;
  line-height: 1.5;
}

/* ============================================================
   ANIMATIONS (scroll-triggered)
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr; }
  .topics-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { flex-direction: column; }
  .hero-shapes { display: none; }
}

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

  .nav-links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(18, 8, 53, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .hero {
    min-height: auto;
    padding: 140px 0 80px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .topics-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; gap: 12px; }

  .case-study-header { padding: 32px; }
  .case-study-body { padding: 32px; }
  .case-study-results { grid-template-columns: 1fr; }

  .event-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .featured-case { padding: 32px 24px; }
  .hero-buttons { flex-direction: column; }

  .footer-links { flex-direction: column; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }

  .bg-orb { opacity: 0.2; }
}

@media (max-width: 480px) {
  .page-header { padding: 140px 0 60px; }
  .stat-item { padding: 24px 12px; }
}

/* ============================================================
   ENHANCED NAVIGATION (Clear Street inspired)
   Full-screen overlay menu on mobile, gradient underline on desktop
   ============================================================ */
.nav-inner {
  height: 80px;
}

/* Animated gradient line under nav */
.nav::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--pink-main) 30%, var(--purple-main) 70%, transparent 100%);
  opacity: 0.3;
  animation: navGlow 4s ease-in-out infinite alternate;
}

@keyframes navGlow {
  0% { opacity: 0.15; }
  100% { opacity: 0.4; }
}

/* ============================================================
   FLOATING PARTICLES (Clear Street inspired)
   Small dots that float across sections
   ============================================================ */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--pink-main);
  opacity: 0;
  animation: particleFloat 12s linear infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 14s; }
.particle:nth-child(2) { left: 25%; animation-delay: 2s; animation-duration: 11s; background: var(--purple-light); }
.particle:nth-child(3) { left: 45%; animation-delay: 4s; animation-duration: 16s; }
.particle:nth-child(4) { left: 65%; animation-delay: 1s; animation-duration: 13s; background: var(--purple-light); }
.particle:nth-child(5) { left: 80%; animation-delay: 3s; animation-duration: 15s; }
.particle:nth-child(6) { left: 90%; animation-delay: 5s; animation-duration: 12s; background: var(--purple-light); }

@keyframes particleFloat {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ============================================================
   ANIMATED GRID LINES (Clear Street inspired)
   Subtle moving grid in hero background
   ============================================================ */
.hero-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(245,66,176,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,66,176,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 50% at 70% 50%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 70% 50%, black 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
  animation: gridPulse 8s ease-in-out infinite alternate;
}

@keyframes gridPulse {
  0% { opacity: 0.3; }
  100% { opacity: 0.7; }
}

/* ============================================================
   COMPANY LOGOS (Impact page)
   ============================================================ */
.company-logo-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  padding: 48px 0;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.company-logo-bar:hover { opacity: 0.8; }

.company-logo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  position: relative;
  padding: 12px 0;
}

/* Company logos in logo bar — all images normalised to same height */
.company-logo-img {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.company-logo-img:hover { opacity: 0.9; }

/* Case study header layout with logo on right */
.case-study-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.case-study-header-text {
  flex: 1;
}

/* Case study logos — same height as logo bar for consistency */
.case-study-header-logo {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.6;
  flex-shrink: 0;
  margin-top: 4px;
  transition: opacity 0.3s ease;
}

.case-study:hover .case-study-header-logo {
  opacity: 0.85;
}

/* ============================================================
   GRADIENT BORDER CARDS (premium effect)
   ============================================================ */
.gradient-border {
  position: relative;
  background: var(--bg-secondary);
  border-radius: 20px;
  padding: 1px;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: var(--gradient-brand);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  opacity: 0.3;
  transition: opacity 0.4s ease;
}

.gradient-border:hover::before {
  opacity: 0.7;
}

.gradient-border-inner {
  background: var(--bg-secondary);
  border-radius: 19px;
  padding: 40px;
}

/* ============================================================
   ANIMATED NUMBER COUNTER (premium feel)
   ============================================================ */
.stat-item {
  position: relative;
  overflow: hidden;
}

.stat-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 1px;
  opacity: 0;
  transition: opacity 0.4s ease, width 0.4s ease;
}

.stat-item:hover::after {
  opacity: 1;
  width: 60%;
}

/* ============================================================
   SCROLL PROGRESS INDICATOR (top of page)
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--gradient-brand);
  z-index: 1001;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(245, 66, 176, 0.5);
}

/* ============================================================
   HOVER GLOW EFFECT ON CARDS
   ============================================================ */
.glass-card {
  position: relative;
}

.glass-card .card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(245, 66, 176, 0.08) 0%, transparent 60%);
}

.glass-card:hover .card-glow {
  opacity: 1;
}

/* ============================================================
   MARQUEE / SCROLLING TICKER (for credentials)
   ============================================================ */
.ticker-wrap {
  overflow: hidden;
  padding: 20px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.ticker {
  display: flex;
  animation: tickerScroll 25s linear infinite;
  white-space: nowrap;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 40px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.ticker-item .ticker-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--pink-main);
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   ENHANCED CTA BANNER with animated ring
   ============================================================ */
.cta-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  border: 1px solid rgba(245, 66, 176, 0.12);
  border-radius: 50%;
  animation: ringPulse 6s ease-in-out infinite;
  pointer-events: none;
}

.cta-ring:nth-child(2) {
  width: 500px;
  height: 500px;
  animation-delay: -2s;
  border-color: rgba(212, 201, 74, 0.06);
}

.cta-ring:nth-child(3) {
  width: 600px;
  height: 600px;
  animation-delay: -4s;
  border-color: rgba(245, 66, 176, 0.04);
}

@keyframes ringPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.3; }
  50% { transform: translate(-50%, -50%) scale(1.05); opacity: 0.8; }
}

/* ============================================================
   3-COLUMN SERVICES GRID
   ============================================================ */
.services-grid--three {
  grid-template-columns: repeat(3, 1fr);
}

/* Card subtitle (italic tagline under card title) */
.card-subtitle {
  font-size: 0.82rem;
  font-weight: 500;
  font-style: italic;
  color: var(--pink-main);
  margin-bottom: 12px;
  opacity: 0.85;
}

.glass-card h3 {
  margin-bottom: 4px;
}

/* ============================================================
   FOOTER LOGO IMAGE
   ============================================================ */
.footer-logo-img {
  height: 32px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  margin-bottom: 12px;
  opacity: 0.7;
}

/* ============================================================
   RESPONSIVE additions
   ============================================================ */
@media (max-width: 1024px) {
  .services-grid--three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .company-logo-bar {
    gap: 32px;
    flex-wrap: wrap;
  }

  .ticker-wrap { display: none; }

  .particles { display: none; }

  .hero-grid { display: none; }

  .case-study-header-top {
    flex-direction: column;
  }

  .case-study-header-logo {
    order: -1;
    margin-top: 0;
    margin-bottom: 16px;
  }

  .hero {
    padding-top: 140px;
  }
}
