:root{
  --bg:#0b0b0f;
  --bg2:#06060a;
  --card:rgba(255,255,255,.06);
  --card2:rgba(255,255,255,.09);
  --stroke:rgba(255,255,255,.12);
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.66);
  --accent:#8b5cf6; /* violet */
  --accent2:#22c55e; /* green */
  --shadow: 0 16px 60px rgba(0,0,0,.55);
  --radius: 22px;
}

:root[data-theme="oled"]{
  --bg:#000;
  --bg2:#000;
  --card:rgba(255,255,255,.05);
  --card2:rgba(255,255,255,.08);
  --stroke:rgba(255,255,255,.11);
  --shadow: 0 18px 70px rgba(0,0,0,.75);
}

*{box-sizing:border-box}
html,body{min-height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  min-height:100vh;
  background: radial-gradient(1200px 800px at 20% -10%, rgba(139,92,246,.35), transparent 55%),
              radial-gradient(900px 700px at 110% 20%, rgba(34,197,94,.28), transparent 60%),
              radial-gradient(900px 700px at 50% 120%, rgba(139,92,246,.16), transparent 60%),
              linear-gradient(180deg, var(--bg), var(--bg2));
  color:var(--text);
  overflow-x:hidden;
}

a{color:inherit; text-decoration:none}
button{font:inherit}

.preloader{
  position:fixed; inset:0;
  background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.14), rgba(255,255,255,.06));
  background-size: 200% 100%;
  animation: shine .38s linear infinite;
  z-index:9999;
  transform: translateZ(0);
}
.preloader__shine{
  position:absolute; inset:0;
  backdrop-filter: blur(10px);
}
@keyframes shine{ to { background-position: -200% 0; } }
.preloader.is-hidden{
  animation:none;
  opacity:0;
  pointer-events:none;
  transition: opacity .18s ease;
}

.bg{position:fixed; inset:0; z-index:-1; pointer-events:none;}
.bg::after{
  content:"";
  position:absolute;
  left:-25vw; right:-25vw;
  bottom:-260px;
  height:520px;
  background: radial-gradient(closest-side, rgba(34,197,94,.14), transparent 70%);
  filter: blur(22px);
  opacity:.9;
}
.bg__blob{
  position:absolute; width:520px; height:520px; filter: blur(40px);
  opacity:.55;
  animation: float 8s ease-in-out infinite;
  transform: translateZ(0);
}
.bg__blob--a{ left:-180px; top:120px; background: radial-gradient(circle at 30% 30%, rgba(139,92,246,.95), rgba(139,92,246,0)); }
.bg__blob--b{ right:-200px; top:-120px; background: radial-gradient(circle at 40% 40%, rgba(34,197,94,.85), rgba(34,197,94,0)); animation-delay:-2s;}
@keyframes float{
  0%,100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(18px,-22px) scale(1.04); }
}
.bg__grain{
  position:absolute; inset:0;
  opacity:.14;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.wrap{
  width:min(720px, 100%);
  margin: 0 auto;
  padding: 26px 18px 34px;
}

.hero{
  border:1px solid var(--stroke);
  background: linear-gradient(180deg, var(--card), rgba(255,255,255,.03));
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: 18px 18px 16px;
  position:relative;
  overflow:hidden;
}
.hero::before{
  content:"";
  position:absolute; inset:-1px;
  background: radial-gradient(600px 220px at 20% 0%, rgba(139,92,246,.22), transparent 60%),
              radial-gradient(520px 240px at 90% 30%, rgba(34,197,94,.18), transparent 60%);
  pointer-events:none;
}
.hero__top{display:flex; gap:14px; align-items:center; position:relative;}
.logo{
  width:84px; height:84px;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
  border:1px solid rgba(255,255,255,.12);
  object-fit:cover;
}
.hero__meta h1{
  margin:0;
  font-size: 22px;
  letter-spacing: .5px;
}
.hero__meta p{
  margin:6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.theme{
  margin-left:auto;
  display:flex; align-items:center; gap:10px;
  padding: 10px 12px;
  border-radius: 999px;
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.18);
  color: var(--text);
  cursor:pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  backdrop-filter: blur(10px);
}
.theme:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,.22); background: rgba(0,0,0,.26);}
.theme:active{ transform: translateY(0); }
.theme__dot{
  width:10px; height:10px; border-radius:999px;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.2));
  box-shadow: 0 0 0 6px rgba(255,255,255,.06);
}
.theme__text{font-size:12px; color: var(--muted); letter-spacing:.5px}

.hero__badge{
  position:relative;
  margin-top: 14px;
  display:inline-flex; align-items:center; gap:10px;
  padding: 8px 12px;
  border-radius: 999px;
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.14);
  backdrop-filter: blur(10px);
}
.badge__dot{
  width:10px; height:10px; border-radius:999px;
  background: var(--accent2);
  box-shadow: 0 0 0 7px rgba(34,197,94,.13);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse{
  0%,100%{ transform: scale(1); box-shadow: 0 0 0 7px rgba(34,197,94,.13); }
  50%{ transform: scale(1.08); box-shadow: 0 0 0 11px rgba(34,197,94,.07); }
}
.badge__text{font-size:12px; color: var(--muted); letter-spacing:.4px}

.card{
  margin-top: 14px;
  border:1px solid var(--stroke);
  background: linear-gradient(180deg, var(--card), rgba(255,255,255,.03));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
  transform: translateZ(0);
}
.card__head{
  padding: 16px 16px 10px;
  display:flex; align-items:flex-end; justify-content:space-between; gap:16px;
}
.card__head h2{margin:0; font-size:15px; letter-spacing:.6px; text-transform:uppercase;}
.card__head p{margin:0; color: var(--muted); font-size:12px;}

.links{padding: 6px 10px 12px;}
.link{
  display:flex; align-items:center; gap:12px;
  padding: 14px 12px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.14);
  backdrop-filter: blur(12px);
  margin-top: 10px;
  position:relative;
  overflow:hidden;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
  will-change: transform;
}
.link:first-child{margin-top:0}
.link:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,.18); background: rgba(0,0,0,.18);}
.link:active{ transform: translateY(0); }
.icon{color:rgba(255,255,255,.9); display:grid; place-items:center;}
.label{font-size:14px; letter-spacing:.2px;}
.chev{margin-left:auto; color: rgba(255,255,255,.55); font-size: 22px; transform: translateY(-1px);}

.link::after{
  content:"";
  position:absolute; inset:-1px;
  background: radial-gradient(420px 120px at 20% 0%, rgba(139,92,246,.18), transparent 60%),
              radial-gradient(420px 120px at 80% 110%, rgba(34,197,94,.12), transparent 65%);
  opacity:.0;
  transition: opacity .18s ease;
  pointer-events:none;
}
.link:hover::after{opacity:1;}

.ripple{
  position:absolute;
  border-radius:999px;
  transform: translate(-50%,-50%);
  pointer-events:none;
  opacity:.9;
  width: 12px; height: 12px;
  background: radial-gradient(circle, rgba(255,255,255,.65), rgba(255,255,255,0) 60%);
  animation: ripple .55s ease-out forwards;
}
@keyframes ripple{
  to{ width: 520px; height: 520px; opacity:0; }
}

.foot{
  margin-top: 14px;
  display:flex;
  flex-direction:column;
  gap:12px;
  align-items:stretch;
}
.copy{
  display:flex; align-items:center; justify-content:center;
  gap:10px;
  border:1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(0,0,0,.22), rgba(0,0,0,.12));
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 14px 12px;
  color: var(--text);
  cursor:pointer;
  transition: transform .16s ease, border-color .16s ease;
}
.copy:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,.20); }
.copy:active{ transform: translateY(0); }
.copy__text{font-size:13px; color: var(--muted);}
.fine{margin:0; text-align:center; color: rgba(255,255,255,.45); font-size:12px;}

.dev{
  margin: 6px auto 0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.10);
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,.55);
  transition: border-color .18s ease, color .18s ease, transform .18s ease;
}
.dev:hover{
  border-color: rgba(255,255,255,.18);
  color: rgba(255,255,255,.78);
  transform: translateY(-1px);
}
.dev__text{font-size:11.5px; letter-spacing:.2px;}
.dev__logo img{
  height: 18px;
  width: auto;
  display:block;
  opacity: .65;
  filter: brightness(.55) saturate(.9);
  transition: opacity .18s ease, filter .18s ease;
}
.dev:hover .dev__logo img{
  opacity: 1;
  filter: brightness(1.25) saturate(1.1) drop-shadow(0 0 14px rgba(255,255,255,.18)) drop-shadow(0 0 26px rgba(34,197,94,.22));
}

[data-reveal]{ opacity:0; transform: translateY(10px); }
.revealed{ opacity:1; transform: translateY(0); transition: opacity .38s ease, transform .38s ease; }

/* Better tap targets on mobile */
@media (max-width:460px){
  .hero__meta h1{font-size:20px}
  .logo{width:76px; height:76px}
  .label{font-size:13.5px}
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .bg__blob, .badge__dot, .preloader{ animation:none !important; }
  .link, .copy, .theme{ transition:none !important; }
  [data-reveal]{ opacity:1; transform:none; }
}
