/* thelis.app — welcome */
:root {
  --primary: #4c1d95;
  --cta-from: #5b21b6;
  --cta-to: #7c3aed;
  --cta: #7c3aed;
  --blue: #2563eb;
  --green: #22c55e;
  --ink: #1e1b4b;
  --muted: #6b7280;
  --white: #ffffff;
  --alt: #f8fafc;
  --lilac: #f5f3ff;
  --lilac-soft: #faf8ff;
  --border-soft: #d9c7ff;
  --line: rgba(30, 27, 75, 0.08);
  --radius: 1.15rem;
  --font-display: "Sora", sans-serif;
  --font-body: "Figtree", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: #5b21b6;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: linear-gradient(
    180deg,
    var(--white) 0%,
    var(--lilac-soft) 28%,
    var(--lilac) 58%,
    var(--white) 100%
  );
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 0;
  animation: rise 0.8s var(--ease) both;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
}

.logo-mark {
  width: 1.85rem;
  height: 1.85rem;
  display: block;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.header-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.85rem;
}

.demo-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.35rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid #d9c7ff;
  border-radius: 0.4rem;
  color: #4c1d95;
  background: #ffffff;
  font-family: var(--font-display), sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
  box-shadow: 0 6px 18px rgba(76, 29, 149, 0.08);
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.demo-login:visited {
  color: #4c1d95;
  text-decoration: none !important;
}

.demo-login:hover {
  color: #ffffff;
  background: #5b21b6;
  border-color: #5b21b6;
  text-decoration: none !important;
  transform: translateY(-1px);
}

.demo-login:focus-visible {
  outline: 3px solid rgba(91, 33, 182, 0.25);
  outline-offset: 3px;
}

.demo-login-icon {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.demo-login-icon path,
.demo-login-icon polyline,
.demo-login-icon line {
  fill: none;
  stroke: currentColor;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 0;
  padding: 0.15rem 0;
  pointer-events: none;
}

.live-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45);
  animation: pulse 2.2s ease-out infinite;
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.25rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 3rem 1.5rem 3rem;
  min-height: calc(100svh - 5rem);
  align-content: center;
  grid-template-areas:
    "copy"
    "visual"
    "cta";
}

.hero-copy {
  grid-area: copy;
  animation: rise 0.9s var(--ease) 0.08s both;
}

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

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    grid-template-areas:
      "copy visual"
      "cta visual";
    align-items: center;
    gap: 1.25rem 2.75rem;
    padding-top: 2.25rem;
    padding-bottom: 2.5rem;
  }

  .cta-row {
    margin-top: 0.35rem;
    align-self: start;
  }
}

.eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}

.hero h1 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.35rem, 6vw, 4.1rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  color: var(--ink);
}

.brand-lockup {
  width: clamp(2.4rem, 6vw, 3.6rem);
  height: auto;
  flex-shrink: 0;
}

.positioning {
  margin: 1.15rem 0 0;
  max-width: 28rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.lede {
  margin: 0.75rem 0 0;
  max-width: 28rem;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.7rem 1.3rem;
  border-radius: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.25s var(--ease),
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

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

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

.btn-primary {
  color: var(--white);
  background: #5b21b6;
  box-shadow: 0 10px 24px -12px rgba(91, 33, 182, 0.45);
}

.btn-primary:hover {
  background: #4c1d95;
  box-shadow: 0 12px 26px -12px rgba(91, 33, 182, 0.55);
}

.btn-primary:disabled {
  opacity: 0.85;
  cursor: default;
  transform: none;
}

.btn-secondary {
  color: var(--ink);
  background: var(--white);
  border-color: var(--border-soft);
}

.btn-secondary:hover {
  background: var(--lilac);
  border-color: #c4b0ff;
}

/* Hero visual */
.hero-visual {
  grid-area: visual;
  position: relative;
  min-height: 280px;
  animation: rise 1s var(--ease) 0.16s both;
}

@media (min-width: 900px) {
  .hero-visual {
    min-height: 420px;
    margin-right: -1.5rem;
  }
}

.shape {
  position: absolute;
}

.shape-panel {
  inset: 8% 0 0 12%;
  border-radius: 1.75rem;
  background: var(--alt);
  box-shadow: 0 24px 48px -28px rgba(30, 27, 75, 0.35);
  overflow: hidden;
  animation: float-panel 8s ease-in-out infinite;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  display: block;
}

/* Product float — gives the photo a product context */
.app-float {
  position: absolute;
  z-index: 3;
  left: 4%;
  bottom: 8%;
  width: min(78%, 240px);
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 16px 36px -18px rgba(30, 27, 75, 0.4);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  animation: float-card 6.5s ease-in-out infinite;
}

.app-float-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.app-float-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.app-float-status {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--blue);
}

.app-float-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.app-float-row {
  display: flex;
  justify-content: space-between;
  margin-top: 0.55rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.app-float-rating {
  color: var(--ink);
  font-weight: 600;
}

.app-float-bar {
  margin-top: 0.7rem;
  height: 4px;
  border-radius: 999px;
  background: #ede9fe;
  overflow: hidden;
}

.app-float-bar span {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cta-from), var(--cta-to));
}

.app-float-meta {
  margin: 0.55rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.shape-orb {
  z-index: 2;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.45);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}

.shape-orb-a {
  width: 8.5%;
  aspect-ratio: 1;
  top: 2%;
  left: 4%;
  animation: float-a 7s ease-in-out infinite;
}

.shape-orb-b {
  width: 8%;
  aspect-ratio: 1;
  top: 12%;
  right: 6%;
  animation: float-b 9s ease-in-out infinite;
}

/* Below-fold band */
.content-band {
  position: relative;
  z-index: 1;
  margin-top: 0.5rem;
  padding-top: 2.5rem;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0) 0%, #f8fafc 2.5rem),
    #f8fafc;
  border-top: 1px solid rgba(30, 27, 75, 0.05);
}

/* Trust */
.trust {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.25rem 1.5rem 2.75rem;
  text-align: center;
  animation: rise 0.9s var(--ease) 0.2s both;
}

.trust-stars {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  color: var(--cta);
}

.trust-title {
  margin: 0.45rem 0 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.trust-sub {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* System + trades */
.trades,
.system {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.trades h2,
.system h2,
.notify h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 3vw, 1.95rem);
  letter-spacing: -0.03em;
  color: var(--ink);
}

.section-lede {
  margin: 0.55rem 0 0;
  color: var(--muted);
  max-width: 34rem;
}

.system-grid {
  display: grid;
  gap: 1.75rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

@media (min-width: 700px) {
  .system-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 3rem;
  }
}

.system-grid h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.system-grid h3::before {
  content: "";
  display: block;
  width: 1.4rem;
  height: 2px;
  margin-bottom: 0.7rem;
  border-radius: 999px;
  background: var(--blue);
}

.system-grid p {
  margin: 0;
  color: var(--muted);
  max-width: 28rem;
}

.trade-list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.65rem;
}

.trade-list li {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
}

/* Notify */
.notify {
  position: relative;
  z-index: 1;
  padding: 0 1.5rem 4.5rem;
}

.notify-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.4rem 1.6rem;
  border-radius: calc(var(--radius) + 0.2rem);
  background: var(--white);
  border: 1px solid var(--line);
}

@media (min-width: 700px) {
  .notify-inner {
    padding: 2.75rem 2.5rem;
  }
}

.notify p {
  margin: 0.65rem 0 0;
  max-width: 28rem;
  color: var(--muted);
}

.notify-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 1.5rem;
  max-width: 28rem;
}

@media (min-width: 560px) {
  .notify-form {
    flex-direction: row;
  }
}

.notify-form input {
  flex: 1;
  min-height: 2.9rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border-soft);
  border-radius: 0.7rem;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  outline: none;
}

.notify-form input:focus {
  border-color: var(--cta);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.notify-form .btn-primary {
  white-space: nowrap;
}

.notify-form.is-sent {
  opacity: 0.7;
  pointer-events: none;
}

.notify-form.is-sent .btn-primary {
  background: #5b21b6;
  box-shadow: none;
}

.fine-print {
  margin-top: 0.75rem !important;
  font-size: 0.85rem;
}

.form-status {
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-status-progress {
  color: var(--muted);
}

.form-status-ok {
  color: #5b21b6;
}

.form-status-error {
  color: #b91c1c;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem 2.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.site-footer strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
}

.copy {
  opacity: 0.9;
}

/* Motion */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

@keyframes float-panel {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

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

@keyframes float-a {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(4px, 6px);
  }
}

@keyframes float-b {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-5px, 4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Mobile */
@media (max-width: 899px) {
  .site-header {
    justify-content: flex-end;
    padding: max(0.9rem, env(safe-area-inset-top, 0px)) 1.15rem 0;
  }

  .site-header .logo,
  .live-badge {
    display: none;
  }

  .header-actions {
    gap: 0;
  }

  .demo-login {
    min-width: 2.5rem;
    min-height: 2.5rem;
    padding: 0.5rem;
  }

  .demo-login span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .hero {
    min-height: auto;
    gap: 1.75rem;
    padding: 1.5rem 1.15rem 2.25rem;
    padding-top: max(1.5rem, env(safe-area-inset-top, 0px));
  }

  .hero h1 {
    font-size: clamp(2rem, 9vw, 2.75rem);
    gap: 0.55rem;
  }

  .brand-lockup {
    width: 2.35rem;
  }

  .positioning {
    font-size: 1.1rem;
    margin-top: 0.9rem;
  }

  .lede {
    font-size: 1rem;
  }

  .cta-row {
    margin-top: 0;
    flex-direction: column;
  }

  .cta-row .btn {
    width: 100%;
  }

  .hero-visual {
    min-height: 240px;
    margin: 0;
  }

  .shape-panel {
    inset: 6% 0 0 6%;
    border-radius: 1.25rem;
  }

  .shape-orb {
    display: none;
  }

  .app-float {
    left: 3%;
    bottom: 6%;
    width: min(82%, 220px);
    padding: 0.75rem 0.85rem;
  }

  .trust {
    padding: 0.25rem 1.15rem 2rem;
  }

  .trades,
  .system {
    padding: 0 1.15rem 3rem;
  }

  .system-grid {
    gap: 1.35rem;
  }

  .trade-list {
    gap: 0.45rem;
  }

  .trade-list li {
    font-size: 0.82rem;
    padding: 0.4rem 0.75rem;
  }

  .notify {
    padding: 0 1.15rem 3.25rem;
  }

  .notify-inner {
    padding: 1.75rem 1.2rem;
  }

  .notify-form {
    max-width: none;
  }

  .notify-form .btn-primary {
    width: 100%;
  }

  .site-footer {
    padding: 0 1.15rem max(2rem, env(safe-area-inset-bottom, 0px));
    flex-direction: column;
    gap: 0.35rem;
  }
}
