@import url("/styles.css");

:root {
  --bg-0: #02050f;
  --bg-1: #050d22;
  --bg-2: #091634;
  --ink-strong: #eef3ff;
  --ink: #c8d4ef;
  --ink-soft: #90a3cc;
  --line: rgba(138, 166, 229, 0.24);
  --line-soft: rgba(124, 149, 206, 0.14);
  --panel: rgba(10, 20, 40, 0.56);
  --panel-strong: rgba(8, 16, 32, 0.74);
  --glow-blue: #5d83ff;
  --glow-cyan: #6edaff;
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Avenir Next", "SF Pro Display", "Segoe UI", "PingFang SC", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1000px 460px at 50% -15%, rgba(103, 135, 255, 0.26), transparent 72%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 46%, var(--bg-2) 100%);
  overflow-x: hidden;
}

#stars {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -8;
}

.ambient {
  position: fixed;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(70px);
  z-index: -7;
}

.ambient-a {
  width: 420px;
  height: 420px;
  left: -120px;
  top: 12%;
  background: rgba(75, 120, 255, 0.34);
  animation: drift-a 14s var(--ease-soft) infinite alternate;
}

.ambient-b {
  width: 520px;
  height: 520px;
  right: -170px;
  top: 10%;
  background: rgba(79, 214, 255, 0.28);
  animation: drift-b 16s var(--ease-soft) infinite alternate;
}

.beam-right {
  position: fixed;
  right: -90px;
  top: 90px;
  width: min(34vw, 520px);
  height: min(34vw, 520px);
  pointer-events: none;
  z-index: -6;
  border-radius: 999px;
  background:
    radial-gradient(circle at 42% 50%, rgba(183, 212, 255, 0.88), rgba(112, 154, 255, 0.45), transparent 68%),
    radial-gradient(circle at 66% 46%, rgba(145, 230, 255, 0.28), transparent 60%);
  filter: blur(8px);
  opacity: 0.86;
  animation: beam-pulse 5s var(--ease-soft) infinite;
}

.matrix {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: min(66vw, 960px);
  pointer-events: none;
  z-index: -5;
  text-align: center;
  font-family: "SF Mono", "Consolas", monospace;
  letter-spacing: 0.22em;
  color: rgba(178, 205, 255, 0.28);
  user-select: none;
  white-space: pre;
}

.matrix-top {
  top: 90px;
  font-size: 12px;
  line-height: 1.48;
  mask-image: linear-gradient(to bottom, black 34%, transparent 100%);
}

.matrix-bottom {
  bottom: 130px;
  font-size: 11px;
  line-height: 1.5;
  mask-image: linear-gradient(to top, black 26%, transparent 100%);
  opacity: 0.7;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -4;
  opacity: 0.048;
  background-image: radial-gradient(rgba(255, 255, 255, 0.9) 0.5px, transparent 0.5px);
  background-size: 2px 2px;
}

.scroll-progress {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 50;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #6cd7ff, #7f92ff);
  box-shadow: 0 0 14px rgba(108, 215, 255, 0.6);
}

.fusion-shell {
  width: min(1280px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 18px 0 56px;
}

.hero-shell {
  position: relative;
  min-height: 100vh;
  padding: 6px 0 0;
}

.hero-nav {
  width: 100%;
  min-height: 58px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(10, 20, 40, 0.44);
  box-shadow: 0 12px 34px rgba(2, 8, 22, 0.32);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 14px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-strong);
}

.logo-mark {
  width: 20px;
  height: 20px;
  border-radius: 99px;
  border: 1px solid rgba(175, 201, 255, 0.62);
  box-shadow: 0 0 0 3px rgba(113, 146, 255, 0.18);
}

.logo-copy {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.04;
  gap: 4px;
}

.logo-text-main {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink-strong);
}

.logo-text-sub {
  font-size: 11px;
  color: #9cb1d8;
  letter-spacing: 0.02em;
}

.hero-nav nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-nav nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 11px;
  border-radius: 999px;
  transition: all 0.24s var(--ease-soft);
}

.hero-nav nav a:hover {
  color: var(--ink-strong);
  background: rgba(255, 255, 255, 0.06);
}

.hero-nav nav a.is-active {
  color: var(--ink-strong);
  background: linear-gradient(135deg, rgba(113, 151, 255, 0.22), rgba(112, 214, 255, 0.16));
  box-shadow: inset 0 0 0 1px rgba(164, 194, 255, 0.32);
}

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

.link-btn,
.pill-btn,
.ghost-btn {
  min-height: 38px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 620;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.34s var(--ease-spring),
    box-shadow 0.34s var(--ease-soft),
    border-color 0.25s var(--ease-soft);
}

.link-btn {
  padding: 0 12px;
  color: var(--ink);
  background: transparent;
}

.pill-btn {
  padding: 0 18px;
  color: #f7fbff;
  border-color: rgba(153, 183, 255, 0.52);
  background: linear-gradient(135deg, #4f78ff, #61d5ff);
  box-shadow: 0 0 18px rgba(103, 140, 255, 0.3);
}

.ghost-btn {
  padding: 0 18px;
  color: var(--ink-strong);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.link-btn:hover,
.pill-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px);
}

.hero-center {
  width: min(1040px, 100%);
  margin: clamp(76px, 13vh, 142px) auto 0;
  text-align: center;
}

.badge {
  width: fit-content;
  margin: 0 auto;
  border: 1px solid rgba(159, 191, 255, 0.42);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #d1e6ff;
  background: rgba(112, 154, 255, 0.14);
}

.hero-center h1 {
  margin: 22px 0 0;
  font-size: clamp(54px, 7.2vw, 92px);
  line-height: 0.92;
  letter-spacing: -0.028em;
  color: var(--ink-strong);
  text-shadow:
    0 0 22px rgba(100, 134, 255, 0.38),
    0 0 44px rgba(100, 134, 255, 0.18);
}

.hero-center h1 em {
  font-style: normal;
  font-size: 1em;
  font-weight: inherit;
  letter-spacing: inherit;
  color: inherit;
  opacity: 1;
}

.subtitle {
  margin: 22px auto 0;
  max-width: 760px;
  font-size: 24px;
  line-height: 1.56;
  color: #d2def4;
}

.hero-actions {
  margin-top: 28px;
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.horizon {
  position: absolute;
  inset: auto 0 0;
  height: min(38vh, 320px);
  pointer-events: none;
}

.horizon-glow {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 30px;
  width: min(92vw, 1300px);
  height: 180px;
  background: radial-gradient(ellipse at center, rgba(92, 123, 255, 0.54), rgba(95, 220, 255, 0.24), transparent 72%);
  filter: blur(10px);
}

.horizon-arc {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -230px;
  width: min(1300px, 120vw);
  height: 460px;
  border-radius: 50%;
  border: 1px solid rgba(144, 173, 255, 0.42);
  box-shadow:
    inset 0 0 30px rgba(104, 144, 255, 0.22),
    0 -28px 65px rgba(87, 131, 255, 0.34);
}

.section {
  margin-top: 22px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: var(--panel);
  backdrop-filter: blur(9px);
  box-shadow: 0 18px 42px rgba(2, 8, 22, 0.34);
}

.section-head h2 {
  color: var(--ink-strong);
}

.section-tag {
  letter-spacing: 0.1em;
}

.section-lead {
  color: var(--ink);
}

.overview-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.overview-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-strong);
  padding: 14px;
  transition: all 0.34s var(--ease-soft);
}

.overview-card h3 {
  margin: 0;
  font-size: 20px;
  color: var(--ink-strong);
}

.hero-status {
  margin-top: 10px;
  border: 1px solid var(--line);
  background: rgba(105, 144, 255, 0.1);
  border-radius: 10px;
  min-height: 38px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  color: #d3e5ff;
}

.mini-stats {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mini-stats div {
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.mini-stats span {
  font-size: 12px;
  color: var(--ink-soft);
}

.mini-stats strong {
  display: block;
  margin-top: 4px;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--ink-strong);
}

.flow-list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.flow-list div {
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  min-height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.flow-list i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #72d8ff;
  box-shadow: 0 0 12px rgba(114, 216, 255, 0.6);
}

.panel-card,
.price-card,
.task-card,
.auth-card,
.upload-card,
.feedback-card,
.empty-card,
.detail-meta-card,
.flow-step,
.option-card,
.swatch-card {
  border-color: rgba(138, 166, 229, 0.24) !important;
  background: rgba(10, 20, 40, 0.58) !important;
}

.button,
.button.secondary {
  border-radius: 999px;
  min-height: 38px;
}

.button {
  border-color: rgba(153, 183, 255, 0.52) !important;
  background: linear-gradient(135deg, #4f78ff, #61d5ff) !important;
}

.button.secondary {
  border-color: var(--line) !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

.workflow-stepper {
  gap: 8px;
}

.flow-step.is-active {
  box-shadow: 0 0 0 1px rgba(90, 148, 255, 0.24);
}

.field input,
.field select,
.field textarea {
  background: rgba(5, 10, 24, 0.66);
  border-color: rgba(138, 166, 229, 0.3);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(160, 196, 255, 0.72);
  box-shadow: 0 0 0 2px rgba(96, 153, 255, 0.22);
}

.option-card.is-selected,
.swatch-card.is-selected,
.service-card.is-selected {
  border-color: rgba(164, 200, 255, 0.55) !important;
  box-shadow: 0 0 0 1px rgba(96, 150, 255, 0.28);
}

.service-grid {
  gap: 10px;
}

.service-card {
  border-radius: 12px;
}

.service-card strong,
.service-card h3,
.task-card h3,
.price-card h3 {
  color: var(--ink-strong);
}

.prompt-viewer {
  min-height: 220px;
  background: rgba(4, 10, 22, 0.7);
}

.thumb-card {
  border-color: var(--line-soft);
  background: rgba(255, 255, 255, 0.02);
}

.task-chip {
  border-color: var(--line-soft);
  background: rgba(255, 255, 255, 0.04);
}

[data-tilt] {
  transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.26s ease, box-shadow 0.3s ease;
}

[data-tilt].is-tilting {
  box-shadow: 0 26px 50px rgba(0, 10, 30, 0.44);
}

.magnetic {
  --mx: 0px;
  --my: 0px;
  transform: translate3d(var(--mx), var(--my), 0);
  will-change: transform;
}

.reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  filter: blur(4px);
  transition:
    opacity 0.84s var(--ease-soft),
    transform 0.9s var(--ease-spring),
    filter 0.7s ease;
}

.reveal.in,
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

@keyframes drift-a {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(50px, -30px, 0);
  }
}

@keyframes drift-b {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-48px, 36px, 0);
  }
}

@keyframes beam-pulse {
  0%,
  100% {
    opacity: 0.82;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@media (max-width: 1080px) {
  .hero-nav nav {
    display: none;
  }

  .overview-grid,
  .mini-stats,
  .workspace-grid,
  .account-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .fusion-shell {
    width: calc(100vw - 14px);
    padding-top: 10px;
  }

  .hero-nav {
    min-height: 54px;
    padding: 0 10px;
  }

  .logo-copy {
    gap: 2px;
  }

  .logo-text-main {
    font-size: 14px;
  }

  .logo-text-sub {
    font-size: 10px;
  }

  .link-btn,
  .pill-btn,
  .ghost-btn {
    min-height: 34px;
    font-size: 12px;
  }

  .hero-center {
    margin-top: 74px;
  }

  .hero-center h1 {
    font-size: clamp(40px, 12vw, 58px);
    line-height: 0.95;
    letter-spacing: -0.02em;
  }

  .subtitle {
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.66;
  }

  .horizon {
    height: 220px;
  }

  .horizon-arc {
    width: 150vw;
    bottom: -250px;
  }

  .matrix {
    width: 94vw;
    letter-spacing: 0.15em;
  }

  .matrix-top {
    top: 72px;
    font-size: 10px;
  }

  .matrix-bottom {
    bottom: 92px;
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
