﻿:root {
  --bg: #080402;
  --bg-2: #140a06;
  --text: #fff6ef;
  --muted: #c3a99a;
  --line: rgba(255, 164, 112, 0.26);
  --panel: rgba(22, 11, 7, 0.78);
  --accent: #ff8c42;
  --accent-2: #ffb36b;
  --good: #2fe29a;
}

* { box-sizing: border-box; }

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

body {
  font-family: "Sora", sans-serif;
  color: var(--text);
  background: linear-gradient(160deg, var(--bg), var(--bg-2));
  overflow-x: hidden;
  opacity: 1;
  transition: opacity 220ms ease;
}

body.page-leave {
  opacity: 0;
}

.hidden {
  display: none !important;
}

.announcement {
  position: sticky;
  top: 0;
  z-index: 60;
  text-align: center;
  background: linear-gradient(90deg, #d5672c, #f08f3e);
  color: #fff3e9;
  font-size: 0.88rem;
  padding: 0.48rem 1rem;
}

.announcement a { color: #fff; }

.background-layers {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.star-field {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 229, 210, 0.48) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.35;
  animation: driftStars 120s linear infinite;
}

.grid-plane {
  position: absolute;
  inset: -20% -5% 0;
  background-image:
    linear-gradient(rgba(255, 150, 95, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 150, 95, 0.14) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(1100px) rotateX(64deg) scale(1.45);
  transform-origin: top;
  opacity: 0.4;
}

.glow {
  position: absolute;
  width: 42vw;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(90px);
  animation: glowPulse 8s ease-in-out infinite;
}

.glow-a {
  left: -10vw;
  top: -6vw;
  background: rgba(255, 138, 70, 0.34);
}

.glow-b {
  right: -12vw;
  top: 30vh;
  background: rgba(255, 188, 100, 0.2);
  animation-delay: -3s;
}

.wrap {
  width: min(1900px, calc(100% - 4rem));
  margin-inline: auto;
}

.hero-wrap { padding-top: 0.8rem; }

.nav-pill {
  border: 1px solid var(--line);
  background: rgba(10, 6, 4, 0.84);
  backdrop-filter: blur(14px);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.74rem 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
}

.brand-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ffd29e);
  box-shadow: 0 0 16px rgba(255, 165, 94, 0.55);
}

.accent { color: #ffc58d; }

.nav-links {
  display: flex;
  gap: 1.25rem;
}

.nav-links a {
  color: #ffe6d4;
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.82;
}

.nav-links a:hover { opacity: 1; }

.auth-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.5rem;
  background: rgba(20, 9, 6, 0.75);
}

#userName {
  font-size: 0.85rem;
  color: #ffd8ba;
}

button {
  border: 0;
  border-radius: 12px;
  padding: 0.8rem 1.25rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.84rem;
  color: #fff;
  background: linear-gradient(140deg, #df7230, #f6a24f);
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 220ms ease;
  position: relative;
  overflow: hidden;
}

button::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  animation: shineSweep 3.4s linear infinite;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(255, 149, 87, 0.35);
}

.ghost-btn {
  background: transparent;
  border: 1px solid var(--line);
}

.hero {
  text-align: center;
  padding: clamp(3rem, 8vw, 8rem) 0 clamp(2.2rem, 6vw, 5rem);
}

.tagline {
  display: inline-block;
  margin: 0;
  border: 1px solid rgba(255, 170, 117, 0.45);
  color: #ffcc9d;
  background: rgba(37, 18, 8, 0.7);
  border-radius: 999px;
  padding: 0.42rem 0.95rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
}

h1 {
  margin: 1rem auto 0.9rem;
  max-width: 16ch;
  font-size: clamp(2.5rem, 7vw, 7.7rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.sub {
  margin: 0 auto;
  max-width: 68ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.35rem);
}

.hero-band {
  margin: 1.4rem auto 0;
  max-width: 760px;
  border: 1px solid rgba(255, 172, 120, 0.33);
  border-radius: 999px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  background: rgba(22, 12, 7, 0.78);
  animation: floatBand 4.5s ease-in-out infinite;
}

.hero-band span { color: var(--muted); }
.hero-band strong { color: #ffbf84; }

.hero-actions {
  margin-top: 1.1rem;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.section { padding: 1.6rem 0 0.6rem; }

.section-head { max-width: 820px; }

.section-head.center {
  text-align: center;
  margin-inline: auto;
}

h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 4rem);
}

.section-head p {
  color: var(--muted);
  line-height: 1.6;
  font-size: clamp(0.96rem, 1.1vw, 1.2rem);
}

.status-row {
  margin: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  color: var(--muted);
}

.status-pill {
  background: rgba(3, 45, 30, 0.65);
  color: #38e7a2;
  border: 1px solid rgba(44, 207, 147, 0.42);
  border-radius: 999px;
  padding: 0.48rem 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.status-pill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #11ff95;
  box-shadow: 0 0 10px #11ff95;
}

.mirror-grid,
.mini-cards,
.feature-grid {
  display: grid;
  gap: 1rem;
}

.mirror-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.mirror-card,
.mini-cards article,
.feature-grid article,
.cta {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.mirror-card {
  padding: 1.2rem;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 220ms ease;
}

.mirror-card:hover,
.feature-grid article:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(255, 181, 124, 0.62);
  box-shadow: 0 18px 44px rgba(124, 61, 26, 0.35);
}

.float-card {
  animation: floatCard 5.8s ease-in-out infinite;
}

.mirror-card.primary {
  box-shadow: inset 0 0 0 1px rgba(255, 172, 112, 0.7), 0 0 38px rgba(255, 124, 58, 0.2);
}

.label {
  margin: 0 0 0.6rem;
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.73rem;
  color: #ffc08e;
  background: rgba(130, 68, 30, 0.34);
  border: 1px solid rgba(255, 173, 114, 0.35);
}

h3 {
  margin: 0.15rem 0 0.5rem;
  font-size: clamp(1.15rem, 1.7vw, 2rem);
}

.mirror-card p {
  color: var(--muted);
  line-height: 1.5;
}

.mini-cards {
  margin-top: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mini-cards article,
.feature-grid article {
  position: relative;
  overflow: hidden;
}

.mini-cards article::before,
.feature-grid article::before {
  content: "";
  position: absolute;
  inset: -30% auto auto -40%;
  width: 60%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: rotate(16deg);
  animation: sectionShine 5s linear infinite;
}

.mini-cards article { padding: 1rem; }

.mini-cards h4,
.feature-grid h4 {
  margin: 0 0 0.45rem;
  font-size: 1.35rem;
}

.mini-cards p,
.feature-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.feature-grid {
  margin-top: 1.1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workflow-grid {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.flow-step {
  background: rgba(26, 12, 7, 0.82);
  border: 1px solid rgba(255, 163, 102, 0.28);
  border-radius: 18px;
  padding: 1.1rem;
  min-height: 190px;
  transition: transform 180ms ease, box-shadow 220ms ease, border-color 180ms ease;
}

.flow-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 44px rgba(124, 61, 26, 0.35);
  border-color: rgba(255, 184, 124, 0.6);
}

.flow-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(140deg, #df7230, #f6a24f);
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  margin-bottom: 0.7rem;
}

.flow-step h4 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
}

.flow-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.feature-grid article {
  padding: 1.2rem;
  min-height: 180px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 220ms ease;
}

.cta {
  margin: 0.8rem auto 1rem;
  padding: 1.85rem 0.95rem 1rem;
  max-width: 100%;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: auto;
  display: block;
}

.rings {
  display: none;
}

.cta > * { position: relative; z-index: 2; }

.cta-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: "JetBrains Mono", monospace;
  color: #ffca98;
  font-size: 0.85rem;
}

.cta h2 {
  margin: 0.18rem 0 0;
  font-size: clamp(1.75rem, 3.8vw, 2.8rem);
}

.cta h2 span {
  color: #ffb16f;
}

.cta p {
  color: var(--muted);
  max-width: 55ch;
  margin: 0.25rem auto;
}

.cta-stats {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  margin: 0.28rem 0;
}

.cta-stats strong {
  display: block;
  font-size: clamp(1.5rem, 2.8vw, 3rem);
  color: #ffbe84;
}

.cta-stats span { color: var(--muted); }

.cta .hero-actions {
  margin-top: 0.35rem;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 20%, rgba(255, 145, 78, 0.18), transparent 45%), rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(5px);
  padding: 0.9rem;
}

.auth-card {
  width: min(560px, 100%);
  background: linear-gradient(170deg, rgba(36, 18, 11, 0.96), rgba(24, 11, 7, 0.97));
  border: 1px solid rgba(255, 166, 105, 0.35);
  border-radius: 22px;
  padding: 1.15rem;
  position: relative;
  box-shadow: 0 22px 90px rgba(0, 0, 0, 0.65), inset 0 0 0 1px rgba(255, 166, 105, 0.14);
}

.auth-head {
  margin: 0 0 0.9rem;
  padding-right: 2rem;
}

.auth-kicker {
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  color: #ffc89b;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-head h3 {
  margin: 0.3rem 0 0.35rem;
  font-size: clamp(1.15rem, 2.2vw, 1.7rem);
}

.auth-sub {
  margin: 0;
  color: #ddb8a2;
  font-size: 0.92rem;
}

.close-auth {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 12px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.9rem;
  background: rgba(52, 24, 14, 0.62);
  border: 1px solid rgba(255, 166, 105, 0.18);
  border-radius: 14px;
  padding: 0.38rem;
}

.auth-tab {
  width: 100%;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
}

.auth-tab::after {
  display: none;
}

.auth-tab.active {
  border: 1px solid rgba(255, 177, 122, 0.5);
  background: linear-gradient(140deg, rgba(230, 120, 57, 0.95), rgba(245, 168, 95, 0.95));
  color: #fff;
}

.auth-form {
  display: grid;
  gap: 0.68rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.form-group {
  display: grid;
  gap: 0.34rem;
}

.auth-form label {
  color: #ffd6b8;
  font-size: 0.86rem;
}

.auth-form input {
  width: 100%;
  border: 1px solid rgba(255, 167, 107, 0.34);
  border-radius: 12px;
  background: rgba(58, 28, 16, 0.56);
  color: #fff3eb;
  padding: 0.75rem 0.8rem;
  font: inherit;
  transition: border-color 150ms ease, box-shadow 200ms ease, transform 120ms ease;
}

.auth-form input:focus {
  outline: none;
  border-color: rgba(255, 191, 142, 0.8);
  box-shadow: 0 0 0 3px rgba(255, 173, 112, 0.18);
  transform: translateY(-1px);
}

.captcha-slot {
  border: 1px dashed rgba(255, 176, 119, 0.5);
  border-radius: 12px;
  background: rgba(50, 23, 13, 0.45);
  color: #ffd8bc;
  padding: 0.8rem;
  font-size: 0.84rem;
  text-align: center;
}

.auth-message {
  min-height: 1.2rem;
  margin: 0.8rem 0 0;
  color: #ffd2af;
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 620ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@keyframes driftStars {
  from { background-position: 0 0; }
  to { background-position: -1200px 900px; }
}

@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: 0.45; }
  50% { transform: scale(1.12); opacity: 0.28; }
}

@keyframes floatBand {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes shineSweep {
  from { transform: translateX(-120%); }
  to { transform: translateX(140%); }
}

@keyframes sectionShine {
  from { transform: translateX(-220%) rotate(16deg); }
  to { transform: translateX(520%) rotate(16deg); }
}

@keyframes spinRings {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (max-width: 1200px) {
  .mirror-grid,
  .mini-cards,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 980px) {
  .auth-actions {
    gap: 0.35rem;
  }

  .auth-actions button {
    padding: 0.62rem 0.8rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 860px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .wrap { width: min(1900px, calc(100% - 1.3rem)); }
  .announcement { position: static; }
  .nav-links { display: none; }
  .nav-pill { border-radius: 16px; flex-wrap: wrap; }

  .mirror-grid,
  .mini-cards,
  .feature-grid,
  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .hero-band { border-radius: 16px; }
}

