@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(10, 18, 32, 0.82);
  --panel-border: rgba(148, 163, 184, 0.14);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --brand: #38bdf8;
  --accent: #22c55e;
  --danger: #f87171;
  --success: #34d399;
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.45);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 34%),
    radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.12), transparent 24%),
    var(--bg);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black, transparent 85%);
  z-index: -1;
}

::selection {
  background: rgba(56, 189, 248, 0.24);
  color: white;
}

.glass-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.glow-border {
  position: relative;
}

.glow-border::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(56, 189, 248, 0.58),
    rgba(34, 197, 94, 0.28),
    rgba(148, 163, 184, 0.1)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.18);
  background: rgba(8, 17, 31, 0.75);
  padding: 0.45rem 0.9rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.section-title {
  font-size: clamp(1.75rem, 1.2rem + 1.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-lead {
  color: var(--muted);
  max-width: 52rem;
}

.brand-gradient {
  background: linear-gradient(135deg, #7dd3fc 0%, #38bdf8 42%, #22c55e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.accent-line {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0), rgba(56, 189, 248, 0.9), rgba(34, 197, 94, 0));
  height: 1px;
  width: 100%;
}

.nav-link {
  position: relative;
  color: #cbd5e1;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: white;
}

.nav-link.active::after,
.nav-link:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.5rem;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.9), rgba(34, 197, 94, 0.88));
  color: #041120;
  font-weight: 700;
  padding: 0.95rem 1.4rem;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
  box-shadow: 0 14px 30px rgba(34, 197, 94, 0.18);
}

.button-primary:hover {
  transform: translateY(-2px);
  opacity: 0.96;
}

.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.65);
  color: white;
  font-weight: 600;
  padding: 0.95rem 1.4rem;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.button-secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(15, 23, 42, 0.82);
}

.metric-card strong {
  font-size: 2rem;
  line-height: 1;
}

.surface-muted {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.55), rgba(8, 17, 31, 0.92));
}

.post-card,
.service-card,
.timeline-card,
.stack-card,
.faq-card {
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease;
}

.post-card:hover,
.service-card:hover,
.timeline-card:hover,
.stack-card:hover,
.faq-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 20px 48px rgba(2, 6, 23, 0.55);
}

.form-field {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(8, 17, 31, 0.72);
  color: white;
  padding: 0.95rem 1rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.form-field:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.62);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
  background: rgba(8, 17, 31, 0.92);
}

.field-error {
  color: var(--danger);
  font-size: 0.9rem;
  margin-top: 0.45rem;
}

.form-status {
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(52, 211, 153, 0.25);
  background: rgba(3, 105, 161, 0.12);
  color: #d1fae5;
}

.form-status.error {
  border-color: rgba(248, 113, 113, 0.3);
  background: rgba(127, 29, 29, 0.22);
  color: #fecaca;
}

.article-hero {
  position: relative;
  overflow: hidden;
}

.article-hero::before {
  content: "";
  position: absolute;
  inset: auto -2rem -4rem auto;
  width: 16rem;
  height: 16rem;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22), transparent 70%);
}

.prose-custom {
  color: #dbe4f0;
  font-size: 1.05rem;
  line-height: 1.85;
}

.prose-custom h2,
.prose-custom h3,
.prose-custom h4 {
  color: white;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.prose-custom h2 {
  margin-top: 2.5rem;
  font-size: 1.85rem;
  font-weight: 800;
}

.prose-custom h3 {
  margin-top: 1.85rem;
  font-size: 1.35rem;
  font-weight: 700;
}

.prose-custom p,
.prose-custom ul,
.prose-custom ol,
.prose-custom pre,
.prose-custom blockquote {
  margin-top: 1.1rem;
}

.prose-custom ul,
.prose-custom ol {
  padding-left: 1.2rem;
}

.prose-custom li + li {
  margin-top: 0.45rem;
}

.prose-custom a {
  color: #7dd3fc;
  text-decoration: underline;
  text-decoration-color: rgba(56, 189, 248, 0.36);
  text-underline-offset: 4px;
}

.prose-custom code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.92em;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.18);
  padding: 0.15rem 0.35rem;
  border-radius: 0.45rem;
  color: #e2e8f0;
}

.prose-custom pre {
  overflow-x: auto;
  padding: 1.1rem 1.2rem;
  border-radius: 1rem;
  background: #020617;
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.prose-custom pre code {
  background: transparent;
  border: 0;
  padding: 0;
}

.prose-custom blockquote {
  border-left: 4px solid rgba(56, 189, 248, 0.55);
  padding: 0.2rem 0 0.2rem 1rem;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.45);
  border-radius: 0 0.9rem 0.9rem 0;
}

.code-window {
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.85);
}

.code-window-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.code-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.32);
}

.hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.45;
  pointer-events: none;
}

.hero-orb.blue {
  width: 18rem;
  height: 18rem;
  top: -4rem;
  left: -4rem;
  background: rgba(56, 189, 248, 0.35);
}

.hero-orb.green {
  width: 16rem;
  height: 16rem;
  right: -3rem;
  bottom: -3rem;
  background: rgba(34, 197, 94, 0.28);
}

.table-responsive {
  overflow-x: auto;
}

.simple-table {
  width: 100%;
  border-collapse: collapse;
}

.simple-table th,
.simple-table td {
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  padding: 0.9rem 0.75rem;
  text-align: left;
}

.simple-table th {
  color: white;
  font-size: 0.92rem;
}

.simple-table td {
  color: #cbd5e1;
}

.callout {
  border-radius: 1.2rem;
  border: 1px solid rgba(34, 197, 94, 0.18);
  background: rgba(8, 17, 31, 0.72);
  padding: 1.2rem 1.25rem;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(8, 17, 31, 0.72);
  color: #cbd5e1;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.filter-chip:hover,
.filter-chip.active {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.38);
  color: white;
}

.faq-answer[hidden] {
  display: none;
}

.footer-link {
  color: #cbd5e1;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: white;
}

.notice-box {
  border-radius: 1.2rem;
  border: 1px solid rgba(56, 189, 248, 0.18);
  background: rgba(8, 17, 31, 0.8);
  padding: 1.2rem 1.25rem;
}

.kicker {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7dd3fc;
}

.login-grid {
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.08), transparent),
    linear-gradient(225deg, rgba(34, 197, 94, 0.07), transparent),
    rgba(8, 17, 31, 0.75);
}

@media (max-width: 767px) {
  .nav-link.active::after,
  .nav-link:hover::after {
    bottom: -0.25rem;
  }

  .section-title {
    letter-spacing: -0.04em;
  }

  .prose-custom {
    font-size: 1rem;
  }
}
