:root {
  --bg: #0c0e14;
  --bg-elevated: #12151c;
  --surface: #161a24;
  --surface-hover: #1c2130;
  --text: #f1f2f4;
  --text-muted: #8b92a8;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.12);
  --primary-from: #818cf8;
  --primary-to: #c084fc;
  --primary-hover-from: #6366f1;
  --primary-hover-to: #a855f7;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 56px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(129, 140, 248, 0.12);
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --transition: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -30%, rgba(99, 102, 241, 0.14), transparent),
    radial-gradient(ellipse 70% 50% at 100% 50%, rgba(139, 92, 246, 0.06), transparent);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

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

.hidden {
  display: none !important;
}

.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 14, 20, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

@media (min-width: 768px) {
  .header-inner {
    min-height: 4.75rem;
  }
}

.logo {
  font-weight: 700;
  font-size: 1.375rem;
  background: linear-gradient(135deg, var(--primary-from), var(--primary-to));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.nav {
  display: none;
  gap: 1rem;
}

@media (min-width: 900px) {
  .nav {
    gap: 1.25rem;
  }
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: color var(--transition);
}

@media (min-width: 900px) {
  .nav a {
    font-size: 1rem;
  }
}

.header-auth-btn {
  padding: 0.6rem 1.1rem;
  font-size: 0.875rem;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--text);
}

.header-actions {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 1.35rem;
  background: var(--text);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

@media (min-width: 768px) {
  .nav,
  .header-actions {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
}

body.nav-open .header-inner {
  flex-wrap: wrap;
  row-gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

body.nav-open .nav {
  display: flex;
  flex-direction: column;
  order: 3;
  width: 100%;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

body.nav-open .header-actions {
  display: flex;
  flex-wrap: wrap;
  order: 4;
  width: 100%;
  gap: 0.5rem;
}

body.nav-open .logo {
  order: 1;
}

body.nav-open .nav-toggle {
  order: 2;
  margin-left: auto;
}

@media (min-width: 768px) {
  body.nav-open .header-inner {
    flex-wrap: nowrap;
    padding-bottom: 0;
    border-bottom: none;
    row-gap: 0;
  }
  body.nav-open .nav,
  body.nav-open .header-actions {
    order: unset;
    width: auto;
    padding-top: 0;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.125rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
}

.btn:active {
  transform: scale(0.98);
}

.btn-sm {
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  color: #0c0e14;
  background: linear-gradient(135deg, var(--primary-from), var(--primary-to));
  box-shadow: 0 4px 20px rgba(129, 140, 248, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #949cff, #d8b4fe);
  box-shadow: 0 6px 28px rgba(129, 140, 248, 0.45);
}

.btn-secondary {
  color: var(--primary-from);
  background: rgba(129, 140, 248, 0.12);
  border-color: rgba(129, 140, 248, 0.28);
}

.btn-secondary:hover {
  background: rgba(129, 140, 248, 0.2);
  border-color: rgba(129, 140, 248, 0.4);
}

.btn-outline {
  color: var(--text);
  background: transparent;
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
}

.btn-ghost {
  color: var(--text-muted);
  background: transparent;
}

.btn-ghost:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(4rem, 10vw, 6rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 75% -5%, rgba(139, 92, 246, 0.22), transparent),
    radial-gradient(ellipse 55% 45% at 5% 45%, rgba(99, 102, 241, 0.14), transparent);
  pointer-events: none;
}

.hero-layout {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2rem, 5vw, 2.75rem);
}

.hero-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  /* Wider than typical body copy so long H1 can stay one line when viewport allows */
  max-width: min(54rem, 100%);
  width: 100%;
}

.hero h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(2.35rem, 6.2vw, 3.35rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.hero-lead {
  margin: 0 0 1.35rem;
  max-width: 38rem;
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-muted);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Hero flow (Mochi hero-flow-demo): SVG linky + JS animace */
.hero-flow {
  width: 100%;
  max-width: min(56rem, 100%);
  margin-top: clamp(1.75rem, 4vw, 2.25rem);
  padding: 0;
  font-family: var(--font);
}

.hero-flow .hfd-root {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
}

.hero-flow .hfd-idea-node {
  padding: 0.55rem 1.1rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
  z-index: 2;
}

.hero-flow .hfd-h-stem {
  width: clamp(2.25rem, 5vw, 3.5rem);
  height: 1.5px;
  flex-shrink: 0;
  background: linear-gradient(to right, rgba(167, 139, 250, 0.25), rgba(167, 139, 250, 0.4));
  z-index: 2;
}

.hero-flow .hfd-founderslab-node {
  flex-shrink: 0;
  z-index: 2;
  min-width: min(170px, 46vw);
  padding: 1.25rem 2rem;
  text-align: center;
  background: linear-gradient(145deg, #1e1a36 0%, #16132a 100%);
  border: 1px solid rgba(167, 139, 250, 0.28);
  border-radius: 18px;
  box-shadow:
    0 0 0 1px rgba(167, 139, 250, 0.06),
    0 24px 64px rgba(0, 0, 0, 0.5),
    0 0 48px rgba(100, 60, 220, 0.09);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.hero-flow .hfd-founderslab-node.hfd-lit {
  border-color: rgba(167, 139, 250, 0.6);
  box-shadow:
    0 0 0 1px rgba(167, 139, 250, 0.14),
    0 24px 64px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(167, 139, 250, 0.2);
}

.hero-flow .hfd-sl-label {
  margin-bottom: 0.3rem;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(167, 139, 250, 0.5);
}

.hero-flow .hfd-sl-name {
  font-size: clamp(1.35rem, 3.5vw, 1.625rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.hero-flow .hfd-branch-gap {
  width: clamp(3rem, 10vw, 6.25rem);
  flex-shrink: 0;
  position: relative;
  min-height: 1px;
  z-index: 2;
}

.hero-flow .hfd-flow-right {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex-shrink: 0;
  z-index: 2;
}

.hero-flow .hfd-branch-card {
  padding: 0.75rem 1.1rem;
  min-width: min(200px, 72vw);
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  transition: border-color 0.2s, background 0.2s;
}

.hero-flow .hfd-branch-card.hfd-lit {
  border-color: rgba(167, 139, 250, 0.38);
  background: rgba(167, 139, 250, 0.07);
}

.hero-flow .hfd-branch-title {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.1rem;
}

.hero-flow .hfd-branch-desc {
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1.4;
}

.hero-flow .hfd-flow-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 639px) {
  .hero-cta .btn-lg {
    width: 100%;
    max-width: 20rem;
  }

  .hero-lead {
    max-width: 100%;
    padding-inline: 0.25rem;
    font-size: 1rem;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 8vw, 2.5rem);
    padding-inline: 0.25rem;
  }

  .hero-flow {
    max-width: 100%;
    padding-inline: 0.25rem;
  }

  .hero-flow .hfd-root {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
  }

  .hero-flow .hfd-h-stem {
    width: 2px;
    height: 1.15rem;
    margin: 0;
    background: linear-gradient(
      to bottom,
      rgba(167, 139, 250, 0.35),
      rgba(167, 139, 250, 0.12)
    );
  }

  .hero-flow .hfd-branch-gap {
    width: 100%;
    max-width: 22rem;
    height: 0.75rem;
    flex: 0 0 auto;
  }

  .hero-flow .hfd-flow-right {
    width: 100%;
    max-width: 22rem;
  }

  .hero-flow .hfd-founderslab-node {
    width: 100%;
    max-width: 20rem;
    min-width: 0;
    padding: 1rem 1.35rem;
  }

  .hero-flow .hfd-idea-node {
    font-size: 0.75rem;
    padding: 0.5rem 1.15rem;
  }

  .hero-flow .hfd-branch-card {
    min-width: 0;
    width: 100%;
    max-width: none;
    padding: 0.8rem 1rem;
  }

  .hero-flow .hfd-branch-title {
    font-size: 0.6875rem;
  }

  .hero-flow .hfd-branch-desc {
    font-size: 0.8125rem;
  }
}

/* Template showcase (SaaS + shop) */
.template-section {
  padding: clamp(3rem, 7vw, 5rem) 0;
  border-bottom: 1px solid var(--border);
}

.template-section--alt {
  background: rgba(18, 21, 30, 0.45);
}

.template-tabs-header {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto clamp(1.75rem, 4vw, 2.25rem);
}

.template-tabs-header h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.8vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.template-tablist {
  display: flex;
  gap: 0.35rem;
  max-width: 28rem;
  margin: 0 auto clamp(2rem, 5vw, 2.75rem);
  padding: 0.3rem;
  background: var(--bg-elevated);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.template-tab {
  flex: 1;
  padding: 0.55rem 0.85rem;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

@media (min-width: 480px) {
  .template-tab {
    font-size: 0.875rem;
    padding: 0.6rem 1rem;
  }
}

.template-tab:hover {
  color: var(--text);
}

.template-tab.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.template-tab:focus-visible {
  outline: 2px solid var(--primary-from);
  outline-offset: 2px;
}

.template-tabpanel[hidden] {
  display: none !important;
}

.template-grid {
  display: grid;
  gap: 2.25rem;
  align-items: center;
}

@media (min-width: 900px) {
  .template-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .template-grid--reverse .template-visual {
    order: 2;
  }

  .template-grid--reverse .template-copy {
    order: 1;
  }
}

.template-copy h2,
.template-copy h3 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.5rem, 2.8vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.template-lead {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.template-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.template-list li {
  position: relative;
  margin-bottom: 0.75rem;
  padding-left: 1.1rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.template-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-from), var(--primary-to));
}

.template-panel--shop .template-list li::before {
  background: linear-gradient(135deg, #e8b86d, #f59e0b);
}

.template-list strong {
  color: var(--text);
  font-weight: 600;
}

/* Template browser mockups */
.tpl-browser {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  max-width: 480px;
  margin-inline: auto;
}

.tpl-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(180deg, #1a1f2e, #141824);
  border-bottom: 1px solid var(--border);
}

.tpl-chrome--shop {
  background: linear-gradient(180deg, #1f1812, #16100c);
  border-bottom-color: rgba(232, 184, 109, 0.15);
}

.tpl-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3f4556;
}

.tpl-chrome .tpl-dot:nth-child(1) {
  background: #ef4444;
}
.tpl-chrome .tpl-dot:nth-child(2) {
  background: #eab308;
}
.tpl-chrome .tpl-dot:nth-child(3) {
  background: #22c55e;
}

.tpl-url {
  flex: 1;
  text-align: center;
  font-size: 0.65rem;
  color: var(--text-muted);
  opacity: 0.85;
}

.tpl-body {
  padding: 0.65rem 0.75rem 0.85rem;
}

/* SaaS mock */
.tpl-saas-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.tpl-saas-logo {
  width: 52px;
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--primary-from), var(--primary-to));
  opacity: 0.85;
}

.tpl-saas-links {
  flex: 1;
  height: 6px;
  border-radius: 2px;
  background: var(--border-strong);
  max-width: 120px;
  margin-left: auto;
  margin-right: 0.5rem;
}

.tpl-saas-cta {
  width: 48px;
  height: 18px;
  border-radius: 5px;
  background: rgba(129, 140, 248, 0.25);
  border: 1px solid rgba(129, 140, 248, 0.35);
}

.tpl-saas-hero {
  padding: 0.75rem 0.5rem;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  margin-bottom: 0.6rem;
}

.tpl-saas-headline {
  display: block;
  height: 12px;
  width: 78%;
  border-radius: 3px;
  background: var(--text);
  opacity: 0.12;
  margin-bottom: 0.4rem;
}

.tpl-saas-sub {
  display: block;
  height: 7px;
  width: 92%;
  border-radius: 2px;
  background: var(--text-muted);
  opacity: 0.2;
  margin-bottom: 0.55rem;
}

.tpl-saas-btns {
  display: flex;
  gap: 0.35rem;
}

.tpl-saas-btns i {
  display: block;
  width: 56px;
  height: 16px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--primary-from), var(--primary-to));
  opacity: 0.7;
}

.tpl-saas-btns i:last-child {
  background: transparent;
  border: 1px solid var(--border-strong);
  opacity: 1;
}

.tpl-saas-logos {
  display: flex;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.6rem;
  padding: 0.35rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.tpl-saas-logos span {
  flex: 1;
  height: 14px;
  border-radius: 3px;
  background: var(--border-strong);
  opacity: 0.6;
}

.tpl-saas-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.tpl-saas-col {
  height: 52px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.tpl-saas-pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
}

.tpl-saas-p-card {
  height: 44px;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.tpl-saas-p-card--hi {
  border-color: rgba(129, 140, 248, 0.45);
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.12);
  background: rgba(129, 140, 248, 0.06);
}

/* Shop mock */
.tpl-shop {
  padding-bottom: 0.65rem;
}

.tpl-shop-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  align-items: stretch;
}

.tpl-shop-hero-img {
  min-height: 72px;
  border-radius: 10px;
  background: linear-gradient(145deg, #2a2218, #1a1510);
  border: 1px solid rgba(232, 184, 109, 0.2);
}

.tpl-shop-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.25rem 0;
}

.tpl-shop-badge {
  align-self: flex-start;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  color: #0c0e14;
  background: linear-gradient(135deg, #e8b86d, #f59e0b);
}

.tpl-shop-title {
  display: block;
  height: 10px;
  width: 90%;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.tpl-shop-price {
  display: block;
  height: 14px;
  width: 40%;
  border-radius: 3px;
  background: rgba(232, 184, 109, 0.35);
}

.tpl-shop-section-label {
  margin: 0 0 0.4rem;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(232, 184, 109, 0.75);
}

.tpl-shop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.tpl-shop-card {
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid rgba(232, 184, 109, 0.12);
  overflow: hidden;
}

.tpl-shop-card-img {
  display: block;
  height: 48px;
  background: linear-gradient(180deg, #252018, #1a1612);
}

.tpl-shop-card-meta {
  display: block;
  height: 16px;
  margin: 0.35rem;
  border-radius: 2px;
  background: var(--border-strong);
}

.tpl-shop-trust {
  display: flex;
  justify-content: space-between;
  gap: 0.35rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--border);
  font-size: 0.5625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* Sections */
.section-head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 3rem;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

.use-cases {
  padding: clamp(4rem, 10vw, 5.5rem) 0;
  background: rgba(18, 21, 28, 0.6);
  border-block: 1px solid var(--border);
}

.use-case-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .use-case-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .use-case-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.use-card {
  padding: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.use-card:hover {
  border-color: rgba(129, 140, 248, 0.35);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.use-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary-from);
  background: rgba(129, 140, 248, 0.12);
  border-radius: 12px;
}

.use-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.use-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.use-cases--compact {
  padding: clamp(1.75rem, 4vw, 2.5rem) 0;
}

.use-cases--compact .use-case-grid {
  gap: 0.65rem;
}

.use-cases--compact .use-card {
  padding: 0.85rem 0.95rem 0.95rem;
}

.use-cases--compact .use-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.use-cases--compact .use-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 0.55rem;
  border-radius: 9px;
}

.use-cases--compact .use-icon svg {
  width: 20px;
  height: 20px;
}

.use-cases--compact .use-card h3 {
  font-size: 0.875rem;
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.use-cases--compact .use-card p {
  font-size: 0.75rem;
  line-height: 1.4;
}

/* Pricing */
.pricing {
  padding: clamp(4rem, 10vw, 5.5rem) 0;
}

.pricing-grid {
  display: grid;
  gap: 1.25rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  .pricing .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1120px;
    margin-inline: auto;
  }
}

.pricing-addon-note {
  margin: 2rem auto 0;
  max-width: 36rem;
  text-align: center;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.price--contact {
  margin-bottom: 1rem;
}

.price--contact .amount-label {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
}

.price-card-tokens .price-lead--idea-machine {
  margin-bottom: 1.5rem;
}

.price-card-tokens > .btn-outline {
  margin-top: auto;
}

.price-card {
  position: relative;
  padding: 1.75rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}

.pricing .price-card {
  min-height: clamp(26rem, 48vh, 34rem);
  padding: 2.125rem 1.875rem;
}

.price-card:hover {
  box-shadow: var(--shadow-md);
}

.price-card-featured {
  border-color: transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, var(--primary-from), var(--primary-to)) border-box;
  border: 2px solid transparent;
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
  z-index: 1;
}

@media (max-width: 767px) {
  .price-card-featured {
    transform: none;
  }
}

.price-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #0c0e14;
  background: linear-gradient(135deg, var(--primary-from), var(--primary-to));
  border-radius: 999px;
  white-space: nowrap;
}

.price-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
}

.price {
  margin: 0 0 1.25rem;
}

.price .amount {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.price .period {
  font-size: 0.9375rem;
  color: var(--text-muted);
  font-weight: 500;
}

.price-lead {
  margin: -0.25rem 0 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.price--tokens {
  margin-bottom: 0.75rem;
}

.price--tokens .amount-label {
  display: block;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.price--tokens .period {
  display: block;
  margin-top: 0.2rem;
}

.price-features-intro {
  margin: 0 0 0.65rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.price-features-intro strong {
  color: var(--text);
  font-weight: 600;
}

.price-features {
  display: flex;
  flex-direction: column;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  flex: 1;
}

.price-features li:last-child {
  margin-top: auto;
  margin-bottom: 0;
}

.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.625rem;
  padding-left: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.price-features li::before {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  margin-top: calc(0.775em - 3px);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-from), var(--primary-to));
}

.pricing .price-features li strong {
  color: #fff;
  font-weight: 700;
}

/* Auth teaser */
.auth-anchor {
  padding: clamp(3.5rem, 8vw, 5rem) 0;
  background: linear-gradient(180deg, rgba(129, 140, 248, 0.08), transparent);
  border-top: 1px solid var(--border);
}

.auth-teaser {
  text-align: center;
  max-width: 32rem;
}

.auth-teaser h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.footer-copy {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-overlay.is-open .modal {
  transform: translateY(0) scale(1);
}

.modal {
  position: relative;
  width: min(400px, 100%);
  padding: 2rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--border-strong);
  border: 1px solid var(--border-strong);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s ease;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}

.modal-close:hover {
  background: var(--bg-elevated);
  color: var(--text);
}

.modal--waitlist {
  width: min(420px, 100%);
}

.modal--waitlist #auth-modal-title {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.waitlist-lead {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.waitlist-success {
  text-align: center;
  padding: 0.25rem 0 0.25rem;
}

.waitlist-success-icon {
  display: flex;
  justify-content: center;
  margin: 0 0 1rem;
  color: #4ade80;
  line-height: 0;
}

.waitlist-success-title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
}

.waitlist-success-text {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.auth-form label.auth-field {
  display: block;
  margin-bottom: 1rem;
}

.auth-form label.auth-field > span:first-of-type {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.auth-field-error {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
  color: #f87171;
}

.auth-field--invalid input {
  border-color: rgba(248, 113, 113, 0.65);
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.25);
}

.auth-field--invalid input:focus {
  border-color: #f87171;
  box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.2);
}

.auth-form input {
  width: 100%;
  padding: 0.65rem 0.875rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.auth-form input::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--primary-from);
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.2);
}

.auth-form button[type="submit"] {
  margin-top: 0.5rem;
}

/* Dashboard */
.app-dashboard {
  min-height: 100vh;
  background: var(--bg);
}

.dash-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(12, 14, 20, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.dash-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
}

.dash-content {
  padding: 3rem 0;
}

.dash-content h1 {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
}

.dash-lead {
  margin: 0 0 2rem;
  color: var(--text-muted);
  max-width: 42rem;
}

.dash-placeholder {
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  color: var(--text-muted);
}

body.app-mode .site-header,
body.app-mode main,
body.app-mode .site-footer {
  display: none;
}

body.app-mode .app-dashboard {
  display: block;
}
