/* =========================================================================
   TGO Labs – styles.css
   Static site styling. No frameworks, no external fonts, no dependencies.
   Structure:
     1. Design tokens (custom properties)
     2. Base / reset
     3. Layout helpers (container, sections)
     4. Header & navigation
     5. Cover banner (the 1500x500 title image)
     6. Hero
     7. About
     8. Capabilities
     9. Contact
    10. Footer
    11. Legal pages (imprint / privacy)
    12. Reveal-on-scroll + reduced motion
    13. Responsive (mobile)
   ========================================================================= */


/* -------------------------------------------------------------------------
   1. Design tokens
   ------------------------------------------------------------------------- */
:root {
  /* Palette – cool, precise, premium-software feel with a single indigo accent */
  --bg:          #fafafc;   /* page background (cool near-white)            */
  --bg-soft:     #f1f2f7;   /* tinted section background                    */
  --surface:     #ffffff;   /* cards                                        */
  --ink:         #16181d;   /* primary text (near-black slate)              */
  --muted:       #565b67;   /* secondary text                               */
  --line:        #e4e6ec;   /* hairlines / borders                          */
  --accent:      #4c4ddc;   /* single UI accent (links, buttons)            */
  --accent-deep: #2f30a8;   /* accent on press / hover                      */

  /* Type – system fonts only (no external/Google fonts) */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Helvetica, Arial, sans-serif, "Apple Color Emoji",
               "Segoe UI Emoji";
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
               "Liberation Mono", monospace;

  /* Spacing / shape */
  --maxw: 1080px;          /* content max width        */
  --radius: 14px;          /* card / button radius     */
  --shadow: 0 1px 2px rgba(22, 24, 29, .04),
            0 8px 28px rgba(22, 24, 29, .06);
}


/* -------------------------------------------------------------------------
   2. Base / reset
   ------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; }

p { margin: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-deep); }

img { display: block; max-width: 100%; }

/* Visible keyboard focus for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}


/* -------------------------------------------------------------------------
   3. Layout helpers
   ------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Consistent vertical rhythm for every content section */
.section { padding: 96px 0; }
.section--tint { background: var(--bg-soft); border-block: 1px solid var(--line); }

/* Small monospace "eyebrow" label – the page's recurring signature element.
   The // prefix gives a subtle developer/code vibe without being loud. */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--accent);
  text-transform: lowercase;
  margin-bottom: 14px;
}

.section-title { font-size: clamp(26px, 4vw, 34px); margin-bottom: 16px; }

.lede { color: var(--muted); font-size: 18px; max-width: 60ch; }


/* -------------------------------------------------------------------------
   4. Header & navigation
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 252, .82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Wordmark with a small square monogram */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -.01em;
  font-size: 18px;
}
.brand:hover { color: var(--ink); }

.brand .mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* Desktop navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}
.nav a:hover { color: var(--ink); }

/* Mobile menu toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  padding: 0;
  color: var(--ink);
}
.nav-toggle svg { margin: auto; }


/* -------------------------------------------------------------------------
   5. Cover banner (1500 x 500 title image — sits directly under the header)
   ------------------------------------------------------------------------- */
/* The image is layered ON TOP of a fallback gradient. If banner.jpg is
   missing, the gradient + atmosphere still render cleanly (no broken icon).
   Drop your 1500x500 image into the project root as `banner.jpg` to use it. */
.cover {
  position: relative;
  aspect-ratio: 3 / 1;                /* 1500 x 500 = 3:1 */
  background-image: url("banner.jpg");
  background-size: cover;
  background-position: center;
  background-color: #14151b;          /* base under the gradient */
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Atmospheric fallback so the band looks intentional even with no image */
.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 140% at 12% 0%, rgba(76, 77, 220, .55), transparent 55%),
    radial-gradient(120% 140% at 100% 100%, rgba(0, 194, 168, .35), transparent 55%),
    linear-gradient(135deg, #181a25, #20264f);
  z-index: -1;                        /* behind banner.jpg when present */
}

/* Faint dot grid + bottom scrim for legibility of the overlaid wordmark */
.cover__scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.4px) 0 0 / 22px 22px,
    linear-gradient(to top, rgba(10, 11, 16, .55), transparent 45%);
}

.cover__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 24px;
  color: #fff;
}
.cover__caption .tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
}
.cover__caption .name {
  font-size: clamp(20px, 4vw, 30px);
  font-weight: 700;
  letter-spacing: -.01em;
  margin-top: 4px;
}


/* -------------------------------------------------------------------------
   6. Hero
   ------------------------------------------------------------------------- */
.hero { padding: 84px 0 72px; }

.hero h1 {
  font-size: clamp(34px, 6vw, 56px);
  max-width: 18ch;
  margin-bottom: 20px;
}

.hero .lede { font-size: 20px; max-width: 56ch; }

.hero-actions {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* Primary button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  padding: 13px 22px;
  border-radius: var(--radius);
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: #000; color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Small fact row beneath the hero actions */
.hero-meta {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }


/* -------------------------------------------------------------------------
   7. About
   ------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.about-grid p + p { margin-top: 18px; }
.about-grid .lede { color: var(--ink); font-size: 20px; }
.about-grid .body { color: var(--muted); }


/* -------------------------------------------------------------------------
   8. Capabilities
   ------------------------------------------------------------------------- */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.cap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, border-color .18s ease;
}
.cap:hover { transform: translateY(-3px); border-color: #d2d5df; }

/* Thin accent rule at the top of each card */
.cap .rule { width: 32px; height: 3px; border-radius: 2px; background: var(--accent); margin-bottom: 18px; }
.cap h3 { font-size: 19px; margin-bottom: 8px; }
.cap p { color: var(--muted); font-size: 15.5px; }


/* -------------------------------------------------------------------------
   9. Contact
   ------------------------------------------------------------------------- */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 40px;
  margin-top: 32px;
  max-width: 720px;
}
.contact-card p { color: var(--muted); }

.contact-email {
  display: inline-block;
  margin-top: 18px;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  letter-spacing: -.01em;
}

.contact-details {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.9;
}
.contact-details strong { color: var(--ink); font-weight: 600; }


/* -------------------------------------------------------------------------
   10. Footer
   ------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 40px 0;
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer small { color: var(--muted); font-size: 14px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--ink); }


/* -------------------------------------------------------------------------
   11. Legal pages (imprint / privacy)
   ------------------------------------------------------------------------- */
.legal { padding: 72px 0 96px; }
.legal h1 { font-size: clamp(28px, 5vw, 40px); margin-bottom: 8px; }
.legal .updated { font-family: var(--font-mono); font-size: 13px; color: var(--muted); margin-bottom: 40px; }
.legal h2 { font-size: 20px; margin: 36px 0 10px; }
.legal p { color: var(--muted); max-width: 70ch; }
.legal p + p { margin-top: 12px; }
.legal address { font-style: normal; color: var(--ink); line-height: 1.9; }
.legal .back {
  display: inline-block;
  margin-bottom: 28px;
  font-family: var(--font-mono);
  font-size: 13px;
}


/* -------------------------------------------------------------------------
   12. Reveal-on-scroll (progressive enhancement)
   ------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .cap:hover { transform: none; }
}


/* -------------------------------------------------------------------------
   13. Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }

  /* Collapse navigation into a toggled panel */
  .nav-toggle { display: grid; }
  .nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; width: 100%; font-size: 16px; }

  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .cap-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 28px 22px; }
  .cover { aspect-ratio: 16 / 10; }   /* taller crop reads better on phones */
}
