:root {
  color-scheme: light;
  --ink: #18211f;
  --muted: #5e6964;
  --line: #d9dfdc;
  --paper: #f7f8f5;
  --surface: #ffffff;
  --steel: #334642;
  --green: #2f6f5e;
  --green-strong: #245849;
  --amber: #c7832b;
  --red: #a33b36;
  --blue: #315f7b;
  --shadow: 0 20px 60px rgba(24, 33, 31, 0.15);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(18px, 4vw, 48px);
  color: #ffffff;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.scrolled,
.portal-route .site-header {
  color: var(--ink);
  background: #f7f8f5;
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(14px);
}

.portal-route .site-header a,
.portal-route .site-header small {
  color: var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 6px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: currentColor;
  opacity: 0.76;
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  font-size: 14px;
  font-weight: 650;
}

.nav-actions,
.hero-actions,
.dialog-actions,
.portal-actions,
.inline-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.primary-button,
.ghost-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 750;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.primary-button {
  padding: 0 16px;
  color: #ffffff;
  background: var(--green);
}

.primary-button:hover {
  background: var(--green-strong);
  transform: translateY(-1px);
}

.primary-button.large {
  min-height: 52px;
  padding: 0 20px;
}

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

.ghost-button {
  padding: 0 14px;
  color: currentColor;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.site-header.scrolled .ghost-button,
.portal-route .ghost-button,
.portal-shell .ghost-button,
.dialog-panel .ghost-button {
  background: #ffffff;
  border-color: var(--line);
}

.ghost-button:hover,
.icon-button:hover {
  transform: translateY(-1px);
  border-color: currentColor;
}

.icon-button {
  width: 38px;
  height: 38px;
  color: var(--ink);
  background: #ffffff;
  border-color: var(--line);
}

.hero-section {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: flex-end;
  padding: 116px clamp(18px, 5vw, 72px) 56px;
  color: #ffffff;
  background-image: url("ignition-skill-workbench.png");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 18, 17, 0.86), rgba(12, 18, 17, 0.54) 54%, rgba(12, 18, 17, 0.24));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.95;
}

.hero-copy {
  max-width: 710px;
  margin: 24px 0 0;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.46;
  color: rgba(255, 255, 255, 0.88);
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 800;
}

.hero-actions {
  margin-top: 30px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, 1fr));
  gap: 1px;
  max-width: 520px;
  margin: 42px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.16);
}

.hero-proof div {
  padding: 16px;
  background: rgba(0, 0, 0, 0.12);
}

.hero-proof dt {
  font-size: 26px;
  font-weight: 850;
}

.hero-proof dd {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.signal-strip span {
  min-height: 72px;
  display: grid;
  place-items: center;
  padding: 16px;
  background: #ffffff;
  color: var(--steel);
  font-weight: 750;
  text-align: center;
}

.section {
  padding: clamp(64px, 8vw, 112px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-heading.compact {
  margin-bottom: 0;
}

.section h2,
.portal-shell h1,
.portal-shell h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.03;
}

.section-heading p,
.workflow-layout p,
.pricing-layout p,
.access-state p,
.portal-summary p,
.instruction-panel li,
.resource-card p {
  color: var(--muted);
  line-height: 1.6;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.product-card,
.pricing-panel,
.access-state,
.resource-card,
.instruction-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(24, 33, 31, 0.04);
}

.product-card {
  min-height: 330px;
  padding: 24px;
}

.card-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.product-card h3,
.pricing-panel h3,
.access-state h3,
.portal-summary h3,
.instruction-panel h3,
.resource-card h4 {
  margin: 0;
  line-height: 1.15;
}

.product-card p {
  color: var(--muted);
  line-height: 1.56;
}

.product-card ul,
.check-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.product-card li,
.check-list li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: var(--steel);
}

.band {
  background: #e8ece5;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.workflow-layout,
.pricing-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

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

.workflow-list li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid #cbd4cf;
}

.workflow-list li::before {
  content: counter(step);
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #ffffff;
  background: var(--steel);
  border-radius: 6px;
  font-weight: 850;
}

.workflow-list strong,
.workflow-list span {
  display: block;
  grid-column: 2;
}

.workflow-list span {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.56;
}

.pricing-layout {
  align-items: center;
}

.pricing-panel {
  padding: 28px;
}

.price-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.price-topline span {
  color: var(--steel);
  font-weight: 800;
}

.price-topline strong {
  font-size: clamp(36px, 5vw, 58px);
}

.fine-print {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.portal-shell {
  padding: 108px clamp(18px, 5vw, 72px) 72px;
  background: var(--paper);
}

.hidden {
  display: none;
}

.portal-header {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.portal-header p {
  color: var(--muted);
}

.portal-content {
  display: grid;
  gap: 18px;
}

.access-state {
  max-width: 780px;
  padding: 30px;
}

.portal-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.portal-summary > div {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.resource-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
}

.resource-toolbar h3 {
  margin: 0;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.resource-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 22px;
}

.resource-card code {
  display: block;
  max-width: 100%;
  padding: 10px;
  overflow-wrap: anywhere;
  color: #1f3d36;
  background: #eef3ef;
  border-radius: 6px;
  font-size: 12px;
}

.resource-detail-panel {
  padding: 26px;
  background: #ffffff;
}

.section-heading {
  max-width: 820px;
}

.section-heading h3 {
  margin: 8px 0 8px;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.resource-detail-list {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.resource-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 20px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf8;
}

.resource-detail h4 {
  margin: 8px 0 10px;
  font-size: clamp(20px, 2vw, 26px);
}

.resource-detail p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.resource-detail ul {
  display: grid;
  gap: 9px;
  margin: 16px 0 0;
  padding-left: 20px;
  color: #25302d;
  line-height: 1.52;
}

.resource-detail .ghost-button {
  white-space: nowrap;
}

.instruction-panel {
  padding: 26px;
}

.instruction-panel ol {
  margin: 16px 0 0;
  padding-left: 22px;
}

.use-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.use-grid strong {
  display: block;
  margin-bottom: 8px;
}

.use-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: #ffffff;
  background: var(--ink);
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.68);
}

.signin-dialog {
  width: min(520px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.signin-dialog::backdrop {
  background: rgba(9, 15, 14, 0.58);
}

.dialog-panel {
  padding: 26px;
}

.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.dialog-heading h2 {
  margin: 0;
  font-size: 28px;
}

.dialog-panel label {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: var(--steel);
  font-weight: 750;
}

.dialog-panel input {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #ffffff;
}

.dialog-actions {
  margin-top: 18px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  max-width: 360px;
  padding: 14px 16px;
  color: #ffffff;
  background: var(--steel);
  border-radius: 6px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.is-loading {
  cursor: progress;
}

@media (max-width: 1040px) {
  .nav-links {
    display: none;
  }

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

  .workflow-layout,
  .pricing-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
  }

  .portal-route .site-header {
    position: fixed;
  }

  .nav-actions {
    display: none;
  }

  .hero-section {
    min-height: 88vh;
    padding-top: 96px;
    background-position: 58% center;
  }

  .hero-overlay {
    background: rgba(12, 18, 17, 0.84);
  }

  .hero-proof,
  .signal-strip,
  .product-grid,
  .resource-grid,
  .portal-summary,
  .use-grid {
    grid-template-columns: 1fr;
  }

  .portal-header,
  .resource-toolbar,
  .resource-detail,
  .site-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .resource-detail {
    display: flex;
  }

  .portal-actions {
    width: 100%;
  }

  .portal-actions .ghost-button {
    flex: 1;
  }

  .resource-detail .ghost-button {
    justify-content: center;
    width: 100%;
    white-space: normal;
  }
}
