/* =====================================================
   ALPHAGEN VENTURES — Global Stylesheet
   Two verticals: Alphagen Tech Solutions | Alphagen Capital Advisory
===================================================== */

:root {
  --navy: #0a1f44;
  --navy-2: #0f2a5c;
  --navy-light: #16305e;
  --blue: #2e6ff2;
  --blue-light: #5b8cff;
  --gold: #c9992e;
  --gold-light: #e6b84f;
  --ink: #131a2b;
  --muted: #5b6472;
  --muted-light: #8891a1;
  --bg-alt: #f4f6fb;
  --bg-alt-2: #eef1f8;
  --white: #ffffff;
  --border: #e3e7f0;
  --success: #1f9d63;
  --shadow-sm: 0 2px 10px rgba(10, 31, 68, 0.06);
  --shadow-md: 0 10px 30px rgba(10, 31, 68, 0.10);
  --shadow-lg: 0 20px 50px rgba(10, 31, 68, 0.16);
  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.eyebrow.gold { color: var(--gold); }
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
  display: inline-block;
}

.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--navy-2));
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-outline-dark {
  background: transparent;
  border-color: var(--border);
  color: var(--navy);
}
.btn-outline-dark:hover { border-color: var(--blue); color: var(--blue); }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 31, 68, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-family: 'Poppins', sans-serif;
}
.logo-mark {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-mark img {
  width: 100%; height: 100%;
  object-fit: contain;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text .name { font-weight: 700; font-size: 1.15rem; letter-spacing: 0.02em; }
.logo-text .tag { font-size: 0.66rem; letter-spacing: 0.12em; color: var(--gold-light); text-transform: uppercase; margin-top: 3px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  color: rgba(255,255,255,0.82);
  font-weight: 500;
  font-size: 0.94rem;
  padding: 10px 16px;
  border-radius: 8px;
  transition: all 0.2s;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255,255,255,0.08); }
.nav-links .dropdown { position: relative; }
.nav-links .dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  min-width: 260px;
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}
.nav-links .dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { color: var(--ink); display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; font-size: 0.88rem; }
.dropdown-menu a:hover { background: var(--bg-alt); color: var(--blue); }
.dropdown-menu a i { color: var(--blue); width: 16px; text-align: center; }
.header-cta { display: flex; align-items: center; gap: 14px; }

.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  background: none; border: none;
  color: #fff; font-size: 1.4rem; cursor: pointer;
  flex-shrink: 0;
}

/* ---------- Hero (shared style, variants per page) ---------- */
.hero {
  position: relative;
  background: radial-gradient(1100px 500px at 85% -10%, rgba(46,111,242,0.35), transparent 60%),
              radial-gradient(900px 500px at 10% 110%, rgba(201,153,46,0.25), transparent 60%),
              linear-gradient(160deg, var(--navy) 0%, #0d264f 55%, var(--navy-2) 100%);
  color: #fff;
  overflow: hidden;
  padding: 120px 0 100px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero h1 { color: #fff; font-size: clamp(2.2rem, 4.2vw, 3.4rem); margin-bottom: 22px; }
.hero h1 span { background: linear-gradient(135deg, var(--blue-light), var(--gold-light)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.15rem; color: rgba(255,255,255,0.78); max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 36px; margin-top: 56px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-family: 'Poppins', sans-serif; font-size: 1.7rem; color: #fff; }
.hero-stats div span { font-size: 0.82rem; color: rgba(255,255,255,0.6); }

/* Floating visual card composition used on homepage hero */
.hero-visual { position: relative; height: 420px; }
.float-card {
  position: absolute;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(6px);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-lg);
  animation: floaty 6s ease-in-out infinite;
}
.float-card i { font-size: 1.4rem; margin-bottom: 10px; }
.float-card h4 { color: #fff; font-size: 0.95rem; margin-bottom: 4px; }
.float-card p { color: rgba(255,255,255,0.6); font-size: 0.78rem; }
.fc-1 { top: 0; left: 10%; width: 230px; border-top: 3px solid var(--blue-light); }
.fc-1 i { color: var(--blue-light); }
.fc-2 { top: 130px; right: 0; width: 240px; border-top: 3px solid var(--gold-light); animation-delay: 1.2s; }
.fc-2 i { color: var(--gold-light); }
.fc-3 { bottom: 10px; left: 0; width: 220px; border-top: 3px solid #5be0c9; animation-delay: 2.4s; }
.fc-3 i { color: #5be0c9; }
.hero-orb {
  position: absolute; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(46,111,242,0.5), transparent 70%);
  top: 30%; left: 30%; filter: blur(30px); z-index: -1;
}
@keyframes floaty { 0%,100% { transform: translateY(0px); } 50% { transform: translateY(-14px); } }

.hero-small { padding: 150px 0 90px; }
.hero-small .hero-grid { grid-template-columns: 1fr; text-align: center; }
.hero-small .lead { margin: 0 auto 30px; }
.hero-small .hero-actions { justify-content: center; }
.breadcrumb { color: rgba(255,255,255,0.55); font-size: 0.85rem; margin-bottom: 18px; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Vertical split cards (home page) ---------- */
.verticals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.vertical-card {
  border-radius: var(--radius);
  padding: 44px 38px;
  position: relative;
  overflow: hidden;
  color: #fff;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}
.vertical-card:hover { transform: translateY(-6px); }
.vertical-card.tech { background: linear-gradient(150deg, #0d2a5e, var(--blue) 140%); }
.vertical-card.finance { background: linear-gradient(150deg, #241a05, var(--gold) 160%); }
.vertical-card .vc-icon {
  width: 62px; height: 62px; border-radius: 16px;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 22px;
}
.vertical-card h3 { color: #fff; font-size: 1.6rem; margin-bottom: 10px; }
.vertical-card p { color: rgba(255,255,255,0.82); margin-bottom: 22px; max-width: 420px; }
.vertical-card .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.vertical-card .tags span { background: rgba(255,255,255,0.14); padding: 5px 12px; border-radius: 100px; font-size: 0.76rem; }
.vertical-card .vc-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #fff; }
.vertical-card .vc-link i { transition: transform 0.2s; }
.vertical-card:hover .vc-link i { transform: translateX(5px); }

/* ---------- Service Cards Grid ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all 0.25s ease;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: transparent; }
.service-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 20px;
}
.service-icon.blue { background: rgba(46,111,242,0.1); color: var(--blue); }
.service-icon.gold { background: rgba(201,153,46,0.12); color: var(--gold); }
.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 16px; }
.service-card ul.mini-list li { font-size: 0.85rem; color: var(--muted); display: flex; gap: 8px; margin-bottom: 6px; }
.service-card ul.mini-list li i { color: var(--success); margin-top: 4px; font-size: 0.75rem; }
.card-partner-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 600;
  color: var(--navy); background: var(--bg-alt-2); padding: 4px 10px; border-radius: 6px; margin-top: 6px;
}

/* ---------- Detailed solution block (inner pages) ---------- */
.solution-block {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}
.solution-block:last-child { border-bottom: none; }
.solution-block.reverse { grid-template-columns: 1.1fr 0.9fr; }
.solution-block.reverse .solution-media { order: 2; }
.solution-num {
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 0.85rem;
  color: var(--blue); letter-spacing: 0.08em; margin-bottom: 12px; display: block;
}
.solution-block h3 { font-size: 1.5rem; margin-bottom: 14px; }
.solution-block p.desc { color: var(--muted); margin-bottom: 20px; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin-bottom: 20px; }
.feature-list li { display: flex; gap: 10px; font-size: 0.92rem; color: var(--ink); }
.feature-list li i { color: var(--blue); margin-top: 4px; font-size: 0.8rem; }
.finance-page .feature-list li i { color: var(--gold); }
.solution-media {
  border-radius: var(--radius);
  min-height: 260px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.solution-media .big-icon { font-size: 5rem; opacity: 0.9; }
.tech-page .solution-media { background: linear-gradient(150deg, var(--navy) 0%, var(--blue) 140%); }
.tech-page .solution-media .big-icon { color: rgba(255,255,255,0.9); }
.finance-page .solution-media { background: linear-gradient(150deg, #241a05, var(--gold) 150%); }
.finance-page .solution-media .big-icon { color: rgba(255,255,255,0.9); }
.solution-media::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15), transparent 60%);
}

/* ---------- Process steps ---------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.process-step { text-align: center; position: relative; }
.process-step .num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.1rem;
  margin: 0 auto 18px;
}
.finance-page .process-step .num { background: var(--gold); color: var(--navy); }
.process-step h4 { font-size: 1rem; margin-bottom: 8px; }
.process-step p { font-size: 0.85rem; color: var(--muted); }
.process-step:not(:last-child)::after {
  content: ""; position: absolute; top: 28px; left: 60%; width: 80%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--border) 0 6px, transparent 6px 12px);
  z-index: -1;
}

/* ---------- Why us / feature bullets ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.why-item { text-align: left; }
.why-item .icon-badge {
  width: 50px; height: 50px; border-radius: 12px;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; font-size: 1.2rem;
}
.why-item h4 { font-size: 1.05rem; margin-bottom: 8px; }
.why-item p { color: var(--muted); font-size: 0.92rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--navy), var(--navy-2));
  border-radius: 24px;
  padding: 64px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute; width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,153,46,0.35), transparent 70%);
  top: -150px; right: -100px;
}
.cta-banner h2 { color: #fff; font-size: 1.9rem; margin-bottom: 10px; }
.cta-banner p { color: rgba(255,255,255,0.75); }
.cta-actions { display: flex; gap: 16px; flex-shrink: 0; flex-wrap: wrap; }

/* ---------- Logos / trust strip ---------- */
.trust-strip { padding: 40px 0; border-bottom: 1px solid var(--border); border-top: 1px solid var(--border); }
.trust-strip .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.trust-strip .label { color: var(--muted); font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
.trust-logos { display: flex; gap: 34px; flex-wrap: wrap; align-items: center; }
.trust-logos span { font-family: 'Poppins', sans-serif; font-weight: 600; color: var(--muted-light); font-size: 1.05rem; letter-spacing: 0.02em; }

/* ---------- Tabs (services filter on tech/finance page top) ---------- */
.pill-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.pill-tabs a {
  padding: 9px 18px; border-radius: 100px; font-size: 0.85rem; font-weight: 600;
  background: var(--bg-alt); color: var(--muted); border: 1px solid var(--border);
}
.pill-tabs a:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- Team / About ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card { text-align: center; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 20px; }
.team-avatar {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--blue), var(--navy)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem; font-family: 'Poppins', sans-serif; font-weight: 700;
}
.team-card h4 { font-size: 1rem; margin-bottom: 4px; }
.team-card span { font-size: 0.82rem; color: var(--blue); font-weight: 600; }
.team-card p { font-size: 0.82rem; color: var(--muted); margin-top: 10px; }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card { padding: 30px; border-radius: var(--radius); background: var(--bg-alt); }
.value-card i { font-size: 1.6rem; color: var(--blue); margin-bottom: 16px; }
.value-card h4 { margin-bottom: 8px; font-size: 1.05rem; }
.value-card p { color: var(--muted); font-size: 0.9rem; }

.timeline { position: relative; padding-left: 30px; border-left: 2px solid var(--border); }
.timeline-item { position: relative; padding-bottom: 36px; }
.timeline-item::before {
  content: ""; position: absolute; left: -37px; top: 2px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--blue); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--blue);
}
.timeline-item h4 { font-size: 1rem; margin-bottom: 6px; }
.timeline-item p { color: var(--muted); font-size: 0.9rem; }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; }
.contact-info-card {
  background: var(--navy); color: #fff; border-radius: var(--radius);
  padding: 40px 34px;
}
.contact-info-card h3 { color: #fff; margin-bottom: 10px; }
.contact-info-card p.sub { color: rgba(255,255,255,0.7); margin-bottom: 30px; font-size: 0.92rem; }
.contact-row { display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start; }
.contact-row .ci-icon {
  width: 42px; height: 42px; border-radius: 10px; background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--gold-light);
}
.contact-row h5 { color: #fff; font-size: 0.9rem; margin-bottom: 4px; }
.contact-row p { color: rgba(255,255,255,0.65); font-size: 0.87rem; }
.social-row { display: flex; gap: 10px; margin-top: 30px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.social-row a:hover { background: var(--gold); color: var(--navy); }

.form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.form-group input, .form-group select, .form-group textarea {
  padding: 13px 16px; border: 1px solid var(--border); border-radius: 10px;
  font-family: inherit; font-size: 0.92rem; color: var(--ink); background: var(--bg-alt);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--blue); background: #fff;
}
.form-group textarea { resize: vertical; min-height: 110px; }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 14px; overflow: hidden; }
.faq-q {
  padding: 20px 24px; display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; font-weight: 600; font-size: 0.98rem; background: var(--white);
}
.faq-q i { transition: transform 0.25s; color: var(--blue); }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; padding: 0 24px; }
.faq-a p { color: var(--muted); font-size: 0.9rem; padding-bottom: 20px; }
.faq-item.open .faq-a { max-height: 300px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.75); padding-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,0.6); margin: 18px 0 20px; max-width: 300px; }
.footer-col h5 { color: #fff; font-size: 0.9rem; margin-bottom: 20px; letter-spacing: 0.05em; text-transform: uppercase; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; padding: 26px 0; flex-wrap: wrap; gap: 12px;
  font-size: 0.82rem; color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: #fff; }
.disclaimer-note { font-size: 0.76rem; color: rgba(255,255,255,0.35); max-width: 900px; margin: 0 auto 24px; text-align: center; line-height: 1.7; }

/* ---------- Utility ---------- */
.mt-0{margin-top:0;} .mb-0{margin-bottom:0;}
.text-center { text-align: center; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.badge-row span { font-size: 0.78rem; background: var(--bg-alt); border: 1px solid var(--border); padding: 6px 14px; border-radius: 100px; color: var(--muted); font-weight: 600; }

/* ---------- Scroll reveal (progressive enhancement, safe-by-default) ----------
   Content is ALWAYS fully opaque/visible. Only a subtle slide-up transform is
   applied as an enhancement, so nothing ever disappears if JS is slow, blocked,
   or an element is never scrolled into view. */
.reveal { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: no-preference) {
  .reveal { transform: translateY(14px); transition: transform 0.5s ease; }
  .reveal.in-view { transform: translateY(0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .verticals-grid, .footer-grid, .why-grid, .value-grid, .team-grid, .process-steps, .contact-wrap, .two-col { grid-template-columns: 1fr; }
  .solution-block, .solution-block.reverse { grid-template-columns: 1fr; }
  .solution-block.reverse .solution-media { order: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; text-align: center; }
  .process-step::after { display: none; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 640px) {
  .feature-list { grid-template-columns: 1fr; }
  .hero { padding: 100px 0 70px; }
  .section { padding: 64px 0; }
  .cta-banner { padding: 44px 28px; }
}

/* ---------- Mobile nav drawer ---------- */
.mobile-drawer {
  position: fixed; inset: 0; background: var(--navy); z-index: 2000;
  transform: translateX(100%); transition: transform 0.3s ease;
  padding: 28px; overflow-y: auto;
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.mobile-drawer-head button { background: none; border: none; color: #fff; font-size: 1.6rem; }
.mobile-drawer a { display: block; color: #fff; font-size: 1.1rem; padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.mobile-drawer .sub-link { padding-left: 20px; font-size: 0.95rem; color: rgba(255,255,255,0.7); }

/* ---------- Responsive hardening ----------
   Appended after the original responsive block so these rules win where they
   overlap. Ranges are used where a wider breakpoint must not re-expand a grid
   that a narrower one has already collapsed to a single column. */

html { overflow-x: hidden; }

/* The drawer sits off-canvas via translateX(100%). Hiding it while closed
   keeps it out of the document width and out of the tab order. */
.mobile-drawer { visibility: hidden; }
.mobile-drawer.open { visibility: visible; }

/* Media and long unbroken strings must never widen a column. */
img, svg, video, iframe { max-width: 100%; }
iframe { width: 100%; border: 0; }
body { overflow-wrap: break-word; }

/* Tablet: two columns read better than four/three cramped or one stretched. */
@media (min-width: 641px) and (max-width: 980px) {
  .why-grid, .team-grid, .value-grid, .footer-grid, .verticals-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .feature-list { grid-template-columns: 1fr 1fr; }
}

/* Small phones: the header must fit logo + CTA + toggle inside 320px. */
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .site-header .container { height: 68px; gap: 10px; }
  .logo-text .tag { display: none; }
  .logo-text .name { font-size: 1rem; }
  .logo-mark img { width: 34px; }
  .header-cta { gap: 6px; }
  .header-cta .btn-sm { padding: 8px 12px; font-size: 0.72rem; }
  .hero { padding: 84px 0 56px; }
  .hero p.lead { font-size: 1.02rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 22px; margin-top: 36px; }
  .cta-banner { padding: 36px 20px; }
  .cta-banner h2 { font-size: 1.5rem; }
  .contact-info-card, .form-card { padding: 26px 20px; }
  /* Buttons and the trust-strip label are nowrap by default; long labels
     would otherwise punch out of the viewport on a phone. */
  .btn { white-space: normal; text-align: center; }
  .trust-strip .container { justify-content: center; text-align: center; }
  .trust-strip .label { white-space: normal; width: 100%; }
  .trust-logos { justify-content: center; gap: 20px 24px; }
}

/* Very small phones (≤360px): drop the header CTA, it is in the drawer. */
@media (max-width: 360px) {
  .header-cta .btn-sm { display: none; }
}
