:root{
  --bg:#0a0d14;
  --bg-2:#0f1420;
  --panel:#121927;
  --panel-2:#182132;
  --line:#283247;
  --line-soft:rgba(255,255,255,.07);
  --text:#eef2ff;
  --muted:#9aa6c2;
  --accent:#5e6bff;
  --accent-2:#8ea1ff;
  --accent-soft:rgba(94,107,255,.12);
  --shadow:0 24px 64px rgba(0,0,0,.34);
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:
    radial-gradient(circle at top left, rgba(94,107,255,.14), transparent 28%),
    radial-gradient(circle at top right, rgba(142,161,255,.08), transparent 26%),
    linear-gradient(180deg,var(--bg) 0%,var(--bg-2) 100%);
  color:var(--text);
  min-height:100vh;
  overflow-x:hidden;
}

a{text-decoration:none;color:inherit}
img{display:block;max-width:100%}
button{font:inherit}

.grid-noise{
  position:fixed;
  inset:0;
  pointer-events:none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size:34px 34px;
  opacity:.5;
  z-index:0;
}

.light{
  position:fixed;
  border-radius:999px;
  filter:blur(110px);
  pointer-events:none;
  opacity:.24;
  z-index:0;
}
.light-a{width:340px;height:340px;left:-80px;top:80px;background:rgba(94,107,255,.48)}
.light-b{width:380px;height:380px;right:-90px;top:240px;background:rgba(142,161,255,.26)}

.wrap{
  width:min(1200px,92vw);
  margin:0 auto;
  position:relative;
  z-index:1;
  line-height:1.5;
}

.card{
  background:linear-gradient(180deg,rgba(18,25,39,.94),rgba(13,18,29,.92));
  border:1px solid var(--line);
  border-radius:28px;
  box-shadow:var(--shadow);
  backdrop-filter:blur(14px);
  transition:transform .24s ease,border-color .24s ease,box-shadow .24s ease;
}
.card:hover{transform:translateY(-2px);border-color:rgba(142,161,255,.28)}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}
.brand-logo{
  width:56px;
  height:56px;
  border-radius:16px;
  flex:0 0 auto;
}
.brand-copy strong{
  display:block;
  font-size:20px;
  line-height:1;
  letter-spacing:-.02em;
}
.brand-copy span{
  display:block;
  margin-top:6px;
  font-size:11px;
  line-height:1.35;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--muted);
}

.site-header{
  position:sticky;
  top:0;
  z-index:20;
  padding:18px 0;
  background:rgba(9,12,19,.78);
  backdrop-filter:blur(16px);
  border-bottom:1px solid var(--line-soft);
}
.nav-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.nav-links{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.nav-links a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 14px;
  border-radius:12px;
  color:var(--muted);
  transition:.2s ease;
}
.nav-links a:hover{
  color:var(--text);
  background:rgba(255,255,255,.04);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:0 20px;
  border-radius:14px;
  font-weight:700;
  border:1px solid transparent;
  transition:transform .2s ease,box-shadow .2s ease,background .2s ease,border-color .2s ease;
  cursor:pointer;
  line-height:1.15;
  text-align:center;
}
.btn:hover{transform:translateY(-1px)}
.btn-primary{
  color:#fff;
  background:linear-gradient(180deg,var(--accent-2),var(--accent));
  box-shadow:0 16px 36px rgba(94,107,255,.3);
}
.btn-secondary{
  color:var(--text);
  background:rgba(255,255,255,.03);
  border-color:var(--line);
}

.eyebrow,.mini-label{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  font-weight:800;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--accent-2);
}

.hero{
  display:grid;
  grid-template-columns:minmax(0,1.02fr) minmax(340px,.98fr);
  gap:30px;
  align-items:center;
  padding:62px 0 46px;
}
.hero-copy h1{
  max-width:10ch;
  margin:16px 0 18px;
  font-size:clamp(50px,6vw,84px);
  line-height:.92;
  letter-spacing:-.06em;
}
.hero-text{
  max-width:620px;
  font-size:18px;
  line-height:1.8;
  color:var(--muted);
}
.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:30px;
}
.metric-row{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-top:30px;
}
.metric-box{
  padding:18px;
  border:1px solid var(--line);
  border-radius:20px;
  background:rgba(255,255,255,.03);
}
.metric-box span{
  display:block;
  font-size:12px;
  line-height:1.35;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--muted);
}
.metric-box strong{
  display:block;
  margin-top:10px;
  font-size:17px;
  line-height:1.35;
}

.hero-stack{
  display:grid;
  gap:16px;
  align-self:stretch;
}
.stack-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}
.stack-card{
  padding:26px;
}
.card-primary{
  border-color:rgba(94,107,255,.32);
  background:
    radial-gradient(circle at top right, rgba(94,107,255,.15), transparent 42%),
    linear-gradient(180deg,rgba(20,27,41,.98),rgba(14,20,31,.95));
}
.stack-card span{
  display:block;
  font-size:12px;
  line-height:1.35;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--accent-2);
  margin-bottom:10px;
}
.stack-card strong{
  display:block;
  font-size:28px;
  line-height:1.05;
  letter-spacing:-.03em;
}
.stack-card p{
  margin-top:12px;
  color:var(--muted);
  font-size:15px;
  line-height:1.75;
}

.section{
  padding:38px 0;
}
.section-head{
  margin-bottom:24px;
}
.section-head h2{
  margin-top:12px;
  max-width:12ch;
  font-size:clamp(34px,4vw,52px);
  line-height:.96;
  letter-spacing:-.045em;
}
.benefit-grid,.legal-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
.benefit-card,.legal-card{
  padding:24px;
}
.benefit-card h3,.legal-card strong{
  display:block;
  font-size:22px;
  line-height:1.1;
  letter-spacing:-.03em;
}
.benefit-card p,.legal-card p,.legal-shell p{
  margin-top:12px;
  color:var(--muted);
  font-size:15px;
  line-height:1.8;
}

.site-footer{
  margin-top:22px;
  padding:36px 0 54px;
  border-top:1px solid var(--line-soft);
}
.footer-grid{
  display:grid;
  grid-template-columns:1.4fr .8fr .8fr;
  gap:22px;
  align-items:start;
}
.footer-brand{
  margin-bottom:16px;
}
.footer-kicker{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid rgba(94,107,255,.32);
  background:rgba(94,107,255,.1);
  color:var(--accent-2);
  font-size:12px;
  font-weight:800;
  letter-spacing:.16em;
  text-transform:uppercase;
  margin-bottom:14px;
}
.footer-grid h4{
  margin-bottom:12px;
  font-size:12px;
  font-weight:800;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--accent-2);
}
.footer-grid a,.footer-grid span,.site-footer p{
  display:block;
  color:var(--muted);
  line-height:1.8;
}

.auth-page{display:grid;place-items:center}
.auth-shell{
  min-height:100vh;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(360px,460px);
  gap:32px;
  align-items:center;
  padding:44px 0;
}
.auth-copy h1{
  margin:18px 0 14px;
  font-size:clamp(40px,5vw,70px);
  line-height:.94;
  letter-spacing:-.05em;
}
.auth-copy p{
  max-width:560px;
  font-size:18px;
  line-height:1.8;
  color:var(--muted);
}
.auth-card{
  padding:32px;
  box-shadow:0 24px 64px rgba(0,0,0,.28);
}
.auth-card h2{
  font-size:34px;
  line-height:1;
  letter-spacing:-.04em;
}
.sub{
  margin:10px 0 22px;
  color:var(--muted);
  line-height:1.75;
}
.field{
  display:grid;
  gap:8px;
  margin-bottom:16px;
}
.field label{
  font-size:12px;
  font-weight:700;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--muted);
}
.field input{
  width:100%;
  height:52px;
  padding:0 16px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  color:var(--text);
  outline:none;
  font-size:15px;
}
.field input:focus{
  border-color:rgba(94,107,255,.6);
  box-shadow:0 0 0 3px rgba(94,107,255,.14);
}input::placeholder{color:#8693b2}
.field-help{
  font-size:12px;
  line-height:1.65;
  color:var(--muted);
}
.auth-btn{width:100%;margin-top:6px}
.auth-link{
  margin-top:18px;
  text-align:center;
  font-size:14px;
  color:var(--muted);
}
.auth-link a{color:var(--accent-2);font-weight:700}

.notice{
  margin-bottom:18px;
  padding:14px 16px;
  border-radius:16px;
  border:1px solid var(--line);
  font-size:14px;
  line-height:1.65;
}
.notice-error{
  background:rgba(184,62,62,.12);
  border-color:rgba(184,62,62,.34);
  color:#ffd0d0;
}
.notice-success{
  background:rgba(64,160,94,.12);
  border-color:rgba(64,160,94,.34);
  color:#d5ffd7;
}

.board-shell{
  padding:42px 0 56px;
}
.board-top{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  padding:30px;
  margin-bottom:22px;
  box-shadow:0 24px 64px rgba(0,0,0,.22);
}
.board-top h1{
  margin:10px 0;
  font-size:clamp(36px,4vw,58px);
  line-height:.94;
  letter-spacing:-.045em;
}
.board-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.board-grid{
  display:grid;
  grid-template-columns:250px minmax(290px,350px) minmax(0,1fr);
  gap:18px;
  align-items:start;
}
.side-panel,.list-panel,.preview-panel{
  padding:24px;
  box-shadow:0 18px 48px rgba(0,0,0,.16);
}
.side-item,.mail-item{
  width:100%;
  text-align:left;
  padding:14px 16px;
  border-radius:16px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.025);
  color:var(--text);
  cursor:pointer;
  transition:.2s ease;
}
.side-item + .side-item,.mail-item + .mail-item{margin-top:12px}
.side-item.active,.mail-item.active,.side-item:hover,.mail-item:hover{
  background:var(--accent-soft);
  border-color:rgba(94,107,255,.4);
}
.side-stats{
  display:grid;
  gap:14px;
  margin-top:22px;
  padding-top:20px;
  border-top:1px solid var(--line);
}
.side-stats span{
  display:block;
  font-size:12px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--muted);
}
.side-stats strong{
  display:block;
  margin-top:6px;
}
.panel-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:18px;
}
.panel-top h2{
  font-size:26px;
  line-height:1.05;
  letter-spacing:-.03em;
}
.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:0 12px;
  border-radius:999px;
  background:var(--accent-soft);
  border:1px solid rgba(94,107,255,.34);
  color:var(--accent-2);
  font-size:12px;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.mail-item strong{
  display:block;
  font-size:17px;
  line-height:1.2;
  margin-bottom:6px;
}
.mail-item span,.from-line,.status-line{
  color:var(--muted);
  font-size:14px;
  line-height:1.6;
}
.preview-panel p{
  margin:18px 0 22px;
  font-size:16px;
  line-height:1.85;
  color:var(--muted);
}
.preview-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.status-line{margin-top:14px}

.legal-shell{
  padding:34px;
  margin:40px auto;
}
.legal-shell h1{
  margin:14px 0 16px;
  font-size:clamp(36px,4vw,52px);
  line-height:.98;
  letter-spacing:-.045em;
}

@media (max-width: 1024px){
  .hero,
  .auth-shell,
  .board-grid,
  .benefit-grid,
  .footer-grid,
  .legal-grid{
    grid-template-columns:1fr;
  }

  .hero{
    gap:24px;
  }

  .metric-row,
  .stack-row{
    grid-template-columns:1fr;
  }

  .board-top{
    align-items:flex-start;
    flex-direction:column;
  }
}

@media (max-width: 640px){
  .wrap{width:min(100%,calc(100vw - 28px))}

  .site-header{
    padding:14px 0;
  }

  .nav-row{
    flex-direction:column;
    align-items:flex-start;
  }

  .nav-links{
    width:100%;
    gap:8px;
  }

  .nav-links a{
    height:auto;
    padding:10px 12px;
  }

  .hero{
    padding:34px 0 28px;
  }

  .hero-copy h1{
    font-size:46px;
    max-width:9ch;
  }

  .auth-shell,
  .board-shell{
    padding-top:24px;
  }

  .hero-actions,
  .board-actions,
  .preview-actions{
    flex-direction:column;
  }

  .btn{
    width:100%;
  }

  .auth-card,
  .board-top,
  .side-panel,
  .list-panel,
  .preview-panel,
  .benefit-card,
  .legal-card,
  .legal-shell,
  .stack-card,
  .metric-box{
    padding:20px;
  }

  .brand-logo{
    width:52px;
    height:52px;
  }

  .light{display:none}
}
