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

:root {
  --color-bg: #050810;
  --color-bg-alt: #0c1424;
  --color-surface: #111827;
  --color-accent: #1d9bf0;
  --color-accent-soft: rgba(29, 155, 240, 0.09);
  --color-border: rgba(148, 163, 184, 0.35);
  --color-text: #e5e7eb;
  --color-text-soft: #9ca3af;
  --color-white: #ffffff;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.8);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #1d283a 0, #020617 55%);
  color: var(--color-text);
}

/* Layout */
.container {
  width: min(1120px, 100% - 3rem);
  margin-inline: auto;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.78), transparent);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

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

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

.brand-logo {
  width: 46px;
  height: auto;
  object-fit: contain;
}

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

.brand-name {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--color-text-soft);
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  position: relative;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--color-text-soft);
  padding-block: 0.35rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, #22d3ee, #1d9bf0);
  transition: width 0.18s ease-out;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

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

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  padding: 0.35rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--color-text);
}

/* Hero */
.hero {
  padding-block: 3.5rem 3.25rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2.75rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.15rem, 2.3rem + 0.6vw, 2.7rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.lead {
  color: var(--color-text);
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 34rem;
}

.hero-text p {
  font-size: 0.95rem;
  color: var(--color-text-soft);
  max-width: 34rem;
}

.hero-text p + p {
  margin-top: 0.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.14s ease-out, box-shadow 0.14s ease-out, background 0.14s ease-out, border-color 0.14s ease-out, color 0.14s ease-out;
}

.btn.primary {
  background: linear-gradient(135deg, #22d3ee, #1d9bf0);
  color: #020617;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.55);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.7);
}

.btn.secondary {
  background: rgba(15, 118, 110, 0.1);
  border-color: rgba(45, 212, 191, 0.4);
  color: #a5f3fc;
}

.btn.secondary:hover {
  background: rgba(45, 212, 191, 0.14);
}

.btn.ghost {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.6);
  color: var(--color-text-soft);
}

.btn.ghost:hover {
  border-color: rgba(148, 163, 184, 0.9);
  color: var(--color-text);
}

/* Hero side panel */
.hero-panel {
  background: radial-gradient(circle at top, #1f2937 0, #020617 70%);
  border-radius: 26px;
  border: 1px solid rgba(148, 163, 184, 0.38);
  padding: 1.25rem 1.35rem 1.4rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 200deg, rgba(56, 189, 248, 0.2), transparent, rgba(59, 130, 246, 0.2), transparent);
  opacity: 0.65;
  filter: blur(22px);
  transform: translate3d(0, 0, 0);
  pointer-events: none;
}

.hero-panel > * {
  position: relative;
  z-index: 1;
}

.stat-card {
  background: rgba(15, 23, 42, 0.96);
  border-radius: 20px;
  padding: 1.1rem 1.1rem 1.0rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.stat-card h2 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

.stat-card p {
  font-size: 0.88rem;
  color: var(--color-text-soft);
  margin: 0;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.95rem;
}

.pill {
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
  color: #cbd5f5;
  background: linear-gradient(to right, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.75));
}

/* Sections */
.section {
  padding-block: 2.75rem;
}

.section-muted {
  background: radial-gradient(circle at top, #020617 0, #020617 40%, #020617 100%);
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.section-title {
  font-size: 1.35rem;
  margin-bottom: 0.2rem;
}

.section-intro {
  font-size: 0.95rem;
  color: var(--color-text-soft);
  max-width: 34rem;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 1.75rem;
}

.info-card {
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.24), rgba(15, 23, 42, 0.98));
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.15rem 1.15rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: 0 20px 32px rgba(15, 23, 42, 0.85);
}

.info-card h3 {
  font-size: 0.98rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.info-card p {
  font-size: 0.9rem;
  color: var(--color-text-soft);
  margin: 0;
}

/* CTA strip */
.cta-strip {
  border-top: 1px solid rgba(148, 163, 184, 0.28);
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
  background: radial-gradient(circle at center, #020617 0, #020617 55%, #020617 100%);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.9rem;
}

.cta-inner h2 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
}

.cta-inner p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-soft);
}

/* Page hero */
.page-hero {
  padding-block: 2.75rem 1.75rem;
}

.page-hero h1 {
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
}

/* Two-column */
.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.two-column h2 {
  margin-top: 0;
}

.two-column p {
  font-size: 0.94rem;
  color: var(--color-text-soft);
}

/* Values list */
.values-list {
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 0;
}

.values-list li {
  margin-bottom: 0.6rem;
  font-size: 0.92rem;
  color: var(--color-text-soft);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 2rem;
}

.contact-note {
  font-size: 0.85rem;
  color: var(--color-text-soft);
  margin-top: 0.75rem;
}

.contact-form {
  background: linear-gradient(to bottom right, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.96));
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.1rem 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow: var(--shadow-soft);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.8rem;
}

.form-row label {
  font-size: 0.8rem;
  color: var(--color-text-soft);
}

.form-row input,
.form-row textarea {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
  color: var(--color-text);
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
  font-family: inherit;
}

.form-row textarea {
  border-radius: 14px;
  min-height: 140px;
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.45);
}

/* Sitemap list */
.sitemap-list {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
}

.sitemap-list li {
  margin-bottom: 0.4rem;
}

.sitemap-list a {
  color: var(--color-accent);
  text-decoration: none;
  font-size: 0.92rem;
}

.sitemap-list a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  margin-top: 2.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.96);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.1rem;
}

.footer-brand {
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-meta {
  font-size: 0.78rem;
  color: var(--color-text-soft);
  margin-top: 0.2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  font-size: 0.8rem;
}

.footer-links a {
  color: var(--color-text-soft);
  text-decoration: none;
}

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

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding-block: 0.7rem;
  text-align: center;
  font-size: 0.76rem;
  color: var(--color-text-soft);
}

/* Responsive */
@media (max-width: 840px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .hero-panel {
    order: -1;
  }

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

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

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

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

@media (max-width: 640px) {
  .container {
    width: min(100% - 2rem, 100%);
  }

  .hero {
    padding-block: 2.5rem 2.4rem;
  }

  .page-hero {
    padding-block: 2.2rem 1.3rem;
  }

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

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

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

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    padding-inline: 1.5rem;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    background: rgba(15, 23, 42, 0.98);
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 0.65rem 0.9rem 0.7rem;
    margin-top: 0.45rem;
    transform-origin: top;
    transform: scaleY(0.7);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease-out, transform 0.16s ease-out;
  }

  .nav-links.show {
    opacity: 1;
    transform: scaleY(1);
    pointer-events: auto;
  }
}

/* Theme toggle button */
.theme-toggle {
  margin-left: 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.85);
  color: var(--color-text-soft);
  font-size: 0.75rem;
  padding: 0.25rem 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: background 0.16s ease-out, border-color 0.16s ease-out, color 0.16s ease-out, transform 0.12s ease-out;
}

.theme-toggle:hover {
  background: rgba(15, 23, 42, 1);
  border-color: rgba(148, 163, 184, 0.9);
  color: var(--color-text);
  transform: translateY(-0.5px);
}

.theme-toggle-icon {
  font-size: 0.85rem;
}

/* Centered footer copy */
.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding-block: 0.7rem;
  text-align: center;
}

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

/* Logo subtle glow animation */
.brand-logo {
  width: 46px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.35));
  transition: filter 0.22s ease-out, transform 0.18s ease-out;
}

.brand:hover .brand-logo {
  filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.75));
  transform: translateY(-1px);
}

/* Fade-up animations for hero and cards */
.hero-text,
.hero-panel {
  animation: fadeUp 0.7s ease-out both;
}

.hero-panel {
  animation-delay: 0.12s;
}

.info-card {
  animation: fadeUp 0.7s ease-out both;
}

.info-card:nth-child(2) {
  animation-delay: 0.06s;
}

.info-card:nth-child(3) {
  animation-delay: 0.12s;
}

.info-card:nth-child(4) {
  animation-delay: 0.18s;
}

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

/* Status modal for contact result */
.status-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  z-index: 80;
  transition: opacity 0.18s ease-out;
}

.status-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.status-modal-inner {
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.32), rgba(15, 23, 42, 0.98));
  border-radius: 18px;
  padding: 1.35rem 1.3rem 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  max-width: 480px;
  width: min(100% - 2rem, 480px);
  box-shadow: 0 24px 40px rgba(15, 23, 42, 0.9);
}

.status-modal-inner h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.status-modal-inner p {
  font-size: 0.9rem;
  color: var(--color-text-soft);
}

.status-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1rem;
}

.status-modal-close {
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.95);
  color: var(--color-text-soft);
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  cursor: pointer;
}

/* Turnstile wrapper */
.cf-turnstile-wrapper {
  margin-top: 0.25rem;
}

.captcha-note {
  font-size: 0.76rem;
  color: var(--color-text-soft);
  margin-top: 0.35rem;
}

/* Responsive adjustments for header controls */
@media (max-width: 640px) {
  .theme-toggle {
    margin-left: 0.5rem;
    padding-inline: 0.55rem;
  }

  .header-inner {
    align-items: center;
  }
}

/* Light theme overrides */
body[data-theme="light"] {
  --color-bg: #f3f4f6;
  --color-bg-alt: #e5e7eb;
  --color-surface: #ffffff;
  --color-accent: #1d4ed8;
  --color-accent-soft: rgba(59, 130, 246, 0.08);
  --color-border: rgba(148, 163, 184, 0.5);
  --color-text: #111827;
  --color-text-soft: #4b5563;
  --color-white: #ffffff;
  background: radial-gradient(circle at top, #e5e7eb 0, #f9fafb 55%);
  color: var(--color-text);
}

body[data-theme="light"] .site-header {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), rgba(249, 250, 251, 0.85), transparent);
  border-bottom-color: rgba(148, 163, 184, 0.4);
}

body[data-theme="light"] .hero-panel,
body[data-theme="light"] .info-card,
body[data-theme="light"] .contact-form {
  background: #ffffff;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.12);
}

body[data-theme="light"] .site-footer {
  background: #f9fafb;
}
