/* ─────────────────────────────────────────────
   ReachOne · styles.css
   ───────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

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

:root {
  --navy:        #1B3D6F;
  --navy-dark:   #122B52;
  --navy-light:  #2A5298;
  --orange:      #F47B20;
  --orange-dark: #D96810;
  --gray-bg:     #F0F0EF;
  --gray-light:  #FAFAFA;
  --text-dark:   #1B3D6F;
  --text-body:   #4A5568;
  --text-muted:  #8A9AB5;
  --white:       #FFFFFF;
  --border:      #E2E8F0;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--gray-bg);
  color: var(--text-body);
}

/* ── NAV ─────────────────────────────────── */
.nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-brand-wrapper {
  display: contents; /* children participate in nav flex */
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo-mark { width: 36px; height: 36px; }
.nav-logo { height: 49px; max-width: 250px; }
.nav-wordmark { display: flex; flex-direction: column; line-height: 1; }
.nav-wordmark-top {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.5px;
}
.nav-wordmark-top span { color: var(--orange); }
.nav-wordmark-sub {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 1px;
}
.nav-right { display: flex; align-items: center; gap: 1.5rem; }


/* ── HERO ────────────────────────────────── */
.hero {
  background: var(--navy);
  padding: 5rem 3rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  right: -120px; top: -120px;
  width: 500px; height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.04);
}
.hero::after {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 380px;
  align-items: center;
  gap: 4rem;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(244,123,32,0.15);
  border: 1px solid rgba(244,123,32,0.3);
  border-radius: 20px;
  padding: 5px 14px;
  margin-bottom: 1.5rem;
}
.hero-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
}
.hero-eyebrow-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--orange);
  text-transform: uppercase;
}
.hero-h {
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 1.25rem;
}
.hero-h span { color: var(--orange); }
.hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  font-weight: 300;
  max-width: 480px;
}
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat-num {
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--orange);
}
.hero-stat-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 2px;
}
.hero-right {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 2rem;
}
.hero-right-title {
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero-tool-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.hero-tool-item:last-child { border-bottom: none; }
.hero-tool-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}
.hero-tool-status-live {
  font-size: 9px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  background: rgba(72,187,120,0.2);
  color: #68D391;
  border: 1px solid rgba(72,187,120,0.3);
  border-radius: 20px; padding: 2px 9px;
}
.hero-tool-status-UAT {
  font-size: 9px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  background: rgba(244,123,32,0.2);
  color: #F47B20;
  border: 1px solid rgba(244,123,32,0.3);
  border-radius: 20px; padding: 2px 9px;
}
.hero-tool-status-soon {
  font-size: 9px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px; padding: 2px 9px;
}

/* ── TOOLS SECTION ───────────────────────── */
.tools-section {
  background: var(--gray-bg);
  padding: 4rem 3rem;
  background-image: radial-gradient(circle, #D0D0CF 1px, transparent 1px);
  background-size: 28px 28px;
}
.tools-inner { max-width: 1100px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 3rem; }
.section-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 3px; color: var(--orange);
  text-transform: uppercase; margin-bottom: 0.75rem;
}
.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem; font-weight: 800;
  color: var(--navy); letter-spacing: -0.3px;
}
.section-sub {
  font-size: 0.9rem; color: var(--text-body);
  margin-top: 0.75rem; line-height: 1.65; font-weight: 300;
}

/* ── CARDS ───────────────────────────────── */
.cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--border);
  transition: all 0.2s;
  position: relative;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(27,61,111,0.12);
}
.card-clickable {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.card-clickable.loading {
  pointer-events: none;
  opacity: 0.9;
}
.card-clickable.loading .card-link {
  color: #4A5568;
}
.card-clickable.loading .card-link::after {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 8px;
  border: 2px solid currentColor;
  border-radius: 50%;
  border-top-color: transparent;
  animation: card-loading-spinner 0.8s linear infinite;
}
.card.soon { opacity: 0.65; }
.card.soon:hover { transform: none; box-shadow: none; }

@keyframes card-loading-spinner {
  to { transform: rotate(360deg); }
}

.card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(27,61,111,0.08);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.card-icon svg {
  width: 26px; height: 26px;
  stroke: var(--navy); fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.card-badge {
  position: absolute; top: 1.25rem; right: 1.25rem;
  font-size: 9px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px;
}

.card-badge.UAT {
  background: rgba(244,123,32,0.12);
  color: #D96810;
  border: 1px solid rgba(244,123,32,0.3);
}

.card-badge.live {
  background: rgba(72,187,120,0.12);
  color: #276749;
  border: 1px solid rgba(72,187,120,0.3);
}
.card-badge.soon {
  background: rgba(160,174,192,0.15);
  color: #718096;
  border: 1px solid rgba(160,174,192,0.3);
}
.card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem; font-weight: 800;
  color: var(--navy); margin-bottom: 0.6rem;
  letter-spacing: -0.2px;
}
.card-title span { color: var(--orange); }
.card-text {
  font-size: 0.82rem; color: var(--text-body);
  line-height: 1.7; font-weight: 300; flex: 1;
}
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 1.25rem;
  font-size: 0.8rem; font-weight: 700;
  color: var(--orange); text-decoration: none; letter-spacing: 0.3px;
}
.card-link svg { width: 14px; height: 14px; transition: transform 0.2s; }
.card:hover .card-link svg { transform: translateX(3px); }

.card-more {
  background: rgba(27,61,111,0.04);
  border: 1.5px dashed var(--border);
  border-radius: 16px; padding: 2rem;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; min-height: 180px;
}
.card-more-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--white); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.75rem; font-size: 1.2rem;
}
.card-more-text {
  font-size: 0.8rem; color: var(--text-muted);
  font-weight: 300; line-height: 1.6;
}

/* ── FOOTER ──────────────────────────────── */
.footer {
  background: var(--navy-dark);
  padding: 1.5rem 3rem;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-l { font-size: 12px; color: rgba(255,255,255,0.4); font-weight: 300; }
.footer-r { display: flex; align-items: center; gap: 6px; }
.footer-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.footer-powered {
  font-size: 11px; font-weight: 600;
  letter-spacing: 1px; color: rgba(255,255,255,0.4); text-transform: uppercase;
}

/* ── RESPONSIVE ──────────────────────────── */

/* Tablet & below: collapse hero to one column, cards to two */
@media (max-width: 900px) {
  .nav { padding: 0 2rem; }
  .hero { padding: 4rem 2rem 3rem; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-sub { max-width: none; }
  .hero-right { max-width: 480px; }
  .tools-section { padding: 3.5rem 2rem; }
  .cards-row { grid-template-columns: repeat(2, 1fr); }
  .footer { padding: 1.5rem 2rem; }
}

/* Phone: single column, smaller type, tighter spacing */
@media (max-width: 600px) {
  .nav {
    padding: 0.5rem 1.25rem;
    height: auto;
  }
  .nav-wordmark-top { font-size: 1.3rem; }
  .nav-wordmark-sub { font-size: 10px; letter-spacing: 1px; }
  .nav-logo { height: 32px; }
  .nav-logo-mark { width: 28px; height: 28px; }

  .hero { padding: 3rem 1.25rem 2.5rem; }
  .hero-h { font-size: 2rem; }
  .hero-stats {
    flex-wrap: wrap;
    gap: 1.5rem 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
  }
  .hero-stat-num { font-size: 1.9rem; }
  .hero-right { padding: 1.5rem; }

  .tools-section { padding: 3rem 1.25rem; }
  .section-head { margin-bottom: 2rem; }
  .section-title { font-size: 1.5rem; }
  .cards-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
  }
  .card { padding: 1.5rem; }

  .footer {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1.25rem;
  }
}

/* Only apply hover lift on devices that truly hover (avoids "stuck" cards on touch) */
@media (hover: none) {
  .card:hover {
    transform: none;
    box-shadow: none;
  }
  .card:hover .card-link svg { transform: none; }
}
