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

:root {
  --dc-bg: #050810;
  --dc-bg-alt: #0c101a;
  --dc-border-subtle: rgba(255, 255, 255, 0.06);
  --dc-fg: #f8fafc;
  --dc-muted: #9ca3af;
  --dc-accent: #38bdf8;
  --dc-accent-soft: rgba(56, 189, 248, 0.12);
  --dc-radius-lg: 16px;
  --dc-radius-md: 10px;
  --dc-radius-pill: 999px;
  --dc-shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.6);
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  background-color: var(--dc-bg);
  color: var(--dc-fg);
}

body {
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

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

/* Layout */
.dc-container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.dc-section {
  padding: 4.5rem 0;
}

.dc-section.dc-alt {
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.09), transparent 55%),
    linear-gradient(to bottom, #050712, #02040a 60%, #020617);
}

.dc-section-lead {
  max-width: 640px;
  color: var(--dc-muted);
}

.dc-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: center;
}

.dc-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

.dc-architecture-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.dc-align-start {
  align-items: flex-start;
}

.dc-center {
  text-align: center;
  justify-content: center;
}

/* Header */
.dc-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.82));
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.dc-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
}

.dc-logo {
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  font-size: 0.95rem;
}

.dc-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--dc-muted);
}

.dc-nav a {
  text-decoration: none;
  position: relative;
  padding-bottom: 0.15rem;
}

.dc-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(to right, #38bdf8, #a855f7);
  transition: width 120ms ease-out;
}

.dc-nav a:hover::after {
  width: 100%;
}

.dc-header-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Hero */
.dc-hero {
  padding-top: 4.5rem;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.3), transparent 55%),
    radial-gradient(circle at 80% -10%, rgba(168, 85, 247, 0.3), transparent 45%),
    linear-gradient(to bottom, #020617, #020617 40%, #020314);
}

.dc-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: center;
}

.dc-hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.1rem);
  line-height: 1.05;
  margin: 0 0 1rem;
}

.dc-hero-sub {
  max-width: 620px;
  color: var(--dc-muted);
  font-size: 1.02rem;
}

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

.dc-meta-text {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  color: var(--dc-muted);
}

.dc-hero-panel {
  display: flex;
  justify-content: flex-end;
}

.dc-hero-card {
  max-width: 380px;
}

/* Cards & chips */
.dc-card {
  border-radius: var(--dc-radius-lg);
  border: 1px solid var(--dc-border-subtle);
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.05), transparent 55%),
    rgba(15, 23, 42, 0.92);
  padding: 1.4rem 1.35rem;
  box-shadow: var(--dc-shadow-soft);
}

.dc-code-card {
  margin-top: 1rem;
  max-height: 420px;
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 0.78rem;
  line-height: 1.35;
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.99));
  border-radius: var(--dc-radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}

.dc-code-card pre {
  margin: 0;
  white-space: pre;
}

.dc-code-card code {
  display: block;
  color: #e5e7eb;
}

.dc-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem 0.7rem;
  border-radius: var(--dc-radius-pill);
  background: var(--dc-accent-soft);
  color: #e0f2fe;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

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

.dc-list li {
  margin-bottom: 0.45rem;
  color: var(--dc-muted);
  font-size: 0.93rem;
}

.dc-list-compact li {
  margin-bottom: 0.3rem;
}

.dc-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}

.dc-steps li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.9rem;
  color: var(--dc-muted);
  font-size: 0.93rem;
}

.dc-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 999px;
  background: var(--dc-accent-soft);
  color: #e0f2fe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
}

/* Buttons */
.dc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: var(--dc-radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: linear-gradient(to right, #38bdf8, #6366f1);
  color: #0b1120;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.7);
  transition: transform 80ms ease-out, box-shadow 80ms ease-out, border-color 80ms ease-out;
}

.dc-btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}

.dc-btn-ghost {
  background: rgba(15, 23, 42, 0.9);
  color: var(--dc-fg);
  border-color: rgba(148, 163, 184, 0.6);
  box-shadow: none;
}

.dc-btn-ghost:hover {
  background: rgba(15, 23, 42, 1);
}

.dc-btn-small {
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
}

/* Typography */
h1,
h2,
h3 {
  font-weight: 600;
}

h2 {
  font-size: 1.5rem;
  margin: 0 0 0.9rem;
}

h3 {
  font-size: 1.02rem;
  margin: 0 0 0.55rem;
}

p {
  margin: 0 0 0.7rem;
}

/* Footer */
.dc-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  background: #020617;
  padding: 1.4rem 0 1.8rem;
}

.dc-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.dc-footer-links {
  display: flex;
  gap: 1.1rem;
  font-size: 0.85rem;
  color: var(--dc-muted);
}

.dc-footer a {
  text-decoration: none;
}

.dc-footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
  .dc-header-inner {
    gap: 0.75rem;
  }

  .dc-nav {
    display: none;
  }

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

  .dc-hero-panel {
    justify-content: flex-start;
  }

  .dc-hero-card {
    max-width: 100%;
  }

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

@media (max-width: 640px) {
  .dc-section {
    padding: 3rem 0;
  }

  .dc-header-inner {
    padding-inline: 1rem;
  }

  .dc-hero {
    padding-top: 3.4rem;
  }

  .dc-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

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