/* HAS | hastech.site */
:root {
  --bg: #0A1420;
  --bg-deep: #060D16;
  --surface: #101E30;
  --border: #1E3247;
  --border-bright: #2E4A6B;
  --text: #F5F8FC;
  --muted: #9FB0C3;
  --accent: #2E7FE8;
  --accent-bright: #4DA3FF;
  --stripe-1: #14273D;
  --stripe-2: #1B3A5C;
  --stripe-3: #2E5F8A;
  --radius: 10px;
  --max: 1100px;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scrollbar-color: var(--stripe-3) var(--bg-deep);
  scrollbar-width: thin;
  scroll-behavior: smooth;
}
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
  background: var(--stripe-2);
  border-radius: 5px;
  border: 2px solid var(--bg-deep);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(27, 58, 92, .35), transparent 60%),
    radial-gradient(700px 420px at -10% 30%, rgba(20, 39, 61, .5), transparent 60%),
    var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

::selection { background: var(--accent); color: #fff; }

img { max-width: 100%; display: block; }
a { color: var(--accent-bright); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; width: 100%; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 20, 32, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .8rem;
  padding-bottom: .8rem;
}
.brand img {
  height: 36px;
  width: 36px;
  border-radius: 7px;
  border: 1px solid var(--border);
}
.site-header nav { display: flex; gap: .25rem; }
.site-header nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: .95rem;
  padding: .45rem .9rem;
  border-radius: 7px;
}
.site-header nav a:hover {
  color: var(--text);
  background: var(--surface);
  text-decoration: none;
}
.site-header nav a[aria-current="page"] { color: var(--accent-bright); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 96px 0 88px; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    115deg,
    transparent 0 90px,
    var(--stripe-1) 90px 150px,
    transparent 150px 210px,
    var(--stripe-2) 210px 260px,
    transparent 260px 330px,
    var(--stripe-3) 330px 372px,
    transparent 372px 430px,
    var(--accent) 430px 436px,
    transparent 436px 520px
  );
  -webkit-mask-image: linear-gradient(to left, #000 0%, transparent 62%);
  mask-image: linear-gradient(to left, #000 0%, transparent 62%);
  opacity: .55;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 300px at 18% 0%, rgba(46, 127, 232, .16), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }

.eyebrow {
  color: var(--accent-bright);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -.02em;
  font-weight: 800;
  max-width: 18ch;
}
h1 .accent, h2 .accent { color: var(--accent-bright); }
.lead {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 56ch;
  margin-top: 1.25rem;
}
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.hero .wrap > * { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
.hero .wrap > *:nth-child(2) { animation-delay: .08s; }
.hero .wrap > *:nth-child(3) { animation-delay: .16s; }
.hero .wrap > *:nth-child(4) { animation-delay: .24s; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: .8rem 1.5rem;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background .15s, transform .15s, box-shadow .15s;
}
.btn:hover {
  background: var(--accent-bright);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(46, 127, 232, .35);
}
.btn-ghost {
  background: transparent;
  border-color: var(--border-bright);
  color: var(--text);
}
.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--accent-bright);
  box-shadow: none;
}

/* Sections and cards */
main { flex: 1; }
section { padding: 64px 0; }
h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -.01em;
  font-weight: 700;
  margin-bottom: 1.75rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.card {
  background: linear-gradient(180deg, var(--surface), rgba(16, 30, 48, .6));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--border-bright); transform: translateY(-2px); }
.card h3 { font-size: 1.15rem; margin-bottom: .75rem; letter-spacing: -.01em; }
.card p { color: var(--muted); font-size: .97rem; }
a.card { display: block; color: var(--text); }
a.card:hover { text-decoration: none; border-color: var(--accent); }
.card-cta {
  display: inline-block;
  margin-top: 1.1rem;
  color: var(--accent-bright);
  font-weight: 600;
  font-size: .92rem;
}

/* Contact band */
.band {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background:
    radial-gradient(500px 220px at 50% -40%, rgba(46, 127, 232, .22), transparent 70%),
    var(--surface);
  text-align: center;
  padding: 56px 32px;
}
.band h2 { margin-bottom: .75rem; }
.band p { color: var(--muted); max-width: 46ch; margin: 0 auto 1.75rem; }

/* Page head (contact, privacy) */
.page-head { padding: 72px 0 8px; }
.page-head h1 { max-width: 24ch; }

/* Contact page */
.contact-card { max-width: 640px; }
.contact-card h2 { margin-bottom: .75rem; }
.contact-card p { color: var(--muted); margin-bottom: 1.5rem; }
.contact-card address {
  font-style: normal;
  color: var(--muted);
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  line-height: 1.8;
}
.contact-card address strong { color: var(--text); }

/* Privacy prose */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.3rem; margin: 2.5rem 0 .9rem; }
.prose p, .prose li { color: var(--muted); line-height: 1.75; }
.prose p + p { margin-top: .9rem; }
.prose ul { margin: .9rem 0 .9rem 1.4rem; }
.prose li + li { margin-top: .45rem; }
.prose strong { color: var(--text); }
.prose .effective { color: var(--muted); font-size: .95rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 40px;
  background: rgba(6, 13, 22, .6);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.footer-brand { display: flex; align-items: center; gap: .7rem; }
.footer-brand img { height: 28px; width: 28px; border-radius: 6px; }
.footer-brand span { font-weight: 800; letter-spacing: .04em; }
.footer-brand small { display: block; color: var(--muted); font-weight: 400; font-size: .8rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-footer nav a { color: var(--muted); font-size: .92rem; }
.site-footer nav a:hover { color: var(--text); }
.copy { color: var(--muted); font-size: .85rem; }

/* Wide displays: widen the column so content isn't stranded in a narrow
   center band. Text blocks keep their own measure caps for readability. */
@media (min-width: 1600px) {
  :root { --max: 1400px; }
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 56px; }
  section { padding: 48px 0; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}