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

:root {
  --bg: #0A1628;
  --bg-light: #0F1D32;
  --bg-card: rgba(15, 29, 50, 0.6);
  --teal: #2DD4BF;
  --teal-glow: rgba(45, 212, 191, 0.15);
  --teal-dark: #22B8A6;
  --white: #FFFFFF;
  --gray-100: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-bg: rgba(255, 255, 255, 0.04);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--gray-300);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { line-height: 1.15; font-weight: 700; color: var(--white); }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); text-transform: uppercase; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.15rem; }

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

/* === BUTTONS === */
.btn {
  display: inline-block;
  background: var(--teal);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 14px 36px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
}
.btn:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(45, 212, 191, 0.3);
}
.btn-sm { padding: 10px 22px; font-size: 0.8rem; }
.btn-lg { padding: 16px 44px; font-size: 0.95rem; }
.btn-full { width: 100%; text-align: center; }
.btn-cta {
  margin-top: 8px;
}

/* === HEADER === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}
.logo img { height: 36px; width: auto; }

.nav {
  display: flex;
  gap: 32px;
}
.nav-link {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-400);
  transition: color 0.2s;
}
.nav-link:hover { color: var(--white); }

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-toggle span {
  width: 22px;
  height: 2px;
  background: var(--gray-400);
  border-radius: 2px;
  transition: 0.3s;
}

/* === HERO === */
.hero {
  padding: 160px 0 80px;
  text-align: center;
  background: var(--bg);
  color: var(--white);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero-title {
  margin-bottom: 24px;
}
.hero-title .line {
  display: block;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--gray-400);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.7;
  font-weight: 400;
}

/* === PULSE / HEARTBEAT SVG === */
.pulse-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto 48px;
  height: 120px;
}
.pulse-svg {
  width: 100%;
  height: 100%;
}
.pulse-line {
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
}
.pulse-line-bg {
  opacity: 0.08;
}

/* === SERVICE CARDS (Hero) === */
.service-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}
.service-card {
  padding: 28px 36px;
  border-radius: 16px;
  text-align: center;
  min-width: 160px;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.35s ease,
              border-color 0.3s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(45, 212, 191, 0.1);
  border-color: rgba(45, 212, 191, 0.3);
}
.service-card.active {
  border-color: rgba(45, 212, 191, 0.3);
  background: rgba(45, 212, 191, 0.06);
}
.card-icon {
  margin-bottom: 12px;
}
.service-card h3 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-300);
}
.service-card.active h3 {
  color: var(--white);
}

/* === GLASSMORPHISM === */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
}

/* === SERVICES SECTION === */
.services {
  padding: 120px 0;
  background: var(--bg);
}
.section-title {
  text-align: center;
  margin-bottom: 64px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.service-detail {
  padding: 36px 32px;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.35s ease,
              border-color 0.3s ease;
}
.service-detail:hover {
  transform: translateY(-4px);
  border-color: rgba(45, 212, 191, 0.2);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(45, 212, 191, 0.08);
}
.service-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.service-detail h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}
.service-detail p {
  color: var(--gray-400);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* === PROCESS === */
.process {
  padding: 120px 0;
  background: var(--bg-light);
}
.process-steps {
  max-width: 680px;
  margin: 0 auto 48px;
}
.process-step {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
}
.process-step:last-child {
  margin-bottom: 0;
}
.step-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}
.step-num {
  width: 44px;
  height: 44px;
  background: var(--teal);
  color: var(--bg);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-line {
  width: 2px;
  flex: 1;
  background: linear-gradient(to bottom, var(--teal), transparent);
  margin-top: 8px;
  opacity: 0.3;
}
.step-body h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}
.step-body p {
  color: var(--gray-400);
  font-size: 0.95rem;
  line-height: 1.7;
}

.insight-box {
  padding: 28px 32px;
  max-width: 680px;
  margin: 0 auto;
}
.insight-box p {
  color: var(--gray-400);
  font-size: 0.95rem;
  line-height: 1.7;
}
.insight-box strong {
  color: var(--teal);
}

/* === CREDIBILITY === */
.credibility {
  padding: 120px 0;
  background: var(--bg);
}
.credibility .section-title {
  text-align: left;
  margin-left: 0;
}
.cred-content {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
.cred-text p {
  color: var(--gray-400);
  margin-bottom: 20px;
  line-height: 1.7;
}
.cred-text strong { color: var(--white); }
.cred-highlight {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--teal) !important;
  border-left: 3px solid var(--teal);
  padding-left: 20px;
  margin-top: 28px;
}

.case-card {
  padding: 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.35s ease;
}
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(45, 212, 191, 0.12);
}
.case-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.case-card h4 {
  font-size: 1.4rem;
  color: var(--white);
  margin: 8px 0 12px;
}
.case-card p {
  color: var(--gray-400);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
}
.case-stats {
  display: flex;
  gap: 32px;
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat-val {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--teal);
}
.stat-label {
  font-size: 0.75rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* === CTA / BRIEF FORM === */
.cta-final {
  padding: 120px 0;
  background: var(--bg-light);
  color: var(--white);
}
.cta-final .section-title {
  margin-bottom: 16px;
}
.cta-sub {
  text-align: center;
  color: var(--gray-400);
  max-width: 560px;
  margin: 0 auto 48px;
}

.brief-form {
  max-width: 560px;
  margin: 0 auto;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.brief-form input,
.brief-form textarea {
  width: 100%;
  padding: 14px 18px;
  font-size: 1rem;
  font-family: var(--font);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--white);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.brief-form input::placeholder,
.brief-form textarea::placeholder { color: var(--gray-500); }
.brief-form input:focus,
.brief-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.1);
}
.brief-form input[name="phone"] { margin-bottom: 16px; }
.brief-form textarea { margin-bottom: 20px; resize: vertical; }
.brief-form .btn { margin-bottom: 16px; }

.form-reassurance {
  text-align: center;
  color: var(--gray-500);
  font-size: 0.85rem;
}

.form-success {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.form-success h3 {
  color: var(--teal);
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.form-success p { color: var(--gray-400); }

/* === FOOTER === */
.footer {
  padding: 48px 0;
  background: var(--bg);
  border-top: 1px solid var(--glass-border);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-brand p {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.5;
}
.footer-links {
  display: flex;
  gap: 24px;
  font-size: 0.9rem;
}
.footer-links a { color: var(--gray-400); transition: color 0.2s; }
.footer-links a:hover { color: var(--teal); }
.footer-legal { width: 100%; text-align: center; }
.footer-legal p { font-size: 0.8rem; color: var(--gray-500); }

/* === GSAP INITIAL STATES === */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  body { font-size: 16px; }

  .hero { padding: 120px 0 60px; min-height: auto; }
  h1 { font-size: clamp(2rem, 8vw, 2.8rem); }

  .nav { display: none; }
  .header .btn-sm { display: none; }
  .mobile-toggle { display: flex; }

  .service-cards { flex-direction: column; align-items: center; gap: 12px; }
  .service-card { min-width: 240px; }

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

  .process-steps { padding: 0 12px; }

  .cred-content { grid-template-columns: 1fr; }

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

  .pulse-container { height: 80px; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-brand { flex-direction: column; }
  .footer-links { flex-direction: column; gap: 12px; }

  .services, .process, .credibility, .cta-final { padding: 80px 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .service-card { min-width: auto; width: 100%; padding: 20px 28px; }
  .service-detail { padding: 24px 20px; }
  .case-stats { gap: 20px; }
}
