/* ABJ Computers — dark, techy, easy to navigate */
@view-transition { navigation: auto; }

:root {
  --bg: #070b14;
  --bg-2: #0c1322;
  --panel: #111a2e;
  --panel-2: #16223b;
  --line: rgb(120 160 255 / .14);
  --text: #dbe4f5;
  --muted: #8d9ab3;
  --white: #ffffff;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --violet: #8b5cf6;
  --lime: #a3e635;
  --grad: linear-gradient(120deg, var(--cyan), var(--blue) 50%, var(--violet));
  --radius: 16px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; font-family: var(--font); font-size: 1.05rem; line-height: 1.7;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-underline-offset: 3px; }
h1, h2, h3 { color: var(--white); line-height: 1.12; margin: 0 0 .6em; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mono { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 1rem; top: -80px; background: var(--cyan); color: #000; padding: .5rem 1rem; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { top: 1rem; }

.tag {
  display: inline-flex; align-items: center; gap: .5rem; font-family: var(--mono); font-size: .8rem;
  color: var(--cyan); letter-spacing: .06em; margin-bottom: 1rem;
  padding: .3rem .75rem; border: 1px solid rgb(34 211 238 / .3); border-radius: 999px; background: rgb(34 211 238 / .06);
}
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
@media (prefers-reduced-motion: no-preference) { .tag::before { animation: blink 2s ease-in-out infinite; } }
@keyframes blink { 50% { opacity: .3; } }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 60ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .9rem 1.5rem; border-radius: 12px;
  font: 700 1rem/1 var(--font); text-decoration: none; cursor: pointer; border: 1px solid transparent;
  background: var(--grad); background-size: 200% 100%; color: #04101c;
  box-shadow: 0 8px 30px -10px rgb(34 211 238 / .6);
  transition: translate .3s var(--spring), box-shadow .3s, background-position .5s var(--ease), scale .3s var(--spring);
}
.btn svg { width: 1.1em; height: 1.1em; transition: translate .3s var(--spring); }
.btn:hover { translate: 0 -3px; scale: 1.04; background-position: 100% 0; box-shadow: 0 14px 40px -10px rgb(139 92 246 / .7); color: #04101c; }
.btn:hover svg { translate: 4px 0; }
.btn:active { scale: .97; }
.btn-ghost { background: rgb(255 255 255 / .04); color: var(--white); border-color: var(--line); box-shadow: none; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn-ghost:hover { color: var(--white); border-color: rgb(34 211 238 / .6); background: rgb(34 211 238 / .08); box-shadow: 0 0 30px -8px rgb(34 211 238 / .5); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Header */
.header { position: fixed; inset: 0 0 auto; z-index: 50; padding: 1rem 0; transition: background-color .3s, padding .3s, border-color .3s; border-bottom: 1px solid transparent; }
.header.scrolled { background: rgb(7 11 20 / .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: .6rem 0; border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--white); font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }
.logo-mark { width: 40px; height: 40px; flex: none; transition: rotate .5s var(--spring); }
.logo:hover .logo-mark { rotate: 90deg; }
.logo small { display: block; font-family: var(--mono); font-weight: 500; font-size: .66rem; color: var(--muted); letter-spacing: .12em; }
.menu { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.menu a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; padding: .5rem .85rem; border-radius: 10px; transition: background-color .2s, color .2s; }
.menu a:hover, .menu a.active { background: rgb(255 255 255 / .06); color: var(--white); }
.menu .btn { padding: .65rem 1.1rem; margin-left: .5rem; color: #04101c; }
.menu .btn:hover { background-color: transparent; color: #04101c; }
.toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); background: var(--panel); border-radius: 12px; color: var(--white); cursor: pointer; }
.toggle span { display: block; width: 20px; height: 2px; background: currentColor; margin: 4px auto; border-radius: 2px; transition: translate .3s, rotate .3s, opacity .2s; }
.open .toggle span:nth-child(1) { translate: 0 6px; rotate: 45deg; }
.open .toggle span:nth-child(2) { opacity: 0; }
.open .toggle span:nth-child(3) { translate: 0 -6px; rotate: -45deg; }
@media (max-width: 900px) {
  .toggle { display: block; }
  .menu {
    position: fixed; inset: 70px 1rem auto; flex-direction: column; align-items: stretch; gap: .2rem;
    background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: .8rem;
    box-shadow: 0 30px 60px -20px #000; opacity: 0; translate: 0 -10px; pointer-events: none; transition: opacity .25s, translate .3s var(--ease);
  }
  .open .menu { opacity: 1; translate: 0 0; pointer-events: auto; }
  .menu a { padding: .85rem 1rem; font-size: 1.05rem; }
  .menu .btn { margin: .4rem 0 0; justify-content: center; }
}

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 8rem 0 5rem; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -3; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .28; filter: saturate(1.2); }
.hero::before { /* grid */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
}
.hero::after { /* glow */
  content: ""; position: absolute; z-index: -1; width: 900px; height: 900px; left: 55%; top: -20%;
  background: radial-gradient(circle, rgb(59 130 246 / .35), rgb(139 92 246 / .15) 40%, transparent 70%);
  filter: blur(20px);
}
.hero-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, var(--bg) 15%, rgb(7 11 20 / .6) 60%, rgb(7 11 20 / .3)), linear-gradient(0deg, var(--bg), transparent 30%); }
@media (prefers-reduced-motion: no-preference) {
  .hero::before { animation: grid-pan 30s linear infinite; }
  .hero::after { animation: float 14s ease-in-out infinite alternate; }
}
@keyframes grid-pan { to { background-position: 56px 56px; } }
@keyframes float { to { translate: -120px 80px; } }
.hero-grid { display: grid; grid-template-columns: 1.2fr .9fr; gap: 3rem; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { max-width: 15ch; }
.hero .lead { margin-bottom: 2rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 2.2rem; color: var(--muted); font-size: .95rem; }
.hero-points span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-points svg { width: 18px; height: 18px; color: var(--lime); }

/* terminal card */
.terminal {
  background: rgb(12 19 34 / .85); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: 0 40px 80px -30px #000, 0 0 0 1px rgb(255 255 255 / .02) inset; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-family: var(--mono); font-size: .9rem;
  transition: translate .5s var(--ease), box-shadow .5s;
}
.terminal:hover { translate: 0 -6px; box-shadow: 0 50px 90px -30px #000, 0 0 50px -20px rgb(34 211 238 / .5); }
.term-bar { display: flex; align-items: center; gap: .45rem; padding: .75rem 1rem; border-bottom: 1px solid var(--line); background: rgb(255 255 255 / .02); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #f87171; }
.term-bar i:nth-child(2) { background: #fbbf24; } .term-bar i:nth-child(3) { background: #34d399; }
.term-bar span { margin-left: .6rem; color: var(--muted); font-size: .78rem; }
.term-body { padding: 1.2rem 1.3rem 1.4rem; min-height: 280px; color: #cbd5e1; white-space: pre-wrap; line-height: 1.75; }
.term-body .p { color: var(--lime); }
.term-body .c { color: var(--cyan); }
.term-body .ok { color: #34d399; }
.term-body .dim { color: var(--muted); }
.cursor { display: inline-block; width: .6em; height: 1.1em; background: var(--cyan); vertical-align: text-bottom; }
@media (prefers-reduced-motion: no-preference) { .cursor { animation: blink 1s steps(1) infinite; } }

/* Sections */
.section { padding: clamp(4.5rem, 9vw, 7rem) 0; position: relative; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.head { max-width: 720px; margin-bottom: 3rem; }
.head.center { text-align: center; margin-inline: auto; }
.head.center .lead { margin-inline: auto; }

/* Service cards */
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 1.2rem; }
.svc {
  position: relative; padding: 1.7rem; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line);
  overflow: hidden; isolation: isolate; transition: translate .4s var(--spring), border-color .3s, box-shadow .3s;
}
.svc::before { /* spotlight following cursor */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgb(34 211 238 / .14), transparent 45%);
}
.svc:hover { translate: 0 -6px; border-color: rgb(34 211 238 / .45); box-shadow: 0 25px 50px -25px rgb(34 211 238 / .45); }
.svc:hover::before { opacity: 1; }
.svc-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.1rem;
  background: linear-gradient(140deg, rgb(34 211 238 / .18), rgb(139 92 246 / .18)); border: 1px solid rgb(34 211 238 / .3); color: var(--cyan);
  transition: rotate .5s var(--spring), scale .5s var(--spring);
}
.svc:hover .svc-icon { rotate: -8deg; scale: 1.1; }
.svc-icon svg { width: 26px; height: 26px; }
.svc h3 { margin-bottom: .35rem; }
.svc p { color: var(--muted); font-size: .98rem; margin: 0; }
.svc .num { position: absolute; top: 1.2rem; right: 1.3rem; font-family: var(--mono); font-size: .75rem; color: rgb(141 154 179 / .5); }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.feature + .feature { margin-top: clamp(4rem, 8vw, 6rem); }
.feature.flip > :first-child { order: 2; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature.flip > :first-child { order: 0; } }
.shot { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; box-shadow: 0 40px 80px -40px #000; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: scale 1s var(--ease); }
.shot:hover img { scale: 1.05; }
.shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgb(7 11 20 / .6)); pointer-events: none; }
.shot .chip { position: absolute; left: 1rem; bottom: 1rem; z-index: 1; font-family: var(--mono); font-size: .78rem; padding: .35rem .7rem; border-radius: 8px; background: rgb(7 11 20 / .75); border: 1px solid var(--line); color: var(--cyan); }
.ticks { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .65rem; }
.ticks li { display: flex; gap: .7rem; align-items: flex-start; }
.ticks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: .25rem; border-radius: 6px; background: rgb(163 230 53 / .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3e635' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat; border: 1px solid rgb(163 230 53 / .35); }

/* Why local */
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1.2rem; }
.why div { padding: 1.5rem; border-radius: var(--radius); background: rgb(255 255 255 / .02); border: 1px solid var(--line); transition: border-color .3s, translate .4s var(--spring); }
.why div:hover { border-color: rgb(139 92 246 / .5); translate: 0 -4px; }
.why strong { display: block; color: var(--white); font-size: 1.08rem; margin-bottom: .3rem; }
.why span { color: var(--muted); font-size: .97rem; }
.why .big { font-family: var(--mono); font-size: 1.8rem; font-weight: 700; margin-bottom: .4rem; display: block; }

/* Local band */
.local { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); padding: clamp(2.5rem, 6vw, 4.5rem); isolation: isolate; }
.local img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.local::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgb(7 11 20 / .95) 20%, rgb(7 11 20 / .55) 70%, rgb(7 11 20 / .35)); }
.local h2 { max-width: 18ch; }
.local p { max-width: 52ch; color: #c5d0e6; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { display: grid; gap: 1rem; margin-top: 2rem; }
.contact-item { display: flex; gap: 1rem; align-items: center; padding: 1.1rem 1.2rem; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: border-color .3s, translate .35s var(--spring); }
a.contact-item:hover { border-color: rgb(34 211 238 / .5); translate: 4px 0; color: inherit; }
.contact-item .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgb(34 211 238 / .1); color: var(--cyan); flex: none; }
.contact-item .ic svg { width: 22px; height: 22px; }
.contact-item small { display: block; font-family: var(--mono); font-size: .72rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.contact-item strong { color: var(--white); font-weight: 600; word-break: break-word; }

.form { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.4rem, 4vw, 2.2rem); display: grid; gap: 1rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .35rem; }
.field label { font-size: .88rem; font-weight: 600; color: var(--white); }
.field label em { font-style: normal; color: var(--muted); font-weight: 400; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--white); background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 10px; padding: .8rem .95rem; transition: border-color .2s, box-shadow .2s;
}
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d9ab3' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; background-size: 18px; padding-right: 2.5rem; }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgb(34 211 238 / .2); }
input:user-invalid, textarea:user-invalid, select:user-invalid { border-color: #f87171; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { display: none; padding: .9rem 1rem; border-radius: 10px; font-weight: 600; font-size: .95rem; }
.status.show { display: block; }
.status.ok { background: rgb(52 211 153 / .12); color: #6ee7b7; border: 1px solid rgb(52 211 153 / .3); }
.status.err { background: rgb(248 113 113 / .12); color: #fca5a5; border: 1px solid rgb(248 113 113 / .3); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 2.5rem 0; color: var(--muted); font-size: .9rem; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--cyan); }
.footer nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }

.to-top { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 40; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--white); display: grid; place-items: center; cursor: pointer; opacity: 0; translate: 0 16px; pointer-events: none; transition: opacity .3s, translate .4s var(--spring), border-color .2s; }
.to-top.show { opacity: 1; translate: 0 0; pointer-events: auto; }
.to-top:hover { border-color: var(--cyan); color: var(--cyan); }
.to-top svg { width: 20px; height: 20px; }

/* Scroll reveal: native scroll-driven where supported, IntersectionObserver fallback in main.js */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 75%; }
  }
  html.no-sda .reveal { opacity: 0; translate: 0 30px; transition: opacity .8s var(--ease), translate .8s var(--ease); }
  html.no-sda .reveal.in { opacity: 1; translate: 0 0; }
  .rise { animation: rise .9s var(--ease) backwards; }
  .rise.d1 { animation-delay: .1s; } .rise.d2 { animation-delay: .2s; } .rise.d3 { animation-delay: .3s; } .rise.d4 { animation-delay: .45s; }
}
@keyframes reveal { from { opacity: 0; translate: 0 30px; } }
@keyframes rise { from { opacity: 0; translate: 0 24px; } }

/* Credits page */
.prose { max-width: 780px; }
.prose li { margin-bottom: .5rem; }
.prose a { word-break: break-word; }

/* Phone in menu */
.menu .menu-phone { display: inline-flex; align-items: center; gap: .4rem; color: var(--white); font-family: var(--mono); font-size: .9rem; }
.menu .menu-phone svg { width: 16px; height: 16px; color: var(--lime); }
.btn svg { flex: none; }
@media (max-width: 1060px) and (min-width: 901px) { .menu a:not(.btn):not(.menu-phone) { padding: .5rem .6rem; } }

/* About */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
.about-badge {
  position: relative; aspect-ratio: 1; max-width: 380px; width: 100%; margin-inline: auto; border-radius: 28px;
  display: grid; place-content: center; text-align: center; gap: .2rem;
  background: radial-gradient(circle at 30% 20%, rgb(34 211 238 / .16), transparent 60%), var(--panel);
  border: 1px solid var(--line); box-shadow: 0 40px 80px -40px #000, 0 0 60px -30px rgb(139 92 246 / .6);
  overflow: hidden; isolation: isolate;
}
.about-badge::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
}
.about-badge .since { font-family: var(--mono); color: var(--muted); letter-spacing: .3em; text-transform: uppercase; font-size: .85rem; }
.about-badge .year { font-size: clamp(4rem, 10vw, 6.5rem); font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.about-badge .dim { color: var(--muted); font-size: .8rem; margin-top: .6rem; }

/* Floating call button on phones */
.fab { position: fixed; left: 1.1rem; bottom: 1.1rem; z-index: 40; width: 58px; height: 58px; border-radius: 50%; display: none; place-items: center; background: var(--grad); color: #04101c; box-shadow: 0 12px 30px -8px rgb(34 211 238 / .7); }
.fab svg { width: 24px; height: 24px; }
@media (max-width: 760px) { .fab { display: grid; } }
@media (prefers-reduced-motion: no-preference) {
  .fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--cyan); animation: ping 2.4s ease-out infinite; }
}
@keyframes ping { from { scale: 1; opacity: .8; } to { scale: 1.7; opacity: 0; } }
.nw { white-space: nowrap; }
@media (max-width: 760px) { .fab { left: auto; right: 1.1rem; } .to-top { bottom: 5.4rem; right: 1.25rem; } }
