/* ============================================
   THE BRIEF — GLOBAL DESIGN SYSTEM
   Navy/Teal palette · Vibrant & Energetic
   ============================================ */

/* --- FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/* --- CSS VARIABLES --- */
:root {
  --navy-deep: #0B1121;
  --navy: #0F1A2E;
  --navy-light: #162035;
  --teal: #00C9A7;
  --teal-bright: #00FFD1;
  --teal-dim: #009B82;
  --coral: #FF6B6B;
  --amber: #FFB347;
  --violet: #8B5CF6;
  --sky: #38BDF8;
  --white: #F8FAFC;
  --white-dim: #CBD5E1;
  --gray: #94A3B8;
  --gray-dark: #475569;
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-accent: #00FFD1;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --shadow-glow: 0 0 40px rgba(0, 201, 167, 0.15);
  --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.3);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- 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);
  background: var(--navy-deep);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* --- BACKGROUND GRAIN TEXTURE --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* --- UTILITY --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.section { padding: 100px 0; position: relative; }
.section-sm { padding: 60px 0; position: relative; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5 { font-family: var(--font-display); line-height: 1.15; font-weight: 700; }

h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
h4 { font-size: 1.15rem; font-weight: 600; }

.text-gradient {
  background: linear-gradient(135deg, var(--teal-bright), var(--teal), var(--sky));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-accent { color: var(--teal-bright); }
.text-secondary { color: var(--text-secondary); }
.text-coral { color: var(--coral); }

.label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--teal);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  border-radius: 60px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--teal-dim));
  color: var(--navy-deep);
  box-shadow: 0 4px 25px rgba(0, 201, 167, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(0, 201, 167, 0.45);
}

.btn-outline {
  border: 2px solid rgba(0, 255, 209, 0.3);
  color: var(--teal-bright);
}

.btn-outline:hover {
  background: rgba(0, 255, 209, 0.08);
  border-color: var(--teal-bright);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--teal-bright);
  padding: 10px 0;
}

.btn-ghost:hover { gap: 16px; }

.btn-ghost .arrow {
  transition: var(--transition-smooth);
  display: inline-block;
}

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

/* --- NAVIGATION --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: var(--transition-smooth);
}

.nav.scrolled {
  background: rgba(11, 17, 33, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 201, 167, 0.08);
  padding: 12px 0;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.nav-logo span { color: var(--teal-bright); }

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

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white-dim);
  transition: var(--transition-fast);
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--teal);
  transition: var(--transition-smooth);
  border-radius: 2px;
}

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

.nav-cta {
  padding: 10px 24px !important;
  font-size: 0.85rem !important;
  background: linear-gradient(135deg, var(--teal), var(--teal-dim)) !important;
  color: var(--navy-deep) !important;
  border-radius: 60px;
  font-weight: 600 !important;
}

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

.nav-cta:hover {
  box-shadow: 0 4px 25px rgba(0, 201, 167, 0.3);
  transform: translateY(-1px);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 1001;
}

.nav-hamburger span {
  width: 26px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translateY(7px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translateY(-7px); }

/* Mobile Nav */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 17, 33, 0.97);
  backdrop-filter: blur(30px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  z-index: 999;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white-dim);
  transition: var(--transition-fast);
}

.nav-mobile a:hover,
.nav-mobile a.active { color: var(--teal-bright); }

/* --- CARDS --- */
.card {
  background: linear-gradient(145deg, var(--navy-light), var(--navy));
  border: 1px solid rgba(0, 201, 167, 0.07);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  opacity: 0;
  transition: var(--transition-smooth);
}

.card:hover {
  border-color: rgba(0, 201, 167, 0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

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

.card-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: rgba(0, 201, 167, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 201, 167, 0.12);
}

.card h4 { margin-bottom: 10px; }

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

.card-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 600;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 14px;
}

.tag-teal { background: rgba(0, 201, 167, 0.12); color: var(--teal); }
.tag-coral { background: rgba(255, 107, 107, 0.12); color: var(--coral); }
.tag-amber { background: rgba(255, 179, 71, 0.12); color: var(--amber); }
.tag-violet { background: rgba(139, 92, 246, 0.12); color: var(--violet); }
.tag-sky { background: rgba(56, 189, 248, 0.12); color: var(--sky); }

/* --- GRIDS --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* --- SECTION DECORATORS --- */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.orb-teal {
  background: radial-gradient(circle, rgba(0, 201, 167, 0.2), transparent 70%);
}

.orb-violet {
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15), transparent 70%);
}

.orb-coral {
  background: radial-gradient(circle, rgba(255, 107, 107, 0.12), transparent 70%);
}

/* --- CTA BANNER --- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-light), var(--navy));
  border: 1px solid rgba(0, 201, 167, 0.1);
  border-radius: var(--radius-xl);
  padding: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at center, rgba(0, 201, 167, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.cta-banner h2 { margin-bottom: 16px; }
.cta-banner p { color: var(--text-secondary); margin-bottom: 32px; max-width: 520px; margin-inline: auto; }

/* --- FOOTER --- */
.footer {
  background: var(--navy);
  border-top: 1px solid rgba(0, 201, 167, 0.06);
  padding: 72px 0 32px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 16px 0 24px;
  max-width: 300px;
}

.footer-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-email:hover { color: var(--teal-bright); }

.footer-col h5 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  color: var(--text-secondary);
  font-size: 0.88rem;
  padding: 5px 0;
  transition: var(--transition-fast);
}

.footer-col a:hover { color: var(--teal-bright); transform: translateX(4px); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--gray-dark);
  font-size: 0.82rem;
}

/* --- STAT COUNTER --- */
.stats-row {
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--teal-bright);
  line-height: 1;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 6px;
}

/* --- PROCESS STEPS --- */
.process-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(0, 201, 167, 0.1);
  border: 1px solid rgba(0, 201, 167, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--teal);
}

.step-content h4 { margin-bottom: 6px; }
.step-content p { color: var(--text-secondary); font-size: 0.9rem; }

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 201, 167, 0.15); }
  50% { box-shadow: 0 0 40px rgba(0, 201, 167, 0.3); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .cta-banner { padding: 40px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .stats-row { gap: 32px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .btn { padding: 13px 28px; font-size: 0.88rem; }
}
