/* ==========================================================================
   Brytech Software — site styles
   Mobile-first. Palette and type match the Brytech logo:
   black / deep navy, metallic silver text, electric-blue accent.
   ========================================================================== */

:root {
  /* Backgrounds */
  --bg-black: #000000;
  --bg-deep: #04060a;
  --bg-navy: #070b12;
  --bg-card: #0c1220;

  /* Lines */
  --border: #1d2838;
  --border-btn: #2a3a4e;

  /* Text */
  --text: #e9edf3;
  --muted: #9aa6b2;
  --on-accent: #02060c;

  /* Accent */
  --blue: #2fa8ff;
  --blue-deep: #1e9ef5;
  --glow: 0 0 8px rgba(47, 168, 255, 0.55), 0 0 22px rgba(47, 168, 255, 0.25);
  --glow-soft: 0 0 14px rgba(47, 168, 255, 0.35);

  /* Type */
  --font-display: "Michroma", "Eurostile", "Arial Black", sans-serif;
  --font-body: "Titillium Web", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --radius: 14px;
  --container: 1120px;
  --gutter: 20px;
  --nav-h: 64px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 124px; /* stacked mobile nav is taller */
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg-black);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }

a { color: var(--blue); text-decoration: none; }

/* Visible, on-theme focus for keyboard users */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container.narrow { max-width: 820px; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--blue);
  color: var(--on-accent);
  font-weight: 700;
  border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* ---------- Signature glow line ---------- */
.glow-line {
  height: 1px;
  background: var(--blue);
  box-shadow: var(--glow);
  opacity: 0.9;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-black);
}

.nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-block: 14px 12px;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  color: var(--text);
  white-space: nowrap;
  transition: color 0.2s, text-shadow 0.2s;
}
.wordmark:hover { color: #fff; text-shadow: var(--glow-soft); }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: clamp(14px, 5vw, 22px);
}
.nav-links a {
  display: inline-block;
  padding: 6px 2px;
  font-family: var(--font-display);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s, text-shadow 0.2s;
}
.nav-links a:hover,
.nav-links a[aria-current="true"] {
  color: var(--text);
  text-shadow: var(--glow-soft);
}

/* ---------- Hero ---------- */
.hero {
  background: var(--bg-black);
  padding-block: 56px 72px;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-logo {
  width: 100%;
  max-width: 720px;
  margin: 0;
  line-height: 0;
}
.hero-logo img { width: 100%; }

.hero-sub {
  max-width: 640px;
  margin-top: 36px;
  color: var(--muted);
  font-size: 1.075rem;
  line-height: 1.7;
}

.btn-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 320px;
  margin-top: 32px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn-primary {
  background: var(--blue);
  color: var(--on-accent);
  border: 1px solid var(--blue);
}
.btn-primary:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
  box-shadow: var(--glow);
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-btn);
}
.btn-secondary:hover {
  border-color: var(--blue);
  color: #fff;
  box-shadow: var(--glow-soft);
}

/* ---------- Sections ---------- */
.section { padding-block: 72px; }
.section-navy { background: var(--bg-navy); }
.section-deep { background: var(--bg-deep); }

.label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.label-small { font-size: 0.66rem; margin-bottom: 12px; }

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 5vw, 2.1rem);
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 32px;
}

.lead {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.75;
}
.lead + .lead { margin-top: 18px; }

/* ---------- Product cards ---------- */
.product-grid {
  display: grid;
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.card-feature {
  position: relative;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.card-feature:hover {
  border-color: #2a4766;
  box-shadow: 0 0 0 1px rgba(47, 168, 255, 0.08), 0 0 28px rgba(47, 168, 255, 0.08);
}

.card-platforms {
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.card-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 5vw, 2rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.card-tagline {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  margin-top: 10px;
}

.card-text {
  color: var(--muted);
  margin-top: 18px;
  line-height: 1.7;
}
.card-dashed .card-text { margin-top: 0; }

.text-link {
  display: inline-block;
  margin-top: 24px;
  font-weight: 600;
  color: var(--blue);
  border-bottom: 1px solid transparent;
  transition: color 0.2s, text-shadow 0.2s, border-color 0.2s;
}
.text-link span { display: inline-block; transition: transform 0.2s; }
.text-link:hover {
  color: #6cc2ff;
  text-shadow: var(--glow-soft);
  border-bottom-color: currentColor;
}
.text-link:hover span { transform: translateX(3px); }

/* Whole-card link: the card's own "Visit" link is stretched over the card,
   so there is still just one real link for keyboards and screen readers. */
.card-clickable { cursor: pointer; }
.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}
/* Show the keyboard focus ring around the whole card (older browsers
   without :has() keep the ring on the link itself). */
@supports selector(:has(a)) {
  .card-link:focus-visible { outline: none; }
  .card-clickable:has(.card-link:focus-visible) {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
  }
}
.card-clickable:hover {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px rgba(47, 168, 255, 0.15), 0 0 32px rgba(47, 168, 255, 0.14);
}
.card-clickable:hover .text-link {
  color: #6cc2ff;
  text-shadow: var(--glow-soft);
  border-bottom-color: currentColor;
}
.card-clickable:hover .text-link span { transform: translateX(3px); }

/* Product card for an app that isn't public yet (not a link) */
.card-product {
  display: flex;
  flex-direction: column;
}
.status-badge {
  align-self: flex-start;
  margin-bottom: 18px;
  padding: 5px 10px;
  border: 1px solid rgba(47, 168, 255, 0.45);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
}
.product-name {
  display: flex;
  align-items: center;
  gap: 14px;
}
.product-mark {
  flex: none;
  width: 44px;
  height: 44px;
}
.card-product .card-title { font-size: clamp(1.35rem, 4.5vw, 1.6rem); }

.card-dashed {
  background: transparent;
  border: 1px dashed var(--border-btn);
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ---------- Contact ---------- */
.email-link {
  display: inline-block;
  margin-top: 18px;
  font-size: clamp(1.15rem, 4.6vw, 1.6rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--blue);
  overflow-wrap: anywhere;
  border-bottom: 1px solid rgba(47, 168, 255, 0.35);
  transition: color 0.2s, text-shadow 0.2s, border-color 0.2s;
}
.email-link:hover {
  color: #6cc2ff;
  border-bottom-color: var(--blue);
  text-shadow: var(--glow-soft);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-black); }

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-block: 32px 40px;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}
.footer-legal p + p { margin-top: 4px; }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
}
.footer-links a {
  display: inline-block;
  padding: 4px 0;
  color: var(--muted);
  transition: color 0.2s, text-shadow 0.2s;
}
.footer-links a:hover { color: var(--text); text-shadow: var(--glow-soft); }

/* ---------- Inner pages (privacy, 404) ---------- */
.page { min-height: 60vh; }

.prose .section-title { margin-bottom: 10px; }
.prose .meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 32px;
}
.prose h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  margin: 40px 0 12px;
}
.prose p,
.prose li { color: var(--muted); }
.prose p + p { margin-top: 14px; }
.prose ul {
  list-style: disc;
  padding-left: 1.3em;
  margin-top: 10px;
}
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--blue); }
.prose a:not(.text-link) {
  color: var(--blue);
  border-bottom: 1px solid rgba(47, 168, 255, 0.35);
  transition: color 0.2s, border-color 0.2s;
}
.prose a:not(.text-link):hover { color: #6cc2ff; border-bottom-color: var(--blue); }
.prose .back-link { margin-top: 48px; }
.prose .back-link .text-link { margin-top: 0; }

.footer-links a[aria-current="page"] { color: var(--text); }

.notfound {
  min-height: 60vh;
  display: flex;
  align-items: center;
}
.notfound .section-title { margin-bottom: 8px; }
.notfound-code {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 16vw, 6rem);
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--blue);
  text-shadow: var(--glow);
  margin-bottom: 20px;
}
.notfound .hero-sub { margin-top: 12px; }

/* ==========================================================================
   Breakpoints
   ========================================================================== */

/* Very small phones: keep the three nav links on one line */
@media (max-width: 359px) {
  .nav-links { column-gap: 12px; }
  .nav-links a { font-size: 0.6rem; letter-spacing: 0.14em; }
}

@media (min-width: 640px) {
  :root { --gutter: 32px; }
  html { scroll-padding-top: calc(var(--nav-h) + 12px); }

  .nav {
    flex-direction: row;
    justify-content: space-between;
    height: var(--nav-h);
    padding-block: 0;
  }
  .nav-links { column-gap: 32px; }

  .hero { padding-block: 88px 112px; }

  .btn-row {
    flex-direction: row;
    justify-content: center;
    max-width: none;
    width: auto;
  }

  .card { padding: 36px 34px; }
}

@media (min-width: 900px) {
  .section { padding-block: 104px; }

  .product-grid {
    grid-template-columns: 2fr 1fr;
    gap: 24px;
  }
  .card-wide { grid-column: 1 / -1; padding-block: 28px; }
  .card-feature { padding: 44px 44px 40px; }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
}
