:root {
  --ink: #0b1215;
  --muted: #58646a;
  --soft: #eef3f1;
  --line: #dce5e1;
  --panel: #ffffff;
  --dark: #10181b;
  --green: #21c991;
  --green-dark: #0f8f67;
  --blue: #2164ff;
  --amber: #f5b941;
  --lime: #f7ff5a;
  --shadow: 0 22px 55px rgba(10, 18, 21, 0.11);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px max(24px, calc((100vw - var(--max)) / 2));
  background: rgba(255, 255, 255, 0.93);
  border-bottom: 1px solid rgba(11, 18, 21, 0.08);
  backdrop-filter: blur(18px);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  color: var(--ink);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 640;
}

.site-nav a:hover,
.nav-login:hover {
  color: var(--ink);
}

.nav-cta,
.btn {
  max-width: 100%;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 760;
  white-space: nowrap;
}

.nav-cta,
.btn-primary {
  color: var(--ink);
  background: var(--lime);
  border-color: rgba(11, 18, 21, 0.86);
  box-shadow: 0 8px 0 var(--ink);
}

.nav-cta:hover,
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 0 var(--ink);
}

.btn-secondary {
  background: #fff;
  border-color: rgba(11, 18, 21, 0.22);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--ink);
}

.btn-dark {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.nav-login {
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 640;
}

.auth-user {
  align-items: center;
  gap: 8px;
  padding: 4px 8px 4px 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.auth-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--soft);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  border-radius: 2px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(460px, 1.08fr);
  gap: 54px;
  align-items: center;
  max-width: var(--max);
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: 64px 24px 70px;
}

.hero-copy h1,
.page-hero h1 {
  max-width: 760px;
  margin: 0 0 22px;
  font-size: 4.35rem;
  line-height: 0.96;
  font-weight: 860;
  overflow-wrap: anywhere;
}

.mobile-break {
  display: none;
}

.hero-copy,
.page-hero,
.section,
.page-section {
  min-width: 0;
}

.hero-copy p,
.page-hero p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 1.18rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

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

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-proof span,
.pill {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #2b373b;
  background: #f9fbfa;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: normal;
}

.hero-studio {
  min-width: 0;
  width: 100%;
  border: 1px solid rgba(11, 18, 21, 0.12);
  border-radius: var(--radius);
  background: #f8fbfa;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.studio-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 0.88rem;
}

.studio-topbar strong {
  margin-left: 8px;
  color: var(--ink);
}

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

.studio-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 14px;
  padding: 16px;
}

.upload-panel,
.preview-panel,
.prompt-panel,
.stat-panel,
.workspace-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.upload-panel {
  padding: 16px;
}

.upload-panel p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.product-shot {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(33, 100, 255, 0.11), rgba(33, 201, 145, 0.12)),
    repeating-linear-gradient(0deg, #fff 0 16px, #f3f7f5 16px 17px);
  overflow: hidden;
}

.product-box {
  width: 48%;
  height: 58%;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: linear-gradient(150deg, #fff 0%, #f8ff72 58%, #45e6b0 100%);
  box-shadow: 12px 14px 0 rgba(11, 18, 21, 0.16);
}

.product-glow {
  position: absolute;
  width: 80%;
  height: 32%;
  bottom: 18%;
  background: rgba(33, 100, 255, 0.16);
  transform: skewX(-18deg);
}

.preview-panel {
  padding: 12px;
}

.video-screen {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 254px;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(11, 18, 21, 0.94), rgba(11, 18, 21, 0.66)),
    linear-gradient(45deg, #1bffb1, #2164ff);
}

.video-screen::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
}

.video-caption {
  position: absolute;
  left: 22px;
  bottom: 18px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
}

.play-ring {
  width: 66px;
  height: 66px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.08);
}

.play-ring::after {
  content: "";
  display: block;
  margin: 22px 0 0 27px;
  border-left: 17px solid #fff;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}

.timeline {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.timeline span {
  height: 12px;
  border-radius: 4px;
  background: var(--green);
}

.timeline span:nth-child(2) {
  background: var(--blue);
}

.timeline span:nth-child(3) {
  background: var(--amber);
}

.prompt-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 12px;
}

.prompt-row {
  padding: 12px;
  border-radius: 6px;
  background: #f6faf8;
}

.prompt-row b,
.prompt-row span {
  display: block;
}

.prompt-row b {
  margin-bottom: 4px;
  font-size: 0.82rem;
}

.prompt-row span {
  color: var(--muted);
  font-size: 0.88rem;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 86px 24px;
}

.section-label {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 860;
  text-transform: uppercase;
}

.section h2,
.page-section h2 {
  max-width: 820px;
  margin: 0;
  font-size: 2.55rem;
  line-height: 1.08;
}

.section-lead {
  max-width: 610px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
  margin-bottom: 34px;
}

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

.workflow-list {
  display: grid;
  gap: 14px;
}

.workflow-list article,
.use-card,
.template-card,
.trust-grid article,
.mini-pricing article,
.plan-card,
.resource-card,
.faq-list details,
.landing-card,
.template-item,
.studio-field,
.result-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.workflow-list article {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 22px;
}

.workflow-list span {
  color: var(--blue);
  font-weight: 880;
}

.workflow-list h3,
.use-card h3,
.template-card h3,
.trust-grid h3,
.plan-card h3,
.resource-card h3,
.landing-card h3,
.template-item h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.workflow-list p,
.use-card p,
.template-card p,
.trust-grid p,
.mini-pricing p,
.plan-card p,
.resource-card p,
.landing-card p,
.template-item p {
  margin: 0;
  color: var(--muted);
}

.use-case-band,
.trust-section,
.pricing-strip {
  max-width: none;
  padding-left: max(24px, calc((100vw - var(--max)) / 2));
  padding-right: max(24px, calc((100vw - var(--max)) / 2));
  background: #f6faf8;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.use-case-grid,
.trust-grid,
.resource-grid,
.landing-grid,
.template-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.use-card,
.landing-card,
.resource-card,
.template-item {
  padding: 22px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.use-card:hover,
.resource-card:hover,
.template-item:hover {
  transform: translateY(-3px);
  border-color: rgba(11, 18, 21, 0.38);
  box-shadow: 0 16px 36px rgba(11, 18, 21, 0.08);
}

.use-card span,
.resource-card span,
.template-item span {
  display: block;
  margin-bottom: 12px;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.template-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.template-card {
  padding: 14px;
}

.template-card h3,
.template-card p {
  padding: 0 6px;
}

.template-frame {
  min-height: 250px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(11, 18, 21, 0.1);
  background: linear-gradient(145deg, #f7ff5a, #45e6b0);
}

.template-frame.skincare {
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.86), rgba(33, 201, 145, 0.22)),
    linear-gradient(45deg, #ffffff 0 38%, #f7ff5a 38% 58%, #21c991 58% 100%);
}

.template-frame.problem {
  background:
    linear-gradient(135deg, rgba(11, 18, 21, 0.92), rgba(11, 18, 21, 0.74)),
    linear-gradient(45deg, #2164ff, #21c991);
}

.template-frame.ugc {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.16)),
    repeating-linear-gradient(90deg, #f6faf8 0 36px, #ffffff 36px 72px);
}

.center-actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.trust-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 44px;
  align-items: center;
  background: var(--dark);
  color: #fff;
}

.trust-copy p:not(.section-label),
.trust-grid p {
  color: rgba(255, 255, 255, 0.72);
}

.trust-section .section-label {
  color: var(--lime);
}

.trust-grid {
  grid-template-columns: repeat(3, 1fr);
}

.trust-grid article {
  min-height: 176px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.pricing-strip {
  display: grid;
  grid-template-columns: 0.8fr 1fr auto;
  gap: 24px;
  align-items: center;
  background: #fff;
}

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

.mini-pricing article {
  padding: 16px;
}

.mini-pricing span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.mini-pricing strong {
  display: block;
  margin: 6px 0;
  font-size: 1.55rem;
}

.faq-section {
  max-width: 900px;
}

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

.faq-list details {
  padding: 18px 20px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 760;
}

.faq-list p {
  margin: 12px 0 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 36px;
  padding: 46px max(24px, calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--line);
  background: #f6faf8;
}

.site-footer p {
  max-width: 420px;
  color: var(--muted);
}

.site-footer nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, auto));
  gap: 12px 26px;
  color: var(--muted);
  font-weight: 680;
}

.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 24px 50px;
}

.page-hero.compact {
  padding-bottom: 24px;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 46px;
  align-items: center;
}

.page-visual {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}

.page-visual img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: top center;
}

.page-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 58px 24px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.plan-card {
  position: relative;
  padding: 26px;
}

.plan-card.featured {
  border-color: var(--ink);
  box-shadow: 0 12px 0 var(--ink);
}

.plan-card .price {
  display: flex;
  align-items: end;
  gap: 8px;
  margin: 16px 0;
}

.plan-card .price strong {
  font-size: 2.8rem;
  line-height: 1;
}

.plan-card ul {
  display: grid;
  gap: 10px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
  color: #344044;
}

.plan-card li::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--green);
}

.plan-card .btn {
  width: 100%;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  max-width: 360px;
  padding: 14px 16px;
  border: 1px solid rgba(11, 18, 21, 0.18);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--ink);
}

.studio-page {
  min-height: calc(100vh - 72px);
  background: #f6faf8;
}

.studio-shell {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr) 330px;
  gap: 16px;
  max-width: 1480px;
  margin: 0 auto;
  padding: 22px;
}

.workspace-panel {
  min-height: 680px;
  padding: 22px;
}

.workspace-panel h1,
.workspace-panel h2,
.studio-field h2 {
  margin: 0 0 16px;
}

.studio-field {
  padding: 18px;
}

.studio-form {
  display: grid;
  gap: 14px;
}

.studio-form label {
  display: grid;
  gap: 7px;
  color: #303b3f;
  font-size: 0.9rem;
  font-weight: 760;
}

.studio-form input,
.studio-form select,
.studio-form textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 10px 12px;
  color: var(--ink);
}

.studio-form textarea {
  min-height: 126px;
  resize: vertical;
}

.canvas-preview {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
}

.video-canvas {
  display: grid;
  place-items: center;
  min-height: 430px;
  border-radius: var(--radius);
  border: 1px solid rgba(11, 18, 21, 0.12);
  background:
    linear-gradient(135deg, rgba(11, 18, 21, 0.92), rgba(11, 18, 21, 0.62)),
    linear-gradient(45deg, #21c991, #2164ff);
  color: #fff;
}

.canvas-copy {
  max-width: 420px;
  text-align: center;
}

.canvas-copy h2 {
  font-size: 2.1rem;
}

.canvas-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.result-box {
  min-height: 176px;
  padding: 16px;
  background: #fff;
  color: var(--muted);
  white-space: pre-wrap;
}

.auth-gate {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 72px);
  padding: 24px;
  background: #f6faf8;
}

.auth-card {
  max-width: 480px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.landing-hero {
  background: #f6faf8;
  border-bottom: 1px solid var(--line);
}

.landing-hero .page-hero {
  padding-top: 68px;
  padding-bottom: 68px;
}

.landing-grid {
  grid-template-columns: repeat(3, 1fr);
}

.landing-card {
  min-height: 190px;
}

.resource-grid {
  grid-template-columns: repeat(3, 1fr);
}

.template-grid {
  grid-template-columns: repeat(3, 1fr);
}

.template-item {
  min-height: 310px;
}

.template-thumb {
  height: 154px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(11, 18, 21, 0.1);
  background: linear-gradient(145deg, rgba(33, 100, 255, 0.16), rgba(33, 201, 145, 0.3));
}

.template-thumb.dark {
  background: linear-gradient(145deg, #111b1f, #2164ff);
}

.template-thumb.light {
  background: linear-gradient(145deg, #fff, #f7ff5a);
}

.template-thumb.motion {
  background: repeating-linear-gradient(90deg, #ffffff 0 28px, #e9f5f0 28px 56px);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.compare-table th,
.compare-table td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.compare-table th {
  background: #f6faf8;
}

.compare-table tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 1080px) {
  .hero,
  .split-section,
  .page-hero-grid,
  .trust-section,
  .pricing-strip {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: 3.45rem;
  }

  .use-case-grid,
  .trust-grid,
  .pricing-grid,
  .resource-grid,
  .template-grid,
  .landing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .studio-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .site-header {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a,
  .site-nav button {
    justify-content: flex-start;
    min-height: 44px;
    padding: 0 10px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 44px 16px 58px;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: 2.34rem;
    line-height: 1.12;
  }

  .mobile-break {
    display: block;
  }

  .section h2,
  .page-section h2 {
    font-size: 2rem;
  }

  .studio-grid,
  .prompt-panel,
  .template-rail,
  .mini-pricing,
  .use-case-grid,
  .trust-grid,
  .pricing-grid,
  .resource-grid,
  .template-grid,
  .landing-grid {
    grid-template-columns: 1fr;
  }

  .section,
  .page-section {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .section-heading,
  .site-footer {
    display: grid;
  }

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

  .page-visual img {
    height: 360px;
  }
}

@media (max-width: 520px) {
  .hero {
    width: 100vw;
    max-width: 100vw;
    overflow: hidden;
  }

  .hero-copy,
  .hero-studio,
  .hero-actions,
  .hero-proof {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: 2.08rem;
  }

  .hero-copy p,
  .page-hero p {
    font-size: 1rem;
    word-break: break-all;
  }

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

  .hero-proof span {
    min-width: 0;
    justify-content: center;
    font-size: 0.82rem;
    text-align: center;
  }

  .workflow-list article {
    grid-template-columns: 1fr;
  }

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