:root {
  --ink: #14313f;
  --muted: #6d7b81;
  --paper: #fffdf8;
  --soft: #f8f2e7;
  --line: #eadfce;
  --accent: #f5a623;
  --accent-dark: #d98212;
  --blue: #0f4c5c;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(20, 49, 63, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 248, 0.92);
  border-bottom: 1px solid rgba(234, 223, 206, 0.75);
  backdrop-filter: blur(16px);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(15, 76, 92, 0.18);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #38515c;
  font-weight: 700;
  font-size: 0.95rem;
}

.nav-links a {
  transition: color 160ms ease;
}

.nav-form {
  margin: 0;
}

.nav-form button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #38515c;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.nav-links a:hover,
.nav-form button:hover {
  color: var(--accent-dark);
}

.hero {
  overflow: hidden;
  padding: 94px 0 86px;
  background:
    linear-gradient(115deg, rgba(255, 253, 248, 0.96) 0%, rgba(255, 247, 231, 0.9) 58%, rgba(236, 246, 244, 0.95) 100%);
}

.hero-grid,
.section-grid,
.feature-grid,
.contact-card {
  display: grid;
  grid: auto / 1.04fr 0.96fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 680px;
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.hero-text {
  max-width: 560px;
  margin-bottom: 34px;
  color: #53686f;
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(20, 49, 63, 0.1);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(20, 49, 63, 0.14);
}

.btn-primary {
  background: var(--accent);
  color: #2c1b02;
}

.btn-primary:hover {
  background: #ffb83d;
}

.btn-secondary {
  background: var(--white);
  border-color: var(--line);
  color: var(--blue);
}

.showcase {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
}

.product-card {
  width: min(390px, 100%);
  padding: 18px;
  border: 1px solid rgba(234, 223, 206, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.product-cover {
  min-height: 470px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px;
  border-radius: 6px;
  background:
    linear-gradient(145deg, rgba(15, 76, 92, 0.94), rgba(20, 49, 63, 0.97)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.08) 0 1px, transparent 1px 24px);
  color: var(--white);
}

.cover-label {
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  color: #ffe4a8;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-cover strong {
  max-width: 250px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.4rem;
  line-height: 1.05;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 4px 2px;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.9rem;
}

.note-card {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: 190px;
  padding: 22px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 48px rgba(20, 49, 63, 0.14);
}

.note-card span,
.note-card strong {
  display: block;
}

.note-card span {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
}

.note-card strong {
  color: var(--blue);
  font-size: 2rem;
  line-height: 1.1;
}

.section {
  padding: 94px 0;
}

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

.section-grid p,
.feature-grid p,
.contact-card p,
.testimonial p,
.error-card p {
  color: var(--muted);
  font-size: 1.04rem;
}

.service-grid {
  display: grid;
  grid: auto / repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  min-height: 260px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 46px rgba(20, 49, 63, 0.07);
}

.service-icon {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 50%;
  background: #fff1cf;
  color: var(--accent-dark);
  font-weight: 900;
}

.service-card p {
  color: var(--muted);
}

.feature-band {
  background: var(--blue);
  color: var(--white);
}

.feature-band .eyebrow,
.feature-band p {
  color: #c9ddd9;
}

.text-link {
  color: #ffd079;
  font-weight: 900;
}

.feature-list {
  display: grid;
  gap: 16px;
}

.feature-list div {
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
}

.feature-list span,
.feature-list strong {
  display: block;
}

.feature-list span {
  margin-bottom: 6px;
  color: #ffd079;
  font-weight: 900;
}

.stats-section {
  padding: 72px 0;
  background: var(--soft);
}

.stats-grid {
  display: grid;
  grid: auto / repeat(3, 1fr);
  gap: 20px;
  text-align: center;
}

.stats-grid div {
  padding: 28px;
}

.stats-grid strong {
  display: block;
  color: var(--blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
}

.stats-grid span {
  color: var(--muted);
  font-weight: 800;
}

.testimonial {
  max-width: 860px;
  padding: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.testimonial p {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.2;
}

.testimonial span {
  display: block;
  color: var(--muted);
}

.contact-section {
  padding-top: 0;
}

.preview-result {
  margin-top: 28px;
}

.preview-result h3 {
  color: var(--blue);
}

.preview-result pre {
  max-height: 360px;
  overflow: auto;
  margin: 0;
  padding: 20px;
  border: 1px solid #d7e0e2;
  border-radius: 8px;
  background: #102a36;
  color: #f2fbfb;
  font: 0.94rem/1.6 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

.preview-error pre {
  border-color: #f2c7a9;
  background: #fff6ee;
  color: #713715;
}

.auth-section,
.workspace-hero,
.brand-kit-section {
  background:
    linear-gradient(115deg, rgba(255, 253, 248, 0.98) 0%, rgba(255, 247, 231, 0.86) 58%, rgba(236, 246, 244, 0.95) 100%);
}

.auth-card,
.workspace-grid,
.brand-kit-grid {
  display: grid;
  grid: auto / 0.95fr 1.05fr;
  gap: 54px;
  align-items: center;
}

.auth-card h1,
.workspace-grid h1,
.brand-kit-grid h1 {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
}

.auth-card p,
.workspace-grid p,
.brand-kit-grid p {
  color: var(--muted);
  font-size: 1.08rem;
}

.auth-form,
.brand-form,
.profile-card,
.workspace-card {
  display: grid;
  gap: 14px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.auth-form label,
.brand-form label {
  color: var(--blue);
  font-weight: 900;
}

.auth-form input,
.brand-form input,
.brand-form textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.brand-form textarea {
  min-height: 240px;
  padding: 16px;
  resize: vertical;
  font: 0.96rem/1.6 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
}

.brand-form input[type="color"] {
  width: 84px;
  padding: 6px;
  cursor: pointer;
}

.auth-form input:focus,
.brand-form input:focus,
.brand-form textarea:focus {
  outline: 3px solid rgba(245, 166, 35, 0.22);
  border-color: var(--accent);
}

.form-alert {
  padding: 14px 16px;
  border: 1px solid #f2c7a9;
  border-radius: 8px;
  background: #fff6ee;
  color: #713715;
  font-weight: 800;
}

.workspace-card span,
.profile-card span {
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.workspace-card strong {
  color: var(--blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.6rem;
  line-height: 1.05;
}

.profile-card div {
  display: grid;
  gap: 4px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.profile-card div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.profile-card strong {
  font-size: 1.35rem;
}

.launch-preview {
  margin-top: 42px;
}

.generated-preview {
  max-width: 760px;
  min-height: 280px;
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 42px;
  border: 1px solid var(--line);
  border-top: 8px solid var(--preview-accent, var(--accent));
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.generated-preview span {
  color: var(--accent-dark);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.generated-preview h3 {
  max-width: 620px;
  color: var(--blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.05;
}

.generated-preview p {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.12rem;
  white-space: pre-wrap;
}

.contact-card,
.error-card {
  padding: 46px;
  border-radius: 8px;
  background: #fdf7eb;
  border: 1px solid var(--line);
}

.newsletter {
  display: flex;
  gap: 12px;
}

.newsletter input {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.newsletter input:focus {
  outline: 3px solid rgba(245, 166, 35, 0.22);
  border-color: var(--accent);
}

.site-footer {
  padding: 70px 0 26px;
  background: #102a36;
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid: auto / 1.6fr 0.7fr 0.7fr;
  gap: 42px;
}

.footer-brand {
  margin-bottom: 20px;
}

.site-footer p {
  max-width: 440px;
  color: #b8c9cf;
}

.site-footer h3 {
  margin-bottom: 18px;
  color: #ffd079;
}

.site-footer a {
  display: block;
  margin-bottom: 10px;
  color: #dbe8eb;
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  color: #b8c9cf;
  font-size: 0.9rem;
}

.error-section {
  min-height: 62vh;
  display: grid;
  align-items: center;
}

.error-card {
  max-width: 680px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 860px) {
  .nav {
    min-height: auto;
    padding: 18px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    overflow-x: auto;
  }

  .hero {
    padding: 58px 0 66px;
  }

  .hero-grid,
  .section-grid,
  .feature-grid,
  .contact-card {
    grid: auto / 1fr;
    gap: 34px;
  }

  .showcase {
    min-height: auto;
  }

  .product-cover {
    min-height: 380px;
  }

  .note-card {
    position: static;
    width: 100%;
    margin-top: 16px;
  }

  .service-grid,
  .stats-grid,
  .footer-grid {
    grid: auto / 1fr;
  }

  .section {
    padding: 66px 0;
  }

  .newsletter {
    flex-direction: column;
  }

  .auth-card,
  .workspace-grid,
  .brand-kit-grid {
    grid: auto / 1fr;
    gap: 32px;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  h1 {
    font-size: 3rem;
  }

  .hero-actions,
  .btn {
    width: 100%;
  }

  .service-card,
  .testimonial,
  .auth-form,
  .brand-form,
  .profile-card,
  .workspace-card,
  .generated-preview,
  .contact-card,
  .error-card {
    padding: 26px;
  }

  .product-cover {
    padding: 26px;
  }

  .product-cover strong {
    font-size: 2rem;
  }
}
