/* =====================================================
   LANETH TECH — style.css
   Modern Fintech Redesign
   Design Direction: Refined Enterprise / Sleek B2B SaaS
   Fonts: Fraunces (display) + DM Sans (body)
   ===================================================== */

/* ---- CSS Variables ---- */
:root {
  /* Brand Palette */
  --clr-navy:       #0B1B35;
  --clr-navy-mid:   #122040;
  --clr-navy-light: #1A3057;
  --clr-teal:       #0FA8A0;
  --clr-teal-light: #14C4BB;
  --clr-gold:       #D4A843;
  --clr-gold-light: #F0C453;

  /* Neutrals */
  --clr-white:   #FFFFFF;
  --clr-off:     #F7F9FC;
  --clr-border:  #E2E8F0;
  --clr-muted:   #6B7A99;
  --clr-text:    #1A2540;

  /* Semantic */
  --clr-success: #0D9E6B;
  --clr-error:   #D93C3C;

  /* Typography */
  --ff-display: 'Fraunces', Georgia, serif;
  --ff-body:    'DM Sans', system-ui, sans-serif;

  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-lg:   1.125rem;
  --fs-xl:   1.25rem;
  --fs-2xl:  1.5rem;
  --fs-3xl:  1.875rem;
  --fs-4xl:  2.25rem;
  --fs-5xl:  3rem;
  --fs-6xl:  3.75rem;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --max-w: 1200px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(11,27,53,0.08), 0 1px 2px rgba(11,27,53,0.04);
  --shadow-md:  0 4px 16px rgba(11,27,53,0.10), 0 2px 6px rgba(11,27,53,0.06);
  --shadow-lg:  0 12px 40px rgba(11,27,53,0.14), 0 4px 12px rgba(11,27,53,0.08);
  --shadow-xl:  0 24px 60px rgba(11,27,53,0.18);

  /* Transitions */
  --ease-out:   cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:   150ms;
  --dur-base:   260ms;
  --dur-slow:   400ms;
}

/* ---- Inline SVG sizing (replaces external icon library) ---- */
.badge-icon,
.about-badge-icon,
.pillar-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

/* why-card, mission-card icon containers */
.why-icon svg,
.mission-icon svg,
.pf-icon svg,
.cd-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

/* social buttons */
.social-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* footer contact icons */
.footer-contact-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* back-to-top */
.back-to-top svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* form status */
.status-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* recaptcha icon */
.recaptcha-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--clr-muted);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  color: var(--clr-text);
  background: var(--clr-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea, select { font-family: inherit; }

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--clr-teal);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---- Container ---- */
.container {
  width: min(var(--max-w), 100% - 2 * var(--space-6));
  margin-inline: auto;
}

/* ---- Utility ---- */
.section {
  padding-block: var(--space-24);
}
.section-header.centered { text-align: center; max-width: 720px; margin-inline: auto; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-teal);
  background: rgba(15,168,160,0.08);
  padding: var(--space-1) var(--space-3);
  border-radius: 999px;
  margin-bottom: var(--space-4);
}

.section-heading {
  font-family: var(--ff-display);
  font-size: clamp(var(--fs-3xl), 4vw, var(--fs-5xl));
  font-weight: 600;
  line-height: 1.15;
  color: var(--clr-navy);
  margin-bottom: var(--space-5);
}
.section-heading em {
  font-style: italic;
  color: var(--clr-teal);
}

.section-desc {
  font-size: var(--fs-lg);
  color: var(--clr-muted);
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: var(--space-12);
  line-height: 1.7;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-md);
  font-size: var(--fs-base);
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--dur-base) var(--ease-out);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--clr-teal);
  color: var(--clr-white);
  border-color: var(--clr-teal);
}
.btn--primary:hover {
  background: var(--clr-teal-light);
  border-color: var(--clr-teal-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15,168,160,0.35);
}

.btn--ghost {
  background: transparent;
  color: var(--clr-white);
  border-color: rgba(255,255,255,0.4);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.7);
}

.btn--full { width: 100%; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.site-header.scrolled {
  background: rgba(11,27,53,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06), var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Tighter vertical padding now that the icon is taller (80px) */
  padding-block: 8px;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.nav-logo {
  display: flex;
  align-items: center;
  /* Slightly larger gap to breathe next to the bigger icon */
  gap: 14px;
  color: var(--clr-white);
}
/*
 * Logo icon: doubled from 40px → 80px.
 * width:auto keeps the original aspect ratio — no distortion.
 * object-fit:contain ensures the full icon is always visible.
 */
.logo-img {
  height: 80px;
  width: auto;
  object-fit: contain;
  /* Prevent any browser sub-pixel blurring on the scaled image */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
.logo-text {
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--clr-white);
  letter-spacing: -0.02em;
  /* Prevent the text from wrapping when icon is larger */
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.nav-link {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast), background var(--dur-fast);
}
.nav-link:hover { color: var(--clr-white); background: rgba(255,255,255,0.08); }
.nav-link.nav-cta {
  background: var(--clr-teal);
  color: var(--clr-white);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-md);
}
.nav-link.nav-cta:hover {
  background: var(--clr-teal-light);
  box-shadow: 0 4px 16px rgba(15,168,160,0.3);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius-sm);
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--clr-white);
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-out),
              opacity var(--dur-base);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--clr-navy);
  padding-top: 96px; /* nav height — accounts for 80px icon + 8px padding × 2 */
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15,168,160,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,168,160,0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.hero-orb--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(15,168,160,0.22) 0%, transparent 70%);
  top: -120px; right: -80px;
}
.hero-orb--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(212,168,67,0.14) 0%, transparent 70%);
  bottom: 0; left: -100px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  padding-block: var(--space-16);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--clr-teal-light);
  background: rgba(15,168,160,0.12);
  border: 1px solid rgba(15,168,160,0.25);
  padding: var(--space-2) var(--space-4);
  border-radius: 999px;
  margin-bottom: var(--space-6);
  animation: fadeUp 0.6s var(--ease-out) both;
}

.hero-headline {
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 6vw, var(--fs-6xl));
  font-weight: 600;
  line-height: 1.08;
  color: var(--clr-white);
  margin-bottom: var(--space-6);
  animation: fadeUp 0.7s 0.1s var(--ease-out) both;
}
.hero-headline em {
  font-style: italic;
  color: var(--clr-teal-light);
}

.hero-subtext {
  font-size: var(--fs-lg);
  color: rgba(255,255,255,0.7);
  line-height: 1.75;
  max-width: 620px;
  margin-bottom: var(--space-8);
  animation: fadeUp 0.7s 0.2s var(--ease-out) both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
  animation: fadeUp 0.7s 0.3s var(--ease-out) both;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  flex-wrap: wrap;
  animation: fadeUp 0.7s 0.4s var(--ease-out) both;
}
.stat-item { display: flex; flex-direction: column; gap: var(--space-1); }
.stat-number {
  font-family: var(--ff-display);
  font-size: var(--fs-4xl);
  font-weight: 600;
  color: var(--clr-white);
  line-height: 1;
}
.stat-number em {
  font-style: normal;
  font-size: var(--fs-lg);
  color: var(--clr-teal-light);
  margin-left: 2px;
}
.stat-label { font-size: var(--fs-sm); color: rgba(255,255,255,0.5); }
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255,255,255,0.35);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--clr-off); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.about-image-wrap {
  position: relative;
}
.about-img {
  width: 100%;
  border-radius: var(--radius-xl);
  object-fit: cover;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-xl);
}
.about-badge {
  position: absolute;
  bottom: -var(--space-6);
  left: var(--space-6);
  bottom: calc(-1 * var(--space-4));
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-navy);
  white-space: nowrap;
}
.about-badge i { color: var(--clr-teal); font-size: 1.25rem; }

.about-text { padding-left: var(--space-4); }
.about-text p {
  color: var(--clr-muted);
  margin-bottom: var(--space-4);
  line-height: 1.75;
}

.about-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}
.pillar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-navy);
  box-shadow: var(--shadow-sm);
}
.pillar i { color: var(--clr-teal); font-size: 1.1rem; }

/* ============================================================
   WHY CORE24S
   ============================================================ */
.why-core { background: var(--clr-white); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.why-card {
  background: var(--clr-off);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  /* flex column so content stacks cleanly from top */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base);
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--clr-teal);
}

.why-icon {
  width: 52px; height: 52px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--clr-teal), var(--clr-teal-light));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-white);
  margin-bottom: var(--space-5);
  box-shadow: 0 4px 12px rgba(15,168,160,0.25);
}

.why-card h3 {
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--clr-navy);
  margin-bottom: var(--space-3);
  line-height: 1.25;
}
.why-card p {
  color: var(--clr-muted);
  font-size: var(--fs-sm);
  line-height: 1.7;
  /* pushes text flush to top; no extra bottom gap inside card */
  margin: 0;
}

/* ============================================================
   SOLUTIONS
   ============================================================ */
.solutions { background: var(--clr-off); }

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.solution-card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--clr-border);
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
  display: flex;
  flex-direction: column;
}
.solution-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.solution-img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.solution-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.solution-card:hover .solution-img-wrap img { transform: scale(1.05); }

.solution-tag {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  background: rgba(11,27,53,0.8);
  backdrop-filter: blur(4px);
  color: var(--clr-teal-light);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  border-radius: 999px;
  border: 1px solid rgba(15,168,160,0.3);
}

.solution-body {
  padding: var(--space-6);
  flex: 1;
}
.solution-body h3 {
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--clr-navy);
  margin-bottom: var(--space-3);
}
.solution-body p { color: var(--clr-muted); font-size: var(--fs-sm); line-height: 1.7; }

/* ============================================================
   DIGITAL PLATFORM
   ============================================================ */
.platform { background: var(--clr-navy); overflow: hidden; }
.platform .section-tag { color: var(--clr-teal-light); background: rgba(15,168,160,0.12); }
.platform .section-heading { color: var(--clr-white); }

.platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.platform-text p {
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  margin-bottom: var(--space-8);
}
.platform-text strong { color: var(--clr-teal-light); }

.platform-features { display: flex; flex-direction: column; gap: var(--space-6); }

.pf-item {
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
}
.pf-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: rgba(15,168,160,0.15);
  border: 1px solid rgba(15,168,160,0.25);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--clr-teal-light);
}
.pf-content h4 {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--clr-white);
  margin-bottom: var(--space-1);
}
.pf-content p { font-size: var(--fs-sm); color: rgba(255,255,255,0.55); line-height: 1.65; }

.platform-visual {
  position: relative;
}
.platform-visual::before {
  content: '';
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle, rgba(15,168,160,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.platform-visual img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255,255,255,0.07);
  position: relative;
}

/* ============================================================
   MISSION / EXECUTIVE SUMMARY
   ============================================================ */
.mission { background: var(--clr-white); }

/*
 * Grid: 4 equal columns.
 * CSS Grid guarantees all cells in row 1 share the same height
 * (equal to the tallest card in that row) — no JS needed.
 * Row 2: wide card spans all 4 columns.
 */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;   /* explicit 2 rows */
  gap: 20px;
  align-items: stretch;            /* cells fill row height */
}

/* ─── Base card ────────────────────────────────────────── */
.mission-card {
  background: var(--clr-off);
  border: 1px solid var(--clr-border);
  border-radius: 16px;
  /*
   * Top/side: 26px breathing room
   * Bottom: 30px — slightly more to avoid cramped feel
   */
  padding: 26px 22px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* overflow:hidden keeps rounded corners AND contains all children.
     Text cannot overflow because we use break-word on all text nodes. */
  overflow: hidden;
  box-sizing: border-box;
  transition: transform 260ms cubic-bezier(0.22,0.61,0.36,1),
              box-shadow 260ms cubic-bezier(0.22,0.61,0.36,1);
}
.mission-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(11,27,53,0.13);
}

/* ─── Dark accent card (Mission Statement) ─────────────── */
.mission-card--accent {
  background: linear-gradient(150deg, #0B1B35 0%, #1A3057 100%);
  border-color: rgba(255,255,255,0.08);
}
.mission-card--accent .mission-icon {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.16);
  color: #14C4BB;
}
/* Title and body explicitly white on dark bg */
.mission-card--accent .mission-card__title {
  color: #FFFFFF;
}
.mission-card--accent .mission-card__body {
  color: rgba(255,255,255,0.72);
}

/* ─── Wide card (Our SaaS Solutions) ───────────────────── */
.mission-card--wide {
  grid-column: 1 / -1;        /* spans all 4 columns */
  grid-row: 2;                 /* pinned to second row */
  flex-direction: row;         /* icon left | content right */
  align-items: flex-start;
  gap: 20px;
  padding: 26px 28px 30px;
}
/* Text column */
.mission-content {
  flex: 1 1 0%;
  min-width: 0;                /* critical: stops text pushing card wider */
}
/* In wide card, icon has no bottom margin — sits beside text */
.mission-card--wide .mission-icon {
  margin-bottom: 0;
  margin-top: 3px;
  flex-shrink: 0;
}

/* ─── Icon box ─────────────────────────────────────────── */
.mission-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(15,168,160,0.13), rgba(15,168,160,0.03));
  border: 1px solid rgba(15,168,160,0.22);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0FA8A0;
  /* gap between icon and heading */
  margin-bottom: 14px;
}
.mission-icon svg {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
}

/* ─── Card heading ─────────────────────────────────────── */
/*
 * Using a dedicated class (.mission-card__title) so we can
 * target it independently of the generic h3 tag without !important.
 */
.mission-card__title {
  font-family: var(--ff-display);
  /* Slightly tighter than fs-lg (18px → 16.5px) so 4 cards
     fit comfortably in the row without wrapping awkwardly */
  font-size: 1.03125rem;
  font-weight: 600;
  color: var(--clr-navy);
  line-height: 1.3;
  margin: 0 0 10px 0;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

/* ─── Card body text ───────────────────────────────────── */
.mission-card__body {
  font-size: 0.8125rem;        /* 13px — comfortable for narrow columns */
  color: var(--clr-muted);
  line-height: 1.78;
  margin: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}
/* "within 30 minutes" highlight */
.mission-card__body strong {
  color: var(--clr-teal);
  font-weight: 600;
}

/* ============================================================
   PARTNERS
   ============================================================ */
.partners { background: var(--clr-off); }

.partners-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-8);
}
.partner-logo {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-8);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  max-width: 220px;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
  box-shadow: var(--shadow-sm);
}
.partner-logo:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.partner-logo img {
  max-height: 60px;
  max-width: 160px;
  object-fit: contain;
  filter: grayscale(20%);
  transition: filter var(--dur-base);
}
.partner-logo:hover img { filter: grayscale(0%); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background: linear-gradient(135deg, var(--clr-navy) 0%, var(--clr-navy-light) 100%);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(15,168,160,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-16);
  align-items: start;
  position: relative;
  z-index: 1;
}

.contact .section-tag { color: var(--clr-teal-light); background: rgba(15,168,160,0.12); }
.contact .section-heading { color: var(--clr-white); font-size: clamp(1.5rem, 3vw, var(--fs-4xl)); }

.contact-intro { color: rgba(255,255,255,0.65); margin-bottom: var(--space-8); line-height: 1.7; }

.contact-details { display: flex; flex-direction: column; gap: var(--space-5); margin-bottom: var(--space-8); }
.contact-detail-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}
.cd-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: rgba(15,168,160,0.15);
  border: 1px solid rgba(15,168,160,0.25);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--clr-teal-light); font-size: 1.1rem;
}
.contact-detail-item strong {
  display: block;
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 2px;
}
.contact-detail-item address,
.contact-detail-item a {
  color: rgba(255,255,255,0.8);
  font-size: var(--fs-sm);
  font-style: normal;
  transition: color var(--dur-fast);
}
.contact-detail-item a:hover { color: var(--clr-teal-light); }

/* ─── Contact social row ─────────────────────────────────── */
.contact-social {
  display: flex;
  flex-wrap: wrap;          /* wrap on narrow screens */
  gap: 10px;
  align-items: center;
  /* no justify-content — keeps row flush-left under contact copy */
}

/* ─── Base social button ─────────────────────────────────── */
/*
 * Each button is a square pill with:
 *   - subtle frosted-glass rest state
 *   - brand-colour hover (defined per-platform below)
 *   - tooltip that slides up on focus/hover
 *   - scale + lift animation
 */
.social-btn {
  position: relative;           /* anchor for tooltip */
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  /* smooth all transitions together */
  transition:
    background  200ms ease,
    border-color 200ms ease,
    color        200ms ease,
    transform    200ms cubic-bezier(0.34,1.56,0.64,1),
    box-shadow   200ms ease;
  outline-offset: 3px;
}
.social-btn svg {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
  pointer-events: none;
}

/* ─── Tooltip ────────────────────────────────────────────── */
.social-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(11,27,53,0.95);
  color: #fff;
  font-family: var(--ff-body);
  font-size: 0.6875rem;         /* 11px */
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  padding: 4px 9px;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 10;
  /* arrow added via standalone rule below */
}
/* Tooltip caret */
.social-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: rgba(11,27,53,0.95);
}
/* Show tooltip on hover AND keyboard focus */
.social-btn:hover .social-tooltip,
.social-btn:focus-visible .social-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── Shared hover lift + glow ───────────────────────────── */
.social-btn:hover,
.social-btn:focus-visible {
  transform: translateY(-3px) scale(1.08);
  color: #ffffff;
}

/* ─── Per-platform brand colours on hover ────────────────── */
/* X / Twitter — near-black with white icon */
.social-btn--x:hover,
.social-btn--x:focus-visible {
  background: #000000;
  border-color: #000000;
  box-shadow: 0 6px 20px rgba(0,0,0,0.40);
}

/* Facebook — classic blue */
.social-btn--facebook:hover,
.social-btn--facebook:focus-visible {
  background: #1877F2;
  border-color: #1877F2;
  box-shadow: 0 6px 20px rgba(24,119,242,0.45);
}

/* Instagram — diagonal gradient */
.social-btn--instagram:hover,
.social-btn--instagram:focus-visible {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  border-color: #dc2743;
  box-shadow: 0 6px 20px rgba(220,39,67,0.40);
}

/* Email — teal (matches site accent) */
.social-btn--email:hover,
.social-btn--email:focus-visible {
  background: var(--clr-teal);
  border-color: var(--clr-teal);
  box-shadow: 0 6px 20px rgba(15,168,160,0.45);
}

/* Spotify — signature green */
.social-btn--spotify:hover,
.social-btn--spotify:focus-visible {
  background: #1DB954;
  border-color: #1DB954;
  box-shadow: 0 6px 20px rgba(29,185,84,0.40);
}

/* YouTube — red */
.social-btn--youtube:hover,
.social-btn--youtube:focus-visible {
  background: #FF0000;
  border-color: #FF0000;
  box-shadow: 0 6px 20px rgba(255,0,0,0.35);
}

/* TikTok — jet black with magenta glow */
.social-btn--tiktok:hover,
.social-btn--tiktok:focus-visible {
  background: #010101;
  border-color: #69C9D0;
  box-shadow: 0 6px 20px rgba(105,201,208,0.40);
}

/* ─── Footer social row ─────────────────────────────────── */
/*
 * Both .footer-social and .contact-social share the same
 * .social-btn base styles (42×42px, 10px radius, 18px SVG).
 * Footer only needs flex layout — NO size overrides so both
 * sections are pixel-identical.
 */
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ─── "Follow Us" label + social row wrapper ─────────────── */
.social-row-wrap {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255,255,255,0.10);
}
.social-row-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: var(--space-4);
}

/* ─── Responsive: icon row wraps at ≤480px ───────────────── */
@media (max-width: 480px) {
  .contact-social {
    gap: 8px;
  }
  .social-btn {
    width: 38px;
    height: 38px;
    border-radius: 9px;
  }
}

/* Contact Form */
.contact-form-wrap {
  background: var(--clr-white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-xl);
}

/* Honeypot — visually hidden */
#_honey {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  tab-index: -1;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}
.form-group:last-child { margin-bottom: 0; }

.form-group label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-navy);
}
.form-group label span { color: var(--clr-teal); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  color: var(--clr-text);
  background: var(--clr-off);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast);
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--clr-teal);
  background: var(--clr-white);
  box-shadow: 0 0 0 3px rgba(15,168,160,0.12);
}
.form-group input.error,
.form-group select.error,
.form-group textarea.error { border-color: var(--clr-error); }
.form-group input.error:focus,
.form-group select.error:focus,
.form-group textarea.error:focus { box-shadow: 0 0 0 3px rgba(217,60,60,0.12); }

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

.field-error {
  font-size: var(--fs-xs);
  color: var(--clr-error);
  min-height: 1em;
}

.recaptcha-placeholder {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--clr-off);
  border: 1.5px dashed var(--clr-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  color: var(--clr-muted);
  font-size: var(--fs-sm);
  margin-bottom: var(--space-5);
}
.recaptcha-placeholder i { font-size: 1.3rem; color: var(--clr-border); }

/* Submit button loader */
.btn-loader {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: var(--clr-white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn.loading .btn-text { display: none; }
.btn.loading .btn-loader { display: block; }

/* ── Form status messages ────────────────────────────────────
 *
 * ROOT CAUSE FIX:
 * The native HTML `hidden` attribute sets `display:none` in the
 * browser's UA stylesheet. However, any authored `display` rule
 * (like `display:flex` on `.form-status`) wins over the UA sheet,
 * so the messages were visible on page load despite `hidden`.
 *
 * Fix: explicitly enforce `display:none` when `[hidden]` is present,
 * with `!important` so no display rule from any component can override it.
 * When JS removes the `hidden` attribute, the element reverts to
 * `display:flex` from the `.form-status` rule below.
 * ──────────────────────────────────────────────────────────── */

/* 1. HIDDEN STATE — must beat every authored display rule */
.form-status[hidden] {
  display: none !important;
}

/* 2. VISIBLE STATE — only active when [hidden] is absent */
.form-status {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  margin-top: var(--space-5);
  font-size: var(--fs-sm);
  /* Smooth reveal animation when message appears */
  animation: statusReveal 280ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

/* Slide-in + fade animation for status messages */
@keyframes statusReveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-status .status-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}
.form-status p { line-height: 1.55; margin: 0; }

.form-status--success {
  background: rgba(13,158,107,0.08);
  border: 1.5px solid rgba(13,158,107,0.30);
  color: var(--clr-success);
}
.form-status--error {
  background: rgba(217,60,60,0.08);
  border: 1.5px solid rgba(217,60,60,0.30);
  color: var(--clr-error);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--clr-navy);
  color: rgba(255,255,255,0.6);
  border-top: 1px solid rgba(255,255,255,0.07);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: var(--space-10);
  padding-block: var(--space-16);
}

.footer-brand .footer-logo {
  /* Doubled from 44px → 88px to match navbar icon scale */
  height: 88px;
  width: auto;
  margin-bottom: var(--space-5);
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
.footer-tagline {
  font-size: var(--fs-sm);
  line-height: 1.7;
  margin-bottom: var(--space-6);
  color: rgba(255,255,255,0.45);
}
/* .footer-social layout defined above */

.footer-nav h4,
.footer-contact h4 {
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-white);
  margin-bottom: var(--space-5);
}
.footer-nav ul { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-nav a {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.5);
  transition: color var(--dur-fast);
}
.footer-nav a:hover { color: var(--clr-teal-light); }

.footer-contact address { font-style: normal; }
.footer-contact address p {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-3);
  line-height: 1.5;
}
.footer-contact address i { flex-shrink: 0; margin-top: 2px; color: var(--clr-teal); }
.footer-contact a { color: rgba(255,255,255,0.5); transition: color var(--dur-fast); }
.footer-contact a:hover { color: var(--clr-teal-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-block: var(--space-6);
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer-bottom p { font-size: var(--fs-xs); color: rgba(255,255,255,0.35); }
.footer-reg { color: rgba(255,255,255,0.25) !important; }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 44px; height: 44px;
  background: var(--clr-teal);
  color: var(--clr-white);
  border: none;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(15,168,160,0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all var(--dur-base) var(--ease-out);
  z-index: 900;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--clr-teal-light);
  transform: translateY(-2px);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 0.8; transform: scaleY(1.1); }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============================================================
   RESPONSIVE — Tablet ≤ 1024px
   ============================================================ */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-text { padding-left: 0; }
  .platform-grid { grid-template-columns: 1fr; }
  .platform-visual { order: -1; }
  .platform-visual img { max-height: 360px; width: 100%; object-fit: cover; }
  /* 2-col mission grid on tablet */
  .mission-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto auto; /* 2 rows for 4 cards + 1 for wide */
  }
  .mission-card--wide {
    grid-column: 1 / -1;
    grid-row: auto;          /* let it flow naturally in 2-col layout */
    flex-direction: row;     /* keep horizontal on tablet */
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE — Mobile ≤ 768px
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --space-24: 4rem;
  }

  /* Nav */
  .hamburger { display: flex; }
  /* Scale logo icon back down on mobile so it fits the smaller viewport */
  .logo-img {
    height: 52px; /* ~65% of desktop 80px — still visibly larger than original 40px */
  }
  .nav-container {
    padding-block: 6px;
  }
  .nav-links {
    position: fixed;
    top: 0; left: 0; right: 0;
    padding-top: 80px;
    background: rgba(11,27,53,0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    gap: 0;
    transform: translateY(-100%);
    transition: transform var(--dur-slow) var(--ease-out);
    z-index: 999;
    padding-bottom: var(--space-8);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-link {
    width: 100%;
    text-align: center;
    padding: var(--space-4);
    font-size: var(--fs-base);
    border-radius: 0;
  }
  .nav-link.nav-cta {
    margin: var(--space-4) var(--space-8);
    border-radius: var(--radius-md);
    width: calc(100% - 4rem);
  }

  /* Hero */
  .hero-stats { gap: var(--space-5); }
  .stat-divider { display: none; }

  /* Sections */
  .why-grid { grid-template-columns: 1fr; }
  .solutions-grid { grid-template-columns: 1fr; }
  .mission-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;  /* auto all rows in 1-col */
  }
  /* wide card: stack vertically on mobile */
  .mission-card--wide {
    grid-column: 1 / -1;
    grid-row: auto;
    flex-direction: column;
    gap: 14px;
    padding: 24px 20px 28px;
  }
  .mission-card--wide .mission-icon {
    margin-bottom: 0;
    margin-top: 0;
  }
  /* all cards get uniform mobile padding */
  .mission-card {
    padding: 22px 18px 26px;
  }

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

  .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .footer-bottom .container { flex-direction: column; text-align: center; }

  .partners-row { gap: var(--space-4); }
  .partner-logo { min-width: 140px; padding: var(--space-4); }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .contact-form-wrap { padding: var(--space-5); }
}
