/* ==========================================================================
   Care Companion — Landing Page Stylesheet
   A premium, compassionate B2B SaaS design system.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. GOOGLE FONTS IMPORT
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS (CSS Custom Properties)
   -------------------------------------------------------------------------- */
:root {
  /* Brand palette */
  --blue:       #0077FF;
  --pink:       #FF3388;
  --green:      #44CC22;
  --dark:       #0F172A;
  --light:      #F8FAFC;
  --white:      #FFFFFF;

  /* Elevation */
  --radius:     12px;
  --shadow:     0 4px 24px rgba(15, 23, 42, .08);
  --shadow-lg:  0 12px 40px rgba(15, 23, 42, .12);

  /* Motion */
  --transition: 0.3s cubic-bezier(.4, 0, .2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
}

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

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

address {
  font-style: normal;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* --------------------------------------------------------------------------
   3. LAYOUT UTILITY — .container
   -------------------------------------------------------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --------------------------------------------------------------------------
   4. STICKY NAVBAR (#navbar)
   -------------------------------------------------------------------------- */
#navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  transition: box-shadow var(--transition), background var(--transition);
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 12px rgba(15, 23, 42, 0.08);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Logo cluster */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-logo img {
  height: 42px;
  width: auto;
  border-radius: 8px;
}

.nav-brand {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--dark);
}

/* Desktop nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--dark);
  position: relative;
  transition: color var(--transition);
}

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

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

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

/* CTA button in nav */
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.6rem;
  background: var(--blue);
  color: var(--white);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.nav-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(0, 119, 255, 0.35);
  background: #0066DD;
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile CTA inside hamburger menu — hidden on desktop */
.nav-cta-mobile-wrap {
  display: none;
}

@media (max-width: 768px) {
  .nav-cta-mobile-wrap {
    display: block;
    margin-top: 0.5rem;
  }

  .nav-cta-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2.5rem;
    background: var(--blue);
    color: var(--white) !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 1.1rem !important;
    border-radius: 50px;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    min-height: 48px;
  }

  .nav-cta-mobile:hover {
    background: #0066DD;
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 119, 255, 0.35);
  }

  /* Override the underline animation on mobile CTA */
  .nav-cta-mobile::after {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   5. HERO SECTION (#hero)
   -------------------------------------------------------------------------- */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 4rem 0;
  overflow: hidden;
  max-width: 100vw;
}

.hero-grid {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 3rem;
  align-items: center;
}

/* Hero text */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-content h1 {
  font-size: clamp(1.75rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.1;
  word-break: break-word;
  overflow-wrap: break-word;
}

.gradient-text {
  background: linear-gradient(135deg, var(--blue), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 6s ease-in-out infinite;
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: #475569;
  max-width: 520px;
  line-height: 1.7;
}

.hero-supporting {
  font-size: 0.95rem;
  color: #64748B;
  max-width: 460px;
}

/* Hero CTA buttons */
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  background: var(--blue);
  color: var(--white);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #0066DD;
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0, 119, 255, 0.45); }
  70%  { box-shadow: 0 0 0 14px rgba(0, 119, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 119, 255, 0); }
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  background: transparent;
  color: var(--blue);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid var(--blue);
  border-radius: 50px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.btn-secondary:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

/* Hero visual — dashboard mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.dashboard-mockup {
  width: 100%;
  max-width: 480px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: #F1F5F9;
  border-bottom: 1px solid #E2E8F0;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup-dot:nth-child(1) { background: #EF4444; }
.mockup-dot:nth-child(2) { background: #F59E0B; }
.mockup-dot:nth-child(3) { background: #22C55E; }

.mockup-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 280px;
}

.mock-card {
  border-radius: 10px;
  padding: 16px;
  animation: float 6s ease-in-out infinite;
}

.mock-card:nth-child(1) {
  background: rgba(0, 119, 255, 0.06);
  height: 56px;
  animation-delay: 0s;
}

.mock-card:nth-child(2) {
  background: rgba(255, 51, 136, 0.06);
  height: 44px;
  animation-delay: 1s;
}

.mock-card:nth-child(3) {
  background: rgba(68, 204, 34, 0.06);
  height: 36px;
  animation-delay: 2s;
}

/* Fake bar chart */
.mock-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 80px;
  padding-top: 8px;
}

.mock-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  animation: float 6s ease-in-out infinite;
}

.mock-bar:nth-child(1) { height: 55%; background: var(--blue);  animation-delay: 0.2s; }
.mock-bar:nth-child(2) { height: 80%; background: var(--pink);  animation-delay: 0.5s; }
.mock-bar:nth-child(3) { height: 45%; background: var(--green); animation-delay: 0.8s; }
.mock-bar:nth-child(4) { height: 70%; background: var(--blue);  animation-delay: 1.1s; }
.mock-bar:nth-child(5) { height: 60%; background: var(--pink);  animation-delay: 1.4s; }

/* Fake avatars */
.mock-avatars {
  display: flex;
  gap: 0;
  margin-top: 4px;
}

.mock-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--white);
  margin-left: -8px;
}

.mock-avatar:first-child { margin-left: 0; }
.mock-avatar:nth-child(1) { background: var(--blue); }
.mock-avatar:nth-child(2) { background: var(--pink); }
.mock-avatar:nth-child(3) { background: var(--green); }
.mock-avatar:nth-child(4) { background: #F59E0B; }

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

/* Decorative floating elements behind the mockup */
.hero-visual::before,
.hero-visual::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  z-index: -1;
  animation: float 8s ease-in-out infinite;
}

.hero-visual::before {
  width: 200px;
  height: 200px;
  background: rgba(0, 119, 255, 0.08);
  top: -40px;
  right: -20px;
  animation-delay: 1s;
}

.hero-visual::after {
  width: 140px;
  height: 140px;
  background: rgba(255, 51, 136, 0.08);
  bottom: -30px;
  left: 10px;
  animation-delay: 3s;
}

/* --------------------------------------------------------------------------
   6. SECTION HEADER (shared)
   -------------------------------------------------------------------------- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.section-title {
  font-size: clamp(1.4rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--dark);
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
  word-break: break-word;
  overflow-wrap: break-word;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--blue), var(--pink));
}

.section-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: #64748B;
  margin-top: 1rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   7. FEATURES GRID (#features)
   -------------------------------------------------------------------------- */
#features {
  background: var(--light);
  padding: 6rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Centre the orphan cards in the last row */
.features-grid .feature-card:nth-last-child(2):nth-child(3n + 1),
.features-grid .feature-card:nth-last-child(1):nth-child(3n + 2) {
  /* when exactly 2 items remain on the last row of a 3-col grid */
}

/* fallback centering: wrap the last two in their own row via auto placement */
.features-grid {
  justify-items: center;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  width: 100%;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.feature-icon.blue-tint  { background: rgba(0, 119, 255, 0.1);  color: var(--blue);  }
.feature-icon.pink-tint  { background: rgba(255, 51, 136, 0.1); color: var(--pink);  }
.feature-icon.green-tint { background: rgba(68, 204, 34, 0.1);  color: var(--green); }

.feature-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--dark);
  margin-top: 1.5rem;
}

.feature-text {
  color: #64748B;
  line-height: 1.7;
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   8. HR & COMPLIANCE (#compliance)
   -------------------------------------------------------------------------- */
#compliance {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: var(--white);
  padding: 7rem 0;
  overflow: hidden;
  max-width: 100vw;
}

.compliance-grid {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 3rem;
  align-items: center;
}

.compliance-content .section-title {
  color: var(--white);
}

.compliance-content .section-title::after {
  left: 0;
  transform: none;
}

.compliance-subtitle {
  color: #94A3B8;
  font-size: 1.1rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.compliance-list {
  display: flex;
  flex-direction: column;
}

.compliance-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  font-size: 1.05rem;
  color: #E2E8F0;
}

.check-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
  color: var(--white);
  line-height: 1;
}

/* Compliance floating visual */
.compliance-visual {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
  position: relative;
}

.compliance-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  color: var(--white);
  font-weight: 500;
  font-size: 0.95rem;
  animation: float 6s ease-in-out infinite;
  white-space: nowrap;
}

.compliance-badge:nth-child(1) { animation-delay: 0s;   }
.compliance-badge:nth-child(2) { animation-delay: 1.5s; }
.compliance-badge:nth-child(3) { animation-delay: 3s;   }
.compliance-badge:nth-child(4) { animation-delay: 4.5s; }

.compliance-badge .badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.badge-icon.green-bg { background: rgba(68, 204, 34, 0.2);  }
.badge-icon.blue-bg  { background: rgba(0, 119, 255, 0.2);  }
.badge-icon.pink-bg  { background: rgba(255, 51, 136, 0.2); }

/* --------------------------------------------------------------------------
   9. WHY CHOOSE US (#why-us)
   -------------------------------------------------------------------------- */
#why-us {
  background: var(--white);
  padding: 6rem 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.value-card {
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--blue);
  transition: transform var(--transition), border-left-width var(--transition), box-shadow var(--transition);
}

.value-card:hover {
  transform: translateX(4px);
  border-left-width: 6px;
  box-shadow: var(--shadow-lg);
}

.value-card.pink-border  { border-left-color: var(--pink);  }
.value-card.green-border { border-left-color: var(--green); }
.value-card.blue-border  { border-left-color: var(--blue);  }

.value-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.value-card.blue-border  .value-icon { color: var(--blue);  }
.value-card.pink-border  .value-icon { color: var(--pink);  }
.value-card.green-border .value-icon { color: var(--green); }

.value-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.value-text {
  color: #64748B;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   10. CONTACT SECTION (#contact)
   -------------------------------------------------------------------------- */
#contact {
  background: var(--light);
  padding: 6rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Contact info card */
.contact-card {
  background: var(--white);
  padding: 3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-card .logo-img {
  max-width: 180px;
  margin-bottom: 2rem;
  border-radius: 8px;
}

.contact-label {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.contact-address {
  color: #475569;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.contact-link {
  color: var(--blue);
  font-weight: 500;
  transition: color var(--transition);
}

.contact-link:hover {
  color: #0060CC;
  text-decoration: underline;
}

.required {
  color: var(--pink);
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: #475569;
}

.contact-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: rgba(0, 119, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--blue);
}

/* Contact form */
.contact-form-card {
  background: var(--white);
  padding: 3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border: 2px solid #E2E8F0;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #94A3B8;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 119, 255, 0.1);
}

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

.btn-submit {
  display: block;
  width: 100%;
  padding: 1rem 2rem;
  background: var(--blue);
  color: var(--white);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-submit:hover {
  background: #0060CC;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 119, 255, 0.3);
}

/* --------------------------------------------------------------------------
   11. BOTTOM CTA (#cta-bottom)
   -------------------------------------------------------------------------- */
#cta-bottom {
  background:
    radial-gradient(ellipse at 30% 50%, rgba(0, 119, 255, 0.06), transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(255, 51, 136, 0.06), transparent 60%),
    linear-gradient(135deg, rgba(0, 119, 255, 0.08), rgba(255, 51, 136, 0.08));
  padding: 5rem 0;
  text-align: center;
}

.cta-headline {
  font-size: clamp(1.4rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 1rem;
  word-break: break-word;
  overflow-wrap: break-word;
}

.cta-subtitle {
  font-size: 1.1rem;
  color: #64748B;
  max-width: 560px;
  margin: 0 auto 2rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* --------------------------------------------------------------------------
   12. FOOTER (#footer)
   -------------------------------------------------------------------------- */
#footer {
  background: var(--dark);
  color: #94A3B8;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo img {
  height: 36px;
  width: auto;
  border-radius: 6px;
  /* Give a white pill background so the logo reads on dark bg */
  background: var(--white);
  padding: 4px 8px;
}

.footer-address {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #94A3B8;
}

.footer-links-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.footer-links-group a {
  font-size: 0.9rem;
  color: #94A3B8;
  transition: color var(--transition);
}

.footer-links-group a:hover {
  color: var(--blue);
}

.footer-bottom {
  border-top: 1px solid #1E293B;
  margin-top: 3rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: #64748B;
}

.footer-bottom a {
  color: var(--blue);
  transition: color var(--transition);
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   13. SCROLL REVEAL ANIMATION
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(.4, 0, .2, 1),
              transform 0.8s cubic-bezier(.4, 0, .2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   14. UTILITY CLASSES
   -------------------------------------------------------------------------- */
.text-gradient {
  background: linear-gradient(135deg, var(--blue), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   15. RESPONSIVE — Tablet (max-width: 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  /* Hero */
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  /* Features */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Compliance */
  .compliance-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Why Us */
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --------------------------------------------------------------------------
   16. RESPONSIVE — Mobile (max-width: 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  /* ── Global overflow prevention ── */
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  section,
  #navbar,
  footer {
    overflow-x: hidden;
    max-width: 100vw;
  }

  /* ── Navbar ── */
  .hamburger {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .nav-logo img {
    height: 36px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
  }

  .nav-container {
    height: 64px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(.4, 0, .2, 1);
    z-index: 1050;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1.5rem;
    font-weight: 600;
  }

  .nav-links a::after {
    bottom: -6px;
    height: 3px;
  }

  /* ── Hero ── */
  #hero {
    min-height: auto;
    padding: 2rem 0 3rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }

  .hero-content {
    align-items: center;
  }

  .hero-content h1 {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  .hero-subtitle {
    font-size: clamp(0.95rem, 3vw, 1.15rem);
    max-width: 100%;
  }

  .hero-supporting {
    font-size: 0.9rem;
    max-width: 100%;
  }

  .hero-ctas {
    justify-content: center;
    width: 100%;
  }

  .hero-visual {
    order: -1;
    margin-bottom: 0.5rem;
  }

  /* Constrain decorative pseudo-elements */
  .hero-visual::before {
    width: 120px;
    height: 120px;
    right: -10px;
    top: -20px;
  }

  .hero-visual::after {
    width: 80px;
    height: 80px;
    left: 0;
    bottom: -15px;
  }

  .dashboard-mockup {
    max-width: 340px;
    margin: 0 auto;
  }

  /* ── Features: single-column stack ── */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .feature-card {
    width: 100%;
    padding: 2rem;
  }

  /* ── Compliance: single-column vertical stack ── */
  .compliance-grid {
    grid-template-columns: 1fr;
  }

  .compliance-visual {
    margin-top: 2rem;
  }

  .compliance-content .section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .compliance-content {
    text-align: center;
  }

  .compliance-list li {
    justify-content: center;
    font-size: 0.95rem;
  }

  .compliance-subtitle {
    font-size: 1rem;
  }

  /* ── Why Us: single-column stack ── */
  .values-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* ── Contact: single-column stack, full-width inputs ── */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-card,
  .contact-form-card {
    padding: 2rem;
  }

  .form-group input,
  .form-group textarea {
    width: 100%;
  }

  /* ── Footer: single-column centered ── */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-logo img {
    margin: 0 auto;
  }

  /* ── Section padding — tighten for mobile ── */
  #features,
  #why-us,
  #contact {
    padding: 3.5rem 0;
  }

  #compliance {
    padding: 3.5rem 0;
  }

  #cta-bottom {
    padding: 3rem 0;
  }

  #terms {
    padding: 3.5rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  /* ── Terms & Conditions Modal — Mobile ── */
  .terms-modal {
    width: 90%;
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 14px;
  }

  .terms-modal-header {
    padding: 1.25rem 1.25rem 1rem;
  }

  .terms-modal-header h2 {
    font-size: 1.15rem;
  }

  .terms-modal-header p {
    font-size: 0.8rem;
  }

  .terms-modal-body {
    padding: 1rem 1.25rem;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    font-size: 0.85rem;
  }

  .terms-modal-body h3 {
    font-size: 0.95rem;
  }

  .terms-modal-footer {
    padding: 1rem 1.25rem 1.25rem;
    flex-direction: column-reverse;
    gap: 0.75rem;
  }

  .terms-btn-accept {
    width: 100%;
    min-height: 48px;
    font-size: 0.95rem;
    padding: 0.85rem 1.5rem;
  }

  .terms-btn-decline {
    width: 100%;
    min-height: 48px;
    font-size: 0.9rem;
    padding: 0.85rem 1.5rem;
    text-align: center;
    justify-content: center;
    border: 1px solid #E2E8F0;
    border-radius: 50px;
  }

  /* ── Terms page card ── */
  .terms-page-card {
    padding: 1.5rem;
  }

  .terms-page-card h3 {
    font-size: 0.95rem;
  }

  .terms-page-card p,
  .terms-page-card ul li {
    font-size: 0.9rem;
  }
}

/* --------------------------------------------------------------------------
   17. RESPONSIVE — Small Mobile (max-width: 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  #hero {
    min-height: auto;
    padding: 1.5rem 0 2.5rem;
  }

  .hero-content h1 {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero-supporting {
    font-size: 0.85rem;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 0.9rem 1.5rem;
    min-height: 48px;
  }

  .dashboard-mockup {
    max-width: 100%;
  }

  .mockup-body {
    padding: 14px;
    min-height: 200px;
  }

  .feature-card {
    padding: 1.75rem;
  }

  .value-card {
    padding: 1.5rem;
  }

  .contact-card,
  .contact-form-card {
    padding: 1.5rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.75rem 1rem;
    font-size: 16px; /* Prevents iOS auto-zoom on focus */
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn-primary,
  .cta-buttons .btn-secondary {
    width: 100%;
  }

  .section-title {
    font-size: clamp(1.25rem, 6vw, 1.5rem);
  }

  .cta-headline {
    font-size: clamp(1.25rem, 6vw, 1.5rem);
  }

  .compliance-badge {
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
  }

  .nav-container {
    padding: 0 1rem;
    height: 58px;
  }

  .nav-logo img {
    height: 32px;
    max-width: 120px;
  }

  /* Terms modal — small phone */
  .terms-modal {
    width: 95%;
    max-height: 88vh;
    border-radius: 12px;
  }

  .terms-modal-header {
    padding: 1rem 1rem 0.75rem;
  }

  .terms-modal-header h2 {
    font-size: 1.05rem;
  }

  .terms-modal-body {
    padding: 0.875rem 1rem;
    font-size: 0.82rem;
  }

  .terms-modal-footer {
    padding: 0.875rem 1rem 1rem;
  }

  .terms-btn-accept,
  .terms-btn-decline {
    min-height: 50px;
    font-size: 0.9rem;
  }

  /* Footer compact */
  #footer {
    padding: 3rem 0 1.5rem;
  }

  .footer-bottom {
    margin-top: 2rem;
    font-size: 0.8rem;
  }

  /* Terms page */
  .terms-page-card {
    padding: 1.25rem;
  }

  .section-header {
    margin-bottom: 1.75rem;
  }
}

/* --------------------------------------------------------------------------
   T&C MODAL OVERLAY
   -------------------------------------------------------------------------- */
.terms-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.terms-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.terms-modal {
  width: 94%;
  max-width: 640px;
  max-height: 90vh;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.4s cubic-bezier(.4, 0, .2, 1);
}

.terms-modal-overlay.active .terms-modal {
  transform: translateY(0) scale(1);
}

.terms-modal-header {
  padding: 1.75rem 2rem 1.25rem;
  border-bottom: 1px solid #E2E8F0;
  flex-shrink: 0;
}

.terms-modal-header h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--dark);
  margin: 0;
}

.terms-modal-header p {
  font-size: 0.9rem;
  color: #64748B;
  margin-top: 0.35rem;
}

.terms-modal-body {
  padding: 1.5rem 2rem;
  overflow-y: auto;
  flex: 1 1 auto;
  font-size: 0.9rem;
  line-height: 1.75;
  color: #334155;
  scrollbar-width: thin;
  scrollbar-color: #CBD5E1 transparent;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.terms-modal-body::-webkit-scrollbar {
  width: 6px;
}

.terms-modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.terms-modal-body::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 3px;
}

.terms-modal-body h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark);
  margin: 1.5rem 0 0.5rem;
}

.terms-modal-body h3:first-child {
  margin-top: 0;
}

.terms-modal-body .terms-meta {
  font-size: 0.85rem;
  color: #64748B;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.terms-modal-footer {
  padding: 1.25rem 2rem 1.75rem;
  border-top: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  flex-shrink: 0;
}

.terms-btn-accept {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  background: var(--blue);
  color: var(--white);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.terms-btn-accept:hover {
  background: #0066DD;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 119, 255, 0.35);
}

.terms-btn-accept:focus-visible {
  outline: 3px solid rgba(0, 119, 255, 0.5);
  outline-offset: 2px;
}

.terms-btn-decline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  background: transparent;
  color: #64748B;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: color var(--transition);
}

.terms-btn-decline:hover {
  color: var(--pink);
}

.terms-btn-decline:focus-visible {
  outline: 3px solid rgba(255, 51, 136, 0.4);
  outline-offset: 2px;
}

/* Declined state message */
.terms-declined-msg {
  text-align: center;
  padding: 3rem 2rem;
}

.terms-declined-msg svg {
  color: var(--pink);
  margin-bottom: 1rem;
}

.terms-declined-msg h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.terms-declined-msg p {
  color: #64748B;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.terms-declined-msg .terms-btn-accept {
  margin: 0 auto;
}

/* Body lock when modal is visible */
body.terms-locked {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   DEDICATED TERMS SECTION (#terms)
   -------------------------------------------------------------------------- */
#terms {
  background: var(--light);
  padding: 6rem 0;
}

.terms-page-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 3rem;
  max-width: 820px;
  margin: 0 auto;
}

.terms-page-card .terms-meta {
  font-size: 0.85rem;
  color: #64748B;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.terms-page-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--dark);
  margin: 2rem 0 0.6rem;
}

.terms-page-card h3:first-of-type {
  margin-top: 0;
}

.terms-page-card p {
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.terms-page-card ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 0.5rem 0 1rem;
}

.terms-page-card ul li {
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.8;
  padding: 0.15rem 0;
}

/* --------------------------------------------------------------------------
   18. PRINT STYLES (bonus)
   -------------------------------------------------------------------------- */
@media print {
  #navbar,
  .hamburger,
  .hero-visual,
  .compliance-visual,
  #cta-bottom,
  .terms-modal-overlay {
    display: none;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
