:root {
  color-scheme: dark;
  font-family: 'Inter', system-ui, sans-serif;
  background: #070b16;
  color: #e5e7eb;
  --surface: rgba(17, 10, 32, 0.96);
  --surface-strong: rgba(10, 6, 22, 0.98);
  --accent: #a855f7;
  --accent-2: #c084fc;
  --border: rgba(148, 163, 184, 0.18);
  --shadow: 0 32px 120px rgba(7, 11, 22, 0.48);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  background: radial-gradient(circle at top, rgba(168, 85, 247, 0.14), transparent 25%),
    radial-gradient(circle at 15% 15%, rgba(192, 132, 252, 0.12), transparent 22%),
    linear-gradient(180deg, #07020f 0%, #090913 100%);
  color: #e2e8f0;
}

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

button,
input,
textarea {
  font: inherit;
}

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

.page-shell {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  background: rgba(11, 6, 32, 0.92);
  border-bottom: 1px solid rgba(168, 85, 247, 0.18);
}

.hero-visual {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}

.hero-visual .visual-card {
  position: relative;
  z-index: 1;
}

.hero-visual::before,
.hero-visual::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-visual::before {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.18), transparent 60%);
  top: -40px;
  right: -20px;
}

.hero-visual::after {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(192, 132, 252, 0.15), transparent 65%);
  bottom: -30px;
  left: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 1.2rem;
}

.brand-logo {
  width: 42px;
  height: 42px;
  display: block;
}

.brand-text {
  display: inline-block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.menu-toggle {
  display: none;
}

.site-nav a {
  color: #d1d5db;
}

.btn-outline,
.btn-primary,
.btn-secondary {
  border-radius: 999px;
  padding: 0.9rem 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-outline {
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.btn-primary {
  background: linear-gradient(135deg, #a855f7 0%, #c084fc 100%);
  color: #ffffff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

.site-nav a:hover,
.btn-outline:hover,
.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-1px);
  color: var(--accent);
}

.btn-outline:hover {
  border-color: var(--accent);
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 4rem 2rem 2rem;
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #60a5fa;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(3rem, 4vw, 4.5rem);
  line-height: 0.95;
  margin: 0;
  max-width: 11ch;
}

.hero p {
  margin: 1.5rem 0 2rem;
  max-width: 38rem;
  color: #cbd5e1;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  min-height: 420px;
}

.hero-visual::before {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.18), transparent 60%);
  top: -60px;
  right: 10px;
  z-index: 0;
}

.hero-visual::after {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192, 132, 252, 0.12), transparent 60%);
  bottom: -40px;
  left: 20px;
  z-index: 0;
}

.visual-card {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(168, 85, 247, 0.16);
  border-radius: 2rem;
  padding: 2rem;
  background: radial-gradient(circle at top left, rgba(168, 85, 247, 0.18), transparent 30%),
    rgba(15, 10, 32, 0.96);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
  z-index: 1;
  animation: float-card 8s ease-in-out infinite;
}

.visual-tag {
  display: inline-flex;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.22);
  color: #f5d0fe;
  font-size: 0.9rem;
  width: fit-content;
}

.visual-body h2 {
  margin: 0;
  font-size: 2rem;
  color: #f8fafc;
}

.visual-body p {
  margin: 1rem 0 0;
  color: #cbd5e1;
  line-height: 1.75;
}

.stats-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 1240px;
  margin: 2rem auto 0;
  padding: 0 2rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 1.5rem;
  padding: 1.8rem;
  text-align: center;
}

.stat-card h3 {
  margin: 0;
  font-size: 2.4rem;
  color: #e2e8f0;
}

.stat-card p {
  margin: 0.7rem 0 0;
  color: #94a3b8;
}

.services-section,
.about-section,
.contact-section,
.about-page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.impact-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.impact-card {
  background: rgba(17, 10, 32, 0.94);
  border: 1px solid rgba(168, 85, 247, 0.16);
  border-radius: 1.75rem;
  padding: 2rem;
  min-height: 220px;
  display: grid;
  gap: 1rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  animation: float-card 9s ease-in-out infinite;
}

.impact-card:hover {
  transform: translateY(-6px);
  border-color: rgba(192, 132, 252, 0.36);
  box-shadow: 0 24px 80px rgba(168, 85, 247, 0.18);
}

.impact-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.18);
  color: #f5d0fe;
  font-weight: 700;
}

.impact-card h3 {
  margin: 0;
}

.impact-card p {
  margin: 0;
  color: #cbd5e1;
}

.section-header {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.section-label {
  color: var(--accent);
  letter-spacing: 0.16em;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.services-section h2,
.about-section h2,
.about-page h1,
.contact-section h2 {
  margin: 0;
  font-size: clamp(2.2rem, 3vw, 3rem);
  line-height: 1.05;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.service-card {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid;
  border-radius: 1.5rem;
  padding: 2rem;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: float-card 10s ease-in-out infinite;
}

.service-card:nth-child(2) {
  animation-delay: 0.8s;
}

.service-card:nth-child(4) {
  animation-delay: 1.2s;
}

.service-card:nth-child(6) {
  animation-delay: 1.4s;
}

.service-card:nth-child(8) {
  animation-delay: 1.8s;
}

.service-card h3 {
  margin: 0;
  color: #f8fafc;
}

.service-card p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.75;
  flex: 1;
}

.about-section {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
}

.about-highlight {
  display: grid;
  place-items: center;
}

.highlight-panel {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 2rem;
  padding: 2rem;
  width: 100%;
}

.highlight-panel span {
  color: #7dd3fc;
  font-weight: 700;
}

.highlight-panel ul {
  margin: 1.5rem 0 0;
  padding-left: 1.1rem;
  color: #cbd5e1;
  line-height: 1.85;
}

.highlight-panel li {
  margin-bottom: 0.85rem;
}

.contact-section {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
}

.contact-left p,
.about-copy p,
.about-page-inner p {
  line-height: 1.8;
  color: #cbd5e1;
}

.contact-details {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-details div {
  background: rgba(15, 23, 42, 0.94);
  padding: 1rem 1.2rem;
  border-radius: 1.3rem;
}

.contact-details strong {
  display: block;
  margin-bottom: 0.3rem;
  color: #e2e8f0;
}

.contact-form-card {
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 2rem;
  padding: 2rem;
}

label {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
  color: #cbd5e1;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 1rem;
  padding: 1rem 1rem;
  background: rgba(15, 23, 42, 0.9);
  color: #e2e8f0;
}

textarea {
  resize: vertical;
}

button[type="submit"] {
  width: 100%;
  border: none;
  cursor: pointer;
}

.flash-grid {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.flash {
  border-radius: 1rem;
  padding: 1rem 1.2rem;
  font-weight: 600;
}

.flash.success {
  background: rgba(34, 197, 94, 0.18);
  color: #d1fae5;
}

.flash.error {
  background: rgba(248, 113, 113, 0.15);
  color: #fee2e2;
}

.about-page-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2rem;
  align-items: start;
}

.about-page-card {
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 2rem;
  padding: 2rem;
}

.about-page-card h2 {
  margin-top: 0;
}

.about-facts {
  display: grid;
  gap: 1rem;
  margin-top: 1.7rem;
}

.about-facts div {
  background: rgba(15, 23, 42, 0.9);
  padding: 1rem 1.2rem;
  border-radius: 1.3rem;
}

.about-facts strong {
  display: block;
  margin-bottom: 0.4rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.8rem 2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  background: rgba(5, 8, 20, 0.88);
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #cbd5e1;
}

@media (max-width: 960px) {
  .hero,
  .about-section,
  .contact-section,
  .about-page-inner {
    grid-template-columns: 1fr;
  }

  .stats-panel,
  .impact-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hidden-reveal {
  opacity: 0;
  transform: translateY(30px);
  visibility: hidden;
}

.hidden-reveal.reveal {
  visibility: visible;
  animation: fadeInUp 0.8s ease-out forwards;
}

.service-card.hidden-reveal,
.impact-card.hidden-reveal,
.stat-card.hidden-reveal {
  animation: none;
}

.service-card.reveal,
.impact-card.reveal,
.stat-card.reveal {
  animation: fadeInUp 0.6s ease-out forwards;
}

.service-card:nth-child(1).reveal,
.impact-card:nth-child(1).reveal,
.stat-card:nth-child(1).reveal {
  animation-delay: 0.1s;
}

.service-card:nth-child(2).reveal,
.impact-card:nth-child(2).reveal,
.stat-card:nth-child(2).reveal {
  animation-delay: 0.2s;
}

.service-card:nth-child(3).reveal,
.impact-card:nth-child(3).reveal,
.stat-card:nth-child(3).reveal {
  animation-delay: 0.3s;
}

.service-card:nth-child(4).reveal {
  animation-delay: 0.4s;
}

.service-card:nth-child(5).reveal {
  animation-delay: 0.5s;
}

.service-card:nth-child(6).reveal {
  animation-delay: 0.6s;
}

.service-card:nth-child(7).reveal {
  animation-delay: 0.7s;
}

.service-card:nth-child(8).reveal {
  animation-delay: 0.8s;
}

@media (max-width: 720px) {
  .site-header {
    position: relative;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    padding: 1.2rem 1.4rem;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 11;
  }

  .menu-toggle span {
    width: 24px;
    height: 2px;
    background: #c084fc;
    border-radius: 999px;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(14px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0.8);
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-14px);
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, rgba(10, 6, 22, 0.98) 0%, rgba(17, 10, 32, 0.96) 100%);
    backdrop-filter: blur(24px);
    border-left: 1px solid rgba(168, 85, 247, 0.18);
    padding-top: 80px;
    padding-left: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: right 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
  }

  .site-nav.active {
    right: 0;
  }

  .site-nav a {
    font-size: 1.1rem;
    font-weight: 600;
    display: inline-block;
  }

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

  .hero {
    padding-top: 2.5rem;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    width: 100%;
  }

  .hero h1 {
    font-size: 2.7rem;
    max-width: 100%;
  }

  .hero p {
    max-width: 100%;
  }

  .hero-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .site-nav,
  .hero-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .site-nav a,
  .btn-outline,
  .btn-primary,
  .btn-secondary {
    width: auto;
  }

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

  .hero-visual {
    min-height: 320px;
  }

  .impact-grid,
  .service-grid,
  .stats-panel {
    grid-template-columns: 1fr;
  }
}
