/* ============================================================
   ClearStride Tools — Layout
   ============================================================ */

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  height: var(--nav-height);
  background: rgba(14, 23, 42, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-dark);
  padding: 0 var(--space-10);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo img {
  height: 30px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav__link {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: color var(--transition-base), background var(--transition-base);
  white-space: nowrap;
}
.nav__link:hover {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.07);
}

.nav__cta {
  background: var(--color-amber) !important;
  color: var(--color-white) !important;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: var(--radius-md);
  transition: background var(--transition-base);
}
.nav__cta:hover {
  background: var(--color-amber-light) !important;
  color: var(--color-white) !important;
}

/* Mobile nav toggle — hidden on desktop */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
  background: none;
  border: none;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

/* Mobile nav open state */
.nav.is-open .nav__links {
  display: flex;
}
.nav.is-open .nav__toggle span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  background: var(--color-dark-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 60px) var(--space-10) var(--space-20);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__bg-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(37, 99, 235, 0.13) 0%, transparent 65%),
    radial-gradient(ellipse 45% 40% at 85% 65%, rgba(217, 119, 6, 0.09) 0%, transparent 55%);
}

.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 72%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero__eyebrow {
  margin-bottom: var(--space-8);
  animation: fadeDown 0.6s ease both;
}

.hero__logo {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-8);
  animation: fadeDown 0.6s ease 0.07s both;
}

.hero__logo img {
  height: 56px;
  width: auto;
}

.hero__headline {
  color: var(--color-white);
  margin-bottom: var(--space-5);
  animation: fadeDown 0.6s ease 0.14s both;
}

.hero__headline em {
  font-style: normal;
  background: linear-gradient(135deg, var(--color-amber) 0%, var(--color-amber-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  font-size: var(--text-md);
  color: rgba(255, 255, 255, 0.55);
  max-width: 540px;
  margin: 0 auto var(--space-10);
  line-height: var(--leading-relaxed);
  animation: fadeDown 0.6s ease 0.21s both;
}

.hero__actions {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  animation: fadeDown 0.6s ease 0.28s both;
}

.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.22);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  animation: bounce 2.2s infinite 2s;
}

/* ── Product Strip ── */
.product-strip {
  background: #07101F;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  height: 52px;
  padding: 0 var(--space-10);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  flex-wrap: wrap;
  overflow: hidden;
}

.product-strip__label {
  color: rgba(255, 255, 255, 0.28);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  white-space: nowrap;
}

.product-strip__item {
  display: flex;
  align-items: center;
  text-decoration: none;
  opacity: 0.6;
  transition: opacity var(--transition-base);
}
.product-strip__item:hover { opacity: 1; }
.product-strip__item img { height: 18px; width: auto; }

/* ── Products Section ── */
.products {
  background: var(--color-white);
}

.products__header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.products__header .section-sub {
  max-width: 480px;
  margin: 0 auto;
}

.products__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: start;
}

/* ── Product Card ── */
.product-card {
  background: var(--color-off-white);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-card--docs { border-color: var(--color-docs-blue-border); }
.product-card--reqs { border-color: var(--color-reqs-red-border); }

.product-card__header {
  padding: 28px 28px 22px;
  border-bottom: 1px solid var(--border-default);
  position: relative;
}

.product-card__header--blue {
  background: var(--color-docs-blue-bg);
  border-bottom-color: rgba(37, 99, 235, 0.1);
}

.product-card__header--red {
  background: var(--color-reqs-red-bg);
  border-bottom-color: rgba(220, 38, 38, 0.08);
}

.product-card__status {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
}

.product-card__logo {
  margin-bottom: var(--space-4);
  display: block;
}

.product-card__logo img {
  height: 28px;
  width: auto;
}

.product-card__tagline {
  font-size: var(--text-sm);
  color: var(--color-slate);
  line-height: var(--leading-snug);
  font-style: italic;
}

.product-card__body {
  padding: var(--space-6) 28px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.feature-group__label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-light-slate);
  margin-bottom: var(--space-3);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.feature-list__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 14px;
  color: var(--color-dark-slate);
  line-height: var(--leading-snug);
}

.coming-soon-note {
  background: rgba(220, 38, 38, 0.04);
  border: 1px dashed rgba(220, 38, 38, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-slate);
  line-height: var(--leading-normal);
}
.coming-soon-note strong { color: var(--color-reqs-red); }

.product-card__cta { margin-top: auto; }

/* ── How It Works ── */
.workflow {
  background: var(--color-dark-bg);
  color: var(--color-white);
}

.workflow__header {
  margin-bottom: var(--space-12);
}
.workflow__header .heading-lg { color: var(--color-white); }
.workflow .section-sub { color: rgba(255, 255, 255, 0.5); }

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

.workflow-step {
  background: var(--color-dark-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color var(--transition-base);
}
.workflow-step:hover { border-color: rgba(255, 255, 255, 0.12); }

.workflow-step__num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.22);
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-4);
  display: block;
}

.workflow-step__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.workflow-step__icon--blue  { background: rgba(37, 99, 235, 0.18); }
.workflow-step__icon--red   { background: rgba(220, 38, 38, 0.18); }
.workflow-step__icon--amber { background: rgba(217, 119, 6, 0.15); }

.workflow-step__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: var(--space-2);
  letter-spacing: -0.01em;
}

.workflow-step__body {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.48);
  line-height: var(--leading-normal);
}
.workflow-step__body strong {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
}

/* ── Rally Section ── */
.rally {
  background: var(--color-off-white);
  padding: var(--space-16) var(--space-10);
}

.rally__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--color-white);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.rally__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-amber);
  margin-bottom: var(--space-4);
}

.rally__title {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  color: var(--color-dark-slate);
  margin-bottom: var(--space-3);
  line-height: var(--leading-snug);
}
.rally__title span { color: var(--color-amber); }

.rally__desc {
  font-size: 15px;
  color: var(--color-slate);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-5);
}

.rally__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.rally__feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 14px;
  color: var(--color-dark-slate);
  line-height: var(--leading-snug);
}

.rally__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.rally__aside {
  font-size: var(--text-sm);
  color: var(--color-light-slate);
}

/* Rally mock UI */
.rally__visual {
  background: var(--color-dark-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
}
.rally__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(217, 119, 6, 0.08), transparent 60%);
  pointer-events: none;
}

.mock-channel {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: var(--space-4);
  position: relative;
}

.mock-msg {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-2);
  position: relative;
}

.mock-msg__header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.mock-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.mock-msg__name { font-size: 12px; font-weight: 600; color: var(--color-white); }
.mock-msg__time { font-size: 10px; color: rgba(255, 255, 255, 0.3); }
.mock-msg__text { font-size: 12px; color: rgba(255, 255, 255, 0.65); line-height: var(--leading-normal); }

.mock-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  margin-top: var(--space-2);
}
.mock-tag--decision { background: rgba(217, 119, 6, 0.2);  color: var(--color-amber-light); }
.mock-tag--resolved { background: rgba(34, 197, 94, 0.15); color: #4ADE80; }
.mock-tag--question { background: rgba(37, 99, 235, 0.2);  color: #60A5FA; }

/* ── CTA Section ── */
.cta-section {
  background: linear-gradient(135deg, var(--color-dark-bg) 0%, #071022 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(217, 119, 6, 0.07), transparent 70%);
  pointer-events: none;
}
.cta-section .container { position: relative; z-index: 1; }

.cta-section__title {
  color: var(--color-white);
  margin-bottom: var(--space-4);
}
.cta-section__sub {
  font-size: var(--text-md);
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-10);
}
.cta-section__actions {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* ── Footer ── */
.footer {
  background: var(--color-dark-footer);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: var(--space-16) var(--space-10) var(--space-10);
  color: rgba(255, 255, 255, 0.38);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  max-width: var(--max-width);
  margin: 0 auto var(--space-10);
}

.footer__brand img {
  height: 28px;
  width: auto;
  margin-bottom: var(--space-3);
}

.footer__brand p {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  max-width: 260px;
}

.footer__col h4 {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-3);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__links a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.38);
  text-decoration: none;
  transition: color var(--transition-base);
}
.footer__links a:hover { color: rgba(255, 255, 255, 0.72); }

.footer__bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  font-size: 12px;
}

.footer__domain {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.2);
}

/* ── Section Sub Text ── */
.section-sub {
  font-size: var(--text-md);
  color: var(--color-slate);
  line-height: var(--leading-relaxed);
}

/* ── Animations ── */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: none; }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}
