:root {
  color-scheme: dark;
  --bg: #08090d;
  --bg-soft: #101219;
  --surface: #151822;
  --surface-2: #1d222d;
  --text: #f6f7fb;
  --muted: #adb5c7;
  --line: rgba(255, 255, 255, 0.14);
  --coral: #ff6b4a;
  --lime: #b8ff5c;
  --cyan: #42d7ff;
  --ink: #08090d;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 9, 13, 0.82);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(184, 255, 92, 0.95), rgba(66, 215, 255, 0.94)),
    var(--lime);
  color: var(--ink);
  font-size: 18px;
  box-shadow: 0 10px 28px rgba(66, 215, 255, 0.2);
}

.brand-name {
  font-size: 17px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  text-decoration: none;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

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

.button-primary {
  color: var(--ink);
  background: var(--lime);
  box-shadow: 0 12px 30px rgba(184, 255, 92, 0.18);
}

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

.hero {
  position: relative;
  min-height: 86svh;
  overflow: hidden;
  display: grid;
  align-items: end;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.68;
  filter: saturate(1.08) contrast(1.05);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 9, 13, 0.92), rgba(8, 9, 13, 0.38)),
    linear-gradient(0deg, rgba(8, 9, 13, 0.96), rgba(8, 9, 13, 0.04) 52%);
}

.hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--lime);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 22px rgba(184, 255, 92, 0.9);
}

.hero h1 {
  max-width: 860px;
  margin: 18px 0 20px;
  font-size: clamp(48px, 7.4vw, 94px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 700px;
  gap: 1px;
  margin-top: 42px;
  border: 1px solid var(--line);
  background: var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.stat {
  background: rgba(12, 14, 20, 0.78);
  padding: 18px;
}

.stat strong {
  display: block;
  font-size: 25px;
  line-height: 1.1;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 84px 0;
}

.section-alt {
  background: var(--bg-soft);
}

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

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

.section-heading h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-heading p {
  max-width: 410px;
  margin: 0;
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.gallery figure {
  margin: 0;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.gallery img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.gallery figcaption {
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
}

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

.step {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 24px;
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  background: rgba(66, 215, 255, 0.14);
  color: var(--cyan);
  font-weight: 900;
}

.step h3 {
  margin: 0 0 10px;
  font-size: 21px;
}

.step p {
  margin: 0;
  color: var(--muted);
}

.studio {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 18px;
  align-items: stretch;
}

.prompt-panel,
.preview-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.prompt-panel {
  padding: 24px;
}

.field-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.fake-textarea {
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c0e13;
  color: var(--text);
}

.controls {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 16px 0 22px;
}

.control {
  min-height: 48px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 14px;
}

.control b {
  display: block;
  color: var(--text);
}

.preview-panel {
  position: relative;
  min-height: 410px;
  overflow: hidden;
}

.preview-panel img {
  width: 100%;
  height: 100%;
  min-height: 410px;
  object-fit: cover;
}

.preview-label {
  position: absolute;
  left: 16px;
  bottom: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(8, 9, 13, 0.72);
  backdrop-filter: blur(16px);
}

.preview-label span {
  color: var(--muted);
  font-size: 13px;
}

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

.price-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 24px;
}

.price-card.featured {
  border-color: rgba(184, 255, 92, 0.58);
  background: linear-gradient(180deg, rgba(184, 255, 92, 0.12), var(--surface));
}

.price-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.price {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: 0;
}

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

.price-card ul {
  padding-left: 18px;
}

.final-cta {
  padding: 76px 0;
  background:
    linear-gradient(135deg, rgba(255, 107, 74, 0.16), rgba(66, 215, 255, 0.1)),
    var(--bg);
}

.final-cta .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.final-cta h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.05;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
  background: #07080b;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.legal-page {
  background: var(--bg);
}

.legal-main {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 88px;
}

.legal-main h1 {
  margin: 0 0 24px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
}

.legal-main h2 {
  margin-top: 34px;
  font-size: 24px;
}

.legal-main p,
.legal-main li {
  color: var(--muted);
}

.legal-main a {
  color: var(--lime);
}

.legal-list {
  padding-left: 20px;
}

@media (max-width: 900px) {
  .nav {
    min-height: 64px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 88svh;
  }

  .hero-media {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-inner {
    padding: 72px 0 48px;
  }

  .hero-stats,
  .workflow,
  .studio,
  .pricing {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .final-cta .container,
  .footer .container {
    align-items: start;
    flex-direction: column;
  }

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

  .gallery figure:last-child {
    display: none;
  }
}

@media (max-width: 520px) {
  .hero-actions,
  .controls {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .stat,
  .step,
  .prompt-panel,
  .price-card {
    padding: 18px;
  }
}
