:root {
  --ink: #111827;
  --muted: #667085;
  --line: #d9e2ef;
  --paper: #ffffff;
  --soft: #f4f8fd;
  --blue: #2557d6;
  --blue-dark: #123f98;
  --red: #d9364d;
  --gold: #ffb84d;
  --green: #12966c;
  --warning: #a66000;
  --shadow: 0 24px 70px rgba(18, 38, 77, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 184, 77, 0.18), transparent 25rem),
    radial-gradient(circle at 84% 16%, rgba(37, 87, 214, 0.13), transparent 30rem),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 44%, #f4f7fb 100%);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

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

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

h1 {
  max-width: 10em;
  margin-bottom: 1rem;
  font-size: clamp(3rem, 6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0.7rem;
  font-size: clamp(2rem, 3.5vw, 3.05rem);
  line-height: 1.05;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.08rem;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

label {
  display: block;
  margin: 0 0 0.45rem;
  color: #263348;
  font-size: 0.84rem;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #c7d3e4;
  border-radius: 8px;
  outline: none;
}

input,
select {
  height: 3.15rem;
  padding: 0 0.9rem;
}

textarea {
  resize: vertical;
  padding: 0.9rem;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 87, 214, 0.12);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0;
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  text-align: left;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--blue));
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.brand-lockup strong,
.brand-lockup small {
  display: block;
  line-height: 1.08;
}

.brand-lockup small {
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: #3d4b62;
  font-size: 0.94rem;
  font-weight: 750;
}

.top-nav a:hover {
  color: var(--blue);
}

.hero,
.section,
.product-preview,
.free-preview,
.flow-shell,
.auth-shell,
.app-shell,
.painted-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(2.5rem, 6vw, 5.5rem) 0 2.5rem;
}

.eyebrow {
  margin-bottom: 0.8rem;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-lede {
  max-width: 43rem;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
}

.trust-row,
.source-chips,
.button-row,
.mode-tabs,
.app-tabs,
.progress-list,
.step-rail {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.trust-row {
  margin-top: 1.4rem;
}

.trust-row span,
.source-chips span,
.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.42rem 0.68rem;
  color: #344054;
  background: #eef4fb;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.status-badge {
  margin-bottom: 0.8rem;
}

.status-badge.success {
  color: #0f6d51;
  background: #e7f8f1;
  border-color: #bde6d6;
}

.status-badge.warning {
  color: var(--warning);
  background: #fff6e5;
  border-color: #f4d190;
}

.start-card,
.panel,
.flow-mini article,
.card-grid article,
.benefit-list article,
.free-preview,
.app-frame,
.limit-modal,
.demo-controls {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.start-card {
  display: grid;
  gap: 0.85rem;
  padding: 1.1rem;
}

.start-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.2rem;
}

.start-card-header strong {
  font-size: 0.92rem;
}

.primary-button,
.secondary-button,
.ghost-button,
.google-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.05rem;
  padding: 0 1rem;
  border-radius: 8px;
  font-weight: 850;
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}

.primary-button {
  color: #ffffff;
  background: var(--blue);
  border: 1px solid var(--blue);
  box-shadow: 0 14px 30px rgba(37, 87, 214, 0.22);
}

.primary-button:hover,
.ghost-button:hover {
  background: var(--blue-dark);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.wide {
  width: 100%;
}

.secondary-button,
.google-button {
  color: var(--blue-dark);
  background: #ffffff;
  border: 1px solid #c7d3e4;
}

.danger-button {
  color: #9f2636;
  background: #fff3f5;
  border: 1px solid #f3c3cb;
}

.ghost-button {
  color: #ffffff;
  background: var(--blue);
  border: 1px solid var(--blue);
}

.primary-button:hover,
.secondary-button:hover,
.google-button:hover,
.danger-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.product-preview {
  padding: 1rem 0 0;
}

.flow-mini {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
}

.flow-mini article {
  min-height: 9.1rem;
  padding: 1rem;
}

.flow-mini p {
  margin-bottom: 0.25rem;
  font-size: 0.84rem;
  font-weight: 800;
}

.source-dot,
.deploy-dot,
.infra-dot {
  display: block;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 1rem;
  border-radius: 8px;
}

.source-dot {
  background: linear-gradient(135deg, var(--red), var(--gold));
}

.deploy-dot {
  background:
    linear-gradient(135deg, #ffffff 0 28%, transparent 28%),
    var(--blue);
}

.infra-dot {
  background:
    linear-gradient(90deg, transparent 0 34%, rgba(255, 255, 255, 0.45) 34% 43%, transparent 43%),
    var(--blue-dark);
}

.flow-arrow {
  color: var(--red);
  font-weight: 900;
}

.section {
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.section-heading {
  max-width: 48rem;
  margin-bottom: 1.6rem;
}

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

.card-grid article,
.benefit-list article {
  padding: 1.25rem;
  box-shadow: none;
}

.number {
  display: block;
  margin-bottom: 3rem;
  color: var(--red);
  font-weight: 950;
}

.split-section,
.flow-shell,
.auth-shell,
.painted-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 1.2rem;
  align-items: start;
}

.split-section {
  border-top: 1px solid var(--line);
}

.benefit-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.free-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 5rem;
  padding: clamp(2rem, 5vw, 3rem);
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(217, 54, 77, 0.84), transparent 48%),
    linear-gradient(135deg, #123f98, #0b2764);
}

.free-preview h2,
.free-preview p,
.free-preview .eyebrow {
  color: #ffffff;
}

.free-preview p {
  opacity: 0.84;
}

.flow-shell,
.auth-shell,
.painted-shell {
  padding: clamp(2.5rem, 6vw, 5rem) 0 6rem;
}

.panel {
  padding: clamp(1.35rem, 3vw, 2rem);
}

.hero-panel {
  display: grid;
  gap: 1.2rem;
}

.validation-card {
  display: grid;
  gap: 0.7rem;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 4rem;
  padding: 0.8rem;
  color: var(--muted);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.check-row span {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  color: var(--muted);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 900;
}

.check-row.done {
  color: var(--ink);
  background: #effaf5;
  border-color: #bee6d5;
}

.check-row.done span {
  color: #ffffff;
  background: var(--green);
  border-color: var(--green);
}

.summary-panel {
  display: grid;
  gap: 1rem;
}

.summary-card {
  padding: 1.2rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

dl {
  display: grid;
  gap: 0.8rem;
  margin: 1.1rem 0;
}

dl div {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #edf2f7;
}

dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 750;
}

.auth-card {
  display: grid;
  gap: 1rem;
}

.mode-tabs {
  padding: 0.25rem;
  background: #eef4fb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mode-tabs button {
  flex: 1;
  min-height: 2.7rem;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 850;
}

.mode-tabs button.active {
  color: var(--blue-dark);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(18, 38, 77, 0.08);
}

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.divider::before,
.divider::after {
  height: 1px;
  content: "";
  background: var(--line);
}

.auth-card form,
.interest-form {
  display: grid;
  gap: 0.82rem;
}

.handoff-card {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.handoff-card span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.handoff-card strong {
  display: block;
  margin-bottom: 0.2rem;
}

.app-shell {
  padding: clamp(2rem, 5vw, 3.5rem) 0 6rem;
}

.app-frame {
  overflow: hidden;
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-bottom: 4px solid var(--red);
}

.app-topbar h1 {
  max-width: none;
  margin-bottom: 0.12rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.app-topbar p {
  margin-bottom: 0;
  font-size: 0.86rem;
}

.app-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--red);
  font-size: 0.84rem;
  font-weight: 900;
  white-space: nowrap;
}

.app-status span {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--red);
  border-radius: 999px;
}

.app-status.active {
  color: var(--green);
}

.app-status.active span {
  background: var(--green);
}

.setup-banner {
  display: grid;
  gap: 0.15rem;
  padding: 0.95rem 1.2rem;
  background: #fff9ee;
  border-bottom: 1px solid #f1dfbe;
}

.setup-banner span {
  color: var(--muted);
  font-size: 0.88rem;
}

.app-tabs {
  gap: 0;
  padding: 0 1.2rem;
  border-bottom: 1px solid var(--line);
}

.app-tabs button {
  flex: 1;
  min-height: 3.4rem;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  font-weight: 900;
}

.app-tabs button.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.app-content {
  display: grid;
  grid-template-columns: 20rem minmax(0, 1fr);
  min-height: 26rem;
}

.project-sidebar {
  padding: 1.2rem;
  background: #f8fbff;
  border-right: 1px solid var(--line);
}

.project-sidebar h2 {
  font-size: 1.45rem;
}

.deployment-area {
  display: grid;
  align-items: center;
  padding: 1.2rem;
}

.deploy-empty,
.active-deployment {
  width: min(100%, 46rem);
  margin: 0 auto;
  padding: 1.35rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(18, 38, 77, 0.08);
}

.progress-list {
  margin-top: 1rem;
}

.progress-list span {
  padding: 0.46rem 0.7rem;
  color: var(--muted);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.progress-list span.done {
  color: #0f6d51;
  background: #e7f8f1;
  border-color: #bde6d6;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(12, 23, 43, 0.45);
  backdrop-filter: blur(10px);
}

.limit-modal {
  width: min(100%, 36rem);
  padding: 1.5rem;
}

.painted-shell {
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.75fr);
}

.confirmation,
.event-card,
.empty-event {
  padding: 1rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.event-card h3 {
  margin-bottom: 1rem;
}

.notification-panel {
  position: sticky;
  top: 5.5rem;
}

.demo-controls {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  width: min(26rem, calc(100% - 2rem));
  padding: 0.75rem;
}

.demo-controls > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.demo-controls strong {
  font-size: 0.9rem;
}

.demo-controls span {
  color: var(--muted);
  font-size: 0.78rem;
}

.step-rail {
  gap: 0.35rem;
}

.step-rail button {
  min-height: 2rem;
  padding: 0 0.52rem;
  color: var(--muted);
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 850;
}

.step-rail button.active {
  color: #ffffff;
  background: var(--blue);
  border-color: var(--blue);
}

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

  .hero,
  .split-section,
  .flow-shell,
  .auth-shell,
  .painted-shell,
  .app-content {
    grid-template-columns: 1fr;
  }

  .card-grid.three,
  .benefit-list {
    grid-template-columns: 1fr;
  }

  .project-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .notification-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  h1 {
    font-size: 2.8rem;
  }

  .site-header,
  .hero,
  .section,
  .product-preview,
  .free-preview,
  .flow-shell,
  .auth-shell,
  .app-shell,
  .painted-shell {
    width: min(100% - 1rem, 1180px);
  }

  .ghost-button {
    display: none;
  }

  .hero {
    padding-top: 2rem;
  }

  .flow-mini {
    grid-template-columns: 1fr;
  }

  .flow-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }

  .free-preview,
  .app-topbar,
  .button-row,
  .demo-controls > div:first-child {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .secondary-button,
  .danger-button,
  .google-button {
    width: 100%;
  }

  dl div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .app-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .app-tabs button {
    flex: 0 0 6rem;
  }

  .demo-controls {
    position: static;
    width: min(100% - 1rem, 1180px);
    margin: 0 auto 1rem;
  }
}
