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

:root {
  --navy: #0f1b2d;
  --navy-light: #1a2d47;
  --green: #7ab929;
  --green-dark: #5a9a10;
  --teal: #2ec4b6;
  --cyan: #00c9db;
  --orange: #e8952e;
  --yellow: #f5c842;
  --white: #ffffff;
  --gray-100: #f4f6f8;
  --gray-200: #e2e6ec;
  --gray-300: #c5ccd6;
  --gray-600: #6b7a8d;
  --gray-800: #2d3a4a;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --header-height: 110px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }

.section-label {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-600);
  max-width: 640px;
  margin-bottom: 2.5rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(122, 185, 41, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(15, 27, 45, 0.95);
  backdrop-filter: blur(12px);
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 308px;
  width: auto;
  filter: brightness(0) invert(1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--green);
  border-radius: 1px;
}

.nav-cta {
  padding: 10px 24px !important;
  font-size: 0.9rem !important;
  color: var(--white) !important;
  background: var(--green);
  border-radius: 6px;
}

.nav-cta:hover {
  background: var(--green-dark) !important;
}

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

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, #0d2137 100%);
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(122, 185, 41, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(46, 196, 182, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 80px;
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero-content h1 span {
  background: linear-gradient(135deg, var(--green), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.15rem;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-graphic {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1;
  position: relative;
}

/* Animated constellation graphic */
.constellation-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.constellation-container svg {
  width: 100%;
  height: 100%;
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--white);
  padding: 48px 0;
  border-bottom: 1px solid var(--gray-200);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item {
  padding: 16px;
}

.stat-number {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--green), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--gray-600);
  font-weight: 500;
}

/* ===== SECTIONS ===== */
.section {
  padding: 100px 0;
}

.section-dark {
  background: var(--navy);
  color: var(--white);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--white);
}

.section-dark p {
  color: rgba(255, 255, 255, 0.7);
}

.section-gray {
  background: var(--gray-100);
}

.section-center {
  text-align: center;
}

.section-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ===== PROBLEM / SOLUTION ===== */
.problem-solution {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.problem-card,
.solution-card {
  padding: 40px;
  border-radius: 12px;
  height: 100%;
}

.problem-card {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
}

.solution-card {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
}

.solution-card h3 {
  color: var(--green);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.problem-card .card-icon {
  background: rgba(232, 149, 46, 0.1);
}

.solution-card .card-icon {
  background: rgba(122, 185, 41, 0.15);
}

.card-list {
  margin-top: 16px;
}

.card-list li {
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
  font-size: 0.95rem;
}

.card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.problem-card .card-list li::before {
  background: var(--orange);
}

.solution-card .card-list li {
  color: rgba(255, 255, 255, 0.8);
}

.solution-card .card-list li::before {
  background: var(--green);
}

/* ===== FEATURES GRID ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 36px 28px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--green);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(122, 185, 41, 0.1), rgba(46, 196, 182, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.feature-card h4 {
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 0;
}

/* Dark feature cards */
.section-dark .feature-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.section-dark .feature-card:hover {
  border-color: var(--green);
  background: rgba(255, 255, 255, 0.08);
}

.section-dark .feature-card p {
  color: rgba(255, 255, 255, 0.6);
}

/* ===== PILLARS / ARCHITECTURE ===== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.pillar-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 32px 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--teal));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.pillar-card:hover::before {
  transform: scaleX(1);
}

.pillar-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.pillar-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.pillar-card h4 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.pillar-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0;
}

/* ===== ECOSYSTEM / VERTICALS ===== */
.verticals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.vertical-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 40px 32px;
  transition: all 0.3s ease;
}

.vertical-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.vertical-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.vertical-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.vertical-card h3 {
  font-size: 1.25rem;
}

.vertical-products {
  margin-top: 16px;
}

.vertical-products li {
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.95rem;
  color: var(--gray-600);
}

.vertical-products li:last-child {
  border-bottom: none;
}

.vertical-products li strong {
  color: var(--navy);
}

/* ===== ABOUT / TEAM ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 800px;
  margin: 48px auto 0;
}

.team-card {
  text-align: center;
  padding: 40px 32px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
}

.team-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: var(--green);
  font-weight: 700;
  overflow: hidden;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.team-role {
  color: var(--green);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.team-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 32px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--navy);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(122, 185, 41, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-info {
  padding: 40px 0;
}

.contact-info h3 {
  margin-bottom: 24px;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-method-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(122, 185, 41, 0.1), rgba(46, 196, 182, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-method h4 {
  margin-bottom: 4px;
}

.contact-method p {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 0;
}

.contact-method a {
  color: var(--green);
  font-weight: 500;
}

.contact-method a:hover {
  text-decoration: underline;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.6);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  font-size: 0.9rem;
  margin-top: 16px;
  max-width: 300px;
}

.footer-brand img {
  height: 100px;
  filter: brightness(0) invert(1);
}

.footer h4 {
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--green);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-tagline {
  font-style: italic;
  color: rgba(255, 255, 255, 0.4);
}

/* ===== PAGE HERO (internal pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  padding: 140px 0 80px;
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 16px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== SECTION IMAGES ===== */
.section-image {
  margin: 48px auto 0;
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.section-image img {
  width: 100%;
  height: auto;
  display: block;
}

.section-image-dark {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.section-image-framed {
  border: 1px solid var(--gray-200);
}

.section-dark .section-image-framed {
  border-color: rgba(255, 255, 255, 0.1);
}

/* Image with text side by side */
.image-text-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 48px;
}

.image-text-row.reverse {
  direction: rtl;
}

.image-text-row.reverse > * {
  direction: ltr;
}

.image-text-row img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

@media (max-width: 768px) {
  .image-text-row {
    grid-template-columns: 1fr;
  }

  .image-text-row.reverse {
    direction: ltr;
  }
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .problem-solution {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .verticals-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links.open {
    display: flex;
  }

  .mobile-toggle {
    display: flex;
  }

  .mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .section {
    padding: 64px 0;
  }

  .page-hero {
    padding: 120px 0 60px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}
