@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Newsreader:opsz,wght@6..72,500;6..72,700&display=swap");

:root {
  --paper: #f4f0e8;
  --paper-strong: #efe8dc;
  --panel: rgba(255, 255, 255, 0.86);
  --panel-strong: #fffdf8;
  --line: rgba(24, 33, 54, 0.12);
  --ink: #132136;
  --muted: #627186;
  --blue: #0f4cd7;
  --blue-deep: #0f2f7a;
  --green: #177659;
  --shadow: 0 24px 60px rgba(19, 33, 54, 0.14);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(15, 76, 215, 0.18), transparent 28%),
    radial-gradient(circle at 85% 0%, rgba(255, 201, 108, 0.2), transparent 24%),
    linear-gradient(180deg, #faf7f0 0%, var(--paper) 100%);
}

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

button,
input,
textarea {
  font: inherit;
}

.marketing-shell {
  max-width: 1380px;
  margin: 0 auto;
  padding: 22px;
}

.site-header,
.panel,
.hero-panel,
.content-page .article-panel {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-header {
  position: sticky;
  top: 18px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: white;
  font-weight: 800;
}

.brand-lockup strong {
  display: block;
}

.brand-lockup small,
.muted-copy,
.hero-text,
.stage-copy p,
.log-item p,
.article-panel p,
.pricing-card p,
.example-card p,
.result-card p {
  color: var(--muted);
  line-height: 1.7;
}

.site-nav,
.site-actions,
.lang-switch,
.hero-actions,
.chip-row,
.form-actions,
.footer-links,
.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.site-nav a,
.ghost-button,
.lang-pill,
.chip,
.secondary-button {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  cursor: pointer;
}

.lang-pill.is-active {
  background: var(--ink);
  color: white;
}

.primary-button,
.ghost-link {
  min-height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  font-weight: 800;
}

.primary-button {
  border: 0;
  background: linear-gradient(135deg, var(--blue), #3260f6);
  color: white;
  cursor: pointer;
  box-shadow: 0 16px 32px rgba(15, 76, 215, 0.28);
}

.secondary-button {
  min-height: 48px;
}

.ghost-link {
  color: var(--blue-deep);
}

.landing-grid,
.content-page {
  display: grid;
  gap: 20px;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 22px;
  padding: 30px;
  border-radius: var(--radius-xl);
}

.hero-panel h1,
.panel h2,
.article-panel h1 {
  margin: 0;
  font-family: "Newsreader", serif;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.hero-panel h1 {
  font-size: clamp(2.8rem, 5vw, 5rem);
}

.eyebrow {
  margin: 0 0 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--muted);
}

.hero-proof,
.pricing-grid,
.example-grid,
.workspace-grid,
.step-grid {
  display: grid;
  gap: 16px;
}

.hero-proof {
  align-content: end;
}

.proof-card,
.pricing-card,
.example-card,
.result-card,
.artifact-card,
.stage-card,
.summary-card,
.log-item,
.article-panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 245, 238, 0.92));
}

.proof-card,
.pricing-card,
.artifact-card,
.result-card,
.log-item,
.article-panel {
  padding: 18px;
}

.panel {
  padding: 24px;
  border-radius: var(--radius-xl);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(19, 33, 54, 0.08);
  font-weight: 700;
}

.stack-form {
  display: grid;
  gap: 14px;
}

.stack-form label {
  display: grid;
  gap: 8px;
}

.action-feedback {
  margin: 12px 0 0;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
}

.action-feedback[data-tone="info"] {
  border-color: rgba(15, 76, 215, 0.2);
  background: rgba(15, 76, 215, 0.08);
}

.action-feedback[data-tone="success"] {
  border-color: rgba(23, 118, 89, 0.2);
  background: rgba(23, 118, 89, 0.1);
}

.action-feedback[data-tone="error"] {
  border-color: rgba(170, 43, 43, 0.22);
  background: rgba(170, 43, 43, 0.1);
}

input,
textarea {
  width: 100%;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(19, 33, 54, 0.12);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
}

input:focus,
textarea:focus,
button:focus,
a:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(15, 76, 215, 0.15);
  border-color: rgba(15, 76, 215, 0.36);
}

.progress-meter {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(19, 33, 54, 0.08);
}

.progress-meter > div {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--blue));
  transition: width 260ms ease;
}

.workspace-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  margin-top: 18px;
}

.workspace-column {
  display: grid;
  gap: 14px;
}

.stage-list,
.results-stack,
.artifact-grid,
.log-feed {
  display: grid;
  gap: 12px;
}

.stage-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
}

.stage-dot {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  margin-top: 6px;
  background: rgba(19, 33, 54, 0.2);
}

.stage-card[data-status="running"] .stage-dot {
  background: var(--blue);
}

.stage-card[data-status="completed"] .stage-dot {
  background: var(--green);
}

.summary-card.is-empty {
  padding: 18px;
}

.result-html h2,
.article-panel h2 {
  margin-top: 20px;
  margin-bottom: 8px;
}

.result-html ul,
.article-panel ul {
  padding-left: 20px;
}

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

.step-grid article {
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.pricing-grid,
.example-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px 6px 10px;
}

.auth-modal[hidden] {
  display: none;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
}

.auth-overlay {
  position: absolute;
  inset: 0;
  background: rgba(19, 33, 54, 0.52);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.auth-dialog {
  position: relative;
  width: min(520px, calc(100vw - 28px));
  padding: 28px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(245, 240, 232, 0.96));
  box-shadow: 0 28px 90px rgba(19, 33, 54, 0.28);
}

.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(19, 33, 54, 0.08);
  color: var(--ink);
  cursor: pointer;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}

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

.auth-email-field {
  display: grid;
  gap: 8px;
}

@media (max-width: 1120px) {
  .hero-panel,
  .workspace-grid,
  .pricing-grid,
  .example-grid,
  .step-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    position: static;
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 720px) {
  .marketing-shell {
    padding: 14px;
  }

  .panel,
  .hero-panel {
    padding: 18px;
  }

  .hero-panel h1 {
    font-size: 2.3rem;
  }

  .auth-dialog {
    padding: 22px;
  }

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