/* ========== BRANDING VARIABLES - Blue/Teal theme ========== */
:root {
  --purple: #3b82f6;
  --purple-light: #60a5fa;
  --purple-dark: #2563eb;
  --teal: #14b8a6;
  --teal-light: #2dd4bf;
  
  --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #0ea5e9 50%, #14b8a6 100%);
  --gradient-text: linear-gradient(90deg, #ffffff 0%, #60a5fa 40%, #14b8a6 100%);
  --gradient-hero: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(20, 184, 166, 0.1) 100%);
  
  --bg-dark: #050508;
  --bg-card: #0f0f12;
  --bg-card-hover: #16161a;
  --bg-input: #0a0a0d;
  
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  
  --border: rgba(255, 255, 255, 0.06);
  --border-focus: rgba(59, 130, 246, 0.6);
  --glow-purple: rgba(59, 130, 246, 0.3);
  --glow-teal: rgba(20, 184, 166, 0.2);
  
  --container-max: 1200px;
  --section-padding: 6rem 0;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

/* ========== Pills & Badges ========== */
.pill {
  display: inline-block;
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: rgba(15, 15, 18, 0.8);
  margin-bottom: 1rem;
}

.pill-hero {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  font-weight: 600;
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.pill-section {
  display: inline-block;
  margin-bottom: 0.75rem;
}

.pill-cta {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: var(--purple);
  border: none;
  color: white;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all var(--transition);
}

.pill-cta:hover {
  background: var(--purple-light);
  transform: translateY(-2px);
}

.pill-success {
  border-color: rgba(20, 184, 166, 0.4);
  color: var(--teal-light);
}

/* ========== Header & Navigation ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  background: linear-gradient(180deg, rgba(5, 5, 8, 0.6) 0%, transparent 100%);
  backdrop-filter: none;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.header.scrolled {
  background: rgba(5, 5, 8, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 50%;
  font-size: 0.975rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: white;
  box-shadow: 0 0 20px var(--glow-purple);
}

.logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.logo-main {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: white;
}

.logo-sub {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

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

.nav-links a:hover {
  color: var(--purple-light);
}

.nav-cta {
  padding: 0.6rem 1.25rem;
  background: var(--gradient-primary);
  color: white !important;
  border-radius: 100px;
  font-weight: 600;
  box-shadow: 0 4px 20px var(--glow-purple);
}

.nav-cta:hover {
  box-shadow: 0 6px 30px var(--glow-purple);
  transform: translateY(-2px);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.1rem 2.25rem;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 20px var(--glow-purple);
}

.btn-primary:hover {
  box-shadow: 0 8px 40px var(--glow-purple);
  transform: translateY(-2px);
}

.btn-arrow {
  margin-left: 0.25rem;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  border-color: var(--purple);
  color: var(--purple-light);
}

/* ========== Hero Section ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.2), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(59, 130, 246, 0.1), transparent),
    radial-gradient(ellipse 60% 40% at 0% 50%, rgba(59, 130, 246, 0.08), transparent),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(20, 184, 166, 0.15), transparent);
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
  z-index: 1;
}

.hero-banner {
  padding: 1.25rem 2.5rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(96, 165, 250, 0.2) 100%);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 14px;
  margin: 1rem auto 1.5rem;
  max-width: 640px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.1s forwards;
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.15);
}

.hero-banner p {
  color: white;
  font-size: 1.1rem;
  margin: 0;
  font-weight: 500;
}

.hero-title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.65;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.3s forwards;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 700px;
  margin: 0 auto 3rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.4s forwards;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem 1.25rem;
  background: rgba(15, 15, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  min-height: 140px;
  transition: all var(--transition);
}

.stat-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.1);
  transform: translateY(-4px);
}

.stat-icon {
  font-size: 2rem;
  line-height: 1;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.08em;
  font-weight: 500;
  text-align: center;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.5s forwards;
}

.hero-cta .btn {
  min-width: 200px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== Section Styles ========== */
.section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-title-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 600px;
}

/* ========== Services Section ========== */
.services {
  position: relative;
  padding: var(--section-padding);
  overflow: hidden;
}

.services-bg {
  background: 
    radial-gradient(ellipse 60% 40% at 50% 50%, rgba(59, 130, 246, 0.08), transparent),
    radial-gradient(ellipse 40% 30% at 80% 20%, rgba(20, 184, 166, 0.06), transparent);
}

.services .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.services .pill-section,
.services .pill-cta,
.services .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.service-card {
  position: relative;
  padding: 2rem;
  background: rgba(15, 15, 18, 0.6);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: all var(--transition);
  overflow: hidden;
}

.service-card:hover {
  background: rgba(22, 22, 26, 0.8);
  border-color: rgba(59, 130, 246, 0.2);
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.08);
  transform: translateY(-4px);
}

.service-number {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 4rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.03);
  line-height: 1;
}

.service-icon {
  width: 48px;
  height: 48px;
  color: var(--purple);
  margin-bottom: 1rem;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.service-link {
  font-weight: 600;
  color: var(--purple-light);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap var(--transition);
}

.service-link:hover {
  color: var(--teal-light);
  gap: 0.5rem;
}

/* ========== Testimonials Section ========== */
.testimonials {
  position: relative;
  padding: var(--section-padding);
  overflow: hidden;
}

.testimonials-bg {
  background: 
    radial-gradient(ellipse 70% 50% at 50% 50%, rgba(59, 130, 246, 0.06), transparent),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(20, 184, 166, 0.08), transparent);
}

.testimonials .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.testimonials .pill-success {
  display: inline-block;
  margin-bottom: 0.75rem;
}

.testimonials .section-title {
  text-align: center;
  margin-bottom: 0.75rem;
}

.testimonials .section-subtitle {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 3rem;
}

/* Testimonials - matching OF Viral structure exactly */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  align-items: stretch;
}

.testimonial-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  transition: all var(--transition);
  overflow: hidden;
  min-height: 100%;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.2);
}

.testimonial-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.testimonial-rating {
  color: #f59e0b;
  font-size: 1rem;
  letter-spacing: 2px;
}

.testimonial-quote {
  font-size: 4rem;
  color: var(--purple);
  line-height: 1;
  opacity: 0.3;
}

/* KEY: flex: 1 makes quote expand, pushing author/metric to bottom - aligns strips across cards */
.testimonial-text {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: left;
}

.author-title {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.testimonial-metric {
  display: flex;
  flex-direction: column;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.metric-value {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.25rem;
}

/* ========== Consultation Section - Two Column Layout ========== */
.consultation {
  position: relative;
  padding: var(--section-padding);
  overflow: hidden;
}

.consultation-bg {
  background: 
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(59, 130, 246, 0.12), transparent),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(20, 184, 166, 0.1), transparent);
}

.consultation-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
  max-width: 1100px;
}

.consultation-content {
  position: sticky;
  top: 120px;
}

.consultation-content .section-title {
  margin-bottom: 1rem;
}

.consultation-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.consultation-benefits {
  list-style: none;
}

.consultation-benefits li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.benefit-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 10px;
  flex-shrink: 0;
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.benefit-icon svg {
  width: 18px;
  height: 18px;
}

.consultation-form {
  padding: 2.5rem;
  background: rgba(15, 15, 18, 0.8);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 0 60px rgba(59, 130, 246, 0.08);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-instruction {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: all var(--transition);
}

.form-group textarea {
  resize: none;
  min-height: 100px;
  overflow-y: hidden;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

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

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a1a1aa' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-hint {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.btn-submit {
  width: 100%;
  padding: 1.1rem;
  font-size: 1.05rem;
  margin-top: 0.5rem;
}

.form-confirm {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* ========== Footer ========== */
.footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer-brand {
  margin-bottom: 3rem;
}

.footer-brand .logo {
  display: inline-flex;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-col h5 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-col a:hover {
  color: var(--purple-light);
}

.footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
}

.footer-icon-mail {
  margin-right: 0.5rem;
}

.footer-icon-mail svg {
  width: 18px;
  height: 18px;
  color: var(--purple-light);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

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

/* ========== Scroll to Top Button ========== */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
  box-shadow: 0 4px 20px var(--glow-purple);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  box-shadow: 0 6px 30px var(--glow-purple);
  transform: translateY(-2px);
}

.scroll-top svg {
  width: 24px;
  height: 24px;
}

/* ========== Responsive ========== */
.nav-links.open {
  display: flex !important;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  flex-direction: column;
  background: rgba(5, 5, 8, 0.98);
  padding: 2rem;
  gap: 1.5rem;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 1024px) {
  .consultation-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .consultation-content {
    position: static;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    max-width: 280px;
  }

  .stat-card {
    min-height: 120px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .scroll-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .consultation-form {
    padding: 1.5rem;
  }

  .hero-banner {
    padding: 1rem 1.25rem;
  }
}
