:root {
  color-scheme: dark;
  --background: #080d12;
  --panel: #10171e;
  --ink: #eff4ef;
  --muted: #8d9a9d;
  --accent: #c5eb9b;
  --line: #263039;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  background: var(--background);
  color: var(--ink);
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 280px;
  background: radial-gradient(ellipse at 77% 24%, #1c32272e, transparent 42%), var(--background);
}
body::before {
  position: fixed; inset: 0; z-index: -1; content: ""; pointer-events: none;
  background-image: linear-gradient(#738b8410 1px, transparent 1px), linear-gradient(90deg, #738b8410 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, #0007, transparent 80%);
}
a { color: inherit; }
a:focus-visible, iframe:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.site-shell { max-width: 1440px; min-height: 100dvh; margin: 0 auto; padding: 0 clamp(24px, 5vw, 80px); display: flex; flex-direction: column; }
.site-header { min-height: 104px; display: flex; align-items: center; gap: 32px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; }
.brand-mark { width: 35px; height: 39px; color: var(--accent); }
.brand-mark svg { width: 100%; height: 100%; stroke: currentColor; stroke-width: 1.7; }
.brand-name { display: block; font-size: 22px; font-weight: 650; letter-spacing: 3.3px; line-height: 1.15; }
.brand-name > span { display: block; margin-top: 6px; font: 9px var(--mono); font-weight: 400; letter-spacing: 2.3px; text-transform: uppercase; color: var(--muted); }
.access-badge { text-decoration: none; display: inline-flex; align-items: center; gap: 9px; margin-left: auto; border: 1px solid #394a3c; background: #b9df8510; color: #b8c8ae; padding: 9px 12px; font: 10px var(--mono); letter-spacing: 1px; text-transform: uppercase; border-radius: 4px; }
.access-badge:hover { border-color: var(--accent); color: var(--accent); }
.access-badge svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 1.2; }
.home { width: 100%; flex: 1; }
.hero { position: relative; min-height: 450px; display: grid; grid-template-columns: 1.13fr 1fr; align-items: center; padding: 52px 0 45px; border-bottom: 1px solid var(--line); }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { margin: 0; font: 10px var(--mono); line-height: 1.8; font-weight: 400; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); }
.tiny-cross { color: var(--accent); font-size: 17px; margin-right: 6px; vertical-align: -1px; }
h1 { font-size: clamp(52px, 6.5vw, 88px); font-weight: 550; line-height: 1.04; letter-spacing: -4.7px; margin: 26px 0 23px; }
h1 > span { color: var(--accent); }
.welcome-title { font-size: clamp(42px, 4.8vw, 66px); line-height: 1.1; letter-spacing: -2.7px; margin: 0 0 24px; }
.intro { margin: 0; font-size: 15px; line-height: 1.9; color: #97a5a8; }
.hero-link { display: inline-flex; align-items: center; gap: 24px; margin-top: 30px; font-size: 12px; text-decoration: none; color: var(--ink); }
.hero-link > span { color: var(--accent); font-size: 20px; transition: transform .2s; }
.hero-link:hover > span { transform: translate(3px, 3px); }
.hero-visual { position: relative; width: 100%; max-width: 560px; justify-self: end; margin: -30px -30px -20px 0; }
.hero-visual > img { width: 100%; height: auto; display: block; animation: orbital-drift 12s ease-in-out infinite; }
.orbit-caption { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); white-space: nowrap; color: #74867d; font: 9px var(--mono); letter-spacing: 1.8px; text-transform: uppercase; }
.orbit-caption > span { display: inline-block; width: 16px; height: 1px; background: #a1c185; vertical-align: middle; margin-right: 8px; }
.hero-coordinate { position: absolute; right: 0; bottom: 20px; font: 8px var(--mono); letter-spacing: 2px; color: #546367; }
.tools-section { padding: 32px 0 44px; scroll-margin-top: 25px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.section-heading .eyebrow { font-size: 9px; letter-spacing: 2px; }
h2 { font-size: 25px; font-weight: 500; letter-spacing: -.7px; margin: 7px 0 0; }
.section-detail { padding-bottom: 2px; font: 10px var(--mono); color: #6f7f84; }
.tool-card { position: relative; display: flex; align-items: center; gap: 30px; padding: 23px 32px 23px 23px; background: linear-gradient(110deg, #131e23, #0f171f 65%, #141f23); border: 1px solid #34433d; border-radius: 7px; text-decoration: none; overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .2s; }
.tool-card::after { content: ""; pointer-events: none; position: absolute; inset: 0; opacity: .35; background: radial-gradient(ellipse at 0 50%, #99c87115, transparent 45%); }
.tool-card:hover { border-color: #91b276; box-shadow: 0 10px 45px #0004, 0 0 22px #c5eb9b08; transform: translateY(-2px); }
.tool-art { position: relative; display: grid; place-items: center; width: 144px; height: 132px; flex-shrink: 0; border-right: 1px solid #2e3f38; padding-right: 24px; }
.tool-art > img { position: relative; width: 105px; height: 105px; z-index: 1; transition: transform .3s; }
.tool-card:hover .tool-art > img { transform: translateY(-3px); }
.art-grid { position: absolute; inset: 0 24px 0 0; background-image: linear-gradient(#9fbb8310 1px, transparent 1px), linear-gradient(90deg, #9fbb8310 1px, transparent 1px); background-size: 18px 18px; mask-image: radial-gradient(ellipse, #000, transparent 75%); }
.art-label { position: relative; z-index: 1; font: 8px var(--mono); letter-spacing: 2px; color: #849778; }
.tool-copy { position: relative; z-index: 1; }
.tool-category { display: block; color: #9bb786; font: 9px var(--mono); letter-spacing: 1.8px; text-transform: uppercase; }
.tool-copy h3 { margin: 8px 0 8px; font-size: 29px; letter-spacing: -.8px; font-weight: 550; }
.tool-copy p { margin: 0; font-size: 12px; line-height: 1.8; color: var(--muted); }
.tool-action { position: relative; z-index: 1; margin-left: auto; display: inline-flex; align-items: center; gap: 26px; padding: 14px 16px; border: 1px solid #7a9365; border-radius: 4px; color: #d9ecc8; font-size: 12px; white-space: nowrap; background: #c5eb9b05; transition: background .2s; }
.tool-card:hover .tool-action { background: #c5eb9b12; }
.action-arrow { font-size: 19px; line-height: 1; color: var(--accent); }
.card-corner { position: absolute; width: 10px; height: 10px; pointer-events: none; border-color: var(--accent); opacity: .8; }
.corner-top { left: -1px; top: -1px; border-top: 1px solid; border-left: 1px solid; }
.corner-bottom { right: -1px; bottom: -1px; border-right: 1px solid; border-bottom: 1px solid; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0 26px; border-top: 1px solid var(--line); color: #728086; font: 9px var(--mono); letter-spacing: 1.2px; }
.footer-slash { padding: 0 8px; color: #adcc8d; }
.footer-message { color: #819095; letter-spacing: .3px; }
.footer-bars { display: flex; gap: 4px; }
.footer-bars i { width: 4px; height: 12px; background: #c5eb9b; transform: skew(-20deg); }
.footer-bars i:nth-child(n+4) { background: #293731; }
.back-link { font-size: 12px; color: #acb9b7; text-decoration: none; }
.back-link:hover { color: var(--accent); }
.manager-page { min-height: 100dvh; display: flex; flex-direction: column; }
.manager-page .site-header { width: calc(100% - clamp(40px, 8vw, 120px)); margin: 0 auto; min-height: 90px; justify-content: space-between; }
.manager-main { padding: 30px clamp(20px, 4vw, 60px) 24px; display: flex; flex-direction: column; flex: 1; min-height: 0; }
.tool-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.tool-heading h1 { font-size: 38px; letter-spacing: -1.5px; margin: 7px 0 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; border: 1px solid #6d855c; background: #c5eb9b09; border-radius: 4px; padding: 13px 17px; color: #d4e8c1; font-size: 12px; text-decoration: none; white-space: nowrap; }
.button:hover { background: #c5eb9b17; border-color: #a1c185; }
.notice { padding: 26px; border: 1px solid var(--line); border-radius: 6px; background: #10181d; color: var(--muted); font-size: 14px; line-height: 1.8; }
.notice a { color: var(--accent); text-underline-offset: 4px; }
#ark-manager { width: 100%; min-height: calc(100dvh - 224px); flex: 1; border: 1px solid #394b40; border-radius: 7px; background: #10171e; box-shadow: 0 0 30px #b7dc8b04; }
.error-page { min-height: 100dvh; display: grid; place-items: center; padding: 32px; }
.error-content { width: min(100%, 560px); padding: 40px; border: 1px solid var(--line); background: #10171e; border-radius: 8px; }
.error-content h1 { font-size: clamp(34px, 6vw, 48px); letter-spacing: -1.8px; line-height: 1.12; }
.error-actions { display: flex; align-items: center; gap: 24px; margin-top: 30px; }
[hidden] { display: none !important; }
@keyframes orbital-drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@media (min-width: 1500px) { .hero { min-height: 510px; } }
@media (max-width: 900px) {
  .site-header { gap: 20px; }
  .hero { min-height: 415px; grid-template-columns: 1.15fr 1fr; }
  .hero-visual { width: 116%; margin-right: -22px; }
  h1 { font-size: clamp(48px, 6.6vw, 66px); letter-spacing: -3px; }
  .hero .eyebrow { max-width: 300px; font-size: 9px; }
  .tool-art { width: 110px; padding-right: 18px; }
  .tool-card { gap: 22px; padding-right: 24px; }
  .tool-action { gap: 15px; }
}
@media (max-width: 640px) {
  .site-shell { padding: 0 23px; }
  .site-header { min-height: 87px; gap: 15px; }
  .brand-mark { width: 27px; height: 32px; }
  .brand { gap: 10px; }
  .brand-name { font-size: 19px; letter-spacing: 2.6px; }
  .brand-name > span { font-size: 8px; letter-spacing: 1.5px; }
  .access-badge { margin-left: auto; padding: 8px; font-size: 8px; letter-spacing: .5px; gap: 6px; }
  .access-badge svg { width: 11px; height: 11px; }
  .hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; padding: 39px 0 28px; }
  .hero .eyebrow { max-width: 270px; font-size: 8px; line-height: 1.9; letter-spacing: 1.1px; }
  h1 { font-size: clamp(47px, 11.8vw, 70px); letter-spacing: -2.7px; margin: 24px 0 21px; }
  .welcome-title { font-size: clamp(40px, 10.6vw, 60px); letter-spacing: -2px; margin: 0 0 21px; }
  .intro { font-size: 14px; line-height: 1.9; }
  .hero-link { margin-top: 24px; }
  .hero-visual { width: 100%; max-width: 430px; align-self: center; margin: -1px -4px -12px 0; }
  .hero-coordinate { font-size: 7px; right: 0; bottom: 13px; letter-spacing: 1.5px; }
  .orbit-caption { bottom: 12px; font-size: 7px; }
  .tools-section { padding: 26px 0 32px; }
  .section-detail { display: none; }
  .section-heading { margin-bottom: 18px; }
  h2 { font-size: 24px; }
  .tool-card { flex-wrap: wrap; gap: 20px; padding: 24px; }
  .tool-art { width: 74px; height: 90px; padding-right: 0; border: 0; }
  .tool-art > img { width: 83px; height: 83px; }
  .art-grid { inset: 0; }
  .art-label { font-size: 7px; }
  .tool-copy { flex: 1; min-width: 140px; }
  .tool-copy h3 { font-size: 26px; }
  .tool-copy p { font-size: 11px; }
  .tool-copy p > br { display: none; }
  .tool-category { font-size: 8px; }
  .tool-action { width: 100%; margin: 0; justify-content: space-between; padding: 13px 15px; }
  .site-footer { font-size: 8px; letter-spacing: .8px; flex-wrap: wrap; padding: 21px 0; }
  .footer-message { order: 3; width: 100%; font-size: 10px; margin-top: 2px; }
  .manager-page .site-header { min-height: 78px; width: calc(100% - 36px); }
  .manager-main { padding: 24px 16px 16px; }
  .tool-heading { align-items: center; gap: 10px; }
  .tool-heading h1 { font-size: 29px; letter-spacing: -1px; }
  .tool-heading .eyebrow { font-size: 8px; }
  .button { padding: 11px; gap: 12px; font-size: 10px; }
  #ark-manager { min-height: calc(100dvh - 205px); }
  .error-page { padding: 20px; }
  .error-content { padding: 27px; }
}
@media (max-width: 360px) { .tool-card { padding: 20px; gap: 14px; } .tool-art { width: 58px; } .access-badge { font-size: 7px; } .access-badge svg { display: none; } }
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
