:root {
  --ink: #101523;
  --muted: #5f6678;
  --line: #e2e6ef;
  --paper: #f7f9fc;
  --panel: #ffffff;
  --accent: #6f4cf6;
  --accent-dark: #3157e8;
  --warm: #f7c948;
  --rose: #e75a7c;
  --sky: #3b82f6;
  --green: #39b980;
  --orange: #ee6b3b;
  --shadow: 0 18px 50px rgba(42, 55, 92, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

svg,
img {
  max-width: 100%;
}

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

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(20px, 4vw, 48px);
  border-bottom: 1px solid rgba(226, 230, 239, 0.95);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 900;
  font-size: 1.18rem;
}

.brand-mark span:first-child {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 10px 24px rgba(111, 76, 246, 0.28);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 4vw, 36px);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav button,
.link-button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 12px;
  background: transparent;
  color: var(--muted);
}

.nav button:hover,
.nav button.active,
.link-button:hover {
  color: var(--accent);
  background: #f4f1ff;
  border-color: var(--line);
}

.nav button.primary.nav-cta,
.nav button.primary.nav-cta:hover,
.nav button.primary.nav-cta.active {
  padding: 10px 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(76, 92, 232, 0.26);
}

.primary,
.secondary,
.danger {
  min-height: 44px;
  border-radius: 8px;
  padding: 10px 16px;
  border: 1px solid transparent;
  font-weight: 700;
}

.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 12px 28px rgba(76, 92, 232, 0.26);
}

.primary:hover {
  filter: brightness(0.96);
}

.secondary {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.danger {
  color: #fff;
  background: #b7485a;
}

.main {
  padding: 0 0 52px;
}

.hero {
  display: grid;
  place-items: center;
  min-height: 440px;
  padding: 76px clamp(18px, 4vw, 52px) 84px;
  text-align: center;
  background: linear-gradient(135deg, #f6f3ff 0%, #ecf6ff 100%);
}

.hero-copy {
  max-width: 1060px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: 700;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.65rem, 7vw, 5.2rem);
  line-height: 1.05;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hero-copy p {
  max-width: 690px;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.45;
}

.hero-actions,
.toolbar,
.auth-actions,
.export-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-actions {
  justify-content: center;
  margin-top: 32px;
}

.hero-primary,
.hero-secondary {
  min-width: 168px;
  min-height: 58px;
  font-size: 1.04rem;
}

.trust-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
  color: var(--muted);
}

.trust-row span {
  color: var(--warm);
}

.trust-row strong {
  font-weight: 500;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 920px;
  margin: 32px auto 0;
}

.feature {
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.feature strong {
  display: block;
  margin-bottom: 5px;
}

.feature span {
  color: var(--muted);
  font-size: 0.92rem;
}

.section-block {
  padding: 64px clamp(18px, 4vw, 52px) 0;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.section-title.centered {
  display: block;
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-title.centered p:last-child {
  color: var(--muted);
  line-height: 1.7;
}

.section-title h2,
.split-section h2 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

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

.template-grid {
  max-width: 1120px;
  margin: 0 auto;
}

.template-ribbon {
  margin: 0 clamp(18px, 4vw, 52px) 22px;
}

.template-card {
  display: grid;
  gap: 10px;
  min-height: 168px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 26px rgba(23, 33, 28, 0.06);
}

.template-card:hover {
  transform: translateY(-2px);
  border-color: rgba(111, 76, 246, 0.42);
}

.template-card.compact {
  grid-template-columns: 44px 1fr;
  align-items: center;
  min-height: 74px;
  padding: 12px;
}

.template-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 8px;
}

.template-card.compact .template-mark {
  width: 44px;
  height: 44px;
}

.template-mark svg,
.mini-logo svg,
.avatar-ring svg,
.saved-thumb svg {
  width: 68%;
  height: 68%;
  overflow: visible;
}

.template-mark path {
  fill: none;
  stroke: #fff;
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.template-card small {
  color: var(--muted);
  line-height: 1.55;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: start;
  padding-top: 64px;
}

.why-section {
  padding: 78px clamp(18px, 4vw, 52px) 98px;
  background: #fff;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 8vw, 140px);
  max-width: 1160px;
  margin: 0 auto;
}

.benefit {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.benefit h3 {
  margin: 8px 0 0;
  font-size: 1.25rem;
}

.benefit p {
  max-width: 310px;
  color: var(--muted);
  line-height: 1.7;
}

.benefit-icon,
.mail-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  font-size: 1.55rem;
  font-weight: 900;
}

.benefit-icon.green {
  background: var(--green);
}

.benefit-icon.orange {
  background: linear-gradient(135deg, var(--orange), #d94a24);
}

.cta-band {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-top: 0;
  padding: 78px 20px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #7b4ff5, #2459e8);
}

.cta-band h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.cta-band p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.white-button {
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  padding: 12px 24px;
  color: var(--accent);
  background: #fff;
  font-weight: 800;
}

.newsletter-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  max-width: 830px;
  margin: 80px auto 0;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
  background: #fff;
  box-shadow: 0 10px 34px rgba(42, 55, 92, 0.07);
}

.newsletter-card h2 {
  margin: 0;
  font-size: clamp(1.55rem, 4vw, 2.25rem);
}

.newsletter-card p {
  max-width: 580px;
  color: var(--muted);
  line-height: 1.7;
}

.newsletter-card small {
  color: var(--muted);
}

.newsletter-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  width: min(460px, 100%);
}

.pricing-hero {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 72px clamp(18px, 4vw, 52px) 34px;
  text-align: center;
  background: linear-gradient(135deg, #f6f3ff 0%, #ecf6ff 100%);
}

.pricing-hero h1 {
  max-width: 780px;
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 4rem);
}

.pricing-hero p {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.7;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1120px;
  margin: 42px auto 0;
  padding: 0 clamp(18px, 4vw, 52px);
}

.price-card {
  display: grid;
  gap: 16px;
  align-content: start;
  min-height: 390px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 34px rgba(42, 55, 92, 0.06);
}

.price-card.featured {
  border-color: rgba(111, 76, 246, 0.45);
  box-shadow: 0 18px 50px rgba(76, 92, 232, 0.16);
}

.price-card span {
  color: var(--accent);
  font-weight: 800;
}

.price-card strong {
  font-size: 2.25rem;
}

.price-card p,
.price-card li {
  color: var(--muted);
  line-height: 1.65;
}

.price-card ul {
  display: grid;
  gap: 8px;
  padding-left: 20px;
}

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

.timeline div {
  min-height: 118px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.timeline strong,
.timeline span {
  display: block;
}

.timeline span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.preview-stage {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(45deg, rgba(23, 33, 28, 0.04) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(23, 33, 28, 0.04) 25%, transparent 25%),
    #fff;
  background-size: 22px 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 48px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}

.window-dots {
  display: flex;
  gap: 7px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}

.window-dots span:nth-child(1) {
  background: var(--rose);
}

.window-dots span:nth-child(2) {
  background: var(--warm);
}

.window-dots span:nth-child(3) {
  background: var(--accent);
}

.logo-canvas {
  display: grid;
  place-items: center;
  min-height: 430px;
  padding: clamp(18px, 5vw, 58px);
}

.builder {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 0 clamp(18px, 4vw, 52px);
}

.builder-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  padding: 34px clamp(18px, 4vw, 52px) 0;
}

.builder-intro h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 28px rgba(23, 33, 28, 0.07);
}

.panel-header {
  padding: 18px 18px 0;
}

.panel-header h2 {
  margin-bottom: 6px;
  font-size: 1.25rem;
}

.panel-header p {
  color: var(--muted);
  line-height: 1.6;
}

.form-grid {
  display: grid;
  gap: 15px;
  padding: 18px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(13, 127, 111, 0.14);
}

textarea {
  min-height: 78px;
  resize: vertical;
}

.color-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

input[type="color"] {
  height: 44px;
  padding: 4px;
}

input[type="checkbox"] {
  width: auto;
  margin: 0;
  accent-color: var(--accent);
}

.checkline {
  display: flex;
  grid-template-columns: none;
  align-items: flex-start;
  gap: 9px;
  font-weight: 500;
}

.logo-output {
  display: grid;
  gap: 16px;
}

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

.kit-card {
  display: grid;
  gap: 8px;
  min-height: 112px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.kit-card span {
  color: var(--muted);
  font-size: 0.86rem;
}

.kit-card strong {
  line-height: 1.55;
}

.usage-preview {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 12px;
}

.mock {
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.business-card {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 22px;
}

.business-card strong,
.avatar-card strong,
.social-card strong {
  font-size: 1.08rem;
}

.business-card span,
.business-card small,
.social-card span {
  color: var(--muted);
}

.mini-logo {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: rgba(13, 127, 111, 0.09);
}

.mini-logo path,
.avatar-ring path {
  fill: none;
  stroke: currentColor;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.avatar-card {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  text-align: center;
  padding: 18px;
}

.avatar-ring {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  color: #fff;
}

.social-card {
  display: grid;
  grid-template-columns: 82px 1fr;
  align-items: center;
}

.social-band {
  height: 100%;
}

.social-card div:last-child {
  display: grid;
  gap: 7px;
  padding: 18px;
}

.palette-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 150px;
}

.palette-card span {
  min-width: 0;
}

.download-note,
.status-note {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(280px, 430px) minmax(280px, 1fr);
  gap: 28px;
  align-items: stretch;
  max-width: 1080px;
  margin: 28px auto;
}

.auth-card,
.legal-page {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.auth-card {
  padding: 24px;
}

.auth-card h1,
.legal-page h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.12;
}

.auth-card p,
.legal-page p,
.legal-page li {
  color: var(--muted);
  line-height: 1.85;
}

.auth-side {
  display: grid;
  align-content: center;
  min-height: 360px;
  padding: 30px;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(7, 93, 84, 0.92), rgba(23, 33, 28, 0.82)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='600' viewBox='0 0 900 600'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.24' stroke-width='3'%3E%3Cpath d='M170 130h170v170H170z'/%3E%3Ccircle cx='570' cy='210' r='95'/%3E%3Cpath d='M288 430l92-160 92 160zM605 392c70-92 140-92 210 0'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  box-shadow: var(--shadow);
}

.auth-side p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 520px;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
}

.tabs button {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}

.tabs button.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.account-panel {
  max-width: 980px;
  margin: 28px auto;
}

.account-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
}

.account-stats div {
  display: grid;
  gap: 4px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.account-stats strong {
  font-size: 1.7rem;
}

.account-stats span {
  color: var(--muted);
}

.saved-list {
  display: grid;
  gap: 12px;
  padding: 0 18px 18px;
}

.saved-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.saved-thumb {
  width: 64px;
  height: 64px;
}

.legal-page {
  max-width: 980px;
  margin: 28px auto;
  padding: clamp(22px, 4vw, 44px);
}

.legal-page h2 {
  margin-top: 30px;
  font-size: 1.25rem;
}

.legal-page ul {
  padding-left: 20px;
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: clamp(28px, 8vw, 120px);
  align-items: start;
  margin-top: 96px;
  padding: 34px clamp(18px, 4vw, 52px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
}

.footer button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  text-align: left;
  padding: 0;
}

.footer p {
  max-width: 360px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.footer-brand {
  padding: 0;
}

.footer-links {
  display: grid;
  gap: 10px;
  min-width: 140px;
}

.footer-links strong {
  color: var(--ink);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  max-width: min(360px, calc(100vw - 36px));
  padding: 13px 15px;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  box-shadow: var(--shadow);
}

@media (max-width: 900px) {
  .hero,
  .builder,
  .auth-layout,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .feature-strip,
  .template-grid,
  .template-ribbon,
  .kit-grid,
  .usage-preview,
  .benefit-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

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

  .timeline {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    padding: 0 clamp(18px, 4vw, 52px);
  }

  .footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
    gap: 8px;
  }

  .logo-canvas {
    min-height: 310px;
  }

  .color-row,
  .saved-item,
  .account-stats {
    grid-template-columns: 1fr;
  }

  .saved-item {
    display: grid;
  }

  .template-card.compact {
    grid-template-columns: 40px 1fr;
  }

  .social-card {
    grid-template-columns: 58px 1fr;
  }

  .newsletter-form {
    grid-template-columns: 1fr;
  }
}
