:root {
  color-scheme: dark;
  --bg: #070707;
  --panel: rgba(255, 255, 255, 0.07);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.13);
  --text: #f7efe4;
  --muted: rgba(247, 239, 228, 0.68);
  --gold: #d8b66a;
  --jade: #69c8aa;
  --rose: #c97984;
  --ink: #10100f;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --cyan: #74f5ff;
  --violet: #8f78ff;
  --danger: #ff6b9c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

#starfield,
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

#starfield {
  z-index: -3;
}

.ambient {
  z-index: -2;
  background:
    radial-gradient(circle at 18% 24%, rgba(105, 200, 170, 0.12), transparent 28%),
    radial-gradient(circle at 84% 12%, rgba(201, 121, 132, 0.16), transparent 34%),
    radial-gradient(circle at 55% 82%, rgba(216, 182, 106, 0.12), transparent 30%),
    linear-gradient(135deg, #070707 0%, #17120f 44%, #080b0b 100%);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(18px, 4vw, 52px);
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(7, 7, 7, 0.82), rgba(7, 7, 7, 0.38));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand,
.desktop-nav button,
.mobile-menu button,
.icon-button,
.ghost-button,
.solid-button,
.glass-button,
.close-button,
.tabs button {
  border: 0;
  cursor: pointer;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold), #fff1ba);
  border-radius: 8px;
  box-shadow: 0 0 28px rgba(216, 182, 106, 0.42);
}

.desktop-nav {
  display: flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.desktop-nav button,
.mobile-menu button {
  background: transparent;
  color: var(--muted);
  padding: 10px 15px;
  border-radius: 999px;
}

.desktop-nav button:hover,
.mobile-menu button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button,
.ghost-button,
.solid-button,
.glass-button {
  min-height: 40px;
  border-radius: 8px;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.icon-button {
  width: 40px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
}

.ghost-button,
.glass-button {
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
}

.solid-button {
  padding: 0 18px;
  background: linear-gradient(135deg, #f4df9a, var(--gold));
  color: #15100a;
  font-weight: 700;
  box-shadow: 0 12px 32px rgba(216, 182, 106, 0.22);
}

.large {
  min-height: 52px;
  padding: 0 24px;
}

.full {
  width: 100%;
}

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

.menu-only {
  display: none;
}

.mobile-menu {
  position: fixed;
  top: 78px;
  right: 18px;
  z-index: 21;
  display: none;
  flex-direction: column;
  min-width: 190px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(16, 16, 15, 0.92);
  box-shadow: var(--shadow);
}

main {
  position: relative;
  z-index: 1;
}

section {
  padding: 96px clamp(18px, 5vw, 72px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  align-items: center;
  min-height: 92vh;
  padding-top: 118px;
  gap: 42px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

h1,
h2,
h3 {
  font-family: "Noto Serif SC", serif;
  margin: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

h3 {
  font-size: clamp(1.5rem, 2.5vw, 2.4rem);
}

.lead {
  max-width: 690px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.9;
}

.hero-actions,
.metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.metrics {
  gap: 24px;
  color: var(--muted);
}

.metrics strong {
  color: var(--text);
}

.hero-visual {
  position: relative;
  min-height: 560px;
}

.hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
  mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 100%);
}

.floating-card {
  position: absolute;
  min-width: 160px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.floating-card span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 5px;
}

.status-card {
  left: 4%;
  bottom: 14%;
}

.pulse-card {
  right: 5%;
  top: 16%;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.wake-grid,
.daily-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.86fr) minmax(0, 1.14fr);
  gap: 22px;
}

.birth-form,
.oracle-panel,
.tool-shell,
.daily-card,
.chat-card,
.pricing-grid article,
.modal-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.birth-form {
  display: grid;
  gap: 16px;
  padding: 22px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

input,
select {
  width: 100%;
  min-height: 46px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
  padding: 0 12px;
  outline: none;
}

input:focus,
select:focus {
  border-color: rgba(216, 182, 106, 0.7);
}

option {
  background: #151515;
}

.oracle-panel {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  padding: 34px;
}

.rings {
  position: absolute;
  inset: 18px;
  opacity: 0.35;
  pointer-events: none;
}

.rings span {
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(216, 182, 106, 0.28);
  border-radius: 50%;
  animation: spin 60s linear infinite;
}

.rings span:nth-child(2) {
  inset: 18%;
  border-style: dashed;
  animation-duration: 90s;
  animation-direction: reverse;
}

.rings span:nth-child(3) {
  inset: 32%;
  border-color: rgba(105, 200, 170, 0.32);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.panel-kicker,
.oracle-panel p,
.tab-panel p,
.daily-card p,
.pricing-grid p,
.modal-note {
  color: var(--muted);
  line-height: 1.8;
}

.oracle-panel > *:not(.rings) {
  position: relative;
}

.element-bars {
  display: grid;
  gap: 13px;
  margin-top: 34px;
}

.element-bars div {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
}

.element-bars i {
  display: block;
  width: var(--w);
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--jade), var(--gold), var(--rose));
  transition: width 500ms ease;
}

.tool-shell {
  overflow: hidden;
}

.tabs {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.tabs button {
  white-space: nowrap;
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--muted);
  background: transparent;
}

.tabs button.active {
  color: #15100a;
  background: var(--gold);
}

.tab-panel {
  display: none;
  padding: 28px;
}

.tab-panel.active {
  display: block;
}

.chart {
  display: grid;
  grid-template-columns: repeat(8, minmax(18px, 1fr));
  align-items: end;
  gap: 12px;
  min-height: 220px;
  margin-bottom: 22px;
}

.chart span {
  height: var(--h);
  min-height: 40px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, var(--gold), rgba(105, 200, 170, 0.48));
}

.mind-map,
.offer-grid,
.pricing-grid {
  display: grid;
  gap: 14px;
}

.mind-map {
  grid-template-columns: repeat(5, minmax(90px, 1fr));
  margin-bottom: 22px;
}

.mind-map span {
  display: grid;
  min-height: 86px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 182, 106, 0.25), rgba(255, 255, 255, 0.04));
}

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

.offer-grid div {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.offer-grid span {
  color: var(--jade);
  font-size: 2.4rem;
  font-weight: 800;
}

.daily-section {
  align-items: stretch;
}

.daily-card,
.chat-card {
  padding: 24px;
}

.daily-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.chat-card {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 360px;
}

.chat-log {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
  padding-right: 6px;
}

.chat-log p {
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  line-height: 1.7;
}

.chat-form,
.code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 14px;
}

.pricing-grid article {
  padding: 24px;
}

.pricing-grid article span {
  color: var(--muted);
}

.pricing-grid article strong {
  display: block;
  margin: 12px 0;
  font-size: 2.5rem;
}

.pricing-grid .featured {
  background: linear-gradient(160deg, rgba(216, 182, 106, 0.22), rgba(105, 200, 170, 0.09));
  border-color: rgba(216, 182, 106, 0.42);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 32px clamp(18px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.login-modal {
  width: min(92vw, 450px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
}

.login-modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 28px;
  background: rgba(16, 16, 15, 0.95);
}

.close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.modal-note {
  margin: 0;
  font-size: 0.82rem;
}

@media (max-width: 920px) {
  .desktop-nav,
  .header-actions .ghost-button,
  .header-actions > .solid-button {
    display: none;
  }

  .menu-only {
    display: inline-grid;
    place-items: center;
  }

  .mobile-menu.open {
    display: flex;
  }

  .hero,
  .wake-grid,
  .daily-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

  .hero-visual img {
    mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  }

  .offer-grid,
  .pricing-grid,
  .mind-map {
    grid-template-columns: 1fr;
  }

  .daily-card,
  footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  section {
    padding: 78px 16px;
  }

  .site-header {
    padding: 14px 16px;
  }

  h1 {
    font-size: 3.1rem;
  }

  .chat-form,
  .code-row {
    grid-template-columns: 1fr;
  }

  .floating-card {
    position: relative;
    display: inline-block;
    margin: 12px 8px 0 0;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
  }
}

/* Premium cinematic layer */
.cursor-glow,
.noise-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.ambient {
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 42%), rgba(116, 245, 255, 0.16), transparent 24%),
    radial-gradient(circle at 18% 24%, rgba(105, 200, 170, 0.16), transparent 28%),
    radial-gradient(circle at 84% 12%, rgba(143, 120, 255, 0.18), transparent 34%),
    radial-gradient(circle at 55% 82%, rgba(216, 182, 106, 0.14), transparent 30%),
    linear-gradient(135deg, #050606 0%, #160f18 44%, #071212 100%);
  animation: nebulaShift 12s ease-in-out infinite alternate;
}

.cursor-glow {
  z-index: 2;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(116, 245, 255, 0.13), rgba(143, 120, 255, 0.08) 38%, transparent 68%);
  translate: calc(var(--mx, 50vw) - 190px) calc(var(--my, 50vh) - 190px);
  mix-blend-mode: screen;
  opacity: 0.9;
  transition: translate 80ms linear;
}

.noise-layer {
  z-index: 3;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}

.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  gap: 18px;
  background: radial-gradient(circle, rgba(116,245,255,0.12), rgba(5,6,6,0.98) 45%);
  color: var(--cyan);
  letter-spacing: 0.28em;
  font-size: 0.75rem;
  animation: bootFade 1.45s ease 0.4s forwards;
}

.boot-orb {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 1px solid rgba(116, 245, 255, 0.6);
  background: radial-gradient(circle, rgba(216,182,106,0.9), rgba(116,245,255,0.15) 42%, transparent 68%);
  box-shadow: 0 0 55px rgba(116, 245, 255, 0.38), inset 0 0 28px rgba(255,255,255,0.18);
  animation: orbPulse 1.2s ease-in-out infinite alternate;
}

.site-header {
  box-shadow: 0 14px 60px rgba(0, 0, 0, 0.25);
}

.solid-button,
.glass-button {
  position: relative;
  overflow: hidden;
}

.solid-button::after,
.glass-button::after {
  content: "";
  position: absolute;
  inset: -45% auto -45% -60%;
  width: 40%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  transition: left 420ms ease;
}

.solid-button:hover::after,
.glass-button:hover::after {
  left: 120%;
}

.ghost-button:hover,
.glass-button:hover,
.icon-button:hover {
  border-color: rgba(116, 245, 255, 0.45);
  box-shadow: 0 0 28px rgba(116, 245, 255, 0.12);
}

.hero-visual {
  perspective: 1200px;
}

.hero-visual img {
  filter: contrast(1.08) saturate(1.2);
  transform: rotateY(-4deg) rotateX(2deg);
  animation: visualFloat 7s ease-in-out infinite;
}

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  pointer-events: none;
}

.hero-visual::before {
  border: 1px solid rgba(116, 245, 255, 0.18);
  box-shadow: 0 0 80px rgba(116, 245, 255, 0.18), inset 0 0 60px rgba(216, 182, 106, 0.12);
  animation: spin 36s linear infinite;
}

.hero-visual::after {
  background: conic-gradient(from 90deg, transparent, rgba(116,245,255,0.16), transparent, rgba(216,182,106,0.18), transparent);
  mask-image: radial-gradient(circle, transparent 46%, #000 47%, #000 50%, transparent 51%);
  animation: spin 18s linear infinite reverse;
}

.destiny-core {
  position: absolute;
  inset: 18% 20%;
  display: grid;
  place-items: center;
  pointer-events: none;
  transform-style: preserve-3d;
}

.core-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(216, 182, 106, 0.45);
  box-shadow: 0 0 28px rgba(216,182,106,0.14);
}

.ring-a {
  width: 72%;
  aspect-ratio: 1;
  animation: spin 28s linear infinite;
}

.ring-b {
  width: 54%;
  aspect-ratio: 1;
  border-style: dashed;
  border-color: rgba(116,245,255,0.55);
  animation: spin 18s linear infinite reverse;
}

.ring-c {
  width: 34%;
  aspect-ratio: 1;
  border-color: rgba(255,107,156,0.48);
  animation: spin 10s linear infinite;
}

.core-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff4c8;
  box-shadow: 0 0 22px #fff4c8, 0 0 70px rgba(116,245,255,0.55);
}

.floating-card {
  transform: translateZ(40px);
  animation: cardDrift 5.5s ease-in-out infinite;
}

.pulse-card {
  animation-delay: -1.3s;
}

.signal-card {
  right: 13%;
  bottom: 8%;
  animation-delay: -2.6s;
}

.signal-card b {
  color: var(--cyan);
}

.birth-form,
.oracle-panel,
.tool-shell,
.daily-card,
.chat-card,
.pricing-grid article {
  position: relative;
  overflow: hidden;
}

.birth-form::before,
.oracle-panel::before,
.tool-shell::before,
.pricing-grid article::before,
.daily-card::before,
.chat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.13), transparent 30%, transparent 70%, rgba(116,245,255,0.08));
  opacity: 0.75;
}

.oracle-panel {
  isolation: isolate;
}

.oracle-panel.generating {
  border-color: rgba(116, 245, 255, 0.62);
  box-shadow: 0 0 80px rgba(116, 245, 255, 0.18), var(--shadow);
}

.oracle-panel.generating::after {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 0;
  background: conic-gradient(from 0deg, transparent, rgba(116,245,255,0.2), transparent, rgba(216,182,106,0.22), transparent);
  animation: spin 1.4s linear infinite;
  filter: blur(12px);
}

.rings span {
  box-shadow: 0 0 28px rgba(216, 182, 106, 0.08);
}

.element-bars i {
  box-shadow: 0 0 22px rgba(116, 245, 255, 0.2);
}

.chart span {
  box-shadow: 0 0 24px rgba(216, 182, 106, 0.16);
  animation: barPulse 2.8s ease-in-out infinite;
}

.chart span:nth-child(2n) {
  animation-delay: -1s;
}

.pricing-grid article,
.tool-shell,
.birth-form,
.chat-card,
.daily-card {
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.pricing-grid article:hover,
.tool-shell:hover,
.birth-form:hover,
.chat-card:hover,
.daily-card:hover {
  border-color: rgba(116, 245, 255, 0.35);
  box-shadow: 0 28px 90px rgba(0,0,0,0.46), 0 0 40px rgba(116,245,255,0.12);
}

.pricing-grid article:hover {
  transform: translateY(-8px);
}

@keyframes nebulaShift {
  to {
    filter: hue-rotate(18deg) saturate(1.18);
    transform: scale(1.03);
  }
}

@keyframes bootFade {
  75% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes orbPulse {
  to {
    transform: scale(1.12) rotate(14deg);
    box-shadow: 0 0 90px rgba(116, 245, 255, 0.58);
  }
}

@keyframes visualFloat {
  50% {
    transform: rotateY(2deg) rotateX(-1deg) translateY(-12px);
  }
}

@keyframes cardDrift {
  50% {
    transform: translate3d(0, -10px, 40px);
  }
}

@keyframes barPulse {
  50% {
    filter: brightness(1.28);
    transform: translateY(-5px);
  }
}

@media (max-width: 920px) {
  .cursor-glow {
    display: none;
  }

  .destiny-core {
    inset: 12%;
  }
}
