:root {
  --bg: #f3efe7;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: #fffdf8;
  --text: #102033;
  --muted: #617089;
  --line: rgba(16, 32, 51, 0.12);
  --accent: #ff7a29;
  --accent-deep: #df5e14;
  --shadow: 0 30px 80px rgba(39, 47, 64, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 122, 41, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(60, 130, 246, 0.16), transparent 24%),
    linear-gradient(180deg, #fbf8f2 0%, #f1ece2 100%);
}

.page-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px;
}

.topbar,
.hero-grid,
.stats-row,
.pricing-section {
  animation: rise 700ms ease both;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(16, 32, 51, 0.08);
  border: 1px solid var(--line);
  font-size: 0.88rem;
}

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

.brand-lockup h1 {
  margin: 2px 0 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #101f33, #ff7a29);
  color: white;
  font-weight: 800;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--muted);
}

.ghost-button,
.primary-button,
.toggle-button {
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.ghost-button {
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  border: 1px solid var(--line);
}

.primary-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: white;
  font-weight: 700;
}

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

.toggle-button.active {
  background: var(--text);
  color: white;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}

.hero-copy,
.glass-card,
.stats-row article,
.pricing-card {
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-copy {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.45));
  padding: 34px;
  border-radius: 32px;
}

.hero-copy h2 {
  margin: 18px 0 16px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  line-height: 0.96;
}

.hero-copy p,
.section-copy p,
.pricing-card p,
.stats-row p,
.hero-points span,
.result-card {
  color: var(--muted);
  line-height: 1.65;
}

.pill {
  display: inline-flex;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(16, 32, 51, 0.08);
  font-size: 0.84rem;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.hero-points div,
.stats-row article {
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.68);
}

.hero-points strong,
.stats-row strong,
.pricing-card strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 6px;
}

.glass-card {
  background: linear-gradient(180deg, rgba(16, 32, 51, 0.92), rgba(29, 41, 66, 0.86));
  color: #eef3fb;
  border-radius: 32px;
  padding: 22px;
  height: 100%;
}

.auth-card {
  min-height: 100%;
}

.glass-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.signal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #5ef2a4;
  box-shadow: 0 0 14px rgba(94, 242, 164, 0.7);
}

form {
  display: grid;
  gap: 14px;
}

.auth-toggle,
.button-row {
  display: flex;
  gap: 10px;
}

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

input,
select {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: white;
  padding: 14px 16px;
  font: inherit;
}

select option {
  color: black;
}

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

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0 40px;
}

.workspace-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
  margin-bottom: 42px;
}

.workspace-card,
.preview-summary,
.history-card,
.history-empty {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  border-radius: 28px;
}

.workspace-card {
  padding: 24px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
}

.preview-summary {
  padding: 18px 20px;
  margin-bottom: 14px;
}

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

.slide-preview {
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(250, 246, 239, 0.88));
  border: 1px solid rgba(16, 32, 51, 0.08);
  border-radius: 26px;
  padding: 18px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.slide-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, color-mix(in srgb, var(--slide-accent) 24%, white), transparent 28%);
  pointer-events: none;
}

.slide-preview-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.slide-preview h4 {
  margin: 14px 0 8px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.2rem;
}

.slide-preview p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.history-section {
  margin-bottom: 42px;
}

.history-list {
  display: grid;
  gap: 12px;
}

.history-card,
.history-empty {
  padding: 18px 22px;
}

.history-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.history-card p,
.history-empty {
  color: var(--muted);
}

.history-links {
  display: flex;
  gap: 14px;
}

.history-links a {
  color: var(--accent-deep);
  font-weight: 700;
}

.stats-row article span {
  color: var(--accent-deep);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.pricing-section {
  padding: 16px 0 48px;
}

.section-copy {
  max-width: 720px;
}

.section-copy h3 {
  margin: 8px 0 12px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
}

.billing-toggle {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  margin: 28px 0 20px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  border: 1px solid var(--line);
}

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

.lifetime-wrap {
  margin-top: 22px;
}

.pricing-card {
  display: grid;
  gap: 16px;
  border-radius: 28px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.72);
}

.lifetime-card {
  background: linear-gradient(135deg, #fff4e6, #fffdf8);
  border: 1px solid rgba(255, 122, 41, 0.22);
}

.lifetime-price-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.lifetime-meter {
  display: grid;
  gap: 10px;
}

.lifetime-meter-bar {
  width: 100%;
  height: 10px;
  background: rgba(16, 32, 51, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.lifetime-meter-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  border-radius: 999px;
}

.lifetime-meter-copy {
  color: var(--muted);
  font-size: 0.92rem;
}

.lifetime-original {
  color: var(--muted);
  text-decoration: line-through;
  font-weight: 700;
}

.pricing-card.recommended {
  background: linear-gradient(180deg, #102033, #1d2942);
  color: white;
}

.pricing-card.recommended p,
.pricing-card.recommended li,
.pricing-card.recommended .plan-savings {
  color: rgba(236, 241, 248, 0.78);
}

.plan-price {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 3rem;
  line-height: 1;
}

.plan-price small {
  font-size: 1rem;
}

.plan-savings {
  font-size: 0.9rem;
  color: var(--muted);
}

.pricing-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.pricing-card li::before {
  content: "•";
  color: var(--accent);
  margin-right: 8px;
}

.result-card {
  margin-top: 16px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.result-card a {
  color: #8fd9ff;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .workspace-grid,
  .stats-row,
  .pricing-grid,
  .hero-points,
  .preview-grid {
    grid-template-columns: 1fr;
  }

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

  .history-card,
  .topbar-actions,
  .auth-toggle,
  .button-row {
    flex-direction: column;
    align-items: stretch;
  }
}
