:root {
  color-scheme: light;
  --bg: #f7f5ef;
  --surface: #ffffff;
  --surface-strong: #101820;
  --text: #17202a;
  --muted: #5d6875;
  --line: #d9ded9;
  --primary: #166b6a;
  --primary-strong: #0f4d4c;
  --accent: #d75c37;
  --accent-soft: #f8ded3;
  --sky: #4f8fc0;
  --shadow: 0 18px 45px rgba(23, 32, 42, 0.12);
  --radius: 8px;
}

body.dark {
  color-scheme: dark;
  --bg: #11161a;
  --surface: #182027;
  --surface-strong: #eef3ef;
  --text: #edf2ee;
  --muted: #aab5b6;
  --line: #30404a;
  --primary: #5bc3b5;
  --primary-strong: #8dded3;
  --accent: #f28b64;
  --accent-soft: #432b25;
  --sky: #79b8df;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(135deg, rgba(22, 107, 106, 0.08), transparent 42%),
    linear-gradient(315deg, rgba(215, 92, 55, 0.1), transparent 36%),
    var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid color-mix(in srgb, var(--line), transparent 25%);
  background: color-mix(in srgb, var(--bg), transparent 8%);
  backdrop-filter: blur(16px);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--bg);
}

.nav-links {
  gap: clamp(12px, 3vw, 32px);
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
}

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

.icon-button,
.button {
  border: 0;
  cursor: pointer;
}

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  max-width: 1180px;
  min-height: calc(100svh - 72px);
  margin: 0 auto;
  padding: clamp(40px, 8vw, 92px) clamp(18px, 4vw, 34px);
}

.success-hero {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 800px;
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: 0;
}

h3 {
  margin-bottom: 6px;
  font-size: 1rem;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow),
.section-heading p,
.card-header p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-copy p:not(.eyebrow) {
  max-width: 620px;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 12px 24px rgba(22, 107, 106, 0.25);
}

.button.primary:hover {
  background: var(--primary-strong);
}

.button.secondary {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

.button.full-width {
  width: 100%;
}

.deploy-panel,
.checklist-card,
.contact-card,
.settings-card,
.activity-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface), transparent 3%);
  box-shadow: var(--shadow);
}

.deploy-panel {
  overflow: hidden;
}

.panel-header,
.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
}

.panel-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.panel-header div {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #29a36a;
  box-shadow: 0 0 0 5px rgba(41, 163, 106, 0.14);
}

.build-tag,
.progress-pill {
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 10px;
  white-space: nowrap;
}

.deploy-visual {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(79, 143, 192, 0.22), transparent 45%),
    linear-gradient(315deg, rgba(22, 107, 106, 0.22), transparent 45%),
    color-mix(in srgb, var(--surface), var(--bg) 34%);
}

.orbit {
  position: absolute;
  inset: 22%;
  border: 1px dashed color-mix(in srgb, var(--primary), transparent 35%);
  border-radius: 999px;
  animation: spin 18s linear infinite;
}

.orbit-two {
  inset: 34% 12%;
  border-color: color-mix(in srgb, var(--accent), transparent 38%);
  animation-duration: 24s;
  animation-direction: reverse;
}

.node {
  position: absolute;
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--line), transparent 18%);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(23, 32, 42, 0.16);
}

.node-git {
  top: 34px;
  left: 38px;
}

.node-netlify {
  top: 116px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
}

.node-live {
  right: 38px;
  bottom: 38px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.metric-grid div {
  padding: 20px;
}

.metric-grid div + div {
  border-left: 1px solid var(--line);
}

.metric-value,
.metric-label {
  display: block;
}

.metric-value {
  font-size: 1.8rem;
  font-weight: 900;
}

.metric-label {
  color: var(--muted);
  font-size: 0.88rem;
}

.workspace {
  padding: 36px clamp(18px, 4vw, 34px) 78px;
}

.section-heading,
.dashboard-grid {
  max-width: 1180px;
  margin: 0 auto;
}

.section-heading {
  margin-bottom: 22px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 18px;
}

.checklist-card {
  grid-row: span 2;
}

.contact-card {
  grid-column: 1;
}

.progress-track {
  height: 10px;
  margin: 0 22px 12px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line), transparent 38%);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--sky));
  transition: width 220ms ease;
}

.task-list,
.activity-list {
  list-style: none;
  margin: 0;
  padding: 0 22px 22px;
}

.task-list li,
.activity-list li,
.settings-list div {
  border-top: 1px solid var(--line);
}

.task-list label {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 64px;
  color: var(--text);
}

.task-list input {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  flex: 0 0 auto;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 0 22px 22px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface), var(--bg) 10%);
  color: var(--text);
  outline: 0;
  padding: 12px 13px;
}

.contact-form textarea {
  min-height: 138px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary), transparent 84%);
}

.hidden-field {
  display: none;
}

.settings-list {
  margin: 0;
  padding: 0 22px 14px;
}

.settings-list div {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1fr);
  gap: 16px;
  padding: 15px 0;
}

.settings-list dt {
  color: var(--muted);
}

.settings-list dd {
  margin: 0;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  overflow-wrap: anywhere;
}

.settings-card .button {
  margin: 0 22px 8px;
  width: calc(100% - 44px);
}

.copy-note {
  min-height: 24px;
  margin: 0;
  padding: 0 22px 20px;
  color: var(--primary);
  font-size: 0.92rem;
}

.activity-list {
  counter-reset: item;
}

.activity-list li {
  position: relative;
  padding: 16px 0 16px 34px;
  color: var(--muted);
}

.activity-list li::before {
  position: absolute;
  left: 0;
  top: 17px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary), transparent 82%);
  color: var(--primary);
  content: counter(item);
  counter-increment: item;
  font-size: 0.72rem;
  font-weight: 900;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 820px) {
  .app-header {
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .hero-actions,
  .footer {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .panel-header,
  .card-header {
    flex-direction: column;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .metric-grid div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .deploy-visual {
    min-height: 280px;
  }

  .node {
    width: 78px;
    height: 78px;
  }

  .settings-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
