:root {
  --bg-main: #050814;
  --bg-elevated: rgba(16, 24, 40, 0.85);
  --bg-alt: #070b1b;
  --border-subtle: rgba(148, 163, 184, 0.25);
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.14);
  --accent-strong: #0ea5e9;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --text-soft: #6b7280;
  --danger: #fb7185;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-soft: 0 24px 60px rgba(15, 23, 42, 0.75);
}

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

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top, #0b1120 0, #020617 55%, #000 100%);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

main {
  background: radial-gradient(
    circle at 0% 0%,
    rgba(56, 189, 248, 0.06),
    transparent 55%
  );
}

.bg-glass {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.navbar-brand {
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: radial-gradient(circle at 10% 10%, #38bdf8, #0f172a);
  color: #e5e7eb;
  font-weight: 700;
  font-size: 0.9rem;
}

.nav-link {
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-link.active,
.nav-link:focus,
.nav-link:hover {
  color: var(--accent) !important;
}

.hero-section {
  padding-top: 120px;
  padding-bottom: 96px;
}

.hero-title {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(2.5rem, 3.6vw, 3.75rem);
  line-height: 1.05;
}

.gradient-text {
  background: linear-gradient(120deg, #38bdf8, #a855f7, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  max-width: 34rem;
  color: var(--text-muted);
}

.hero-meta .meta-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-soft);
}

.hero-meta .meta-value {
  font-size: 0.95rem;
  color: var(--text-main);
}

.hero-visual {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1.4rem 1.5rem;
}

.glass-surface {
  background: radial-gradient(
      circle at top left,
      rgba(56, 189, 248, 0.16),
      transparent 50%
    ),
    rgba(15, 23, 42, 0.9);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

.hero-visual-subtitle {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.hero-visual-body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.1rem;
  align-items: stretch;
}

.hero-metric-card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero-metric-card.small {
  padding: 0.8rem 0.9rem;
}

.metric-value {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.metric-helper {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-metric-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.hero-code-card {
  border-radius: 1rem;
  border: 1px solid rgba(56, 189, 248, 0.6);
  background: radial-gradient(
      circle at top,
      rgba(56, 189, 248, 0.22),
      transparent 55%
    ),
    #020617;
  padding: 0.85rem 0.9rem;
  font-family: "Space Grotesk", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.78rem;
}

.hero-code-filename {
  font-size: 0.75rem;
  color: var(--text-soft);
}

.hero-code-snippet {
  margin: 0;
  white-space: pre-wrap;
  color: var(--text-main);
}

.hero-code-snippet code {
  background: transparent;
  padding: 0;
}

.hero-visual-header .badge-tech {
  font-size: 0.7rem;
  border-radius: 999px;
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  border: none;
  border-radius: 999px;
  box-shadow: 0 18px 35px rgba(56, 189, 248, 0.35);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(120deg, var(--accent-strong), #22d3ee);
  box-shadow: 0 22px 45px rgba(56, 189, 248, 0.5);
}

.btn-outline-light {
  border-radius: 999px;
  border-color: rgba(148, 163, 184, 0.7);
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.6);
  cursor: pointer;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(15, 23, 42, 0.9);
}

.section-padding {
  padding: 80px 0;
}

.section-alt {
  background: radial-gradient(
      circle at 100% 0%,
      rgba(129, 140, 248, 0.12),
      transparent 55%
    ),
    var(--bg-alt);
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-title {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(1.6rem, 2.2vw, 2rem);
}

.section-subtitle {
  max-width: 32rem;
  color: var(--text-muted);
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.feature-card {
  border-radius: var(--radius-md);
  transition: transform 160ms ease, box-shadow 160ms ease,
    border-color 160ms ease, background 160ms ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(56, 189, 248, 0.6);
  background: radial-gradient(
      circle at top left,
      rgba(56, 189, 248, 0.2),
      transparent 60%
    ),
    rgba(15, 23, 42, 0.98);
}

.feature-card .card-text {
  color: var(--text-muted);
}

.card {
  background-color: transparent;
  color: var(--text-main);
}

.card-title {
  font-family: "Space Grotesk", system-ui, sans-serif;
}

.badge-tech {
  --bs-badge-padding-x: 0.6rem;
  --bs-badge-padding-y: 0.3rem;
  --bs-badge-border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: var(--text-muted);
  font-weight: 400;
}

.badge-tech.accent {
  background: var(--accent-soft);
  border-color: rgba(56, 189, 248, 0.7);
  color: var(--accent);
}

.role-card {
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: radial-gradient(
      circle at top left,
      rgba(56, 189, 248, 0.18),
      transparent 55%
    ),
    rgba(15, 23, 42, 0.96);
  transition: transform 160ms ease, border-color 160ms ease,
    box-shadow 160ms ease;
  position: relative;
  overflow: hidden;
}

.role-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 0% 0%,
    rgba(56, 189, 248, 0.12),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events: none;
}

.role-card:hover::before {
  opacity: 1;
}

.role-card .card-body {
  position: relative;
  z-index: 1;
}

.role-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.8);
  box-shadow: var(--shadow-soft);
}

.role-level {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-soft);
}

.role-meta {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.role-skills {
  gap: 0.35rem;
}

.leader-card {
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: radial-gradient(
      circle at top left,
      rgba(56, 189, 248, 0.16),
      transparent 55%
    ),
    rgba(15, 23, 42, 0.96);
  transition: transform 160ms ease, border-color 160ms ease,
    box-shadow 160ms ease;
}

.leader-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: var(--shadow-soft);
}

.leader-avatar {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.55);
  background: rgba(2, 6, 23, 0.8);
  flex: 0 0 auto;
}

.leader-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-soft);
}

.leader-links {
  font-size: 0.82rem;
}

.leader-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: var(--text-muted);
  text-decoration: none;
  background: rgba(15, 23, 42, 0.65);
  transition: border-color 160ms ease, color 160ms ease,
    background 160ms ease, transform 160ms ease;
}

.leader-link:hover {
  border-color: rgba(56, 189, 248, 0.75);
  color: var(--accent);
  background: rgba(15, 23, 42, 0.95);
  transform: translateY(-1px);
}

.leader-link:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.7);
  outline-offset: 3px;
}

.step-card {
  padding: 1.6rem 1.4rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.98);
}

.step-index {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7rem;
}

.section-alt .step-card {
  background: rgba(15, 23, 42, 0.92);
}

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

.form-control,
.form-select {
  background-color: rgba(15, 23, 42, 0.95);
  border-radius: 0.9rem;
  border-color: rgba(148, 163, 184, 0.6);
  color: var(--text-main);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.4);
  background-color: rgba(15, 23, 42, 0.98);
}

.form-control::placeholder {
  color: var(--text-soft);
}

.contact-list {
  color: var(--text-muted);
}

.contact-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-soft);
}

.contact-list a {
  color: var(--accent);
  text-decoration: none;
}

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

.text-muted {
  color: var(--text-soft) !important;
}

footer {
  background: rgba(15, 23, 42, 0.96);
}

.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

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

@media (max-width: 991.98px) {
  .hero-section {
    padding-top: 96px;
  }

  .glass-surface {
    border-radius: 18px;
  }

  .section-padding {
    padding: 64px 0;
  }
}

@media (max-width: 767.98px) {
  .hero-visual-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .leader-links {
    width: 100%;
  }
}

.tech-section {
  padding: 60px 20px;
  background: transparent;
  text-align: center;
}

.tech-section h2 {
  font-size: 2rem;
  margin-bottom: 30px;
}

.tech-marquee {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.tech-track {
  display: flex;
  width: max-content;
  animation: scroll 25s linear infinite;
}

.tech-marquee:hover .tech-track {
  animation-play-state: paused;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  margin: 0 10px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;

  color: #e5e7eb;

  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.tech-item img {
  width: 20px;
  height: 20px;
}

/* Animation */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .tech-item {
    font-size: 12px;
    padding: 8px 15px;
  }

  .tech-item img {
    width: 16px;
    height: 16px;
  }
}
