:root {
  --bg: #0b0b10;
  --bg-section: #12121a;
  --surface: #1a1a24;
  --primary: #5b54e8;
  --primary-light: #8b7cff;
  --accent: #4de1c1;
  --text: #f2f2f5;
  --muted: #9a9aa8;
  --danger: #ff5252;
  --line: rgba(242, 242, 245, 0.08);
  --font-display: "Sora", sans-serif;
  --font-body: "Manrope", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(85% 60% at 12% -8%, rgba(91, 84, 232, 0.2) 0%, transparent 55%),
    radial-gradient(55% 45% at 92% 18%, rgba(77, 225, 193, 0.06) 0%, transparent 50%),
    var(--bg);
  background-attachment: fixed;
  overflow-x: hidden;
}

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.veil {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  animation: drift 22s ease-in-out infinite alternate;
}

.veil-a {
  top: -28%;
  left: -18%;
  background: radial-gradient(circle, rgba(91, 84, 232, 0.4), transparent 68%);
}

.veil-b {
  right: -22%;
  bottom: -32%;
  background: radial-gradient(circle, rgba(139, 124, 255, 0.14), transparent 65%);
  animation-delay: -9s;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(3%, 4%) scale(1.05); }
}

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

@keyframes rise-soft {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.top,
main,
.foot {
  position: relative;
  z-index: 1;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.15rem 1.5rem;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--text);
}

.mark img {
  display: block;
  border-radius: 8px;
}

.mark span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.03em;
}

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

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--text);
}

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(1.5rem, 6vh, 3.5rem) 1.5rem 3.5rem;
  min-height: calc(100vh - 4.25rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3rem;
  }
}

.hero-copy {
  max-width: 34rem;
  animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand-line {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.15rem;
}

.brand-mark {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.hero h1 {
  margin: 0 0 0.85rem;
  max-width: 14ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 4vw, 2.45rem);
  line-height: 1.18;
  letter-spacing: -0.035em;
  color: var(--text);
}

.lead {
  margin: 0 0 0.85rem;
  max-width: 36ch;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--muted);
}

.trial {
  margin: 0 0 1.75rem;
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.15rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--primary);
  color: var(--text);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: rgba(139, 124, 255, 0.4);
  background: #22222e;
}

.btn-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.btn-primary .btn-icon {
  color: var(--text);
  opacity: 0.92;
}

.btn-secondary .btn-icon {
  color: var(--primary-light);
}

.hero-visual {
  display: flex;
  justify-content: center;
  animation: rise-soft 1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.phone {
  width: min(100%, 300px);
  filter: drop-shadow(0 28px 60px rgba(0, 0, 0, 0.55));
}

.phone-bezel {
  background: linear-gradient(160deg, #2a2a36, #121218 40%, #0a0a0e);
  border-radius: 36px;
  padding: 10px;
  border: 1px solid rgba(242, 242, 245, 0.1);
}

.phone-notch {
  width: 96px;
  height: 18px;
  margin: 4px auto 10px;
  background: #050508;
  border-radius: 0 0 12px 12px;
}

.phone-screen {
  background: var(--bg);
  border-radius: 28px;
  min-height: 520px;
  padding: 1.1rem 1.05rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  background-image:
    radial-gradient(80% 50% at 50% 0%, rgba(91, 84, 232, 0.18), transparent 60%);
}

.app-top {
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
}

.app-top img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.app-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(77, 225, 193, 0.08);
  border: 1px solid rgba(77, 225, 193, 0.22);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
}

.app-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

.app-power {
  margin: 1.1rem 0 0.2rem;
  width: 132px;
  height: 132px;
  border: 0;
  background: transparent;
  position: relative;
  display: grid;
  place-items: center;
  cursor: default;
  padding: 0;
}

.app-power-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(77, 225, 193, 0.35);
  background: rgba(26, 26, 36, 0.65);
}

.app-power-core {
  position: relative;
  z-index: 1;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: var(--text);
}

.app-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.app-server {
  align-self: stretch;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.app-server-flag {
  min-width: 36px;
  height: 36px;
  padding: 0 0.4rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(91, 84, 232, 0.18);
  color: var(--primary-light);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.app-server strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
}

.app-server small {
  color: var(--muted);
  font-size: 0.75rem;
}

.app-stats {
  align-self: stretch;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.app-stats div {
  padding: 0.7rem 0.75rem;
  background: rgba(18, 18, 26, 0.9);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.app-stats small {
  color: var(--accent);
  font-size: 0.72rem;
}

.app-stats span {
  font-size: 0.85rem;
  font-weight: 600;
}

.how {
  background: var(--bg-section);
  border-top: 1px solid var(--line);
}

.how-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3.25rem 1.5rem 4.25rem;
}

.how h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  letter-spacing: -0.03em;
}

.how h2::after {
  content: "";
  display: block;
  width: 2.25rem;
  height: 2px;
  margin-top: 0.8rem;
  background: var(--accent);
}

.how-lead {
  margin: 0 0 1.75rem;
  max-width: 40ch;
  color: var(--muted);
  line-height: 1.55;
}

.steps {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.steps li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding-top: 0.25rem;
}

.step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(91, 84, 232, 0.18);
  color: var(--primary-light);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
}

.steps strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.text-link {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.text-link:hover {
  color: var(--text);
}

.foot {
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.foot-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.35rem 1.5rem 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.15rem;
}

.foot-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
}

.foot-links a:hover {
  color: var(--text);
}

.foot-legal {
  flex: 1 1 100%;
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
  max-width: 62rem;
  opacity: 0.9;
}

.foot-copy {
  color: var(--muted);
  font-size: 0.85rem;
}

/* Legal / inner pages */
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.page h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.page .meta {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.page h2 {
  margin: 2rem 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.page p,
.page li {
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.98rem;
}

.page ul {
  padding-left: 1.2rem;
}

.page a {
  color: var(--primary-light);
}

@media (max-width: 560px) {
  .nav a:last-child {
    display: none;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero {
    min-height: auto;
    padding-top: 1.5rem;
  }

  .phone {
    width: min(100%, 270px);
  }

  .phone-screen {
    min-height: 470px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .veil,
  .hero-copy,
  .hero-visual,
  .app-dot {
    animation: none !important;
  }
}
