:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --panel: #ffffff;
  --text: #101827;
  --muted: #5f6b7a;
  --line: #e5eaf1;
  --brand: #ff4b3e;
  --brand-dark: #d93227;
  --blue: #2563eb;
  --shadow: 0 24px 80px rgba(16, 24, 39, 0.12);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 75, 62, 0.12), transparent 30rem),
    radial-gradient(circle at 85% 5%, rgba(37, 99, 235, 0.14), transparent 28rem),
    var(--bg);
}

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

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand), #ff8b2b);
  box-shadow: 0 12px 30px rgba(255, 75, 62, 0.28);
}

.brand small,
.site-footer,
.session-status,
.section-heading p,
.scanner-card label,
.price-card p,
.step-grid p,
.auth-card p {
  color: var(--muted);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-weight: 600;
}

.button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

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

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 14px 32px rgba(255, 75, 62, 0.28);
}

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

.button-ghost {
  color: var(--muted);
  background: transparent;
}

.hero,
.workspace,
.steps,
.pricing {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 28px;
  padding: 76px 0 42px;
}

.hero-copy {
  padding: 52px;
  border: 1px solid rgba(229, 234, 241, 0.8);
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

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

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

h1 {
  max-width: 800px;
  margin-bottom: 22px;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 0.94;
  letter-spacing: -0.07em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.hero-text {
  max-width: 680px;
  font-size: 1.18rem;
  line-height: 1.7;
}

.hero-actions,
.input-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.auth-card,
.scanner-card,
.step-grid article,
.price-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: 0 18px 52px rgba(16, 24, 39, 0.08);
}

.auth-card {
  align-self: stretch;
  padding: 34px;
}

.status-dot {
  width: 14px;
  height: 14px;
  margin-bottom: 26px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.12);
}

.user-profile {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
  padding: 14px;
  border-radius: 18px;
  background: #f8fafc;
}

.user-profile img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.user-profile span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.workspace,
.steps,
.pricing {
  padding: 42px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-heading p {
  line-height: 1.7;
}

.scanner-card {
  padding: 28px;
}

.scanner-card label {
  display: block;
  margin-bottom: 10px;
  font-weight: 800;
}

input {
  flex: 1 1 280px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 16px;
  color: var(--text);
  font: inherit;
  outline: none;
}

input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.metric-grid,
.step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.metric-grid article {
  padding: 22px;
  border-radius: 22px;
  background: #f8fafc;
}

.metric-grid span,
.price-card span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.metric-grid strong,
.price-card strong {
  display: block;
  margin-top: 6px;
  font-size: 2rem;
}

.table-wrap {
  margin-top: 24px;
  overflow-x: auto;
}

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

th,
td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.step-grid article {
  padding: 26px;
}

.step-grid span {
  color: var(--brand);
  font-weight: 900;
}

.pricing {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 22px;
  align-items: stretch;
}

.price-card {
  padding: 28px;
}

.site-footer {
  padding: 34px 0 46px;
  border-top: 1px solid var(--line);
}

.hidden {
  display: none !important;
}

@media (max-width: 820px) {
  .site-header,
  .site-footer,
  .nav-actions,
  .hero,
  .pricing {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .nav-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-copy {
    padding: 28px;
  }

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