:root {
  --bg: #f5eee5;
  --bg-strong: #efe2d0;
  --surface: rgba(255, 250, 244, 0.82);
  --surface-strong: #fffaf3;
  --surface-dark: #1f1a17;
  --text: #221b17;
  --muted: #675a52;
  --line: rgba(34, 27, 23, 0.1);
  --accent: #c46a3a;
  --accent-strong: #a34e23;
  --accent-soft: #f7d7be;
  --olive: #6e7d5f;
  --olive-soft: #dfe8d7;
  --shadow: 0 24px 70px rgba(52, 36, 25, 0.12);
  --shadow-soft: 0 14px 35px rgba(52, 36, 25, 0.08);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(196, 106, 58, 0.18), transparent 24%),
    radial-gradient(circle at 85% 18%, rgba(110, 125, 95, 0.16), transparent 20%),
    linear-gradient(180deg, #f8f1e8 0%, #f3e9dc 55%, #efe4d5 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

body::before {
  width: 420px;
  height: 420px;
  top: -110px;
  left: -140px;
  background: radial-gradient(circle, rgba(196, 106, 58, 0.14), transparent 68%);
}

body::after {
  width: 360px;
  height: 360px;
  right: -120px;
  top: 24%;
  background: radial-gradient(circle, rgba(110, 125, 95, 0.12), transparent 70%);
}

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

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

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 56px;
}

.landing-body .page-shell {
  padding-bottom: 40px;
}

.hero {
  padding: 24px 0 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 250, 244, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  box-shadow: 0 16px 30px rgba(163, 78, 35, 0.28);
}

.brand-mark-image,
.story-logo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
}

.topbar-links a {
  position: relative;
}

.topbar-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.7);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.topbar-links a:hover::after {
  opacity: 0.6;
  transform: scaleX(1);
}

.story-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.95fr 0.72fr;
  gap: 22px;
  margin-top: 26px;
}

.story-intro,
.story-problems,
.story-quote-card,
.panel,
.price-card,
.metric-card,
.quote-banner,
.highlight-card,
.showcase-card,
.site-footer {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.story-intro,
.story-problems,
.story-quote-card {
  min-height: 100%;
}

.story-intro {
  padding: 34px;
  border-radius: var(--radius-xl);
}

.hero-badge {
  margin-bottom: 22px;
}

.story-logo-block {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.story-logo {
  display: inline-grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #1f1a17, #4e372a);
}

.story-logo-copy {
  display: grid;
  gap: 6px;
}

.story-kicker,
.story-name {
  display: block;
}

.story-kicker {
  color: var(--muted);
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.story-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  line-height: 1;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1,
.section-heading h2,
.story-intro h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  line-height: 0.98;
}

.story-intro h1 {
  max-width: 10ch;
  font-size: clamp(3.3rem, 6vw, 5.5rem);
}

.hero-text,
.section-heading p,
.story-copy-block p,
.quote-copy,
.highlight-card p,
.site-footer p,
.quote-banner p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-text {
  max-width: 52ch;
  margin: 18px 0 28px;
  font-size: 1.06rem;
}

.hero-actions,
.auth-actions,
.dialog-actions,
.form-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  box-shadow: 0 16px 32px rgba(163, 78, 35, 0.22);
}

.button.ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.56);
  color: var(--text);
}

.story-problems {
  display: grid;
  gap: 18px;
  padding: 28px;
  border-radius: var(--radius-xl);
}

.story-copy-block {
  display: grid;
  gap: 12px;
}

.story-copy-block p {
  margin: 0;
  font-size: 1rem;
}

.story-metrics {
  display: grid;
  gap: 14px;
}

.metric-card {
  padding: 18px 20px;
  border-radius: 22px;
}

.metric-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
}

.metric-value {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.2rem;
}

.story-quote-card {
  display: grid;
  align-content: space-between;
  gap: 20px;
  padding: 28px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.06), transparent 30%),
    linear-gradient(180deg, #201915, #342720);
  color: #fff;
}

.quote-mark {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.05;
}

.quote-copy {
  margin: 0;
  color: rgba(255, 246, 239, 0.74);
}

.hero-points {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 246, 239, 0.88);
}

.hero-points li::before {
  content: "•";
  color: var(--accent-soft);
  font-size: 1.2rem;
}

.quote-banner {
  margin: 12px 0 10px;
  padding: 22px 28px;
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(110, 125, 95, 0.16), rgba(255, 250, 244, 0.82)),
    rgba(255, 250, 244, 0.7);
}

.quote-banner.slim {
  margin-top: 4px;
}

.quote-banner p {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.55rem, 2.6vw, 2.3rem);
  color: var(--text);
  line-height: 1.1;
}

.section {
  padding: 28px 0;
}

.section-heading {
  display: grid;
  gap: 12px;
}

.section-heading.compact {
  max-width: 840px;
}

.section-heading.center {
  margin: 0 auto 22px;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(2.4rem, 4.5vw, 4rem);
}

.showcase-section,
.surface-section,
.pricing-section,
.dashboard-section {
  padding-top: 36px;
}

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

.showcase-card,
.software-card,
.price-card,
.panel,
.highlight-card {
  border-radius: var(--radius-xl);
}

.showcase-card,
.software-card {
  overflow: hidden;
}

.showcase-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.08;
  object-fit: cover;
}

.showcase-content {
  padding: 22px;
}

.showcase-content h3,
.software-card h3,
.price-card h3,
.panel h3,
.highlight-card h3 {
  margin: 0 0 10px;
  font-family: "Space Grotesk", sans-serif;
}

.showcase-content p,
.software-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.contact-section {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 24px;
  align-items: start;
}

.contact-copy {
  display: grid;
  gap: 18px;
}

.contact-highlights {
  display: grid;
  gap: 14px;
}

.highlight-card {
  padding: 20px;
}

.highlight-index {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--accent-strong);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.highlight-card p {
  margin: 0;
}

.quote-panel {
  padding: 22px 24px;
  border-radius: var(--radius-xl);
  background: rgba(255, 250, 244, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: var(--shadow-soft);
}

.panel,
.price-card,
.software-card,
.purchase-form {
  padding: 26px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: var(--shadow);
}

.form-panel {
  background:
    radial-gradient(circle at top right, rgba(196, 106, 58, 0.08), transparent 26%),
    rgba(255, 250, 244, 0.86);
}

.grid-form,
.stack-form,
.admin-card-grid,
.dashboard-panels,
.list-block,
.automation-flow,
.software-features,
.admin-metrics,
.admin-form-grid {
  display: grid;
  gap: 16px;
}

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

.grid-form .full,
.admin-form-grid .full {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

input,
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(34, 27, 23, 0.12);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(196, 106, 58, 0.16);
  border-color: rgba(196, 106, 58, 0.42);
}

.form-footer {
  align-items: center;
}

.status-message {
  min-height: 22px;
  color: var(--accent-strong);
  font-weight: 600;
}

.software-card {
  display: grid;
  gap: 16px;
}

.software-card-image {
  margin: -26px -26px 0;
  width: calc(100% + 52px);
  aspect-ratio: 1.3 / 0.82;
}

.software-top,
.panel-header,
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.plan-tag,
.tag,
.pill,
.flow-step {
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(34, 27, 23, 0.06);
}

.plan-tag {
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 700;
}

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

.tag,
.pill,
.flow-step {
  color: var(--text);
}

.software-price {
  color: var(--muted);
}

.software-price strong,
.price-value {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
}

.price-card {
  display: grid;
  gap: 14px;
}

.price-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.price-card li::before,
.featured li::before {
  content: "+";
  margin-right: 10px;
  color: var(--accent);
  font-weight: 700;
}

.featured {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 28%),
    linear-gradient(180deg, #2c221d, #83502f);
}

.featured::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -46px;
  bottom: -58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.featured .plan-tag,
.featured ul,
.featured .price-value {
  color: #fff;
}

.featured .plan-tag {
  background: rgba(255, 255, 255, 0.16);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 370px 1fr;
  gap: 20px;
}

.account-card {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(34, 27, 23, 0.05);
  color: var(--muted);
}

.list-item {
  padding: 16px;
  border-radius: 18px;
  background: rgba(34, 27, 23, 0.05);
}

.list-item strong {
  display: block;
  margin-bottom: 8px;
}

.project-item {
  display: grid;
  gap: 12px;
}

.project-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.project-progress {
  display: grid;
  gap: 8px;
}

.project-stage-box,
.project-update-box {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(34, 27, 23, 0.04);
}

.project-stage-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--muted);
}

.project-stage-track {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stage-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(34, 27, 23, 0.08);
  color: var(--muted);
  font-size: 0.85rem;
}

.stage-chip.active {
  background: linear-gradient(135deg, rgba(36, 132, 255, 0.16), rgba(24, 163, 123, 0.2));
  color: var(--text);
  font-weight: 700;
}

.project-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
}

.project-progress-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(34, 27, 23, 0.1);
}

.project-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2484ff, #18a37b);
}

.project-update-box p {
  margin: 8px 0 0;
  color: var(--text);
  line-height: 1.6;
}

.project-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-progress-controls {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr auto;
  gap: 12px;
  align-items: center;
}

.admin-progress-controls select,
.admin-progress-controls input[type="range"] {
  width: 100%;
}

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

.admin-project-meta-grid .full {
  grid-column: 1 / -1;
}

.meta-line,
.account-empty,
.empty-state {
  color: var(--muted);
}

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

.flow-step {
  min-height: 54px;
  display: grid;
  align-items: center;
}

.site-footer {
  margin-top: 16px;
  padding: 18px 24px;
  border-radius: 24px;
}

.site-footer p {
  margin: 0;
  text-align: center;
}

.purchase-dialog {
  width: min(520px, calc(100% - 32px));
  padding: 0;
  border: none;
  background: transparent;
}

.purchase-dialog::backdrop {
  background: rgba(26, 21, 18, 0.45);
  backdrop-filter: blur(8px);
}

.purchase-form {
  display: grid;
  gap: 16px;
  border-radius: 30px;
}

.dialog-copy {
  margin: 0;
  color: var(--muted);
}

.dialog-close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.hidden {
  display: none;
}

.admin-shell {
  padding-bottom: 40px;
}

.admin-hero {
  padding-bottom: 8px;
}

.admin-top-button {
  min-height: 42px;
}

.admin-login-panel {
  max-width: 520px;
}

.admin-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 20px;
}

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

.admin-card-editor {
  padding: 18px;
  border-radius: 20px;
  background: rgba(34, 27, 23, 0.05);
}

.admin-card-editor h4 {
  margin: 0 0 14px;
  font-family: "Space Grotesk", sans-serif;
}

.admin-form-section {
  display: grid;
  gap: 4px;
}

.admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-form-section h4 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

.admin-image-preview-wrap {
  display: grid;
  gap: 10px;
}

.admin-image-preview {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(34, 27, 23, 0.12);
  background: rgba(34, 27, 23, 0.05);
  box-shadow: var(--shadow-soft);
}

.admin-favicon-preview {
  width: 64px;
  max-width: 64px;
}

@media (max-width: 1120px) {
  .story-grid,
  .contact-section,
  .software-grid,
  .pricing-grid,
  .dashboard-grid,
  .admin-metrics,
  .admin-form-grid,
  .admin-project-meta-grid {
    grid-template-columns: 1fr;
  }

  .story-intro h1 {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 18px, 100%);
  }

  .topbar {
    border-radius: 18px;
    padding: 16px;
  }

  .topbar-links {
    width: 100%;
  }

  .story-intro,
  .story-problems,
  .story-quote-card,
  .panel,
  .price-card,
  .software-card,
  .showcase-content,
  .quote-banner,
  .highlight-card {
    padding: 20px;
  }

  .story-logo-block {
    align-items: flex-start;
    flex-direction: column;
  }

  .story-intro h1,
  .section-heading h2,
  .quote-banner p {
    font-size: 2.25rem;
  }

  .grid-form,
  .software-features,
  .automation-flow,
  .admin-progress-controls {
    grid-template-columns: 1fr;
  }
}
