:root {
  color-scheme: dark;
  --bg: #030512;
  --surface: #0e152c;
  --field: #090d1b;
  --border: #293957;
  --text: #f9f8ff;
  --muted: #becbe5;
  --cyan: #04edff;
  --pink: #ff16e9;
  --violet: #b94cff;
  --radius: 16px;
  --ease: cubic-bezier(.22, .75, .22, 1);
  font: 16px/1.55 Arial, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
}
body > main { flex: 1; }
a { color: var(--cyan); text-underline-offset: .24em; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
main[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0 0 .65em; }
h1, h2, h3 { line-height: 1.1; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -.055em; }
h2 { font-size: 1.45rem; letter-spacing: -.025em; }
h3 { font-size: 1.2rem; letter-spacing: -.02em; }
p, small, .muted { color: var(--muted); }
.wrap { width: min(100% - 3rem, 76rem); margin-inline: auto; }
.stack > * + * { margin-top: 1.25rem; }
.row, .actions, nav { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem; }
.eyebrow {
  margin-bottom: 1rem;
  color: #a6ebf0;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.skip {
  position: fixed;
  z-index: 5;
  top: .75rem;
  left: .75rem;
  transform: translateY(-150%);
  padding: .65rem .9rem;
  border-radius: 8px;
  background: var(--surface);
}
.skip:focus { transform: none; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 3;
  border-bottom: 1px solid #263657;
  background: #080e20f5;
  backdrop-filter: blur(16px);
}
.topbar .wrap, .footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .85rem 1.2rem;
}
.topbar .wrap { min-height: 4.5rem; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.02em;
}
.brand img { width: 2.65rem; height: 2.65rem; object-fit: contain; }
.brand-ai { color: var(--cyan); }
.topbar nav { gap: clamp(.65rem, 2.5vw, 1.85rem); }
.topbar nav > a:not(.button), footer a { color: var(--muted); text-decoration: none; }
.topbar nav > a:hover, footer a:hover { color: var(--text); }
.topbar .button, .topbar button { min-height: 0; padding: .5rem .85rem; font-size: .88rem; }
footer { border-top: 1px solid var(--border); padding: 1.7rem 0; font-size: .88rem; }
footer strong { color: var(--muted); }

.hero, .auth { position: relative; isolation: isolate; overflow: hidden; }
.hero {
  padding: clamp(3rem, 7vw, 7rem) 0;
  background:
    radial-gradient(ellipse at 83% 52%, #172352 0, transparent 40%),
    radial-gradient(ellipse at 90% 16%, #321440 0, transparent 38%),
    linear-gradient(180deg, #070a1a, var(--bg));
  border-bottom: 1px solid #273c66;
}
.hero::before, .auth-showcase::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(#a5bbff12 1px, transparent 1px),
    linear-gradient(90deg, #a5bbff12 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 76% 49%, black, transparent 72%);
}
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.6rem; align-items: center; }
.hero-copy { position: relative; z-index: 1; }
.hero h1 { max-width: 14ch; font-size: clamp(3.1rem, 6.4vw, 6rem); font-style: italic; margin-bottom: .3em; }
.hero-galaxy {
  position: absolute;
  z-index: 0;
  inset: 0 0 0 42%;
  display: block;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 29%);
}
.hero-galaxy::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, #0305129e, transparent 26%),
    linear-gradient(90deg, #03051240, transparent 42%);
}
.hero-galaxy .hero-mark {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 53% 13%;
}
.gradient-text {
  display: block;
  width: fit-content;
  color: var(--cyan);
  background: linear-gradient(103deg, var(--cyan) 0%, #91c0ff 51%, #f699fc 97%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-summary { max-width: 32rem; font-size: clamp(1.03rem, 1.6vw, 1.2rem); margin-bottom: 1.6rem; }
.orbit {
  display: grid;
  place-items: center;
  width: min(100%, 29.5rem);
  aspect-ratio: 1;
  position: relative;
  justify-self: center;
  isolation: isolate;
}
.orbit::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 14%;
  border-radius: 50%;
  background: radial-gradient(circle, #0c101d 26%, #162147 60%, transparent 73%);
  box-shadow: 0 0 60px #743df334, inset 0 0 55px #04edff15;
}
.hero-mark {
  width: 69%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 24px #0009);
}
.orbit-track {
  position: absolute;
  z-index: -1;
  border: 1px solid #6d88c853;
  border-radius: 50%;
}
.orbit-track-cyan { inset: 6%; border-right-color: #7bf6ffb3; }
.orbit-track-violet { inset: 1%; border-left-color: #d27dff9e; }
.orbit-track::after {
  content: "";
  position: absolute;
  width: .45rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 16px 3px currentColor;
  top: calc(50% - .225rem);
  right: -.225rem;
}
.orbit-track-cyan::after { color: #7bf6ff; }
.orbit-track-violet::after { color: #de9aff; left: -.225rem; right: auto; }

.section { padding: clamp(2.75rem, 6vw, 5.4rem) 0; border-top: 1px solid var(--border); }
.section p { max-width: 60ch; }
.section-title { margin-bottom: 1.2rem; font-size: clamp(1.85rem, 4vw, 3rem); letter-spacing: -.045em; }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 1rem;
}
.card {
  min-width: 0;
  padding: clamp(1.1rem, 2.4vw, 1.7rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #121c37, var(--surface) 68%);
  box-shadow: 0 12px 24px #0002;
}
.card p:last-child { margin-bottom: 0; }
.card > form:not(.inline) + form, .card > .row + .form { margin-top: 1rem; }
.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service-card {
  --art-accent: var(--cyan);
  --art-secondary: #6278ff;
  padding: 0;
  overflow: hidden;
  background: radial-gradient(ellipse at top, color-mix(in srgb, var(--art-accent) 11%, var(--surface)), var(--surface) 76%);
  border-color: color-mix(in srgb, var(--art-accent) 26%, var(--border));
}
.service-branding { --art-accent: #e37bff; --art-secondary: var(--violet); }
.service-hosting { --art-accent: #8fa6ff; --art-secondary: #53f6ee; }
.service-art {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 13rem;
  aspect-ratio: 1.7;
  isolation: isolate;
  perspective: 640px;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse at 52% 62%, #23325e, #10152e 60%, #0a1023);
}
.service-art::before, .service-art::after {
  content: "";
  position: absolute;
  z-index: -1;
}
.service-art::before {
  inset: 0;
  background-image: linear-gradient(#92aaff26 1px, transparent 1px), linear-gradient(90deg, #92aaff26 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse, black, transparent 73%);
}
.service-art::after {
  width: 85%;
  height: 48%;
  left: 8%;
  bottom: 13%;
  transform: rotate(-14deg);
  border: 1px solid color-mix(in srgb, var(--art-accent) 43%, transparent);
  border-radius: 50%;
}
.service-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 32% 55%, color-mix(in srgb, var(--art-accent) 26%, transparent), transparent 60%),
    radial-gradient(ellipse at 74% 62%, color-mix(in srgb, var(--art-secondary) 34%, transparent), transparent 62%);
}
.service-scene {
  position: relative;
  width: min(76%, 17rem);
  aspect-ratio: 1.65;
  transform: rotateX(9deg) rotateY(-13deg) rotateZ(-4deg);
  transform-style: preserve-3d;
}
.service-scene > div {
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--art-accent) 52%, #343e69);
  border-radius: 10px;
  background: linear-gradient(148deg, #29365b, #111831 75%);
  box-shadow: inset 0 0 16px #8aa5ff16, 0 14px 30px #020414ac;
}
.art-browser { top: 6%; left: 0; width: 79%; height: 82%; padding: 6%; }
.art-toolbar {
  display: block;
  width: .28rem;
  height: .28rem;
  border-radius: 50%;
  margin-bottom: .6rem;
  background: var(--art-accent);
  box-shadow: .46rem 0 #879aca, .92rem 0 #646fb0;
}
.art-preview {
  display: block;
  height: 39%;
  margin-bottom: .55rem;
  border: 1px solid #9ddfff49;
  border-radius: 5px;
  background: radial-gradient(circle at 72% 46%, #acefff 0%, #3088d2 14%, transparent 36%),
    linear-gradient(135deg, #13577a, #303683 65%, #6745a7);
}
.art-line {
  display: block;
  width: 73%;
  height: .22rem;
  margin-bottom: .3rem;
  border-radius: 1rem;
  background: #94cff5;
}
.art-line.short { width: 50%; opacity: .56; }
.art-phone { right: 4%; bottom: 1%; width: 28%; height: 71%; padding: 9% 3% 3%; transform: translateZ(42px) rotateZ(9deg); }
.art-brand-sheet { top: 3%; left: 12%; display: grid; place-items: center; width: 55%; height: 74%; transform: rotateZ(-7deg); }
.art-spark {
  width: 40%;
  aspect-ratio: 1;
  transform: rotate(45deg);
  clip-path: polygon(0 0, 50% 22%, 100% 0, 78% 50%, 100% 100%, 50% 78%, 0 100%, 22% 50%);
  background: linear-gradient(135deg, #c7fbff, #d3a4ff 44%, var(--pink));
}
.art-type { right: 9%; top: 14%; display: grid; place-items: center; width: 32%; height: 48%; transform: translateZ(36px) rotateZ(12deg); color: #f6dcff; font-size: clamp(1.1rem, 2.7vw, 2.1rem); font-weight: 800; }
.art-swatches { bottom: 8%; right: 7%; display: flex; gap: 5%; width: 62%; height: 25%; padding: 4%; transform: translateZ(52px) rotateZ(-2deg); }
.art-swatches i { flex: 1; border-radius: 3px; background: var(--cyan); }
.art-swatches i:nth-child(2) { background: var(--violet); }
.art-swatches i:nth-child(3) { background: var(--pink); }
.art-swatches i:nth-child(4) { background: #ebe5ff; }
.art-servers { left: 4%; top: 6%; width: 53%; display: grid; gap: .4rem; padding: 5%; transform: rotateZ(-5deg); }
.art-servers span { display: block; height: 1.55rem; border: 1px solid #667dae; border-radius: 5px; background: linear-gradient(150deg, #3f517a, #1c2b49); }
.art-servers span::after { content: ""; display: block; width: .28rem; aspect-ratio: 1; border-radius: 50%; margin: .57rem 0 0 .45rem; background: var(--art-secondary); box-shadow: .48rem 0 #8ba9df, 0 0 7px var(--art-secondary); }
.art-dashboard { right: 0; bottom: 8%; width: 54%; height: 65%; padding: 5%; transform: translateZ(48px) rotateZ(8deg); }
.art-bars { display: flex; align-items: flex-end; gap: 9%; height: 72%; padding: 5%; border-bottom: 1px solid #6680ae; }
.art-bars i { flex: 1; height: 44%; border-radius: 3px 3px 0 0; background: linear-gradient(#bfc9ff, #377ecd); }
.art-bars i:nth-child(2) { height: 68%; }
.art-bars i:nth-child(3) { height: 54%; }
.art-bars i:nth-child(4) { height: 95%; background: linear-gradient(var(--art-secondary), #3661b8); }
.service-copy { padding: clamp(1rem, 2.4vw, 1.65rem); }
.workflow-grid { padding: 0; margin: 0; list-style: none; counter-reset: workflow; }
.workflow-grid li { counter-increment: workflow; }
.workflow-grid .service-copy h3::before {
  content: counter(workflow, decimal-leading-zero);
  display: inline-block;
  margin-right: .55rem;
  color: #a3f4fa;
  font-size: .76em;
  font-variant-numeric: tabular-nums;
}
.service-brief { --art-accent: #71e9fc; --art-secondary: #634dff; }
.service-concept { --art-accent: #d99afa; --art-secondary: #ee4df3; }
.service-manage { --art-accent: #90acf9; --art-secondary: #46dedd; }
.art-brief, .art-concept { left: 12%; top: 6%; width: 60%; height: 84%; padding: 8%; transform: rotateZ(-6deg); }
.art-avatar { display: block; width: 24%; aspect-ratio: 1; margin-bottom: .8rem; border-radius: 50%; background: linear-gradient(135deg, #a4fcff, #6343fa); }
.art-bubble {
  right: 6%; bottom: 16%; width: 37%; height: 35%; display: flex; gap: .35rem; justify-content: center; align-items: center;
  transform: translateZ(42px) rotateZ(10deg);
}
.art-bubble i { width: .35rem; aspect-ratio: 1; border-radius: 50%; background: var(--art-accent); }
.art-concept .art-preview { height: 58%; background: radial-gradient(circle at 70% 35%, #ffc9ff, #ae5bcf 13%, transparent 50%), linear-gradient(140deg, #38275a, #203865); }
.art-review { display: grid; place-items: center; right: 5%; bottom: 14%; width: 28%; aspect-ratio: 1; transform: translateZ(40px) rotateZ(9deg); }
.art-review span { height: .75rem; width: 1.3rem; border: solid var(--art-accent); border-width: 0 0 3px 3px; transform: rotate(-45deg); }
.art-manage { left: 5%; top: 12%; width: 67%; height: 75%; transform: rotateZ(-4deg); }
.art-tasks { right: 5%; bottom: 10%; display: grid; gap: .45rem; width: 38%; padding: .65rem; transform: translateZ(50px) rotateZ(9deg); }
.art-tasks span { position: relative; height: .4rem; border-radius: 10px; margin-left: .6rem; background: #92aacd; }
.art-tasks span::before { content: ""; position: absolute; top: 0; left: -.7rem; width: .4rem; aspect-ratio: 1; border-radius: 50%; background: var(--art-secondary); }
.art-gallery-back { inset: 12% 13% 14% 7%; transform: rotateZ(-10deg); }
.art-gallery { inset: 10% 5% 8% 17%; padding: 6%; transform: translateZ(38px) rotateZ(4deg); }
.art-gallery-tiles { display: grid; height: 73%; grid-template-columns: 1.35fr 1fr 1fr; gap: 6%; }
.art-gallery-tiles i { border-radius: 5px; background: radial-gradient(circle at 68% 35%, #f3c3fa, #a155c7 20%, transparent 42%), linear-gradient(142deg, #684891, #172f60); }
.art-gallery-tiles i:nth-child(2) { background: linear-gradient(155deg, #8ce5f2, #3851a5 50%, #231f55); }
.art-gallery-tiles i:nth-child(3) { background: linear-gradient(30deg, #2e306d, #b987da); }
.art-envelope { display: grid; place-items: center; inset: 26% 10% 14% 8%; transform: rotateZ(-5deg); }
.art-envelope span { align-self: start; width: 70%; height: 70%; border: 2px solid #95afff; border-width: 0 2px 2px 0; transform: rotate(45deg) skew(-14deg, -14deg) scale(.82); border-radius: 5px; }
.art-message { inset: 9% 8% auto 40%; padding: 7%; transform: translateZ(45px) rotateZ(10deg); }
.art-message .art-line { height: .35rem; }
.portfolio-panel, .contact-panel { display: grid; }
.portfolio-panel { grid-template-columns: 1.15fr 1fr; align-items: center; }
.portfolio-panel .service-art, .contact-intro .service-art { aspect-ratio: auto; min-height: 17rem; }
.portfolio-panel .service-art { border-bottom: 0; border-right: 1px solid var(--border); }
.portfolio-panel .service-copy, .contact-fields { padding: clamp(1.15rem, 3.5vw, 2.5rem); }
.portfolio-panel .button { margin-top: .5rem; }
.contact-panel { grid-template-columns: .85fr 1.15fr; }
.contact-intro { border-right: 1px solid var(--border); }
.contact-notice { margin-bottom: 1.15rem; }
.contact-fields .form { max-width: none; }
.contact-fields textarea { min-height: 8rem; }
.auth-footer { margin: 1.1rem 0 0; }
.auth-panel code { overflow-wrap: anywhere; }
@media (prefers-reduced-motion: no-preference) {
  .service-visible .service-glow { animation: service-glow 1.15s var(--ease) both; }
  .service-scene { transition: transform .55s var(--ease); }
  @keyframes service-glow {
    from { opacity: .28; transform: translateX(-14%) scale(.9); }
    to { opacity: 1; transform: none; }
  }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .service-card:hover .service-scene { transform: rotateX(-5deg) rotateY(12deg) rotateZ(1deg) scale(1.05); }
}
@media (max-width: 780px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-panel { grid-template-columns: minmax(0, 1fr); }
  .contact-intro { border-right: 0; border-bottom: 1px solid var(--border); }
}
@media (max-width: 545px) {
  .feature-grid, .portfolio-panel { grid-template-columns: minmax(0, 1fr); }
  .portfolio-panel .service-art { border-right: 0; border-bottom: 1px solid var(--border); }
}
.price-panel {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1.35rem;
  align-items: center;
  background: radial-gradient(ellipse at top right, #2c1742, transparent 72%), var(--surface);
  border-color: #514773;
}
.price { font-size: clamp(2.7rem, 6vw, 4.25rem); margin-bottom: .2em; }
.price span { color: var(--muted); font-size: 1rem; font-weight: 500; }
.price-panel ul { padding-left: 1.2rem; }
.price-panel li { margin-bottom: .4rem; }
.price-panel li::marker { color: var(--cyan); }
.faq { max-width: 60rem; border-block: 1px solid var(--border); }
.faq details { padding: .95rem 0; }
.faq details + details { border-top: 1px solid var(--border); }
.faq details p { margin: .65rem 1.25rem 0; }

.auth {
  display: grid;
  align-items: center;
  min-height: min(45rem, calc(100svh - 5rem));
  padding: clamp(2.4rem, 7vw, 5rem) 0;
  background: radial-gradient(ellipse at 30% 30%, #111b3d, transparent 68%), var(--bg);
}
.auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  max-width: 67rem;
  align-items: stretch;
  border: 1px solid #313959;
  border-radius: 24px;
  overflow: hidden;
  background: #0b1020;
  box-shadow: 0 24px 65px #0006;
}
.auth-showcase {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 2.2rem 1.5rem;
  background: radial-gradient(ellipse at 55% 50%, #1b2a55, transparent 66%),
    linear-gradient(145deg, #0c142e, #1e1533 95%);
}
.auth-showcase .orbit { width: min(95%, 23rem); }
.auth-showcase .hero-mark { width: 76%; position: relative; z-index: 1; }
.auth-showcase p { margin: .65rem 0 0; color: #c5d3ef; text-align: center; }
.auth-panel { padding: clamp(1.6rem, 4.5vw, 3.5rem); }
.auth-panel h1 { font-size: clamp(2.55rem, 5vw, 3.8rem); margin-bottom: .27em; }
.auth-panel form { margin-top: 1.4rem; }
.auth-panel form small { margin-top: -.35rem; }
.auth-panel form button { width: 100%; margin-top: .25rem; }

.workspace {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(12.75rem, 15rem) minmax(0, 1fr);
  background: radial-gradient(ellipse at 92% 0%, #24163e, transparent 37%),
    radial-gradient(ellipse at 59% 0%, #101d3a, transparent 46%), #080b18;
}
.workspace main { width: 100%; max-width: 86rem; padding: clamp(1.25rem, 4vw, 3rem); }
.workspace-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.workspace-heading h1 { margin: 0; font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.sidebar { border-right: 1px solid var(--border); background: #080f23; padding: 1.4rem .75rem; }
.sidebar-inner { position: sticky; top: 6rem; }
.sidebar .eyebrow { margin: 0 .7rem .85rem; }
.sidebar nav { display: grid; gap: .32rem; }
.sidebar a {
  padding: .6rem .8rem;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-size: .92rem;
  text-decoration: none;
  white-space: nowrap;
}
.sidebar a:hover, .sidebar a[aria-current] {
  color: #eaffff;
  border-color: #2f556b;
  background: linear-gradient(110deg, #123341, #151c32);
}
.sidebar a[aria-current] { box-shadow: inset 3px 0 var(--cyan), 0 0 16px #04edff16; }
.environment, .badge { color: var(--muted); font-size: .83rem; white-space: nowrap; }
.environment { display: inline-flex; gap: .45rem; align-items: center; }
.environment i { width: .45rem; aspect-ratio: 1; border-radius: 50%; background: var(--cyan); }
.badge {
  display: inline-block;
  padding: .22rem .55rem;
  border: 1px solid #475571;
  border-radius: 2rem;
  background: #151c31;
}
.metric { margin: .3rem 0 0; color: #e8faff; font-size: 2.5rem; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; }
.metrics dt { color: var(--muted); font-size: .9rem; }
.metrics .card { box-shadow: inset 0 2px #5463a0, 0 12px 24px #0002; }
.metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.empty, .alert {
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.empty { border-style: dashed; }
.alert { border-left: 3px solid #d889ff; background: #19142a; color: #f6e8ff; }
.table { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: #0e1426; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: .75rem .9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
th { color: #d8e5fa; background: #171e33; font-size: .85rem; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #151e34; }

.button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  justify-self: start;
  min-height: 2.7rem;
  padding: .6rem 1rem;
  border: 1px solid transparent;
  border-radius: 9px;
  background: linear-gradient(125deg, #a1fbff, var(--cyan));
  color: #06111e;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
button:disabled { cursor: default; opacity: .55; }
.secondary, button.secondary { background: #161d31; color: var(--text); border-color: #434f71; }
.inline { display: inline; }
.form, .form-grid { display: grid; gap: .85rem; }
.form { max-width: 48rem; }
.form-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
label { display: grid; gap: .3rem; font-size: .9rem; font-weight: 600; }
.check { display: flex; align-items: baseline; gap: .55rem; }
.check input { width: auto; min-height: auto; flex: none; accent-color: var(--cyan); }
.enquiry-message { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 60ch; }
.billing-heading, .billing-document header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: .8rem 1.3rem;
}
.billing-heading h2, .billing-heading p, .billing-document header p { margin-bottom: 0; }
.billing-overview { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.billing-overdue { color: #ffd0e8; border-color: #8d486c; background: #3a1c37; }
.billing-overview dt, .billing-totals dt, .invoice-balance dt { color: var(--muted); font-size: .86rem; }
.billing-overview dd { margin: .3rem 0 0; font-size: clamp(1.15rem, 3vw, 1.9rem); font-weight: 800; overflow-wrap: anywhere; }
.billing-overview .card { border-top-color: #367991; }
.billing-overview .card:nth-child(2) { border-top-color: #8163ae; }
.billing-overview .card:nth-child(3) { border-top-color: #9a488c; }
.billing-overview dd, .billing-totals dd, .invoice-balance dd, .quote-line-total { font-variant-numeric: tabular-nums; }
.quote-form { max-width: none; margin-top: 1rem; }
.billing-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, .47fr); gap: 1.25rem; }
.billing-fields { display: grid; align-content: start; gap: 1.15rem; min-width: 0; }
.quote-lines { min-width: 0; margin: 0; padding: .65rem 0 .75rem; border: 0; border-block: 1px solid var(--border); }
.quote-lines legend { color: var(--text); font-weight: 700; padding-right: .55rem; }
.quote-line {
  display: grid;
  grid-template-columns: minmax(7rem, 1.35fr) minmax(3.2rem, .4fr) minmax(5rem, .7fr) minmax(4.75rem, .6fr);
  align-items: end;
  gap: .5rem .65rem;
  padding: .7rem 0;
}
.quote-line + .quote-line { border-top: 1px solid var(--border); }
.quote-line-total { align-self: center; }
.quote-line-total span { display: block; font-size: .78rem; color: var(--muted); }
.quote-line-total output { display: block; font-weight: 700; }
.quote-remove { grid-column: 1 / -1; min-height: 2.1rem; padding: .22rem .6rem; font-size: .83rem; }
.billing-summary { padding: 1rem; border: 1px solid #3e5679; border-radius: 12px; background: linear-gradient(155deg, #142348, #0b1629 68%); }
.quote-adjustments { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .6rem; }
.quote-adjustments > :last-child { grid-column: 1 / -1; }
.billing-totals > div, .invoice-balance > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .55rem;
  padding: .25rem 0;
}
.billing-totals dd, .invoice-balance dd { margin: 0; font-weight: 700; }
.billing-totals .billing-grand { margin-top: .4rem; padding-top: .65rem; border-top: 1px solid var(--border); }
.billing-grand dt, .billing-grand dd { font-size: 1rem; color: var(--text); font-weight: 800; }
.billing-hint { font-size: .83rem; }
.billing-summary button { width: 100%; }
.billing-documents { scroll-margin-top: 1rem; }
.billing-document + .billing-document { margin-top: .8rem; }
.billing-document h3 { margin: 0 0 .24rem; }
.billing-document header p { font-size: .86rem; }
.billing-document header { padding-bottom: .85rem; }
.billing-document-total { display: grid; gap: .35rem; justify-items: end; }
.billing-document-total strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.invoice-balance { margin: 0 0 .65rem; max-width: 26rem; padding: .6rem .8rem; border-radius: 8px; background: #0b1527; }
.billing-document details { margin-top: .65rem; }
.billing-document details > form, .billing-document details > .table { margin-top: .65rem; }
.billing-link { max-width: 52rem; margin-inline: auto; }
.billing-link label { margin: 1rem 0; }
.billing-link input { color: var(--text); }
.billing-link [role=status]:empty { display: none; }
.billing-link [role=status] { margin-top: .65rem; }
@media (max-width: 1050px) {
  .billing-editor { grid-template-columns: minmax(0, 1fr); }
  .billing-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 545px) {
  .quote-line { grid-template-columns: minmax(0, .6fr) minmax(0, 1fr) minmax(0, 1fr); }
  .quote-line > :first-child { grid-column: 1 / -1; }
}
.site-release-panel { margin-top: 1.1rem; border-top: 1px solid var(--border); padding-top: .9rem; }
.site-release-panel .form, .site-release-panel p { margin-top: .75rem; }
input, select, textarea {
  min-width: 0;
  width: 100%;
  min-height: 2.85rem;
  padding: .55rem .7rem;
  border: 1px solid #53617f;
  border-radius: 8px;
  background: var(--field);
  color: var(--text);
  font-size: 1rem;
}
textarea { min-height: 6rem; resize: vertical; }
details { padding: .45rem 0; }
summary { cursor: pointer; }
fieldset { min-width: 0; border: 1px solid var(--border); border-radius: 10px; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; }

@media (prefers-reduced-motion: no-preference) {
  .enter { animation: lift .54s var(--ease) both; }
  .hero-galaxy { animation: galaxy-in .8s var(--ease) both; }
  .orbit-track-cyan { animation: trace-cyan 2.3s var(--ease) both; }
  .orbit-track-violet { animation: trace-violet 2.7s var(--ease) both; }
  a, button, input, select, textarea { transition: background-color .18s, border-color .18s, color .18s, box-shadow .18s; }
  .button:hover, button:not(:disabled):hover { box-shadow: 0 4px 22px #04edff36; }
  .feature-grid .feature { transition: transform .22s var(--ease), border-color .22s; }
  .feature-grid .feature:hover { transform: translateY(-3px); border-color: #55628d; }
  @keyframes lift {
    from { opacity: .55; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes galaxy-in {
    from { opacity: .68; }
    to { opacity: 1; }
  }
  @keyframes trace-cyan {
    from { transform: rotate(-95deg); }
    to { transform: rotate(33deg); }
  }
  @keyframes trace-violet {
    from { transform: rotate(115deg); }
    to { transform: rotate(-22deg); }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media (forced-colors: active) {
  .gradient-text { background: none; -webkit-text-fill-color: currentColor; }
}
@media (max-width: 780px) {
  .wrap { width: min(100% - 2rem, 76rem); }
  .hero-grid, .auth-grid, .price-panel { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: 1.6rem; }
  .hero-galaxy {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 1.65;
    max-height: 24rem;
    border-radius: 14px;
    mask-image: none;
  }
  .hero-galaxy .hero-mark { object-position: 54% 0%; }
  .hero h1 { font-size: clamp(2.8rem, 9.5vw, 5rem); }
  .auth-showcase { display: none; }
  .auth-grid { max-width: 31rem; }
  .workspace { display: block; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar { padding: .75rem 0 .5rem; border-right: 0; border-bottom: 1px solid var(--border); }
  .sidebar-inner { position: static; }
  .sidebar .eyebrow { margin: 0 1rem .45rem; }
  .sidebar nav { display: flex; flex-wrap: nowrap; overflow-x: auto; padding: .3rem 1rem .6rem; gap: .45rem; }
  .sidebar nav a { flex: none; }
}
@media (max-width: 485px) {
  .topbar .wrap { min-height: 3.8rem; }
  .topbar nav > a:not(.button), .environment { display: none; }
  .brand { font-size: .92rem; gap: .4rem; }
  .brand img { width: 2.25rem; height: 2.25rem; }
}
