/* Root variables for colors, spacing, and typography */
:root {
  --color-bg-dark: #0e2a47;
  --color-bg-darker: #071729; /* slightly lighter base used for hero */
  --color-bg-light: #f6f7fb;
  --color-bg-alt: #ffffff;
  --color-text-main: #0b1724;
  --color-text-muted: #65738a;
  --color-text-on-dark: #f5f7ff;
  --color-accent: #f26419;
  --color-accent-soft: rgba(242, 100, 25, 0.1);
  --color-border-subtle: rgba(11, 23, 36, 0.06);
  --shadow-soft: 0 14px 40px rgba(6, 18, 33, 0.14);
  --shadow-card: 0 18px 45px rgba(2, 10, 24, 0.2);
  --radius-card: 18px;
  --radius-pill: 999px;
  --transition-fast: 0.2s ease-out;
  --transition-med: 0.3s ease-out;
  --container-width: 1200px; /* widened container for better layout balance */
}

/* Global resets and base typography */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text-main);
  background-color: #050915;
  -webkit-font-smoothing: antialiased;
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section {
  padding-block: 5rem;
}

.section-light {
  /* subtle gradient per spec */
  background: radial-gradient(circle at top left,
    #f4f7ff,
    #f6f7fb 40%,
    #eef2fa
  );
}

.section-alt {
  background-color: var(--color-bg-alt);
}

.section-dark {
  background: radial-gradient(circle at top left, #1c4772 0, #071729 55%, #020812 100%);
  color: var(--color-text-on-dark);
}

/* Subtle separators between sections */
.section + .section {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Header and navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(3, 8, 20, 0.94) 0,
    rgba(3, 8, 20, 0.9) 60%,
    rgba(3, 8, 20, 0.6) 100%
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.85rem;
  gap: 1.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-text-on-dark);
}

.brand-tagline {
  font-size: 0.7rem;
  color: rgba(231, 239, 255, 0.8);
}

/* Primary navigation styles */
.site-nav {
  display: flex;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  position: relative;
  font-size: 0.88rem;
  color: rgba(229, 238, 255, 0.8);
  text-decoration: none;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding-block: 0.25rem;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), #ffb347);
  border-radius: var(--radius-pill);
  transition: width var(--transition-med);
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link.active {
  color: #ffffff;
}

.nav-link.active::after {
  width: 100%;
}

/* Mobile navigation toggle button */
.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  padding: 0.3rem;
  cursor: pointer;
}

.nav-toggle-line {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: rgba(223, 233, 255, 0.9);
  transition: transform var(--transition-fast), opacity var(--transition-fast), translate var(--transition-fast);
}

.nav-toggle-line + .nav-toggle-line {
  margin-top: 5px;
}

/* HERO section layout and visuals */
.hero {
  position: relative;
  min-height: calc(100vh - 62px);
  display: flex;
  align-items: stretch;
  /* Base hero background kept dark but slightly lightened for more mid-tone blue */
  background-color: var(--color-bg-darker);
  color: var(--color-text-on-dark);
  overflow: hidden;
}

/* Hero background image and gradient overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: -40%;
  /* Rebalanced hero background:
     - lighter navy glow at top-left
     - warm accent near top-right
     - deeper navy toward bottom-right
     - hero image preserved underneath */
  background-image:
    radial-gradient(circle at 12% 8%, rgba(80, 140, 220, 0.55), transparent 58%),
    radial-gradient(circle at 78% 4%, rgba(242, 100, 25, 0.25), transparent 48%),
    linear-gradient(to bottom right, #12325b 0%, #020814 72%),
    url("images/hero.png");
  background-size: auto, auto, cover, cover;
  background-position: center, center, center, center;
  background-blend-mode: screen, screen, multiply, normal;
  opacity: 0.9;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* Overlay softened so left/top-left stays lighter while bottom-right remains deep */
  background:
    radial-gradient(circle at 18% 0%, rgba(12, 41, 88, 0.7) 0, transparent 58%),
    radial-gradient(circle at 80% 90%, rgba(1, 8, 22, 0.96) 0, #010510 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: center;
  padding-block: 4.5rem;
  z-index: 1;
}

/* Hero left content (copy) */
.hero-content {
  max-width: 620px;
}

/* Eyebrow labels: stronger visibility and section-aware colors */
.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* High contrast on light and alt sections */
.section-light .eyebrow,
.section-alt .eyebrow {
  color: #0e2a47;
}

/* Softer light text on dark backgrounds (including hero) */
.section-dark .eyebrow,
.hero .eyebrow {
  color: rgba(210, 226, 255, 0.9);
}

.hero-title {
  font-size: clamp(2.3rem, 3.1vw, 3.15rem);
  line-height: 1.05;
  margin: 0 0 1rem 0;
}

.hero-subtitle {
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: 32rem;
  color: rgba(223, 233, 255, 0.88);
  margin: 0 0 0.75rem 0;
}

.hero-caption {
  font-size: 0.9rem;
  color: rgba(175, 198, 232, 0.95);
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.8rem;
}

/* Primary and secondary buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast),
    transform var(--transition-fast), border-color var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent), #ffb347);
  color: #1a0f03;
  box-shadow: 0 12px 28px rgba(242, 100, 25, 0.45);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(242, 100, 25, 0.6);
}

.btn-ghost {
  background: rgba(5, 17, 36, 0.7);
  color: #e5eeff;
  border-color: rgba(161, 190, 232, 0.4);
}

.btn-ghost:hover {
  background: rgba(10, 24, 52, 0.9);
  border-color: rgba(211, 227, 255, 0.7);
}

.hero-meta {
  border-radius: 999px;
  border: 1px solid rgba(120, 165, 220, 0.4);
  background: radial-gradient(circle at top left, rgba(88, 138, 215, 0.2), rgba(4, 12, 33, 0.96));
  padding: 0.7rem 1.3rem;
  max-width: 32rem;
}

.hero-meta p {
  margin: 0;
  font-size: 0.86rem;
  color: rgba(212, 227, 255, 0.93);
}

/* Hero right side: panel suggesting platform details */
.hero-panel {
  background: radial-gradient(circle at top left, rgba(65, 133, 225, 0.28), rgba(5, 13, 32, 0.97));
  border-radius: 24px;
  padding: 1.6rem 1.5rem 1.7rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(168, 203, 255, 0.35);
  backdrop-filter: blur(22px);
  color: var(--color-text-on-dark);
}

.hero-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.hero-panel-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(210, 227, 255, 0.92);
}

.hero-panel-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle, #7cffa4 0, #2ecc71 60%, #0b5e31 100%);
  box-shadow: 0 0 14px rgba(118, 255, 179, 0.7);
}

.hero-panel-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
}

.hero-panel-text {
  margin: 0 0 1.2rem 0;
  font-size: 0.9rem;
  color: rgba(224, 235, 255, 0.9);
}

/* Small metric-style list in hero panel */
.hero-metrics {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1.3fr;
  gap: 0.8rem;
  margin: 0;
  padding: 0.85rem 0.9rem 0.8rem;
  border-radius: 16px;
  background: rgba(3, 9, 27, 0.85);
  border: 1px solid rgba(133, 179, 243, 0.45);
}

.hero-metrics dt {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(182, 204, 243, 0.9);
}

.hero-metrics dd {
  margin: 0.2rem 0 0 0;
  font-size: 0.8rem;
  color: rgba(229, 238, 255, 0.95);
}

/* Section headers shared across content sections */
.section-header {
  margin-bottom: 1.75rem;
}

.section-header h2 {
  font-size: 1.7rem;
  margin: 0 0 0.4rem 0;
}

/* Ensure all H2 headings have strong contrast per section type */
.section-light h2,
.section-alt h2 {
  color: #0e2a47;
}

.section-dark h2 {
  color: #ffffff;
}

.section-intro {
  margin: 0;
  max-width: 40rem;
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--color-text-muted);
}

.section-dark .section-intro {
  color: rgba(207, 221, 246, 0.9);
}

/* Card grid layouts */
.cards-grid {
  display: grid;
  gap: 1.75rem;
}

.cards-grid.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
}

.cards-grid.four-col {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 2.25rem;
}

/* Card styling with hover transitions */
.card {
  background: #ffffff;
  border-radius: var(--radius-card);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border-subtle);
  transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-med),
    background-color var(--transition-med);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.65rem;
  font-size: 1.1rem;
}

.card p {
  margin-top: 0;
  margin-bottom: 0.9rem;
  font-size: 0.95rem;
  /* improved readability on light cards */
  color: #4a5a73;
}

.card-list {
  list-style: none;
  margin: 0;
  padding-left: 0;
  font-size: 0.9rem;
  color: var(--color-text-main);
}

.card-list li {
  position: relative;
  padding-left: 1.1rem;
  margin-top: 0.3rem;
}

.card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* Subtle hover effect for cards */
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 52px rgba(11, 25, 52, 0.22);
  border-color: rgba(14, 42, 71, 0.16);
}

/* Focus area cards on light background */
.focus-card {
  background: #ffffff;
}

/* Section note under Platform Vision */
.section-note {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Pipeline / How It Works visuals */
.pipeline {
  margin-top: 2.5rem;
}

.pipeline-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: 22px;
  background: radial-gradient(circle at top left, rgba(34, 92, 160, 0.5), rgba(3, 11, 31, 0.96));
  border: 1px solid rgba(123, 182, 248, 0.5);
  box-shadow: 0 18px 50px rgba(1, 5, 14, 0.8);
  padding: 1.6rem 1.8rem;
}

.pipeline-step {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 1.2rem;
  padding-block: 0.85rem;
}

.pipeline-step + .pipeline-step {
  border-top: 1px solid rgba(137, 191, 255, 0.3);
}

.pipeline-node {
  align-self: flex-start;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(233, 244, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #0d1826;
  background: radial-gradient(circle at top left, #ffb347, var(--color-accent));
  box-shadow: 0 0 0 3px rgba(242, 100, 25, 0.22);
}

.pipeline-content h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
}

.pipeline-content p {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(220, 231, 252, 0.92);
}

/* Founder section layout */
.founder-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  align-items: center;
  gap: 2.5rem;
}

.founder-portrait-wrapper {
  display: flex;
  justify-content: center;
}

.founder-portrait {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 24px 60px rgba(6, 22, 43, 0.35);
}

.founder-header {
  margin-bottom: 0.75rem;
}

.founder-name {
  margin: 0;
  font-size: 1.4rem;
}

.founder-role {
  margin: 0.3rem 0 1rem 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.founder-text {
  margin: 0 0 0.8rem 0;
  font-size: 0.96rem;
  line-height: 1.8;
  color: var(--color-text-main);
}

/* Contact section layout */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: start;
}

.contact-text .section-intro {
  max-width: 30rem;
}

.contact-email-label {
  margin-top: 1.7rem;
  margin-bottom: 0.15rem;
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(195, 212, 243, 0.9);
}

.contact-email {
  font-size: 1rem;
  color: #ffffff;
  text-decoration: none;
}

.contact-email:hover {
  text-decoration: underline;
}

.contact-actions {
  margin-top: 1.7rem;
}

/* Contact side panel */
.contact-panel {
  border-radius: 20px;
  padding: 1.6rem 1.5rem;
  background: rgba(5, 17, 41, 0.96);
  border: 1px solid rgba(141, 183, 244, 0.5);
  box-shadow: var(--shadow-card);
}

.contact-panel h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.contact-panel p {
  margin-top: 0;
  margin-bottom: 0.9rem;
  font-size: 0.92rem;
  color: rgba(214, 227, 251, 0.9);
}

.contact-list {
  list-style: none;
  margin: 0;
  padding-left: 0;
  font-size: 0.9rem;
}

.contact-list li {
  position: relative;
  padding-left: 1.2rem;
  margin-top: 0.35rem;
  color: rgba(230, 239, 255, 0.96);
}

.contact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-accent), #ffb347);
}

/* Footer styling */
.site-footer {
  background-color: #010813;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  color: rgba(208, 220, 242, 0.9);
  padding-block: 1.3rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo {
  width: 26px;
  height: 26px;
  border-radius: 8px;
}

.footer-text {
  display: flex;
  flex-direction: column;
}

.footer-name {
  font-size: 0.9rem;
  font-weight: 600;
}

.footer-tagline {
  font-size: 0.75rem;
  color: rgba(183, 198, 223, 0.9);
}

.footer-copy {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(170, 188, 219, 0.9);
}

/* ============================================
   ANIMATIONS
   - Hero fade-in
   - Scroll reveal for sections/cards
============================================ */
/* Hero/heading fade-in from below */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

.delay-4 {
  animation-delay: 0.4s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reveal animation used on cards, pipeline steps, and sections */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive behavior for tablets and below */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.3fr);
  }

  .cards-grid.three-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards-grid.four-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .founder-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
  }

  .contact-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  }
}

/* Mobile layout adjustments */
@media (max-width: 720px) {
  .section {
    padding-block: 3.7rem;
  }

  .header-inner {
    padding-block: 0.7rem;
  }

  .site-nav {
    position: fixed;
    inset-inline: 0;
    top: 56px;
    background: rgba(3, 9, 23, 0.98);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-med), opacity var(--transition-med);
  }

  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.8rem 1.5rem 1.3rem;
    gap: 0.9rem;
  }

  .nav-link {
    font-size: 0.88rem;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
  }

  /* Mobile nav toggle animation */
  .nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
    transform: translateY(3.5px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 3.2rem 3.6rem;
  }

  .hero-panel {
    margin-top: 2.4rem;
  }

  .cards-grid.three-col,
  .cards-grid.four-col {
    grid-template-columns: minmax(0, 1fr);
  }

  .founder-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .founder-portrait-wrapper {
    order: -1;
    margin-bottom: 0.7rem;
  }

  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-panel {
    margin-top: 1.5rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2.1rem;
  }

  .hero-meta {
    border-radius: 18px;
  }

  .hero-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .founder-portrait {
    width: 220px;
    height: 220px;
  }
}

