@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@700;800&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@500&display=swap');

:root{

  /* color — strict black & white, no hue anywhere */
  --bg:#060606;
  --sidebar:#0a0a0a;
  --surface:#101010;
  --surface-2:#161616;
  --surface-3:#1d1d1d;
  --border:rgba(255,255,255,.08);
  --border-strong:rgba(255,255,255,.16);

  --text:#f5f5f5;
  --muted:#8f8f8f;
  --muted-dim:#565656;

  --white:#ffffff;
  --white-glow:rgba(255,255,255,.14);

  /* type */
  --font-display:'Inter Tight',sans-serif;
  --font-body:'Inter',sans-serif;
  --font-mono:'IBM Plex Mono',monospace;

  /* motion */
  --speed:.14s;
  --speed-slow:.4s;
  --curve:cubic-bezier(.22,1,.36,1);
  --curve-spring:cubic-bezier(.34,1.56,.64,1);

}


*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}


body{
  height:100vh;
  display:flex;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  overflow:hidden;
}

a{
  text-decoration:none;
  color:inherit;
}

button{
  font:inherit;
  color:inherit;
  background:none;
  border:none;
  cursor:pointer;
}


@media (prefers-reduced-motion:reduce){
  *{
    animation-duration:.001s !important;
    transition-duration:.001s !important;
  }
}

body.force-reduce-motion *{
  animation-duration:.001s !important;
  transition-duration:.001s !important;
}



/* ============ SIDEBAR ============ */

.sidebar{
  width:74px;
  height:100vh;
  flex-shrink:0;
  background:var(--sidebar);
  border-right:1px solid var(--border);
  transition:width var(--speed) var(--curve);
  overflow:hidden;
  padding:18px 12px;
  position:relative;
  z-index:10;
}

.sidebar:hover{
  width:226px;
}

.side-content{
  display:flex;
  flex-direction:column;
}


.brand{
  height:44px;
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:36px;
  flex-shrink:0;
}

.mark{
  width:40px;
  height:40px;
  border-radius:12px;
  flex-shrink:0;
  position:relative;
  background:var(--white);
  display:flex;
  justify-content:center;
  align-items:center;
  overflow:visible;
}

.mark::before{
  content:'';
  position:absolute;
  inset:-7px;
  border-radius:16px;
  background:var(--white);
  filter:blur(11px);
  opacity:.22;
  z-index:-1;
}

.mark span{
  width:9px;
  height:9px;
  border-radius:50%;
  background:var(--bg);
}

.brand-name{
  font-family:var(--font-display);
  font-size:19px;
  font-weight:800;
  letter-spacing:-.02em;
  white-space:nowrap;
  opacity:0;
  transform:translateX(-10px);
  transition:.16s var(--curve);
}

.sidebar:hover .brand-name{
  opacity:1;
  transform:none;
}


nav{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.bottom{
  position:absolute;
  bottom:18px;
  left:12px;
  right:12px;
}

.legal-container{
    margin-top:8px;
}


/* collapsed icon */
.legal-toggle{

    height:46px;
    border-radius:12px;

    display:flex;
    align-items:center;
    gap:16px;

    padding:0 12px;

    color:var(--muted);

    transition:
    background var(--speed) var(--curve),
    color var(--speed) var(--curve),
    transform var(--speed) var(--curve-spring);

}


.legal-toggle img{

    width:19px;
    height:19px;

    filter:brightness(0) invert(1);

    opacity:.55;

    transition:
    opacity var(--speed) var(--curve),
    transform var(--speed) var(--curve-spring);

}


.legal-toggle span{

    font-size:14.5px;

    opacity:0;
    transform:translateX(-8px);

    transition:.16s var(--curve);

}


/* show text only expanded */
.sidebar:hover .legal-toggle span{

    opacity:1;
    transform:none;

}



.legal-toggle:hover{

    background:var(--surface);

    color:var(--text);

    transform:translateX(4px) rotate(-1deg);

}


.legal-toggle:hover img{

    opacity:1;

    transform:rotate(-8deg) scale(1.05);

}



/* actual legal links */

.legal-row{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:6px;

    padding:10px 4px 2px;

}


.sidebar:not(:hover) .legal-row{

    display:none;

}


.sidebar:hover .legal-toggle{

    display:none;

}


.legal-row a{

    font-size:11px;

    color:var(--muted-dim);

}


.legal-row a:hover{

    color:var(--text);

}


.legal-dot{

  font-size:30px;

  color:var(--muted-dim);

}



.sidebar:not(:hover) .legal-row{

  display:none;

}

.sidebar:hover .legal-row{
  opacity:1;
}

nav a,
.bottom a{
  height:46px;
  border-radius:12px;
  display:flex;
  align-items:center;
  gap:16px;
  padding:0 12px;
  color:var(--muted);
  cursor:pointer;
  position:relative;
  transition:background var(--speed) var(--curve),
             color var(--speed) var(--curve),
             transform var(--speed) var(--curve-spring);
}

.icon-slot{
  position:relative;
  width:19px;
  height:19px;
  flex-shrink:0;
  display:flex;
  align-items:center;
  justify-content:center;
}

nav a img,
.bottom a img{
  width:19px;
  height:19px;
  flex-shrink:0;
  filter:brightness(0) invert(1);
  opacity:.55;
  transition:opacity var(--speed) var(--curve),
             transform var(--speed) var(--curve-spring);
}

.lock{
  position:absolute;
  top:-6px;
  right:-8px;
  width:13px;
  height:13px;
  border-radius:50%;
  background:var(--sidebar);
  border:1px solid var(--border-strong);
  display:flex;
  align-items:center;
  justify-content:center;
}

.lock svg{
  width:7px;
  height:7px;
  fill:none;
  stroke:var(--muted);
  stroke-width:1.6;
}

nav a span,
.bottom a span{
  font-size:14.5px;
  font-weight:500;
  opacity:0;
  transform:translateX(-8px);
  transition:.16s var(--curve);
  white-space:nowrap;
}

.sidebar:hover nav a span,
.sidebar:hover .bottom a span{
  opacity:1;
  transform:none;
}

nav a:hover,
.bottom a:hover{
  background:var(--surface);
  color:var(--text);
  transform:translateX(4px) rotate(-1deg);
}

nav a:hover img,
.bottom a:hover img{
  opacity:1;
  transform:rotate(-8deg) scale(1.05);
}

nav a.active,
.bottom a.active{
  background:var(--surface-2);
  color:var(--text);
}

nav a.active img,
.bottom a.active img{
  opacity:1;
}

nav a.active::before,
.bottom a.active::before{
  content:'';
  position:absolute;
  left:0;
  top:9px;
  bottom:9px;
  width:3px;
  border-radius:3px;
  background:var(--white);
}



/* ============ MAIN / HOME ============ */

main{
  flex:1;
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
}

main::before{
  content:'';
  position:absolute;
  inset:0;
  pointer-events:none;
  background:radial-gradient(700px circle at 12% 26%, var(--white-glow), transparent 62%);
  opacity:.05;
}

main:has(.proxy-panel.active){

    padding:0;

    overflow:hidden;

    align-items:stretch;

    justify-content:stretch;

}

.panel{
  display:none;
}

.panel.active{
  display:flex;
}



.home{
  width:min(1180px,86%);
  align-items:center;
  justify-content:space-between;
  gap:56px;
  position:relative;
  z-index:1;
}

/* generic centered panels: watch / games / music / ai / chat / settings / legal / dmca / privacy */
.simple-panel,
.settings-panel,
.doc-panel{
  width:min(560px,86%);
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:6px;
}

.simple-panel .panel-icon{
  width:64px;
  height:64px;
  border-radius:18px;
  background:var(--surface);
  border:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:18px;
  position:relative;
}

.simple-panel .panel-icon img{
  width:26px;
  height:26px;
  filter:brightness(0) invert(1);
  opacity:.85;
}

.simple-panel .panel-icon.locked img{
  opacity:.35;
}

.lock.big{
  width:22px;
  height:22px;
  position:absolute;
  top:-8px;
  right:-8px;
  background:var(--surface-2);
  border:1px solid var(--border-strong);
}

.lock.big svg{
  width:11px;
  height:11px;
}

.simple-panel h2,
.settings-panel h2,
.doc-panel h2{
  font-family:var(--font-display);
  font-size:32px;
  font-weight:800;
  letter-spacing:-.02em;
  color:var(--white);
}

.simple-panel p,
.doc-panel p{
  font-size:15px;
  line-height:1.6;
  color:var(--muted);
  max-width:380px;
}

.settings-panel{
  gap:28px;
  align-items:stretch;
  text-align:left;
}

.settings-panel h2{
  text-align:center;
}

.settings-list{
  display:flex;
  flex-direction:column;
  gap:2px;
  border:1px solid var(--border);
  border-radius:16px;
  overflow:hidden;
  background:var(--surface);
}

.settings-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:16px 18px;
  border-bottom:1px solid var(--border);
}

.settings-row:last-child{
  border-bottom:none;
}

.settings-row strong{
  display:block;
  font-size:14px;
  font-weight:600;
}

.settings-row span{
  display:block;
  font-size:12.5px;
  color:var(--muted);
  margin-top:2px;
}

.switch{
  width:38px;
  height:22px;
  border-radius:100px;
  background:var(--surface-3);
  border:1px solid var(--border-strong);
  flex-shrink:0;
  position:relative;
  transition:background var(--speed) var(--curve);
}

.switch::before{
  content:'';
  position:absolute;
  top:2px;
  left:2px;
  width:16px;
  height:16px;
  border-radius:50%;
  background:var(--muted);
  transition:transform var(--speed) var(--curve-spring), background var(--speed) var(--curve);
}

.switch.on{
  background:var(--white);
  border-color:var(--white);
}

.switch.on::before{
  background:var(--bg);
  transform:translateX(16px);
}

.doc-panel p{
  max-width:440px;
}


.text{
  max-width:440px;
  flex-shrink:0;
}

.text h1{
  font-family:var(--font-display);
  font-size:82px;
  font-weight:800;
  letter-spacing:-.035em;
  line-height:1;
  color:var(--white);
}

.text p{
  font-size:16px;
  line-height:1.6;
  color:var(--muted);
  margin-top:18px;
  max-width:370px;
}


/* quick actions */

.actions{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:30px;
}

.action-primary{
  height:70px;
  border-radius:16px;
  background:var(--surface);
  border:1px solid var(--border);
  display:flex;
  align-items:center;
  gap:14px;
  padding:0 18px;
  transition:transform var(--speed) var(--curve-spring),
             background var(--speed) var(--curve),
             border-color var(--speed) var(--curve);
}

.action-primary:hover{
  transform:translateY(-2px) rotate(-.4deg);
  background:var(--surface-2);
  border-color:var(--border-strong);
}

.action-primary .icon{
  width:40px;
  height:40px;
  border-radius:11px;
  background:var(--white);
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}

.action-primary .icon img{
  width:18px;
  height:18px;
  filter:brightness(0);
}

.action-primary .copy strong{
  display:block;
  font-size:15px;
  font-weight:600;
}

.action-primary .copy span{
  display:block;
  font-size:12.5px;
  color:var(--muted);
  margin-top:2px;
}


.action-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.action-card{
  --rx:0deg;
  --ry:0deg;
  --s:1;
  --mx:50%;
  --my:50%;

  height:96px;
  border-radius:16px;
  background:var(--surface);
  border:1px solid var(--border);
  padding:14px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  position:relative;
  overflow:hidden;
  transform:perspective(700px) rotateX(var(--rx)) rotateY(var(--ry)) scale(var(--s));
  transition:transform var(--speed) var(--curve-spring),
             border-color var(--speed) var(--curve),
             background var(--speed) var(--curve);
}

.action-card::before{
  content:'';
  position:absolute;
  inset:0;
  background:radial-gradient(160px circle at var(--mx) var(--my), rgba(255,255,255,.09), transparent 62%);
  opacity:0;
  transition:opacity var(--speed-slow) var(--curve);
  pointer-events:none;
}

.action-card:hover{
  border-color:var(--border-strong);
  background:var(--surface-2);
}

.action-card:hover::before{
  opacity:1;
}

.action-card img{
  width:17px;
  height:17px;
  filter:brightness(0) invert(1);
  opacity:.8;
}

.action-card strong{
  display:block;
  font-size:13.5px;
  font-weight:600;
}

.action-card span{
  display:block;
  font-size:11.5px;
  color:var(--muted-dim);
  margin-top:2px;
}

/* ============ RESPONSIVE ============ */

@media (max-width:960px){

  body{
    flex-direction:column;
  }

  .sidebar{
    width:100%;
    height:64px;
    order:2;
    padding:0 10px;
    border-right:none;
    border-top:1px solid var(--border);
  }

  .sidebar:hover{
    width:100%;
  }

  .side-content{
    flex-direction:row;
    align-items:center;
    height:100%;
  }

  .brand{
    display:none;
  }

  .legal-row{
    display:none;
  }

  nav{
    flex-direction:row;
    flex:1;
    justify-content:space-around;
  }

  .bottom{
    margin-top:0;
  }

  nav a span,
  .bottom a span{
    display:none;
  }

  nav a.active::before,
  .bottom a.active::before{
    left:12px;
    right:12px;
    top:auto;
    bottom:2px;
    width:auto;
    height:3px;
  }

  main{
    order:1;
    padding:36px 22px;
  }

  .home{
    flex-direction:column;
    width:100%;
    gap:32px;
    text-align:center;
  }

  .text{
    max-width:100%;
  }

  .eyebrow{
    justify-content:center;
  }

  .text p{
    margin-left:auto;
    margin-right:auto;
  }

  .text h1{
    font-size:52px;
  }

  .actions{
    align-items:stretch;
    text-align:left;
  }

  .preview-wrap{
    width:100%;
    max-width:360px;
    height:280px;
}

  .simple-panel,
  .settings-panel,
  .doc-panel{
    width:100%;
  }
}

.preview-wrap{
    flex:1;
    height:min(900px,78vh);
    max-width:640px;
    flex-shrink:1;
    overflow:hidden;
}


.preview-frame{
    width:100%;
    height:100%;
    border:none;
    display:block;
}

.home-tagline {

    cursor: default;

    transition:
        opacity .2s ease,
        transform .2s ease;

}


.home-tagline:hover {

    opacity: .8;

}


.home-tagline.changing {

    opacity:0;

    transform:translateY(8px);

}

/* ============ CHANGELOG ============ */

.changelog-overlay{
  position:fixed;
  inset:0;
  z-index:300;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.6);
  backdrop-filter:blur(6px);
  opacity:0;
  transition:opacity var(--speed-slow) var(--curve);
}

.changelog-overlay.open{
  display:flex;
  opacity:1;
}

.changelog-modal{
  width:min(400px,88%);
  max-height:74vh;
  display:flex;
  flex-direction:column;
  background:var(--sidebar);
  border:1px solid var(--border-strong);
  border-radius:20px;
  overflow:hidden;
  transform:translateY(14px) scale(.97);
  opacity:0;
  transition:transform var(--speed-slow) var(--curve-spring), opacity var(--speed-slow) var(--curve);
}

.changelog-overlay.open .changelog-modal{
  transform:none;
  opacity:1;
}

.changelog-header{
  display:flex;
  align-items:center;
  gap:10px;
  padding:18px 20px;
  border-bottom:1px solid var(--border);
  flex-shrink:0;
}

.changelog-header h2{
  font-family:var(--font-display);
  font-size:18px;
  font-weight:800;
  letter-spacing:-.02em;
  flex:1;
}

.changelog-version-tag{
  font-family:var(--font-mono);
  font-size:11px;
  color:var(--muted);
}

.changelog-close{
  width:26px;
  height:26px;
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--muted);
  transition:background var(--speed) var(--curve), color var(--speed) var(--curve);
}

.changelog-close:hover{
  background:var(--surface);
  color:var(--text);
}

.changelog-close svg{
  width:14px;
  height:14px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
}

.changelog-body{
  padding:16px 20px;
  overflow-y:auto;
}

.changelog-body ul{
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:7px;
}

.changelog-body li{
  font-size:13.5px;
  line-height:1.5;
  color:var(--muted);
  padding-left:14px;
  position:relative;
}

.changelog-body li::before{
  content:'';
  position:absolute;
  left:0;
  top:8px;
  width:4px;
  height:4px;
  border-radius:50%;
  background:var(--muted-dim);
}

.changelog-devnote{
  flex-shrink:0;
  padding:14px 20px 18px;
  border-top:1px solid var(--border);
  font-size:12.5px;
  line-height:1.5;
  color:var(--muted-dim);
}

/* ============ BETA TOAST ============ */

.beta-toast{
  position:fixed;
  top:18px;
  right:18px;
  z-index:250;

  display:flex;
  align-items:center;
  gap:12px;

  width:min(360px,86vw);
  padding:12px 12px 12px 14px;

  background:var(--glass-strong);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);

  border:1px solid var(--border);
  border-radius:16px;

  box-shadow:0 10px 28px rgba(0,0,0,.35);

  transform:translateY(-14px) scale(.97);
  opacity:0;
  pointer-events:none;

  transition:
    transform var(--speed-slow) var(--curve-spring),
    opacity var(--speed-slow) var(--curve);
}


.beta-toast.show{
  transform:none;
  opacity:1;
  pointer-events:auto;
}


/* icon tile */
.beta-toast-icon{
  width:34px;
  height:34px;

  flex-shrink:0;

  border-radius:10px;

  display:flex;
  align-items:center;
  justify-content:center;

  background:var(--surface);
  border:1px solid var(--border);
}


.beta-toast-icon svg{
  width:16px;
  height:16px;

  fill:none;
  stroke:var(--white);

  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}


/* text */
.beta-toast-copy{
  flex:1;
  min-width:0;
}


.beta-toast-copy strong{
  display:block;

  font-family:var(--font-display);
  font-size:13.5px;

  font-weight:800;
  letter-spacing:-.02em;

  color:var(--white);
}


.beta-toast-copy span{
  display:block;

  margin-top:3px;

  font-size:12.5px;
  line-height:1.4;

  color:var(--muted);
}


/* close button */
.beta-toast-close{
  width:26px;
  height:26px;

  flex-shrink:0;

  border-radius:8px;

  display:flex;
  align-items:center;
  justify-content:center;

  color:var(--muted);

  transition:
    background var(--speed) var(--curve),
    color var(--speed) var(--curve),
    transform var(--speed) var(--curve-spring);
}


.beta-toast-close:hover{
  background:var(--surface-2);
  color:var(--text);
  transform:scale(1.05);
}


.beta-toast-close svg{
  width:13px;
  height:13px;

  fill:none;
  stroke:currentColor;

  stroke-width:2;
  stroke-linecap:round;
}


@media (max-width:960px){

  .beta-toast{
    top:12px;
    left:12px;
    right:12px;
    width:auto;
  }

}