/* Bharat2040 — refined minimal (Linear / Stripe inspired) */

:root {
  --bg-dark: #0a0e14;
  --bg-dark-2: #0f141c;
  --bg-card-dark: rgba(255, 255, 255, 0.04);
  --border-dark: rgba(255, 255, 255, 0.08);

  --bg-light: #ffffff;
  --bg-muted: #f4f6f9;
  --bg-subtle: #ebeef3;

  --text-dark: #f0f3f7;
  --text-dark-muted: #94a3b5;
  --text: #141c24;
  --text-secondary: #3d4a57;
  --text-muted: #6b7785;
  --border: #e2e7ee;
  --border-strong: #cdd5df;

  --brand-orange: #e8741a;
  --brand-blue: #3d9fd4;
  --brand-blue-deep: #2a7fb0;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --header-h: 4.5rem;
  --radius: 10px;
  --radius-lg: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max-width: 1140px;
  --shadow-card: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.06);
  --shadow-card-hover: 0 4px 8px rgba(16, 24, 40, 0.06), 0 16px 40px rgba(16, 24, 40, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

/* Subtle noise overlay */
.page-noise {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10001;
  padding: 0.625rem 1rem;
  background: var(--text);
  color: #fff;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(var(--max-width), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Shared grid background */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, black 15%, transparent 72%);
}

.section-bg--mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 10% 20%, rgba(61, 159, 212, 0.06), transparent),
    radial-gradient(ellipse 40% 35% at 90% 80%, rgba(232, 116, 26, 0.05), transparent);
  pointer-events: none;
}

.text-gradient {
  background: linear-gradient(135deg, #7ec8ea 0%, var(--brand-blue) 45%, #f0a060 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.highlight-orange {
  color: var(--brand-orange);
}

.highlight-blue {
  color: var(--brand-blue);
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.35s var(--ease), border-color 0.35s;
}

.site-header:not(.scrolled) {
  background: transparent;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(10, 14, 20, 0.04);
}

.site-header.scrolled .logo-wordmark,
.site-header.scrolled .nav a {
  color: var(--text-secondary);
}

.site-header.scrolled .nav a:hover,
.site-header.scrolled .logo-wordmark {
  color: var(--text);
}

.site-header.scrolled .menu-toggle span {
  background: var(--text);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

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

.logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.logo-wrap--sm {
  width: 2rem;
  height: 2rem;
}

.logo-img {
  width: 1.65rem;
  height: 1.65rem;
  object-fit: contain;
}

.logo-wrap--sm .logo-img {
  width: 1.35rem;
  height: 1.35rem;
}

.logo-wordmark {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
}

.site-header.scrolled .logo-wrap {
  box-shadow: var(--shadow-card);
}

.site-footer .logo-wordmark {
  color: var(--text);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 0.5rem 1rem !important;
  color: var(--text) !important;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.nav-cta:hover {
  background: var(--bg-subtle);
  border-color: var(--border-strong);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

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

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

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 0.5rem 1.25rem 1rem;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
}

.mobile-nav[hidden] {
  display: none !important;
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  padding: 0.875rem 0;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  background: var(--bg-light);
  color: var(--text);
  overflow: hidden;
}

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

.hero .hero-grid {
  background-image:
    linear-gradient(rgba(20, 28, 36, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 28, 36, 0.06) 1px, transparent 1px);
}

.hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% -5%, rgba(61, 159, 212, 0.08), transparent 55%),
    radial-gradient(ellipse 45% 40% at 85% 60%, rgba(232, 116, 26, 0.06), transparent 50%),
    radial-gradient(ellipse 35% 30% at 5% 70%, rgba(61, 159, 212, 0.05), transparent 45%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}

.hero-glow--blue {
  width: 420px;
  height: 420px;
  top: -8%;
  right: 5%;
  background: rgba(61, 159, 212, 0.12);
}

.hero-glow--orange {
  width: 320px;
  height: 320px;
  bottom: 10%;
  left: -5%;
  background: rgba(232, 116, 26, 0.08);
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr 1.05fr;
    gap: 2.5rem;
    align-items: center;
  }
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1.25rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.35rem, 5.5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--text);
}

.hero-lead {
  margin: 0 0 2rem;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.375rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--text);
  color: #fff;
}

.btn-primary:hover {
  background: #2a3540;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  background: var(--bg-muted);
  border-color: var(--text-muted);
}

.btn-large {
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stat-card {
  padding: 1.125rem 1rem;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.stat-value {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.stat-label {
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--text-muted);
}

/* Hero banner image */
.hero-visual {
  margin-top: 2.5rem;
}

@media (min-width: 900px) {
  .hero-visual {
    margin-top: 0;
  }
}

.hero-banner {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card-hover);
  background: var(--bg-light);
}

.hero-banner-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center bottom;
}

/* Sections */
.section {
  position: relative;
  padding: 5.5rem 0;
}

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

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

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

.section-bg--dark {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.section-bg--dark .hero-grid {
  opacity: 0.7;
}

.section-head {
  margin-bottom: 2.5rem;
  max-width: 36rem;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
  max-width: 40rem;
}

.section-head--center .section-intro {
  margin-inline: auto;
}

.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-blue-deep);
  margin-bottom: 0.75rem;
}

.section-label--light {
  color: #7ec8ea;
}

.section h2 {
  margin: 0;
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-intro {
  margin: 1rem 0 0;
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.section-intro--light {
  color: var(--text-dark-muted);
}

/* Vision */
.vision-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .vision-grid {
    grid-template-columns: 1.15fr 1fr;
    gap: 3rem;
    align-items: start;
  }
}

.vision-lead {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.vision-quote {
  margin: 0;
  padding: 1.75rem 2rem;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand-orange);
  box-shadow: var(--shadow-card);
}

.vision-quote p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* Cards */
.cards {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  padding: 1.75rem;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.card--featured {
  border-color: rgba(61, 159, 212, 0.35);
  background: linear-gradient(180deg, #fff 0%, #f8fbfd 100%);
}

.card-icon {
  width: 1.5rem;
  height: 1.5rem;
  margin-bottom: 1.25rem;
}

.card:nth-child(1) .card-icon {
  color: var(--brand-orange);
}

.card:nth-child(2) .card-icon {
  color: var(--brand-blue);
}

.card:nth-child(3) .card-icon {
  color: var(--text-muted);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Approach */
.approach-inner {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .approach-inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
  }
}

.approach-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.approach-list li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.approach-list li:last-child {
  border-bottom: none;
}

.approach-num {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand-blue);
  letter-spacing: 0.02em;
}

.approach-list strong {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.approach-list div {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.pillar-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pillar-card {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1.125rem 1.25rem;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 500;
  box-shadow: var(--shadow-card);
}

.pillar-card--accent {
  border-color: rgba(61, 159, 212, 0.3);
  background: linear-gradient(90deg, #fff, #f5fafd);
}

.pillar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pillar-dot--orange {
  background: var(--brand-orange);
}

.pillar-dot--blue {
  background: var(--brand-blue);
}

/* Impact */
.impact-banner {
  padding: 2rem 2.5rem;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.impact-statement {
  margin: 0;
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Contact */
.contact-inner {
  text-align: center;
  max-width: 32rem;
  margin-inline: auto;
  padding: 2rem;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.contact-inner h2 {
  margin: 0.5rem 0 0.75rem;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.contact-inner > p {
  margin: 0 auto 1.5rem;
  color: var(--text-secondary);
}

.contact-note {
  margin-top: 1.25rem !important;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg-muted);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.footer-tagline {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-copy {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

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

/* Responsive */
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

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

  .section {
    padding: 4rem 0;
  }

  .impact-banner,
  .contact-inner {
    padding: 1.5rem;
  }
}
