/* OneUCode — Coming Soon. No external dependencies. */

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

:root {
  --bg: #070812;
  --bg-elev: rgba(14, 17, 36, 0.72);
  --text: #eef0ff;
  --muted: #a1a8cc;
  --dim: #6c7398;
  --line: rgba(146, 160, 255, 0.13);
  --line-strong: rgba(146, 160, 255, 0.24);
  --blue: #4f8bff;
  --violet: #9b5cff;
  --pink: #e07bff;
  --cyan: #5cc8ff;
  --grad: linear-gradient(100deg, #6aa4ff 0%, #9b7bff 48%, #e07bff 100%);
  --radius: 18px;
  --sans: "Inter", "InterVariable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, "Liberation Mono", monospace;
  --mx: 50%;
  --my: 30%;
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(155, 92, 255, 0.16), transparent 60%),
    radial-gradient(900px 600px at -10% 10%, rgba(79, 139, 255, 0.14), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right));
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: #fff;
  color: #070812;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Background ---------- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.grid {
  position: absolute;
  inset: -1px;
  background-image:
    linear-gradient(to right, rgba(146, 160, 255, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(146, 160, 255, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 30%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 65% at 50% 30%, #000 30%, transparent 78%);
  animation: grid-pan 40s linear infinite;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  will-change: transform;
}
.orb-a {
  width: 42vmax; height: 42vmax;
  left: -12vmax; top: -10vmax;
  background: radial-gradient(circle, rgba(79, 139, 255, 0.55), transparent 65%);
  animation: drift-a 22s ease-in-out infinite alternate;
}
.orb-b {
  width: 38vmax; height: 38vmax;
  right: -10vmax; top: 8vmax;
  background: radial-gradient(circle, rgba(155, 92, 255, 0.5), transparent 65%);
  animation: drift-b 26s ease-in-out infinite alternate;
}
.orb-c {
  width: 30vmax; height: 30vmax;
  left: 30%; bottom: -16vmax;
  background: radial-gradient(circle, rgba(224, 123, 255, 0.28), transparent 65%);
  animation: drift-a 30s ease-in-out infinite alternate-reverse;
}
.spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mx) var(--my), rgba(110, 140, 255, 0.08), transparent 60%);
}

@keyframes grid-pan { to { background-position: 56px 56px; } }
@keyframes drift-a { to { transform: translate3d(6vmax, 4vmax, 0) scale(1.08); } }
@keyframes drift-b { to { transform: translate3d(-5vmax, 6vmax, 0) scale(0.95); } }

/* ---------- Header ---------- */
.site-header { padding-top: max(18px, env(safe-area-inset-top)); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.brand-mark {
  flex: none;
  filter: drop-shadow(0 6px 18px rgba(110, 110, 255, 0.45));
}
.brand-name {
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand-u {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.header-status {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(14, 17, 36, 0.5);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
}

/* ---------- Hero ---------- */
main { flex: 1; }

.hero {
  display: grid;
  gap: 56px;
  padding-top: clamp(40px, 8vw, 88px);
  padding-bottom: clamp(56px, 8vw, 96px);
  align-items: center;
}

.badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    conic-gradient(from var(--angle), rgba(79, 139, 255, 0.9), rgba(155, 92, 255, 0.9), rgba(224, 123, 255, 0.9), rgba(79, 139, 255, 0.25), rgba(79, 139, 255, 0.9)) border-box;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: #cfd6ff;
  animation: spin-angle 5s linear infinite;
  box-shadow: 0 0 32px rgba(120, 110, 255, 0.22);
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(155, 92, 255, 0.9);
}
@keyframes spin-angle { to { --angle: 360deg; } }

h1 {
  margin-top: 26px;
  font-size: clamp(2.55rem, 1.2rem + 5.6vw, 5.4rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.gradient-text {
  background: linear-gradient(100deg, #6aa4ff 0%, #9b7bff 30%, #e07bff 55%, #9b7bff 78%, #6aa4ff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 8s ease-in-out infinite alternate;
}
@keyframes shimmer { to { background-position: 100% 0; } }

.lead {
  margin-top: 24px;
  max-width: 34rem;
  font-size: clamp(1.05rem, 0.95rem + 0.45vw, 1.24rem);
  line-height: 1.65;
  color: var(--muted);
}

.tagline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 0.92rem;
  color: #d6dbff;
}
.tagline span {
  position: relative;
  padding-left: 18px;
}
.tagline span::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 9px; height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: translateY(-50%);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}
.chips li {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(14, 17, 36, 0.55);
  color: var(--muted);
  font-size: 0.86rem;
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.chips li:hover {
  border-color: var(--line-strong);
  color: var(--text);
  transform: translateY(-2px);
}

/* ---------- Hero visual ---------- */
.hero-visual {
  position: relative;
  min-width: 0;
  padding: 10px 0 0;
}

.window {
  position: relative;
  border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}
.window-code {
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(12, 14, 31, 0.92), rgba(12, 14, 31, 0.92)) padding-box,
    conic-gradient(from var(--angle), rgba(79, 139, 255, 0.75), rgba(155, 92, 255, 0.15) 25%, rgba(224, 123, 255, 0.7) 50%, rgba(79, 139, 255, 0.15) 75%, rgba(79, 139, 255, 0.75)) border-box;
  animation: spin-angle 9s linear infinite;
  box-shadow:
    0 40px 100px -30px rgba(79, 70, 229, 0.55),
    0 30px 80px -20px rgba(0, 0, 0, 0.7);
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-r { background: #ff6b81; }
.dot-y { background: #ffc857; }
.dot-g { background: #4ade80; }
.window-title {
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--dim);
}

.code {
  margin: 0;
  padding: 18px 18px 22px 8px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.74rem;
  line-height: 1.85;
  color: #dfe4ff;
  scrollbar-width: none;
}
.code::-webkit-scrollbar { display: none; }
.code .ln {
  display: inline-block;
  width: 2.2em;
  margin-right: 0.8em;
  text-align: right;
  color: #3f4670;
  user-select: none;
}
.code .k { color: #c39bff; }
.code .t { color: #7fb0ff; }
.code .s { color: #8fe3c4; }
.code .v { color: #f1f3ff; }
.code .p { color: #9fc2ff; }
.code .f { color: #f0a6ff; }
.code .c { color: #6c7398; font-style: italic; }

.window-term {
  width: min(92%, 400px);
  margin: -26px 0 0 auto;
  z-index: 2;
  background: rgba(8, 10, 22, 0.9);
}
.term {
  padding: 16px 18px 20px;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.9;
}
.term-line {
  opacity: 0;
  transform: translateY(4px);
  animation: line-in 0.4s ease forwards;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.term-line:nth-child(1) { animation-delay: 0.9s; }
.term-line:nth-child(2) { animation-delay: 2.5s; }
.term-line:nth-child(3) { animation-delay: 3.1s; }
.term-line:nth-child(4) { animation-delay: 3.7s; }
.term-line:nth-child(5) { animation-delay: 4.4s; }
@keyframes line-in { to { opacity: 1; transform: none; } }

.prompt { color: var(--violet); font-weight: 700; }
.prompt::after { content: " $"; color: var(--dim); font-weight: 400; }
.cmd {
  display: inline-block;
  vertical-align: bottom;
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  max-width: 100%;
  color: #f1f3ff;
  animation: type 1.3s steps(27, end) 1.1s forwards;
}
@keyframes type { to { width: 27ch; } }
.ok { color: #86efac; }
.info { color: #93c5fd; }
.caret {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  margin-left: 4px;
  vertical-align: -0.18em;
  background: #93c5fd;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.float-chip {
  position: absolute;
  z-index: 3;
  display: none;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(16, 19, 42, 0.78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: #cdd5ff;
  box-shadow: 0 14px 40px -12px rgba(79, 70, 229, 0.6);
  animation: float 7s ease-in-out infinite;
}
.chip-1 { top: -14px; right: 8%; color: #9fc2ff; }
.chip-2 { top: 42%; left: -26px; color: #c39bff; animation-delay: -2s; }
.chip-3 { bottom: 26%; right: -18px; color: #8fe3c4; animation-delay: -4s; }
.chip-4 { bottom: -18px; left: 12%; color: #f0a6ff; animation-delay: -1s; }
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -12px, 0); }
}

/* ---------- Vision ---------- */
.vision { padding-bottom: clamp(64px, 9vw, 120px); }
.vision-card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 64px);
  border-radius: 26px;
  border: 1px solid transparent;
  background:
    linear-gradient(160deg, rgba(17, 20, 44, 0.92), rgba(10, 12, 26, 0.92)) padding-box,
    linear-gradient(135deg, rgba(79, 139, 255, 0.5), rgba(146, 160, 255, 0.08) 40%, rgba(155, 92, 255, 0.5)) border-box;
}
.vision-glow {
  position: absolute;
  inset: auto -20% -60% -20%;
  height: 120%;
  background: radial-gradient(ellipse at center, rgba(120, 100, 255, 0.22), transparent 60%);
  pointer-events: none;
}
.vision h2 {
  position: relative;
  max-width: 26ch;
  font-size: clamp(1.55rem, 1rem + 2.3vw, 2.6rem);
  line-height: 1.18;
  font-weight: 750;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.pillars {
  position: relative;
  display: grid;
  gap: 16px;
  margin-top: clamp(28px, 4vw, 48px);
}
.pillar {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(7, 8, 18, 0.45);
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.pillar:hover {
  border-color: var(--line-strong);
  background: rgba(14, 17, 36, 0.6);
  transform: translateY(-3px);
}
.pillar svg {
  display: block;
  box-sizing: content-box;
  padding: 10px;
  border-radius: 12px;
  color: #c9d2ff;
  background: linear-gradient(135deg, rgba(79, 139, 255, 0.25), rgba(155, 92, 255, 0.25));
  border: 1px solid rgba(146, 160, 255, 0.2);
}
.pillar h3 {
  margin-top: 18px;
  font-size: 1.06rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.pillar p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.footer-inner {
  padding-block: 28px;
  text-align: center;
  color: var(--dim);
  font-size: 0.88rem;
}

/* ---------- Entrance animations ---------- */
.rise {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.15s; }
.d3 { animation-delay: 0.27s; }
.d4 { animation-delay: 0.38s; }
.d5 { animation-delay: 0.48s; }
.d6 { animation-delay: 0.3s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Larger screens ---------- */
@media (min-width: 560px) {
  .header-status { display: inline-flex; }
  .code { font-size: 0.8rem; padding-left: 12px; }
  .float-chip { display: inline-block; }
  .chip-2 { left: -10px; }
  .chip-3 { right: -6px; }
}
@media (min-width: 820px) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) {
  .hero {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    gap: 64px;
    min-height: calc(100vh - 160px);
    min-height: calc(100dvh - 160px);
  }
  .hero-visual { padding: 40px 10px 40px 0; }
  .window-term { margin-top: -40px; margin-right: -18px; }
  .chip-2 { left: -30px; }
  .chip-3 { right: -34px; }
}

/* ---------- Accessibility: reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .cmd { width: 27ch; }
  .js .reveal { opacity: 1; transform: none; }
}
