:root {
  --bg: #f4ede1;
  --bg-deep: #17313b;
  --panel: rgba(255, 250, 244, 0.78);
  --panel-strong: rgba(255, 250, 244, 0.92);
  --border: rgba(23, 49, 59, 0.12);
  --text: #102027;
  --muted: #56656d;
  --teal: #1f7a7a;
  --gold: #bb7a2d;
  --rose: #cc5f50;
  --shadow: 0 22px 60px rgba(16, 32, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(31, 122, 122, 0.18), transparent 26%),
    radial-gradient(circle at top right, rgba(204, 95, 80, 0.16), transparent 20%),
    linear-gradient(180deg, #f5efe3 0%, #efe4d6 46%, #f7f1e9 100%);
  font-family: "Manrope", sans-serif;
}

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

code,
pre {
  font-family: "SFMono-Regular", Consolas, monospace;
}

.page-shell {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 72px;
}

.hero {
  padding: 22px 0 42px;
}

.topbar,
.hero-grid,
.dashboard-grid,
.insight-grid,
.field-row,
.pricing-grid,
.workflow-grid,
.pack-grid {
  display: grid;
  gap: 20px;
}

.topbar {
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 6px 0 30px;
}

.brand,
.topbar-links,
.hero-actions,
.hero-metrics,
.panel-header,
.history-head,
.result-meta,
.mode-toggle,
.keyword-row {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.03em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #fffaf4;
  background: linear-gradient(135deg, var(--teal), var(--gold));
  box-shadow: var(--shadow);
}

.topbar-links {
  color: var(--muted);
}

.hero-grid {
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
}

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

.hero h1,
.section-heading h2 {
  margin: 0;
  line-height: 0.95;
}

.hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3.2rem, 7vw, 6.2rem);
  max-width: 11ch;
}

.hero-text,
.section-heading p,
.workflow-card p,
.price-card p,
.price-note,
label,
.history-summary,
.pack-label,
.result-meta {
  color: var(--muted);
}

.hero-text {
  max-width: 58ch;
  font-size: 1.06rem;
}

.button,
.mode-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 14px 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button.primary,
.mode-button.active {
  background: linear-gradient(135deg, var(--bg-deep), #214653);
  color: #fffaf4;
  box-shadow: var(--shadow);
}

.button.secondary,
.mode-button {
  background: rgba(255, 255, 255, 0.5);
  border-color: var(--border);
  color: var(--text);
}

.hero-metrics {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}

.hero-metrics li {
  min-width: 132px;
}

.hero-metrics strong {
  display: block;
  color: var(--bg-deep);
  font-size: 2rem;
}

.hero-card-screen,
.panel,
.workflow-card,
.price-card,
.history-item {
  border: 1px solid var(--border);
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  border-radius: 28px;
}

.hero-card-screen,
.panel,
.workflow-card,
.price-card {
  padding: 24px;
}

.hero-chip,
.status-pill,
.keyword-pill {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(31, 122, 122, 0.1);
  color: var(--bg-deep);
  font-size: 0.82rem;
}

.status-pill.subtle {
  background: rgba(187, 122, 45, 0.12);
}

.translation-stack {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.stack-card {
  padding: 22px;
  border-radius: 24px;
}

.stack-card.source {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.52));
}

.stack-card.result {
  color: #fffaf4;
  background: linear-gradient(135deg, var(--teal), var(--rose));
}

.stack-label {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
}

.stack-card h2,
.workflow-card h3,
.price-card h3,
.panel h3,
.pack-grid h4 {
  margin: 0 0 10px;
}

.section {
  padding-top: 56px;
}

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

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

.workflow-card span {
  display: inline-flex;
  margin-bottom: 14px;
  font-weight: 800;
  color: var(--gold);
}

.dashboard-grid {
  grid-template-columns: 0.92fr 1.08fr;
}

.insight-grid {
  margin-top: 20px;
  grid-template-columns: 1fr 0.9fr;
}

.panel-form,
.history-list {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 0.94rem;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel-strong);
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
}

textarea {
  resize: vertical;
}

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

.hidden {
  display: none;
}

.result-copy {
  min-height: 360px;
  margin: 16px 0 0;
  padding: 20px;
  border-radius: 22px;
  background: rgba(16, 32, 39, 0.94);
  color: #f8f3eb;
  overflow: auto;
  white-space: pre-wrap;
}

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

.pack-grid .full {
  grid-column: 1 / -1;
}

.keyword-row {
  margin-top: 10px;
}

.history-item {
  padding: 18px;
}

.history-head {
  justify-content: space-between;
}

.price-card.featured {
  background: linear-gradient(180deg, rgba(23, 49, 59, 0.92), rgba(31, 122, 122, 0.9));
  color: #fffaf4;
}

.price-card.featured p,
.price-card.featured .price-note {
  color: rgba(255, 250, 244, 0.8);
}

.price-name {
  margin: 0 0 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.price-card h3 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.price-card h3 span {
  font-size: 1rem;
  font-weight: 600;
}

@media (max-width: 980px) {
  .hero-grid,
  .dashboard-grid,
  .insight-grid,
  .workflow-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .field-row,
  .pack-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 100%;
  }

  .page-shell {
    width: min(100%, calc(100% - 20px));
  }
}
