:root {
  --bg: #07111f;
  --bg-2: #0f1c31;
  --surface: rgba(10, 22, 40, 0.74);
  --surface-strong: rgba(12, 26, 48, 0.92);
  --text: #eef4ff;
  --muted: #98a8c3;
  --brand: #62f0d1;
  --brand-strong: #38d4b7;
  --accent: #8fa8ff;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --ring: rgba(98, 240, 209, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Noto Sans SC", sans-serif;
  background:
    radial-gradient(circle at 14% 8%, rgba(98, 240, 209, 0.16) 0, transparent 30%),
    radial-gradient(circle at 88% 88%, rgba(143, 168, 255, 0.18) 0, transparent 30%),
    linear-gradient(145deg, var(--bg), var(--bg-2));
  overflow-x: hidden;
}

.page-shell {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(52px);
  opacity: 0.6;
  z-index: -1;
  pointer-events: none;
}

.orb-a {
  top: -80px;
  left: -120px;
  width: 300px;
  height: 300px;
  background: rgba(98, 240, 209, 0.34);
}

.orb-b {
  right: -120px;
  bottom: -140px;
  width: 360px;
  height: 360px;
  background: rgba(143, 168, 255, 0.3);
}

.hero {
  animation: floatIn 520ms ease-out both;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.topbar-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.brand-mini {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: rgba(238, 244, 255, 0.8);
}

.nav-link {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  opacity: 0.9;
}

.nav-link:hover {
  opacity: 1;
}

.nav-pricing {
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

.nav-pricing:hover {
  background: rgba(255, 255, 255, 0.14);
}

.nav-cta {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(98, 240, 209, 0.12);
  border: 1px solid rgba(98, 240, 209, 0.18);
  color: #c8fff5;
}

.nav-cta:hover {
  background: rgba(98, 240, 209, 0.18);
}

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

.hero-copy {
  padding-right: 18px;
}

.kicker,
.section-kicker {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(98, 240, 209, 0.18);
  background: rgba(98, 240, 209, 0.12);
  color: #c8fff5;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.03em;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1;
}

.subtitle {
  margin: 0;
  max-width: 680px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.hero-actions .ghost {
  background: rgba(255, 255, 255, 0.04);
}

.hero-actions .ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.cta-link,
button {
  border: 0;
  border-radius: 14px;
  padding: 11px 16px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms ease, background 150ms ease, opacity 150ms ease;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: var(--brand);
  color: #031c16;
}

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

button {
  background: var(--brand);
  color: #031c16;
}

button:hover {
  background: var(--brand-strong);
}

button.secondary {
  background: #8fa8ff;
  color: #07111f;
}

button.secondary:hover {
  background: #7a93f7;
}

button.ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

button.ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero-points {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.hero-points span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #dce7ff;
  font-size: 12px;
}

.launch-note {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.launch-note span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(98, 240, 209, 0.08);
  border: 1px solid rgba(98, 240, 209, 0.14);
  color: #c8fff5;
  font-size: 12px;
}

.hero-visual {
  min-height: 440px;
}

.preview-frame {
  position: relative;
  padding: 20px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(18, 34, 60, 0.92), rgba(8, 18, 34, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.preview-frame::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.preview-frame::after {
  content: "";
  position: absolute;
  inset: auto -20% -35% auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(98, 240, 209, 0.22), rgba(98, 240, 209, 0));
  animation: drift 9s ease-in-out infinite alternate;
  pointer-events: none;
}

.preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.preview-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #dce7ff;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.preview-chip.live {
  background: rgba(98, 240, 209, 0.16);
  color: #c8fff5;
}

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

.preview-column {
  border-radius: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.preview-column.accent {
  background: linear-gradient(180deg, rgba(98, 240, 209, 0.12), rgba(143, 168, 255, 0.08));
}

.preview-label {
  margin: 0 0 10px;
  color: #dce7ff;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.preview-line {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  line-height: 1.65;
}

.preview-line:last-child {
  border-bottom: 0;
}

.preview-line.muted {
  color: var(--muted);
  font-size: 12px;
}

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

.signal-item {
  padding: 18px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.signal-item h2 {
  margin: 10px 0 6px;
  font-size: 18px;
}

.signal-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.signal-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(98, 240, 209, 0.12);
  color: #c8fff5;
  font-size: 12px;
  font-weight: 700;
}

.workspace,
.story,
.final-cta {
  margin-top: 18px;
}

.pricing {
  margin-top: 18px;
}

.pricing-shell {
  padding: 22px;
}

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

.wallet-item {
  border-radius: 18px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.wallet-item span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.wallet-item strong {
  display: block;
  margin-top: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
}

.recovery-box {
  margin-top: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px dashed rgba(143, 168, 255, 0.45);
  background: rgba(143, 168, 255, 0.08);
}

.account-tip {
  margin: 0;
  color: #dce7ff;
  line-height: 1.65;
}

.recovery-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.recovery-row input {
  flex: 1 1 260px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(4, 10, 20, 0.62);
  color: #eef4ff;
  font-size: 14px;
}

.recovery-row input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(143, 168, 255, 0.18);
}

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

.plan-card {
  border-radius: 22px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.plan-card.featured {
  background: linear-gradient(160deg, rgba(98, 240, 209, 0.2), rgba(143, 168, 255, 0.14));
  border-color: rgba(98, 240, 209, 0.35);
}

.plan-name {
  margin: 0;
  color: #c8fff5;
  font-size: 13px;
}

.plan-card h3 {
  margin: 8px 0;
  font-size: 36px;
}

.plan-card h3 span {
  font-size: 16px;
  color: var(--muted);
}

.plan-desc {
  min-height: 44px;
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.65;
}

.plan-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 14px;
  padding: 11px 16px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms ease, background 150ms ease, opacity 150ms ease;
}

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

.plan-link.ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.plan-link.ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.pricing-modal {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: grid;
  place-items: center;
  padding: 20px;
}

.pricing-mask {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 18, 0.72);
  backdrop-filter: blur(4px);
}

.pricing-panel {
  position: relative;
  width: min(1100px, calc(100% - 24px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 20px;
  border-radius: 24px;
  background: rgba(10, 22, 40, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

.pricing-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pricing-top h2 {
  margin: 0;
}

.pricing-subline {
  margin: 8px 0 0;
  color: var(--muted);
}

.ad-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.ad-panel {
  position: relative;
  width: min(640px, calc(100% - 24px));
  padding: 22px;
  border-radius: 22px;
  background: rgba(10, 22, 40, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow);
}

.ad-panel h2 {
  margin: 0;
  font-size: 30px;
}

.ad-desc {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.ad-creative {
  margin-top: 14px;
  padding: 24px;
  border-radius: 16px;
  border: 1px dashed rgba(98, 240, 209, 0.45);
  background: rgba(98, 240, 209, 0.08);
  text-align: center;
  color: #c8fff5;
}

.ad-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

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

.surface {
  min-width: 0;
  padding: 20px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.section-head {
  margin-bottom: 14px;
}

.section-head h2 {
  margin: 0;
  font-size: 24px;
}

.section-head p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.inline-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

textarea {
  width: 100%;
  min-height: 360px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(4, 10, 20, 0.72);
  color: var(--text);
  padding: 16px;
  font-size: 15px;
  line-height: 1.8;
  font-family: inherit;
  resize: vertical;
}

textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--ring);
}

.action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.lang-select-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #dce7ff;
  font-size: 13px;
}

.lang-select {
  border: 0;
  outline: 0;
  background: transparent;
  color: #eef4ff;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: 14px;
  padding: 11px 4px;
  min-width: 120px;
}

.lang-select option {
  color: #0b172b;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.quota {
  color: #c1d0ea;
}

.hidden {
  display: none !important;
}

.result-surface textarea {
  min-height: 360px;
}

.story {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 14px;
  align-items: start;
}

.story-copy,
.story-list {
  padding: 22px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.story-copy h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.08;
}

.story-copy p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.story-list div {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.story-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.story-list h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.story-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.final-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(98, 240, 209, 0.16), rgba(143, 168, 255, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.final-cta h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 34px);
}

.final-cta .cta-link {
  flex-shrink: 0;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(0.95);
  }
  to {
    transform: translate3d(-18px, -16px, 0) scale(1.05);
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .workspace,
  .story,
  .signal-row,
  .preview-columns,
  .wallet-grid,
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .topbar,
  .final-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-copy {
    padding-right: 0;
  }

  .hero-visual {
    min-height: auto;
  }

  .subtitle {
    font-size: 16px;
  }

  textarea,
  .result-surface textarea {
    min-height: 280px;
  }

  .launch-note {
    margin-top: 12px;
  }
}
