:root {
  --bg-1: #05070c;
  --bg-2: #0b0f17;
  --accent-1: #7ab8ff;
  --accent-2: #3e7bff;
  --accent-3: #1368ff;
  --light-x: 50%;
  --light-y: 50%;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: radial-gradient(1200px 800px at 50% 20%, var(--bg-2), var(--bg-1));
  color: #fff;
  overflow: hidden;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, sans-serif;
}

#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
}

#textwall {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.scene {
  position: relative;
  display: grid;
  place-items: center;
  height: 100vh;
  width: 100vw;
  perspective: 900px;
}

.center {
  position: relative;
  z-index: 2;
  text-align: center;
}

.title {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: clamp(36px, 10vw, 140px);
  line-height: 1.05;
  background: linear-gradient(100deg, #f3e7c7 0%, #e9d9b2 20%, #dbe9ff 60%, #bcd7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 0 6px rgba(255, 232, 180, 0.18),
    0 0 14px rgba(160, 190, 255, 0.18),
    0 0 28px rgba(120, 160, 255, 0.12);
  filter: drop-shadow(0 4px 16px rgba(180, 210, 255, 0.10));
}

.subtitle {
  margin-top: clamp(14px, 2.6vw, 28px);
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: clamp(22px, 5.2vw, 44px);
  background: linear-gradient(90deg, #e6efff 0%, #f7f2dc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 0 4px rgba(200, 220, 255, 0.22),
    0 0 12px rgba(160, 180, 255, 0.18);
}

.actions {
  margin-top: clamp(18px, 3vw, 36px);
  cursor: pointer;
}

.cta {
  display: inline-block;
  padding: clamp(10px, 2.6vw, 16px) clamp(18px, 4.6vw, 30px);
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: clamp(16px, 3.8vw, 22px);
  color: #0b0f17;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2), var(--accent-3));
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(32,128,255,0.28), 0 2px 8px rgba(16,64,160,0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 10px 28px rgba(32,128,255,0.34), 0 3px 10px rgba(16,64,160,0.26);
}

.cta:active {
  transform: translateY(0);
  filter: brightness(0.96);
}

.wall {
  position: relative;
  z-index: 2;
  width: 140vw;
  height: 140vh;
  transform: rotate(-45deg);
  display: grid;
  place-items: center;
  pointer-events: none;
}

.grid {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: clamp(16px, 2vw, 28px);
  opacity: 0.12;
}

.row {
  display: flex;
  align-items: center;
  white-space: nowrap;
  gap: clamp(24px, 3vw, 48px);
  will-change: transform;
}

.row .item {
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: clamp(18px, 7vw, 96px);
  line-height: 1;
  color: rgba(200, 220, 255, 0.28);
  text-shadow:
    0 0 2px rgba(80, 160, 255, 0.14),
    0 0 6px rgba(16, 112, 255, 0.12);
}

.row.scroll {
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}
.row.dir-left { animation-name: scroll-left; }
.row.dir-right { animation-name: scroll-right; }

@keyframes scroll-left {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(-1 * var(--seg)), 0, 0); }
}
@keyframes scroll-right {
  from { transform: translate3d(calc(-1 * var(--seg)), 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}

.focus {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: clamp(28px, 14vw, 200px);
  line-height: 1;
  color: #eaf3ff;
  text-shadow:
    0 0 2px rgba(80, 160, 255, 0.18),
    0 0 8px rgba(16, 112, 255, 0.16);
  transform: translate(-50%, -50%) rotate(45deg);
}

@media (max-width: 420px) {
  .focus {
    font-size: clamp(22px, 12vw, 160px);
    letter-spacing: 0.06em;
  }
}

.rays {
  position: absolute;
  inset: -20vh -20vw -20vh -20vw;
  z-index: 1;
  pointer-events: none;
  background:
    conic-gradient(from 0deg at var(--light-x) var(--light-y), rgba(60,120,255,0.12), rgba(0,0,0,0) 25%)
    ,conic-gradient(from 120deg at var(--light-x) var(--light-y), rgba(60,120,255,0.06), rgba(0,0,0,0) 25%);
  mix-blend-mode: screen;
  animation: spin 24s linear infinite;
}

@keyframes breathe {
  0%, 100% { filter: drop-shadow(0 0 18px rgba(32,128,255,0.35)); }
  50% { filter: drop-shadow(0 0 32px rgba(32,128,255,0.65)); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .rays { animation: none; }
}
