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

:root {
  --navy: #1a2332;
  --navy-light: #243044;
  --navy-dark: #111826;
  --blue: #3d5eb8;
  --blue-light: #4b71c3;
  --blue-dark: #334e99;
  --blue-glow: rgba(61, 94, 184, 0.18);
  --white: #ffffff;
  --cream: #f9fafb;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-500: #868e96;
  --gray-700: #495057;
  --gray-900: #212529;
  --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-logo: 'Montserrat', 'Arial', sans-serif;
  --max-width: 1100px;
  --transition: 0.3s ease;
  --radius: 16px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--gray-900);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--blue);
  color: var(--white);
}

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

/* ===== Header / Nav ===== */
.header {
  background: #fefefe;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--gray-200);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0;
  padding-bottom: 0;
  height: 72px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.logo-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
}

.logo-text-img {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: clamp(0.75rem, 1.5vw, 1.75rem);
  flex-shrink: 1;
  min-width: 0;
}

.nav-links a {
  color: var(--gray-500);
  font-size: 0.85rem;
  white-space: nowrap;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color var(--transition);
  position: relative;
}

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

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

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

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

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  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 Nav */
.mobile-nav {
  display: none;
  background: #fefefe;
  padding: 1rem 0;
  border-top: 1px solid var(--gray-200);
}

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

.mobile-nav a {
  display: block;
  color: var(--gray-700);
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}

.mobile-nav a:hover {
  background: var(--gray-100);
  color: var(--navy);
}

/* ===== Keyframes ===== */
@keyframes riseUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Hero ===== */
.hero {
  background: #fefefe;
  color: var(--navy);
  text-align: center;
  padding: clamp(80px, 12vw, 160px) 1.5rem clamp(60px, 10vw, 120px);
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  bottom: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--blue-glow) 0%, transparent 65%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 750px;
  margin: 0 auto;
}

.hero-logo {
  width: 180px;
  height: auto;
  margin: 0 auto 2.5rem;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 52px;
}

.hero-eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 40px;
  height: 2px;
  background: var(--blue);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.hero h1 .accent {
  color: var(--blue);
  font-style: italic;
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--gray-700);
  margin-bottom: 2.5rem;
  line-height: 1.8;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* Stagger animations */
.stagger {
  opacity: 0;
  animation: riseUp 0.7s ease forwards;
}

.stagger:nth-child(1) { animation-delay: 0s; }
.stagger:nth-child(2) { animation-delay: 0.1s; }
.stagger:nth-child(3) { animation-delay: 0.2s; }
.stagger:nth-child(4) { animation-delay: 0.3s; }
.stagger:nth-child(5) { animation-delay: 0.4s; }

.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  padding: 1rem 2.5rem;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-primary:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--blue-glow);
}

/* ===== Section Shared ===== */
.section {
  padding: clamp(60px, 8vw, 100px) 0;
}

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

.section-title {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.section-subtitle {
  text-align: center;
  color: var(--gray-500);
  font-size: 1rem;
  margin-bottom: 3.5rem;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
}

/* ===== About / Values ===== */
.about-intro {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3.5rem;
  font-size: 1.05rem;
  color: var(--gray-700);
  line-height: 1.8;
}

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

.value-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.value-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
  border-color: var(--blue-light);
}

.value-card:hover::after {
  transform: scaleX(1);
}

.value-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.5rem;
  color: var(--blue);
}

.value-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.value-card p {
  color: var(--gray-700);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 2.5rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
  border-color: var(--blue-light);
}

.service-card:hover::after {
  transform: scaleX(1);
}

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

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--gray-700);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== Team ===== */
.team-card {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 3rem;
}

.team-photo-col {
  display: flex;
  justify-content: center;
}

.team-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gray-200);
  background: var(--gray-200);
}

.team-photo-placeholder {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 3px solid var(--gray-200);
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}

.team-info-col {
  text-align: left;
}

.team-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.team-role {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.team-bio {
  color: var(--gray-700);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.team-email {
  display: inline-block;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color var(--transition);
  position: relative;
}

.team-email::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--blue);
  transition: width var(--transition);
}

.team-email:hover {
  color: var(--blue-dark);
}

.team-email:hover::after {
  width: 100%;
}

/* ===== Contact CTA ===== */
.contact-cta {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: clamp(60px, 8vw, 100px) 1.5rem;
  position: relative;
  overflow: hidden;
}

.contact-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--blue-glow) 0%, transparent 65%);
  pointer-events: none;
}

.contact-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 400;
  margin-bottom: 1rem;
  position: relative;
}

.contact-cta p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  position: relative;
}

.btn-outline {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  padding: 1rem 2.5rem;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
}

.btn-outline:hover {
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--blue-glow);
}

/* ===== Footer ===== */
.footer {
  background: var(--navy-dark);
  color: var(--gray-500);
  text-align: center;
  padding: 2.5rem 1.5rem;
  font-size: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.footer-logo svg {
  width: 24px;
  height: 24px;
}

.footer-logo span {
  color: var(--gray-300);
  font-family: var(--font-logo);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===== Page Content (Support, Privacy, etc.) ===== */
.page-content {
  min-height: 50vh;
}

.page-body {
  max-width: 720px;
  margin: 2rem auto 0;
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.8;
}

.page-body p {
  margin-bottom: 1rem;
}

.page-body h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--navy);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.page-body ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.page-body ul li {
  margin-bottom: 0.5rem;
}

.page-body a {
  color: var(--blue);
  font-weight: 600;
  transition: color var(--transition);
}

.page-body a:hover {
  color: var(--blue-dark);
}

.support-email {
  text-align: center;
  font-size: 1.25rem;
  margin: 1.5rem 0;
}

/* ===== Footer Links ===== */
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--gray-300);
  font-size: 0.8rem;
  transition: color var(--transition);
}

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

/* ===== App Showcase ===== */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

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

.phone-frame {
  border-radius: 20px;
  border: 2px solid var(--gray-200);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  margin-bottom: 1.25rem;
  background: var(--gray-50);
  transition: transform var(--transition), box-shadow var(--transition);
}

.phone-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.phone-frame img {
  width: 100%;
  display: block;
}

.showcase-item h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.showcase-item p {
  color: var(--gray-700);
  font-size: 0.9rem;
  line-height: 1.6;
}

.showcase-reports {
  margin-bottom: 4rem;
  text-align: center;
}

.showcase-reports-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.showcase-reports-subtitle {
  color: var(--gray-500);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.reports-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.showcase-single {
  max-width: 250px;
  margin: 0 auto;
}

/* ===== Scroll Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .values-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .services-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 500px;
    margin: 0 auto 3rem;
  }

  .team-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    padding: 2.5rem;
  }

  .team-info-col {
    text-align: center;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 6vw, 2.4rem);
  }

  .hero-logo {
    width: 140px;
    margin-bottom: 2rem;
  }

  .hero-glow {
    bottom: -50%;
  }

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

  .team-photo {
    width: 140px;
    height: 140px;
  }

  .contact-cta h2 {
    font-size: clamp(1.5rem, 4vw, 1.8rem);
  }
}

@media (max-width: 480px) {
  .logo-text-img {
    height: 28px;
  }

  .header .container {
    height: 60px;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
  }

  .team-card {
    padding: 2rem 1.5rem;
  }

  .team-photo {
    width: 120px;
    height: 120px;
  }

  .service-card {
    padding: 2rem 1.5rem;
  }

  .showcase-grid {
    gap: 1rem;
  }

  .reports-row {
    gap: 0.75rem;
  }

  .showcase-single {
    max-width: 200px;
  }

  .phone-frame {
    border-radius: 14px;
  }
}
