/* ============================================================
   OCTAVYL AI SOLUTIONS — style.css
   Approach : Mobile-First Responsive Design
   Font     : Calibri (system) → Inter (web fallback)
   Theme    : Clean Professional Light
   Supports : 320px → 1920px
   ============================================================ */

/* ============================================================
   1. CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* ── Brand ── */
  --blue-900:  #0a1628;
  --blue-800:  #0f2044;
  --blue-700:  #1a3a6e;
  --blue-600:  #1a5ccc;
  --blue-500:  #1a6cff;
  --blue-400:  #4d8fff;
  --blue-200:  #c7d8ff;
  --blue-100:  #e0ebff;
  --blue-50:   #f0f4ff;
  --cyan:      #00b4d8;
  --green:     #10b981;
  --red:       #ef4444;
  --amber:     #f59e0b;

  /* ── Neutrals ── */
  --white:     #ffffff;
  --grey-50:   #f8f9fc;
  --grey-100:  #f0f2f8;
  --grey-200:  #e2e6f0;
  --grey-300:  #c9d0e0;
  --grey-400:  #94a3bc;
  --grey-500:  #6a7a96;
  --grey-600:  #4a5568;
  --grey-700:  #2d3748;
  --grey-900:  #1a202c;

  /* ── Semantic ── */
  --bg-page:       var(--white);
  --bg-alt:        var(--grey-50);
  --bg-card:       var(--white);
  --text-heading:  var(--blue-900);
  --text-body:     var(--grey-700);
  --text-muted:    var(--grey-500);
  --border-color:  var(--grey-200);

  /* ── Typography (responsive via clamp) ── */
  --font: 'Calibri', 'Inter', 'Segoe UI', Arial, sans-serif;
  --fs-xs:    clamp(0.65rem, 1.5vw, 0.75rem);
  --fs-sm:    clamp(0.78rem, 1.8vw, 0.875rem);
  --fs-base:  clamp(0.9rem,  2vw,   1rem);
  --fs-md:    clamp(1rem,    2.2vw, 1.05rem);
  --fs-lg:    clamp(1.1rem,  2.5vw, 1.25rem);
  --fs-xl:    clamp(1.25rem, 3vw,   1.5rem);
  --fs-2xl:   clamp(1.5rem,  4vw,   2rem);
  --fs-3xl:   clamp(1.75rem, 5vw,   2.6rem);
  --fs-4xl:   clamp(2.2rem,  7vw,   5rem);

  /* ── Layout ── */
  --nav-h:       64px;
  --inner-max:   1280px;
  --gutter:      clamp(1rem, 5vw, 3rem);      /* side padding        */
  --section-py:  clamp(3rem, 8vw, 6.5rem);    /* vertical padding    */
  --card-gap:    clamp(0.75rem, 2vw, 1.5rem); /* gap between cards   */

  /* ── Touch targets ── */
  --min-touch: 48px;

  /* ── Radii ── */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   18px;
  --r-xl:   24px;
  --r-pill: 9999px;

  /* ── Shadows ── */
  --shadow-xs:  0 1px 3px rgba(10,22,40,.06), 0 1px 2px rgba(10,22,40,.04);
  --shadow-sm:  0 2px 8px rgba(10,22,40,.08), 0 1px 3px rgba(10,22,40,.06);
  --shadow-md:  0 4px 20px rgba(10,22,40,.10), 0 2px 6px rgba(10,22,40,.06);
  --shadow-lg:  0 8px 40px rgba(10,22,40,.12), 0 4px 12px rgba(10,22,40,.08);
  --shadow-blue:0 4px 20px rgba(26,108,255,.22);

  /* ── Transitions ── */
  --t:      0.25s cubic-bezier(.4,0,.2,1);
  --t-slow: 0.45s cubic-bezier(.4,0,.2,1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  /* Prevent horizontal overflow at root level */
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  background: var(--bg-page);
  color: var(--text-body);
  line-height: 1.7;
  /* Critical: prevent horizontal scroll on body */
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
  overflow: hidden;
  /* On iOS, fixed position is needed to truly lock */
  position: fixed;
  width: 100%;
}

/* ── Global selection ── */
::selection { background: var(--blue-500); color: #fff; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--grey-100); }
::-webkit-scrollbar-thumb { background: var(--blue-400); border-radius: var(--r-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--blue-600); }

/* ── Focus visible (accessibility) ── */
:focus-visible {
  outline: 2.5px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── Base elements ── */
a    { color: inherit; text-decoration: none; transition: var(--t); }
img  { max-width: 100%; height: auto; display: block; }
ul,
ol   { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* Responsive media defaults */
img,
video,
iframe,
svg {
  max-width: 100%;
  height: auto;
}

/* ============================================================
   3. LAYOUT UTILITIES
   ============================================================ */

/* ── Full-width section container ── */
.section-wrap {
  width: 100%;
  max-width: var(--inner-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── Section header ── */
.section-header {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.section-eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: 0.65rem;
}

.section-title {
  font-size: var(--fs-3xl);
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  /* Prevent long words from overflowing */
  word-break: break-word;
  overflow-wrap: break-word;
}

.section-rule {
  width: 52px;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-500), var(--cyan));
  border-radius: var(--r-pill);
  margin: 0 auto 1.25rem;
}

.section-sub {
  font-size: var(--fs-base);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================================
   4. NAVIGATION BAR — Mobile-First
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color var(--t), box-shadow var(--t);
  /* Prevent nav from overflowing */
  width: 100%;
  overflow: hidden;
}

.navbar.scrolled {
  border-bottom-color: var(--border-color);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: var(--inner-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* ── Logo ── */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  /* Minimum touch target */
  min-height: var(--min-touch);
}

.nav-logo-mark { display: flex; align-items: center; flex-shrink: 0; }

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-brand {
  font-size: clamp(0.85rem, 2.5vw, 1.05rem);
  font-weight: 900;
  color: var(--blue-900);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.nav-sub {
  font-size: clamp(0.45rem, 1.2vw, 0.55rem);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue-500);
  white-space: nowrap;
}

/* ── Desktop nav links (hidden by default = mobile-first) ── */
.nav-links {
  display: none; /* hidden on mobile */
  align-items: center;
  gap: 0.15rem;
  list-style: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.85rem;
  min-height: var(--min-touch);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--grey-600);
  border-radius: var(--r-pill);
  transition: var(--t);
  white-space: nowrap;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--blue-500);
  border-radius: var(--r-pill);
  transition: width var(--t);
}

.nav-link:hover,
.nav-link.active { color: var(--blue-600); }
.nav-link:hover::after,
.nav-link.active::after { width: 55%; }

.nav-cta {
  background: var(--blue-500);
  color: #fff !important;
  padding: 0.55rem 1.2rem;
  border-radius: var(--r-pill);
  font-weight: 700;
  box-shadow: var(--shadow-blue);
  white-space: nowrap;
}

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

.nav-cta:hover {
  background: var(--blue-600);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(26,108,255,.3);
}

/* ── Hamburger — always visible on mobile ── */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  /* Minimum 48×48 touch target */
  width: var(--min-touch);
  height: var(--min-touch);
  padding: 12px;
  border-radius: var(--r-sm);
  transition: background var(--t);
  flex-shrink: 0;
  /* Position in top-right */
  margin-left: auto;
}

.hamburger:hover { background: var(--grey-100); }

.ham-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--blue-900);
  border-radius: var(--r-pill);
  transition: transform var(--t), opacity var(--t);
  pointer-events: none;
}

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

/* ── Mobile drawer ── */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* Hidden by default */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--t), visibility var(--t);
  overflow-y: auto;
  padding: var(--nav-h) 1rem 2rem;
}

.mobile-drawer.open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 360px;
}

.mob-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  /* Minimum touch target */
  min-height: var(--min-touch);
  padding: 0.85rem 2rem;
  font-size: clamp(1.1rem, 4vw, 1.5rem);
  font-weight: 700;
  color: var(--blue-900);
  border-radius: var(--r-md);
  transition: var(--t);
  text-align: center;
}

.mob-link:hover,
.mob-link:focus-visible {
  background: var(--blue-50);
  color: var(--blue-600);
}

.mob-cta {
  background: var(--blue-500);
  color: #fff !important;
  border-radius: var(--r-pill);
  margin-top: 0.5rem;
  padding: 0.9rem 2.5rem;
  box-shadow: var(--shadow-blue);
  font-size: clamp(1rem, 3.5vw, 1.25rem);
}

.mob-cta:hover { background: var(--blue-600); }

/* ============================================================
   5. HERO SECTION — Mobile-First
   ============================================================ */
.hero-section {
  width: 100%;
  padding: calc(var(--nav-h) + clamp(2rem, 6vw, 4rem)) 0 0;
  background: linear-gradient(160deg, #ffffff 0%, var(--blue-50) 55%, #eef3ff 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Animated top stripe */
.hero-stripe {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-500), var(--cyan), var(--blue-500));
  background-size: 200% 100%;
  animation: stripe-move 4s linear infinite;
}

@keyframes stripe-move {
  0%   { background-position: 0 50%; }
  100% { background-position: 200% 50%; }
}

.hero-content {
  max-width: var(--inner-max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(3rem, 7vw, 5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 1.75rem);
  width: 100%;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--blue-600);
  letter-spacing: 0.05em;
  white-space: normal;
  text-align: center;
  max-width: 100%;
}

/* Company name */
.hero-company-name {
  font-size: var(--fs-4xl);
  font-weight: 900;
  color: var(--blue-900);
  letter-spacing: -0.03em;
  line-height: 1.05;
  word-break: break-word;
  overflow-wrap: break-word;
}

.accent-word { color: var(--blue-500); }

/* Tagline */
.hero-tagline {
  font-size: var(--fs-sm);
  color: var(--grey-500);
  font-weight: 400;
  letter-spacing: 0.02em;
  max-width: 100%;
  /* Wrap bullet-separated items on small screens */
  word-break: break-word;
}

/* Intro text */
.hero-intro {
  font-size: var(--fs-base);
  color: var(--grey-600);
  max-width: 720px;
  width: 100%;
  line-height: 1.8;
}

/* Mission / Vision grid — single column mobile-first */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--card-gap);
  width: 100%;
  max-width: 820px;
  text-align: left;
}

.mv-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--r-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t);
  /* Prevent overflow */
  overflow: hidden;
  min-height: 0;
  word-break: break-word;
}

@media (hover: hover) {
  .mv-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--blue-100);
  }
}

.mv-icon-wrap {
  flex-shrink: 0;
  width: clamp(48px, 10vw, 64px);
  height: clamp(48px, 10vw, 64px);
}

.mv-icon-wrap svg { width: 100%; height: 100%; }

.mv-body { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }

.mv-title {
  font-size: var(--fs-md);
  font-weight: 800;
  color: var(--blue-900);
}

.mv-text {
  font-size: var(--fs-sm);
  color: var(--grey-600);
  line-height: 1.7;
  font-style: italic;
}

/* CTA buttons row */
.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  max-width: 400px;
  align-items: stretch;
}

/* Hero wave */
.hero-wave {
  width: 100%;
  line-height: 0;
  overflow: hidden;
  margin-top: -1px;
}

.hero-wave svg { width: 100%; height: clamp(30px, 5vw, 60px); display: block; }

/* ============================================================
   6. BUTTONS — All must meet 48px touch target
   ============================================================ */
.btn-primary,
.btn-ghost,
.btn-submit {
  min-height: var(--min-touch);
  font-family: var(--font);
  cursor: pointer;
  transition: var(--t);
  border-radius: var(--r-pill);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  /* Prevent text overflow */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-primary {
  padding: 0 1.75rem;
  background: var(--blue-500);
  color: #fff;
  font-size: var(--fs-base);
  box-shadow: var(--shadow-blue);
  border: 2px solid transparent;
  width: 100%;
}

@media (hover: hover) {
  .btn-primary:hover {
    background: var(--blue-600);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(26,108,255,.35);
  }
}

.btn-primary:active { transform: translateY(0); opacity: 0.9; }

.btn-ghost {
  padding: 0 1.75rem;
  background: transparent;
  color: var(--blue-700);
  font-size: var(--fs-base);
  border: 2px solid var(--blue-200);
  width: 100%;
}

@media (hover: hover) {
  .btn-ghost:hover {
    background: var(--blue-50);
    border-color: var(--blue-400);
    color: var(--blue-600);
    transform: translateY(-2px);
  }
}

/* ============================================================
   7. ABOUT SECTION — Mobile-First
   ============================================================ */
.about-section {
  width: 100%;
  padding: var(--section-py) 0;
  background: var(--blue-50);
}

/* Single column on mobile */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.about-statement {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-statement p {
  font-size: var(--fs-base);
  color: var(--grey-600);
  line-height: 1.8;
}

.about-statement strong { color: var(--blue-700); font-weight: 700; }

.about-quote {
  border-left: 4px solid var(--blue-500);
  padding: 1rem 1.25rem;
  background: var(--white);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: var(--fs-base);
  font-style: italic;
  color: var(--blue-800);
  box-shadow: var(--shadow-xs);
  word-break: break-word;
}

.about-focus-title {
  font-size: var(--fs-sm);
  font-weight: 800;
  color: var(--blue-900);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.focus-list { display: flex; flex-direction: column; gap: 0.6rem; }

.focus-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--fs-base);
  color: var(--grey-700);
  font-weight: 500;
  min-height: var(--min-touch); /* touch-friendly row height */
  padding: 0.25rem 0;
}

.focus-dot {
  /* Min touch target */
  min-width: 36px;
  width: 36px;
  height: 36px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-500);
  font-size: 0.875rem;
  flex-shrink: 0;
  transition: var(--t);
}

.focus-item:hover .focus-dot,
.focus-item:focus-within .focus-dot {
  background: var(--blue-500);
  color: #fff;
  border-color: var(--blue-500);
}

/* Stats row — wraps on mobile */
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(0.75rem, 2vw, 2.5rem);
  text-align: center;
  /* Divider using border instead of separate element */
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

/* Remove borders on last items per row */
.stat-item:nth-child(2n) { border-right: none; }
.stat-item:nth-child(3),
.stat-item:nth-child(4) { border-bottom: none; }

.stat-divider { display: none; } /* Remove old dividers */

.stat-number {
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--blue-500);
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--grey-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================================
   8. FOUNDERS SECTION — Mobile-First (1 col → 2 → 3)
   ============================================================ */
.founders-section {
  width: 100%;
  padding: var(--section-py) 0;
  background: var(--white);
}

/* 1 column default (mobile) */
.founders-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--card-gap);
  /* Equal height cards */
  align-items: start;
}

.founder-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--r-xl);
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1rem, 3vw, 1.75rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-xs);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  position: relative;
  overflow: hidden;
  /* Equal height within row */
  height: 100%;
}

.founder-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-500), var(--cyan));
  transform: scaleX(0);
  transition: transform var(--t);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}

@media (hover: hover) {
  .founder-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
    border-color: var(--blue-100);
  }
  .founder-card:hover::before { transform: scaleX(1); }
}

.founder-avatar {
  width: clamp(72px, 15vw, 88px);
  height: clamp(72px, 15vw, 88px);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-500) 0%, var(--cyan) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(26,108,255,.25);
  position: relative;
  flex-shrink: 0;
}

.founder-avatar::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(var(--white), var(--white)) padding-box,
              linear-gradient(135deg, var(--blue-500), var(--cyan)) border-box;
  opacity: 0;
  transition: opacity var(--t);
}

@media (hover: hover) {
  .founder-card:hover .founder-avatar::after { opacity: 1; }
}

.founder-initials {
  font-size: clamp(1.1rem, 4vw, 1.5rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.03em;
  position: relative;
  z-index: 1;
}

.founder-body { display: flex; flex-direction: column; gap: 0.3rem; }

.founder-name {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--blue-900);
  line-height: 1.35;
  word-break: break-word;
}

.founder-role {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--blue-500);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* LinkedIn button — touch-friendly */
.founder-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0 1.25rem;
  min-height: var(--min-touch);
  background: rgba(10,102,194,.08);
  border: 1px solid rgba(10,102,194,.22);
  border-radius: var(--r-pill);
  color: #0a66c2;
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: var(--t);
  margin-top: auto;
  width: 100%;
  max-width: 180px;
}

@media (hover: hover) {
  .founder-linkedin:hover {
    background: #0a66c2;
    color: #fff;
    border-color: #0a66c2;
    box-shadow: 0 4px 14px rgba(10,102,194,.3);
  }
}

.founder-linkedin:active {
  background: #0a66c2;
  color: #fff;
  border-color: #0a66c2;
}

/* ============================================================
   9. COMMITMENTS — Mobile-First (1 col → 2 → 3)
   7th item centred on 3-col layout only
   ============================================================ */
.commitments-section {
  width: 100%;
  padding: var(--section-py) 0;
  background: var(--grey-50);
}

/* 1 column by default */
.commit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--card-gap);
}

/* The centred 7th card — reset on mobile/2-col */
.commit-card--center {
  grid-column: auto; /* Normal flow on mobile */
}

.commit-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--r-lg);
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1rem, 3vw, 1.75rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  box-shadow: var(--shadow-xs);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  position: relative;
  overflow: hidden;
  height: 100%;
  word-break: break-word;
}

.commit-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-500), var(--cyan));
  transform: scaleX(0);
  transition: transform var(--t);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}

@media (hover: hover) {
  .commit-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
    border-color: var(--blue-100);
  }
  .commit-card:hover::after { transform: scaleX(1); }
  .commit-card:hover .commit-icon {
    background: var(--blue-500);
    color: #fff;
    border-color: var(--blue-500);
    box-shadow: 0 4px 14px rgba(26,108,255,.3);
  }
}

.commit-icon {
  width: clamp(44px, 10vw, 50px);
  height: clamp(44px, 10vw, 50px);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--blue-500);
  flex-shrink: 0;
  transition: var(--t);
}

.commit-title {
  font-size: var(--fs-md);
  font-weight: 800;
  color: var(--blue-900);
}

.commit-desc {
  font-size: var(--fs-sm);
  color: var(--grey-500);
  line-height: 1.7;
}

/* ============================================================
   10. SERVICES — Mobile-First (1 col → 2 → 3)
   10th item centred on 3-col layout only
   ============================================================ */
.services-section {
  width: 100%;
  padding: var(--section-py) 0;
  background: var(--white);
}

/* 1 column by default */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--card-gap);
}

/* Reset centred card on mobile */
.service-card--center {
  grid-column: auto;
}

.service-card {
  background: var(--white);
  border: 1.5px solid var(--border-color);
  border-radius: var(--r-lg);
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1rem, 3vw, 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  position: relative;
  overflow: hidden;
  height: 100%;
  word-break: break-word;
}

/* Left accent bar */
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--blue-500), var(--cyan));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--t-slow);
  border-radius: var(--r-lg) 0 0 var(--r-lg);
}

@media (hover: hover) {
  .service-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
    border-color: var(--blue-200);
  }
  .service-card:hover::before { transform: scaleY(1); }
  .service-card:hover .service-icon { color: var(--cyan); transform: scale(1.1); }
}

/* Header row: number + icon */
.service-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-num {
  font-size: var(--fs-xs);
  font-weight: 800;
  color: var(--blue-400);
  letter-spacing: 0.08em;
}

.service-icon {
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  color: var(--blue-500);
  transition: var(--t);
  flex-shrink: 0;
}

.service-title {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--blue-900);
  line-height: 1.3;
}

.service-desc {
  font-size: var(--fs-sm);
  color: var(--grey-500);
  line-height: 1.7;
}

/* ============================================================
   11. CONTACT SECTION — Mobile-First (stacked → side-by-side)
   ============================================================ */
.contact-section {
  width: 100%;
  padding: var(--section-py) 0;
  background: var(--grey-50);
}

/* Single column on mobile */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

/* Info panel */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cinfo-block {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
  transition: var(--t);
  min-height: var(--min-touch);
  word-break: break-word;
}

@media (hover: hover) {
  .cinfo-block:hover {
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
    border-color: var(--blue-100);
  }
}

.cinfo-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--blue-500);
  flex-shrink: 0;
}

.cinfo-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--grey-400);
  margin-bottom: 0.2rem;
}

.cinfo-value { font-size: var(--fs-sm); color: var(--grey-700); font-weight: 500; }

.cinfo-link {
  font-size: var(--fs-sm);
  color: var(--blue-600);
  font-weight: 500;
  word-break: break-all;
}

.cinfo-link:hover { color: var(--blue-500); text-decoration: underline; }

.cinfo-tagline {
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cinfo-tagline p {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.85);
  font-style: italic;
  line-height: 1.7;
  word-break: break-word;
}

.cinfo-year { font-size: var(--fs-xs) !important; color: rgba(255,255,255,.6) !important; font-style: normal !important; }
.cinfo-year strong { color: #fff; }

/* ── Contact Form ── */
.contact-form {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--r-xl);
  padding: clamp(1.25rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  width: 100%;
}

.form-row { display: flex; flex-direction: column; gap: 0.45rem; }

.form-label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--grey-700);
}

.form-required { color: var(--red); margin-left: 2px; }

.form-field { position: relative; }

.form-field-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--grey-400);
  font-size: 0.9rem;
  pointer-events: none;
  transition: color var(--t);
  z-index: 1;
}

.form-field-icon--ta { top: 1rem; transform: none; }

/* Inputs — min 48px height on mobile */
.form-input {
  width: 100%;
  /* At least 48px tall */
  min-height: var(--min-touch);
  padding: 0.75rem 0.9rem 0.75rem 2.6rem;
  background: var(--grey-50);
  border: 1.5px solid var(--border-color);
  border-radius: var(--r-md);
  font-family: var(--font);
  font-size: var(--fs-base);  /* Prevents iOS zoom on focus (needs >= 16px equivalent) */
  color: var(--grey-900);
  outline: none;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
  /* Always full-width */
  display: block;
}

.form-input::placeholder { color: var(--grey-400); }

.form-input:focus {
  background: var(--white);
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(26,108,255,.12);
}

.form-field:focus-within .form-field-icon { color: var(--blue-500); }

/* Textarea */
.form-textarea {
  resize: vertical;
  min-height: 130px;
  padding-top: 0.9rem;
  line-height: 1.6;
}

.form-error {
  font-size: var(--fs-xs);
  color: var(--red);
  min-height: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Submit button — full width, min 48px */
.btn-submit {
  width: 100%;
  min-height: var(--min-touch);
  padding: 0.85rem 2rem;
  background: var(--blue-500);
  color: #fff;
  font-family: var(--font);
  font-size: var(--fs-md);
  font-weight: 700;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-blue);
  transition: var(--t);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

@media (hover: hover) {
  .btn-submit:hover {
    background: var(--blue-600);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(26,108,255,.35);
  }
}

.btn-submit:active { transform: translateY(0); opacity: 0.9; }
.btn-submit:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

/* Success */
.form-success {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.1rem 1.25rem;
  background: rgba(16,185,129,.07);
  border: 1.5px solid rgba(16,185,129,.3);
  border-radius: var(--r-lg);
  animation: success-pop 0.4s ease;
}

.form-success i { font-size: 1.35rem; color: var(--green); flex-shrink: 0; margin-top: 0.1rem; }
.form-success-text p { font-size: var(--fs-sm); color: var(--grey-700); line-height: 1.65; }
.form-success-text strong { color: var(--green); }

@keyframes success-pop {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   12. FOOTER — Mobile-First
   ============================================================ */
.site-footer {
  width: 100%;
  background: var(--blue-900);
  color: rgba(255,255,255,.8);
  overflow: hidden;
}

.footer-top { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 5vw, 4rem); }

/* Stack on mobile */
.footer-inner {
  max-width: var(--inner-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.footer-brand-name {
  display: block;
  font-size: var(--fs-md);
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.05em;
  line-height: 1.1;
  white-space: nowrap;
}

.footer-brand-sub {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  line-height: 1;
  white-space: nowrap;
}

.footer-tagline {
  font-size: var(--fs-sm);
  line-height: 1.8;
  color: rgba(255,255,255,.6);
}

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

.footer-nav-heading {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,.5);
  margin-bottom: 0.25rem;
}

.footer-nav ul { display: flex; flex-direction: column; gap: 0.35rem; }

.footer-link {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.65);
  transition: var(--t);
  display: inline-flex;
  align-items: center;
  min-height: var(--min-touch);
  padding: 0.1rem 0;
}

.footer-link:hover { color: #fff; padding-left: 4px; }

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

.social-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  min-height: var(--min-touch);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.12);
  transition: var(--t);
  width: 100%;
  max-width: 220px;
  color: #fff;
  background: rgba(255,255,255,.06);
}

.social-icon-btn svg { width: 26px; height: 26px; flex-shrink: 0; }

@media (hover: hover) {
  .social-icon-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,.3);
    background: rgba(255,255,255,.12);
    box-shadow: 0 4px 16px rgba(0,0,0,.2);
  }
}

.social-icon-btn:active { background: rgba(255,255,255,.15); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.25rem var(--gutter);
  max-width: var(--inner-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.footer-bottom p {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,.4);
}

.footer-est { color: rgba(255,255,255,.3) !important; font-size: var(--fs-xs) !important; }

/* ============================================================
   13. SCROLL-TO-TOP BUTTON
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 900;
  /* Touch target */
  width: var(--min-touch);
  height: var(--min-touch);
  background: var(--blue-500);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow-blue);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity var(--t), visibility var(--t), transform var(--t);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (hover: hover) {
  .scroll-top:hover {
    background: var(--blue-600);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(26,108,255,.4);
  }
}

.scroll-top:active { opacity: 0.85; }

/* ============================================================
   14. SCROLL-REVEAL ANIMATION
   ============================================================ */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-animate].revealed {
  opacity: 1;
  transform: none;
}

/* ============================================================
   15. MEDIA QUERIES — Building up from Mobile-First
   ============================================================

   Breakpoints:
     480px  — Large mobile
     600px  — Small tablet / large mobile landscape
     768px  — Tablet portrait
     900px  — Tablet landscape / small desktop
     1024px — Desktop
     1280px — Wide desktop
     1440px — Full HD
     1920px — 4K / ultra-wide

   ============================================================ */

/* ── 480px: Large phones — introduce 2-column cards ── */
@media (min-width: 480px) {

  :root { --nav-h: 68px; }

  /* Mission/Vision: 2 cols */
  .mv-grid { grid-template-columns: repeat(2, 1fr); }

  /* CTA buttons: side by side */
  .hero-cta {
    flex-direction: row;
    align-items: center;
    max-width: none;
  }

  .btn-primary,
  .btn-ghost { width: auto; }

  /* Founders: 2 cols */
  .founders-grid { grid-template-columns: repeat(2, 1fr); }

  /* Commitments: 2 cols */
  .commit-grid { grid-template-columns: repeat(2, 1fr); }
  /* 7th card: auto (stays in flow) */
  .commit-card--center { grid-column: auto; }

  /* Services: 2 cols */
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card--center { grid-column: auto; }

  /* Footer: 2 cols */
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

/* ── 600px: Tablets in portrait ── */
@media (min-width: 600px) {

  :root { --nav-h: 70px; }

  /* Stats: 4-col (all in one row) */
  .stats-row { grid-template-columns: repeat(4, 1fr); }
  .stat-item { border-bottom: none; }
  .stat-item:not(:last-child) { border-right: 1px solid var(--border-color); }
  .stat-item:nth-child(2n) { border-right: 1px solid var(--border-color); }
  .stat-item:last-child { border-right: none; }

  /* Social: side by side */
  .social-row { flex-direction: row; flex-wrap: wrap; }
  .social-icon-btn { width: auto; }
}

/* ── 768px: Tablet ── */
@media (min-width: 768px) {

  :root { --nav-h: 72px; }

  /* About: 2-col */
  .about-grid { grid-template-columns: 1fr 1fr; }

  /* Contact: info + form side by side */
  .contact-layout { grid-template-columns: 320px 1fr; }

  /* Footer: 3 cols */
  .footer-inner { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }

  /* Footer bottom: row */
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ── 900px: Tablet landscape / small desktop ── */
@media (min-width: 900px) {

  /* Show desktop nav links */
  .nav-links { display: flex; }

  /* Hide hamburger on desktop */
  .hamburger { display: none; }

  /* Founders: 3 cols */
  .founders-grid { grid-template-columns: repeat(3, 1fr); }

  /* Commitments: 3 cols with centred 7th */
  .commit-grid { grid-template-columns: repeat(3, 1fr); }
  .commit-card--center { grid-column: 2; } /* Centre column */

  /* Services: 3 cols with centred 10th */
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .service-card--center { grid-column: 2; } /* Centre column */
}

/* ── 1024px: Desktop ── */
@media (min-width: 1024px) {

  :root { --nav-h: 72px; }

  /* Contact: wider info panel */
  .contact-layout { grid-template-columns: 360px 1fr; }
}

/* ── 1280px: Wide desktop ── */
@media (min-width: 1280px) {

  /* Contact: wider still */
  .contact-layout { grid-template-columns: 380px 1fr; }
}

/* ── 1440px +: Full HD ── */
@media (min-width: 1440px) {

  :root {
    --gutter: clamp(2rem, 4vw, 3.5rem);
  }
}

/* ── 1920px: Ultra-wide ── */
@media (min-width: 1920px) {

  :root {
    --inner-max: 1400px;
    --section-py: 8rem;
  }
}

/* ============================================================
   16. SERVICE CARD — Restructured layout (mobile-friendly)
   Replaces the old CSS grid-area approach with flex
   ============================================================ */
/* Override old grid-area layout from original */
.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.service-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

/* ============================================================
   17. REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-animate] { opacity: 1 !important; transform: none !important; }
  .hero-stripe   { animation: none !important; }
}

/* ============================================================
   18. PRINT
   ============================================================ */
@media print {
  .navbar,
  .hamburger,
  .scroll-top,
  .mobile-drawer,
  .hero-stripe { display: none !important; }

  body { font-size: 12pt; color: #000; background: #fff; }
  .hero-section { padding-top: 1rem; background: #fff; }
  a { color: #000; }
  .section-wrap { max-width: 100%; padding: 0; }
}
