:root {
  --bg: #050505;
  --card: rgba(13, 13, 14, 0.82);
  --card-solid: #0d0d0e;
  --white: #ffffff;
  --muted: #8d8d94;
  --muted-2: #5f6067;

  --cyan: #00e5ff;
  --pink: #ff00c8;

  --gradient: linear-gradient(
    105deg,
    #00e5ff 0%,
    #7d5cff 48%,
    #ff00c8 100%
  );

  --border: rgba(255, 255, 255, 0.09);
  --border-bright: rgba(0, 229, 255, 0.28);

  --radius-xl: 30px;
  --radius-lg: 20px;
  --radius-md: 14px;

  --shadow:
    0 30px 100px rgba(0, 0, 0, 0.55);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;

  background:
    radial-gradient(
      circle at 50% -10%,
      rgba(0, 229, 255, 0.08),
      transparent 34%
    ),
    radial-gradient(
      circle at 90% 40%,
      rgba(255, 0, 200, 0.055),
      transparent 30%
    ),
    var(--bg);

  color: var(--white);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;

  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.018) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.018) 1px,
      transparent 1px
    );

  background-size: 70px 70px;

  mask-image: linear-gradient(
    to bottom,
    black,
    transparent 75%
  );
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.035;

  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.08;
  pointer-events: none;
}

.ambient-one {
  top: 15%;
  left: -220px;
  background: var(--cyan);
}

.ambient-two {
  right: -220px;
  top: 55%;
  background: var(--pink);
}

/* HEADER */

.site-header {
  width: 100%;
  position: relative;
  z-index: 5;
}

.nav-container {
  width: min(1200px, 92%);
  margin: 0 auto;
  min-height: 78px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;

  font-size: 14px;
  font-weight: 600;

  transition:
    color 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.back-link:hover {
  color: white;
  transform: translateX(-3px);
}

.back-icon {
  font-size: 19px;
}

.nav-brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  align-items: center;
  gap: 8px;

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.72);
}

.nav-dot,
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;

  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* MAIN */

.main-container {
  width: min(980px, 92%);
  margin: 0 auto;
  padding: 60px 0 0;
}

/* HERO */

.hero {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 65px;
}

.hero-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 25px;

  opacity: 0.95;
}

.hero-logo {
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.12em;

  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-logo-sub {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #7e7e85;
}

.eyebrow {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;

  margin-bottom: 20px;

  color: var(--muted-2);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.eyebrow span {
  width: 25px;
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.hero h1 {
  max-width: 760px;
  margin: 0 auto;

  font-size: clamp(44px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 700;
}

.hero h1 span {
  display: block;

  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-description {
  max-width: 570px;
  margin: 25px auto 0;

  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.hero-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 25px;
}

.hero-pills span {
  padding: 8px 12px;

  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.025);

  color: #76767d;
  font-size: 10px;
  font-weight: 600;
}

/* STUDIO */

.studio-shell {
  position: relative;

  padding: 32px;

  border: 1px solid var(--border);
  border-radius: var(--radius-xl);

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.045),
      rgba(255, 255, 255, 0.012)
    ),
    rgba(8, 8, 9, 0.88);

  box-shadow: var(--shadow);

  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.studio-topline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;

  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);

  margin-bottom: 30px;
}

.studio-label,
.section-kicker {
  display: block;

  color: var(--muted-2);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.studio-topline h2 {
  margin-top: 7px;

  font-size: 26px;
  letter-spacing: -0.03em;
}

.studio-number {
  color: rgba(255, 255, 255, 0.16);
  font-size: 13px;
  font-weight: 700;
}

/* INPUT */

.input-section {
  margin-bottom: 35px;
}

.input-section label {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;

  margin-bottom: 12px;

  font-size: 14px;
  font-weight: 700;
}

.input-section label small {
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 500;
}

.input-wrap {
  position: relative;
}

#topicInput {
  width: 100%;
  min-height: 150px;

  padding: 20px;

  resize: vertical;

  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 17px;
  outline: none;

  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(0, 229, 255, 0.055),
      transparent 35%
    ),
    #050506;

  color: white;

  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;

  transition:
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    background 0.3s var(--ease);
}

#topicInput::placeholder {
  color: #47484e;
}

#topicInput:focus {
  border-color: rgba(0, 229, 255, 0.45);

  box-shadow:
    0 0 0 4px rgba(0, 229, 255, 0.045),
    0 20px 60px rgba(0, 0, 0, 0.25);
}

.input-meta {
  display: flex;
  justify-content: space-between;

  margin-top: 9px;
  padding: 0 3px;

  color: var(--muted-2);
  font-size: 9px;
}

/* SELECTORS */

.selector-section {
  margin-bottom: 30px;
}

.selector-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;

  margin-bottom: 14px;
}

.selector-heading h3,
.results-heading h3 {
  margin-top: 7px;

  font-size: 18px;
  letter-spacing: -0.025em;
}

.selection-label {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.style-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.style-card {
  position: relative;

  min-height: 88px;

  display: flex;
  align-items: center;
  gap: 12px;

  padding: 15px;

  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 15px;

  background: rgba(255, 255, 255, 0.018);
  color: white;

  text-align: left;

  font-family: inherit;

  cursor: pointer;

  transition:
    transform 0.35s var(--ease),
    border-color 0.35s var(--ease),
    background 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.style-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.035);
}

.style-card.active {
  border-color: rgba(0, 229, 255, 0.4);

  background:
    linear-gradient(
      145deg,
      rgba(0, 229, 255, 0.09),
      rgba(255, 0, 200, 0.045)
    );

  box-shadow:
    0 15px 45px rgba(0, 0, 0, 0.22),
    inset 0 0 30px rgba(0, 229, 255, 0.025);
}

.style-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;

  color: #aaa;
  background: rgba(255, 255, 255, 0.035);

  font-size: 15px;

  transition: all 0.3s var(--ease);
}

.style-card.active .style-icon {
  border-color: rgba(0, 229, 255, 0.35);

  color: var(--cyan);

  box-shadow: 0 0 22px rgba(0, 229, 255, 0.08);
}

.style-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.style-info strong {
  font-size: 12px;
}

.style-info small {
  color: var(--muted-2);
  font-size: 9px;
}

.check {
  position: absolute;
  top: 9px;
  right: 10px;

  opacity: 0;

  color: var(--cyan);
  font-size: 10px;

  transition: opacity 0.25s var(--ease);
}

.style-card.active .check {
  opacity: 1;
}

/* GENERATE BUTTON */

.generate-btn {
  position: relative;
  width: 100%;
  min-height: 64px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 22px;

  border: none;
  border-radius: 15px;

  background: var(--gradient);
  color: #050505;

  font-family: inherit;
  font-size: 14px;
  font-weight: 700;

  cursor: pointer;
  overflow: hidden;

  box-shadow:
    0 18px 50px rgba(0, 229, 255, 0.09),
    0 18px 50px rgba(255, 0, 200, 0.08);

  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.generate-btn::before {
  content: "";
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      100deg,
      transparent 20%,
      rgba(255, 255, 255, 0.45) 50%,
      transparent 80%
    );

  transform: translateX(-120%);
  transition: transform 0.8s var(--ease);
}

.generate-btn:hover::before {
  transform: translateX(120%);
}

.generate-btn:hover {
  transform: translateY(-3px);

  box-shadow:
    0 24px 65px rgba(0, 229, 255, 0.15),
    0 24px 65px rgba(255, 0, 200, 0.13);
}

.generate-btn:active {
  transform: scale(0.99);
}

.generate-main,
.generate-arrow {
  position: relative;
  z-index: 1;
}

.generate-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.spark {
  font-size: 18px;
}

.generate-arrow {
  font-size: 21px;
}

.generate-note {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;

  margin-top: 11px;

  color: var(--muted-2);
  font-size: 9px;
}

.mini-lock {
  color: var(--cyan);
}

/* PAYWALL */

.paywall {
  position: relative;

  display: none;

  margin-top: 24px;
  padding: 1px;

  border-radius: 21px;

  background: linear-gradient(
    135deg,
    rgba(0, 229, 255, 0.42),
    rgba(255, 0, 200, 0.28),
    rgba(255, 255, 255, 0.06)
  );

  overflow: hidden;
}

.paywall-content {
  position: relative;

  padding: 30px;

  border-radius: 20px;

  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(255, 0, 200, 0.08),
      transparent 35%
    ),
    radial-gradient(
      circle at 0% 100%,
      rgba(0, 229, 255, 0.06),
      transparent 35%
    ),
    #09090a;
}

.pro-badge {
  display: inline-block;

  padding: 6px 9px;

  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 999px;

  color: var(--cyan);
  background: rgba(0, 229, 255, 0.055);

  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.paywall h2 {
  max-width: 560px;
  margin-top: 17px;

  font-size: clamp(25px, 4vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.paywall h2 span {
  display: block;

  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.paywall p {
  max-width: 540px;
  margin-top: 14px;

  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;

  margin-top: 22px;
}

.price-row strong {
  font-size: 31px;
  letter-spacing: -0.04em;
}

.price-row span {
  color: var(--muted-2);
  font-size: 10px;
}

.pro-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;

  margin: 22px 0;
}

.pro-features div {
  padding: 12px;

  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 11px;

  background: rgba(255, 255, 255, 0.02);

  color: #86868d;
  font-size: 9px;
  line-height: 1.5;
}

.pro-features span {
  color: var(--cyan);
  margin-right: 4px;
}

.pay-btn {
  width: 100%;
  min-height: 55px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 18px;

  border: none;
  border-radius: 13px;

  background: var(--gradient);
  color: #050505;

  font-family: inherit;
  font-size: 12px;
  font-weight: 700;

  cursor: pointer;

  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.pay-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0, 229, 255, 0.1);
}

.secure-note {
  display: block;

  margin-top: 11px;

  color: #48484f;
  text-align: center;
  font-size: 8px;
}

/* RESULTS */

.results-section {
  margin-top: 42px;
}

.results-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  margin-bottom: 17px;
}

.results-count {
  padding: 7px 10px;

  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;

  color: var(--muted-2);
  font-size: 9px;
}

.results-intro {
  display: flex;
  align-items: flex-start;
  gap: 14px;

  padding: 22px;

  border: 1px dashed rgba(255, 255, 255, 0.09);
  border-radius: 15px;

  background: rgba(255, 255, 255, 0.015);
}

.intro-icon {
  width: 35px;
  height: 35px;
  flex: 0 0 35px;

  display: grid;
  place-items: center;

  border-radius: 10px;

  background: linear-gradient(
    135deg,
    rgba(0, 229, 255, 0.1),
    rgba(255, 0, 200, 0.08)
  );

  color: var(--cyan);
}

.results-intro strong {
  font-size: 12px;
}

.results-intro p {
  margin-top: 6px;

  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.6;
}

/* CAPTION CARDS */

.caption-item {
  position: relative;

  display: flex;
  align-items: flex-start;
  gap: 16px;

  margin-bottom: 10px;
  padding: 20px;

  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;

  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.035),
      rgba(255, 255, 255, 0.012)
    );

  overflow: hidden;

  animation: resultIn 0.55s var(--ease) both;

  transition:
    transform 0.3s var(--ease),
    border-color 0.3s var(--ease),
    background 0.3s var(--ease);
}

.caption-item:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 229, 255, 0.16);
  background: rgba(255, 255, 255, 0.035);
}

.caption-number {
  width: 28px;
  flex: 0 0 28px;

  color: #44454b;
  font-size: 10px;
  font-weight: 700;
}

.caption-content {
  flex: 1;
}

.caption-text {
  color: #e7e7ea;

  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;

  white-space: pre-line;
}

.caption-meta {
  margin-top: 11px;

  color: #4f5056;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.copy-btn {
  flex: 0 0 auto;

  min-width: 72px;
  padding: 9px 11px;

  border: 1px solid rgba(0, 229, 255, 0.17);
  border-radius: 9px;

  background: rgba(0, 229, 255, 0.045);
  color: var(--cyan);

  font-family: inherit;
  font-size: 9px;
  font-weight: 700;

  cursor: pointer;

  transition:
    background 0.25s var(--ease),
    transform 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.copy-btn:hover {
  transform: translateY(-2px);

  background: rgba(0, 229, 255, 0.1);
  border-color: rgba(0, 229, 255, 0.35);
}

.copy-btn.copied {
  border-color: rgba(0, 255, 140, 0.3);
  background: rgba(0, 255, 140, 0.08);
  color: #6dffa9;
}

@keyframes resultIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* FOOTER */

.site-footer {
  padding: 70px 0 45px;

  text-align: center;
}

.footer-brand {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 5px;
}

.footer-brand strong {
  font-size: 18px;
  letter-spacing: 0.08em;

  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-brand span {
  color: #66666d;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.site-footer p {
  margin-top: 9px;

  color: #45464c;
  font-size: 9px;
}

.footer-line {
  width: 100%;
  height: 1px;

  margin: 30px 0 16px;

  background: rgba(255, 255, 255, 0.06);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;

  color: #37383d;

  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* LOADING */

.generate-btn.loading {
  pointer-events: none;
  opacity: 0.8;
}

.generate-btn.loading .spark {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* RESPONSIVE */

@media (max-width: 760px) {

  .main-container {
    padding-top: 45px;
  }

  .nav-status {
    display: none;
  }

  .nav-brand {
    position: static;
    transform: none;
  }

  .hero {
    margin-bottom: 45px;
  }

  .hero h1 {
    font-size: clamp(42px, 12vw, 65px);
  }

  .studio-shell {
    padding: 22px;
    border-radius: 23px;
  }

  .style-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pro-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {

  .nav-container {
    min-height: 68px;
  }

  .nav-brand {
    font-size: 9px;
  }

  .back-link {
    font-size: 12px;
  }

  .main-container {
    width: 94%;
    padding-top: 35px;
  }

  .hero-description {
    font-size: 13px;
  }

  .studio-shell {
    padding: 17px;
  }

  .studio-topline h2 {
    font-size: 22px;
  }

  .input-section label {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .style-card {
    min-height: 78px;
    padding: 12px;
  }

  .style-icon {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .style-info strong {
    font-size: 11px;
  }

  .style-info small {
    font-size: 8px;
  }

  .paywall-content {
    padding: 23px 18px;
  }

  .caption-item {
    gap: 10px;
    padding: 16px;
  }

  .caption-text {
    font-size: 13px;
  }

  .copy-btn {
    min-width: 60px;
    padding: 8px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}