/* ==== Tokens ==== */
:root{
  --bg: #07080d;
  --bg-soft: #0c0e16;
  --line: rgba(255,255,255,0.10);
  --fg: #f3f4f8;
  --fg-dim: rgba(243,244,248,0.62);
  --fg-faint: rgba(243,244,248,0.38);
  --accent-a: #BFE6FF;
  --accent-b: #38BDF8;
  --accent-c: #0B6FC9;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Inter', system-ui, sans-serif;
  --display: 'Space Grotesk', var(--sans);
  --ease: cubic-bezier(.16,.84,.44,1);
}

*{ box-sizing: border-box; margin:0; padding:0; }

html{ background: var(--bg); }

body{
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection{ background: var(--accent-b); color: #07080d; }

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

/* ==== Grain ==== */
.noise{
  position: fixed; inset: 0; pointer-events: none; z-index: 2;
  opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ==== Stage / Card ==== */
.stage{
  position: relative; z-index: 1;
  min-height: 100svh;
  display:flex; align-items:center; justify-content:center;
  padding: 56px 20px;
  perspective: 1200px;
}

.card{
  position: relative;
  width: 100%; max-width: 480px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 52px 36px 32px;
  text-align: center;
  transform-style: preserve-3d;
  opacity: 0; transform: translateY(14px);
  animation: cardIn .6s var(--ease) .05s forwards;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card.is-tilting{ transition: box-shadow .5s var(--ease); }
.card:hover{
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.6);
}
@keyframes cardIn{
  to{ opacity: 1; transform: translateY(0); }
}

.card-glare{
  position: absolute; inset: 0; z-index: 5;
  border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.09), transparent 60%);
}
.card:hover .card-glare{ opacity: 1; }

/* ==== Language switch ==== */
.lang-switch{
  position: absolute; top: 18px; right: 20px;
  display: flex; align-items: center; gap: 4px;
}
.lang-opt{
  appearance: none; -webkit-appearance: none;
  background: none; border: none; padding: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  width: 22px; height: 22px;
  border-radius: 50%; opacity: 0.5; filter: grayscale(0.6);
  transition: opacity .2s ease, filter .2s ease, transform .2s ease, box-shadow .2s ease;
}
.flag-svg{ width: 100%; height: 100%; display: block; }
.lang-opt:hover{ opacity: 0.85; transform: scale(1.06); }
.lang-opt.active{
  opacity: 1; filter: grayscale(0);
  box-shadow: 0 0 0 1px rgba(56,189,248,0.45);
}

.kicker{
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  color: var(--fg-faint); text-transform: uppercase; margin-bottom: 22px;
}

.wordmark{
  position: relative; display: inline-block;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2rem, 7vw, 2.6rem);
  letter-spacing: -0.01em;
  margin-bottom: 22px;
  transform: rotate(-0.6deg);
}
.scribble{
  display: block;
  width: 100%; height: 12px;
  margin-top: 2px;
  overflow: visible;
}
.scribble path{
  fill: none;
  stroke: var(--accent-b);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.sub{
  font-size: 15px; line-height: 1.6;
  color: var(--fg-dim); max-width: 380px; margin: 0 auto;
}

.rule{
  border: none; height: 1px; width: 48px;
  background: var(--line); margin: 32px auto;
}

.eyebrow{
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  color: var(--fg-faint); text-transform: uppercase; margin-bottom: 10px;
}

/* ==== Apps list ==== */
.apps-list{
  display: flex; flex-direction: column; gap: 4px;
  text-align: left;
}

.app-row{
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: border-color .25s ease, background-color .25s ease, transform .25s var(--ease);
  opacity: 0; transform: translateY(8px);
  animation: appIn .5s var(--ease) forwards;
}
.app-row:nth-child(1){ animation-delay: .32s; }
.app-row:nth-child(2){ animation-delay: .4s; }
.app-row:nth-child(3){ animation-delay: .48s; }
@keyframes appIn{
  to{ opacity: 1; transform: translateY(0); }
}

.app-row:hover{
  border-color: var(--line);
  background-color: rgba(255,255,255,0.025);
  transform: translateY(-2px);
}

.app-row::before{
  content: ''; position: absolute; top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.07), transparent);
  transform: skewX(-18deg);
  transition: left .65s ease;
  pointer-events: none;
}
.app-row:hover::before{ left: 130%; }

.app-icon{
  flex-shrink: 0;
  width: 38px; height: 38px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s var(--ease);
}
.app-row:hover .app-icon{ transform: scale(1.08) rotate(-4deg); }

.app-icon--a{ background: rgba(56,189,248,0.14); color: var(--accent-b); }
.app-icon--b{ background: rgba(191,230,255,0.12); color: var(--accent-a); }
.app-icon--c{ background: rgba(11,111,201,0.20); color: var(--accent-a); }

.app-info{ flex: 1; min-width: 0; }
.app-name{
  font-family: var(--display); font-weight: 600; font-size: 14.5px;
  color: var(--fg);
}
.app-desc{
  font-size: 12.5px; line-height: 1.4; color: var(--fg-dim);
  margin-top: 1px;
}

.app-status{
  flex-shrink: 0;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--fg-faint);
}
.app-status--beta{
  color: var(--accent-a);
  border-color: rgba(56,189,248,0.35);
  background: rgba(56,189,248,0.08);
}

.contact-sub{
  font-size: 14px; line-height: 1.55;
  color: var(--fg-dim); max-width: 360px; margin: 0 auto 18px;
}

.email-link{
  position: relative; z-index: 2;
  appearance: none; -webkit-appearance: none;
  background: none; border: none; padding: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-size: clamp(1.05rem, 4vw, 1.3rem); font-weight: 600;
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 5px;
  transition: text-decoration-color .2s ease, color .2s ease;
}
.email-link:hover{ color: var(--accent-a); text-decoration-color: var(--accent-b); }

.email-icon{ flex-shrink: 0; color: var(--fg-faint); transition: color .2s ease, transform .25s var(--ease); }
.email-link:hover .email-icon{ color: var(--accent-b); }
.email-icon--check{ display: none; color: var(--accent-b); }

.email-text--copied{ display: none; }

.email-link.is-copied{ color: var(--accent-a); text-decoration-color: var(--accent-b); }
.email-link.is-copied .email-icon--copy{ display: none; }
.email-link.is-copied .email-icon--check{ display: block; animation: popIn .3s var(--ease); }
.email-link.is-copied .email-text{ display: none; }
.email-link.is-copied .email-text--copied{ display: inline; }

@keyframes popIn{
  from{ transform: scale(.6); opacity: 0; }
  to{ transform: scale(1); opacity: 1; }
}

.footer-note{
  margin-top: 40px;
  font-size: 12px; color: var(--fg-faint);
}

@media (max-width: 480px){
  .card{ padding: 44px 24px 24px; border-radius: 18px; }
  .lang-switch{ top: 16px; right: 18px; }
}
