:root{
  /* Dark theme (default) */
  --bg:#0b0f14;
  --panel:#0f1621;
  --text:#e9eef6;
  --muted:#b7c2d4;
  --line:var(--line);
  --surface:var(--surface);
  --surface-2:var(--surface-2);
  --surface-hover:var(--surface-hover);
  --header-bg:rgba(11,15,20,.70);
  --glow-1:rgba(110,168,255,.20);
  --glow-2:rgba(126,224,193,.14);
  --accent:#6ea8ff;
  --accent2:#7ee0c1;
  --shadow: 0 10px 25px rgba(0,0,0,.35);
  --shadow-lg: 0 18px 45px rgba(0,0,0,.45);
  --radius:16px;
  --maxw:1100px;
  --pad:20px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

/* Light theme — applied when data-theme="light" */
:root[data-theme="light"]{
  --bg:#f7f9fc;
  --panel:#ffffff;
  --text:#141a24;
  --muted:#556072;
  --line:rgba(20,26,36,.12);
  --surface:rgba(20,26,36,.03);
  --surface-2:rgba(20,26,36,.045);
  --surface-hover:rgba(20,26,36,.07);
  --header-bg:rgba(247,249,252,.80);
  --glow-1:rgba(110,168,255,.14);
  --glow-2:rgba(126,224,193,.12);
  --accent:#2f6fe0;
  --accent2:#1f9e7a;
  --shadow: 0 10px 25px rgba(20,26,36,.10);
  --shadow-lg: 0 18px 45px rgba(20,26,36,.14);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:var(--font);
  background:
    radial-gradient(1200px 600px at 10% -10%, var(--glow-1), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, var(--glow-2), transparent 55%),
    var(--bg);
  background-attachment:fixed;
  color:var(--text);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  transition:background-color .3s ease, color .3s ease;
}
h1,h2,h3,h4,h5,h6{text-wrap:balance}
p{text-wrap:pretty}

a{color:inherit}
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{outline:3px solid rgba(110,168,255,.55); outline-offset:3px}
:focus:not(:focus-visible){outline:none}
img{max-width:100%; height:auto}

.skip-link{
  position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  left:var(--pad); top:var(--pad); width:auto; height:auto; padding:10px 12px;
  background:var(--panel); border:1px solid var(--line); border-radius:12px; z-index:9999;
}

.container{max-width:var(--maxw); margin:0 auto; padding:0 var(--pad)}
.header{
  position:sticky; top:0; z-index:50;
  backdrop-filter:saturate(180%) blur(14px);
  -webkit-backdrop-filter:saturate(180%) blur(14px);
  background:var(--header-bg);
  border-bottom:1px solid var(--line);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px var(--pad);
  gap:12px;
}
.brand{
  display:flex; flex-direction:column; align-items:flex-start; gap:2px; text-decoration:none;
}
.brand-text{margin-left:2px}
.brand img{height:26px; width:auto; border-radius:0; background:none; padding:0; display:block}
/* Logo theme swap */
.logo-light-only{display:none}
:root[data-theme="light"] .logo-dark-only{display:none}
:root[data-theme="light"] .logo-light-only{display:block}
/* Theme toggle button */
.theme-toggle{
  display:inline-flex; align-items:center; justify-content:center;
  width:40px; height:40px; margin-left:6px;
  background:var(--surface-2); border:1px solid var(--line);
  border-radius:12px; color:var(--text); cursor:pointer;
  transition:background .18s ease;
  flex-shrink:0;
}
.theme-toggle:hover{background:var(--surface-hover)}
.theme-toggle svg{width:18px; height:18px}
.theme-toggle .icon-sun{display:none}
:root[data-theme="light"] .theme-toggle .icon-moon{display:none}
:root[data-theme="light"] .theme-toggle .icon-sun{display:block}
.brand .name{font-weight:600; letter-spacing:.28em; font-size:11px; text-transform:uppercase; color:var(--muted)}
.brand .tag{display:block; color:var(--muted); font-size:11px; margin-top:2px; letter-spacing:.02em}

/* Nav is hidden on mobile by default; hamburger drives the overlay */
.nav{
  display:none; align-items:center; gap:6px;
}
.nav a{
  text-decoration:none;
  color:var(--muted);
  font-size:14px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid transparent;
  transition:color .18s ease, background .18s ease, border-color .18s ease;
}
.nav a:hover{color:var(--text); background:var(--surface-2)}
.nav a.active{color:var(--text); background:rgba(110,168,255,.12); border-color:rgba(110,168,255,.25)}

.menu-btn{
  display:inline-flex; align-items:center; justify-content:center;
  width:44px; height:44px;
  background:var(--surface-2);
  border:1px solid var(--line);
  border-radius:14px;
  color:var(--text);
  cursor:pointer;
  transition:background .18s ease;
}
.menu-btn:hover{background:var(--surface-hover)}
.menu-btn span{display:block; width:18px; height:2px; background:var(--text); position:relative}
.menu-btn span::before,.menu-btn span::after{
  content:""; position:absolute; left:0; width:18px; height:2px; background:var(--text);
}
.menu-btn span::before{top:-6px}
.menu-btn span::after{top:6px}

/* Mobile overlay menu */
.overlay{
  position:fixed; inset:0;
  background:rgba(5,8,12,.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display:none;
  z-index:100;
}
.overlay.open{display:block}
.overlay-panel{
  position:absolute; inset:14px;
  background:rgba(15,22,33,.92);
  border:1px solid var(--line);
  border-radius:24px;
  box-shadow:var(--shadow-lg);
  padding:18px;
  display:flex; flex-direction:column;
  animation:panelIn .22s ease;
}
@keyframes panelIn{from{opacity:0; transform:translateY(8px)} to{opacity:1; transform:none}}
.overlay-top{display:flex; align-items:center; justify-content:space-between; gap:12px; padding-bottom:10px; border-bottom:1px solid var(--line)}
.overlay-links{padding:14px 0; display:flex; flex-direction:column; gap:6px; overflow:auto}
.overlay a{
  text-decoration:none;
  padding:14px 12px;
  border-radius:16px;
  border:1px solid transparent;
  color:var(--text);
  background:var(--surface);
  transition:background .16s ease;
}
.overlay a:hover{background:var(--surface-hover)}
.overlay a.active{background:rgba(110,168,255,.14); border-color:rgba(110,168,255,.28)}
.overlay .muted{color:var(--muted); font-size:13px; margin-top:auto; padding-top:10px; border-top:1px solid var(--line)}
.close-btn{
  width:44px; height:44px; border-radius:14px;
  background:var(--surface-2);
  border:1px solid var(--line);
  color:var(--text);
  display:inline-flex; align-items:center; justify-content:center;
  font-size:18px; cursor:pointer;
  transition:background .16s ease;
}
.close-btn:hover{background:var(--surface-hover)}

main{padding:28px 0 40px}
.hero{
  padding:20px 0 10px;
}
.kicker{
  display:inline-flex; align-items:center; gap:8px;
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--muted);
  border:1px solid var(--line);
  padding:8px 10px;
  border-radius:999px;
  background:var(--surface);
}
.h1{
  font-size:36px;
  line-height:1.18;
  margin:14px 0 10px;
  padding-bottom:.08em;
  letter-spacing:-.02em;
  text-wrap:balance;
  background:linear-gradient(180deg, var(--text), #c6d3e6);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.division-logo{
  display:block;
  height:auto;
  width:auto;
  max-height:120px;
  max-width:min(100%, 420px);
  margin:14px 0 16px;
}
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}
.app-lockup{
  display:flex; align-items:center; gap:16px; margin:14px 0 10px;
}
.wordmark-lockup{margin:14px 0 10px}
.division-sub{
  font-size:13px; letter-spacing:.05em; color:var(--muted); margin-top:2px;
}
.tm{
  font-size:.42em; font-weight:600; vertical-align:top; position:relative; top:.15em;
  margin-left:.06em; letter-spacing:0; -webkit-text-fill-color:var(--muted); color:var(--muted);
}
.app-icon{
  width:64px; height:64px; border-radius:16px; flex-shrink:0;
  box-shadow:var(--shadow);
}
@media (min-width:1024px){
  .app-icon{width:76px; height:76px}
}
.lede{
  color:var(--muted);
  font-size:18px;
  margin:0 0 18px;
  max-width:58ch;
  text-wrap:pretty;
}
.actions{display:flex; gap:10px; flex-wrap:wrap}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:14px 16px;
  border-radius:16px;
  text-decoration:none;
  border:1px solid var(--line);
  background:var(--surface-2);
  color:var(--text);
  min-height:48px;
  cursor:pointer;
  transition:background .18s ease, transform .12s ease, border-color .18s ease;
}
.btn.primary{
  border-color:rgba(110,168,255,.35);
  background:linear-gradient(180deg, rgba(110,168,255,.20), rgba(110,168,255,.10));
}
.btn:hover{background:var(--surface-hover); transform:translateY(-1px)}
.btn.primary:hover{background:linear-gradient(180deg, rgba(110,168,255,.28), rgba(110,168,255,.14))}
.btn:active{transform:translateY(0)}
.btn.full{width:100%}
.btn[disabled]{opacity:.55; cursor:not-allowed; transform:none}

.grid{
  display:grid;
  gap:14px;
  margin-top:18px;
  grid-template-columns:1fr;
}
.card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:16px;
  box-shadow: 0 1px 0 var(--surface) inset;
  transition:transform .16s ease, border-color .16s ease, background .16s ease;
}
.card h2, .card h3{margin:0 0 8px}
.card p{margin:0; color:var(--muted)}
.card .meta{margin-top:10px; display:flex; gap:10px; flex-wrap:wrap; color:var(--muted); font-size:13px}
.pill{
  display:inline-flex; align-items:center;
  padding:6px 10px;
  border-radius:999px;
  background:var(--surface);
  border:1px solid var(--line);
}
.status{
  display:inline-flex; align-items:center; gap:5px;
  font-size:11px; font-weight:600; letter-spacing:.04em;
  padding:3px 9px; border-radius:999px; vertical-align:middle;
  margin-left:8px; text-transform:uppercase;
}
.status.live{ color:var(--accent2); background:rgba(126,224,193,.12); border:1px solid rgba(126,224,193,.3); }
.status.live::before{ content:""; width:6px; height:6px; border-radius:50%; background:var(--accent2); }
.status.dev{ color:var(--accent); background:rgba(110,168,255,.12); border:1px solid rgba(110,168,255,.3); }
.card a.inline{
  display:inline-flex; align-items:center; gap:8px;
  margin-top:14px;
  color:var(--text);
  text-decoration:none;
  font-weight:600;
}
.card a.inline:hover{text-decoration:underline}
.card a.inline::after{content:""}
/* Linkable product cards lift on hover */
.card:hover{transform:translateY(-3px); border-color:rgba(110,168,255,.28); background:var(--surface-2)}

.section{
  margin-top:26px;
}
.section h2{
  font-size:20px;
  margin:0 0 10px;
  text-wrap:balance;
}
.hr{
  height:1px; background:var(--line); margin:18px 0;
}
.list{
  margin:10px 0 0; padding-left:18px; color:var(--muted)
}
.list li{margin:8px 0}

.footer{
  border-top:1px solid var(--line);
  padding:26px 0 40px;
  color:var(--muted);
}
.footer-grid{
  display:grid; gap:18px;
}
.footer a{color:var(--muted); text-decoration:none; transition:color .16s ease}
.footer a:hover{color:var(--text); text-decoration:underline}
.small{font-size:13px}
.footer .title{color:var(--text); font-weight:650; margin:0 0 10px}
.footer .cols{display:grid; grid-template-columns:1fr 1fr; gap:12px}
.footer .cols a{display:block; padding:6px 0}

.notice{
  background:rgba(126,224,193,.10);
  border:1px solid rgba(126,224,193,.22);
  border-radius:18px;
  padding:14px 14px;
  color:var(--text);
}
.notice p{margin:0; color:var(--muted)}
.notice strong{color:var(--text)}

.form{
  display:grid; gap:12px;
}
.label{font-size:13px; color:var(--muted); margin-bottom:4px}
input, textarea{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background:var(--surface);
  color:var(--text);
  font-family:var(--font);
  font-size:16px;
  transition:border-color .16s ease, background .16s ease;
}
input:hover, textarea:hover{border-color:var(--surface-hover)}
input:focus, textarea:focus{border-color:rgba(110,168,255,.45); background:var(--surface-2)}
textarea{min-height:120px; resize:vertical}
.form-status{font-size:14px; margin:0; min-height:1.2em}
.form-status.ok{color:var(--accent2)}
.form-status.err{color:#ff9a9a}

@media (min-width: 768px){
  :root{--pad:24px}
  .grid.cols-2{grid-template-columns:1fr 1fr}
  .footer-grid{grid-template-columns:1.3fr 1fr}
  .btn.full{width:auto}
}

@media (min-width: 1024px){
  main{padding:46px 0 56px}
  .h1{font-size:48px}
  .lede{font-size:19px}
  .nav{display:flex}
  .menu-btn{display:none}
  .grid.cols-3{grid-template-columns:1fr 1fr 1fr}
  .card{padding:18px}
  .brand img{height:32px}
}

@media (prefers-reduced-motion: reduce){
  *{scroll-behavior:auto !important}
  .btn:hover, .card:hover{transform:none}
  .overlay-panel{animation:none}
}
