/* ============================================================
   Kwaack.com — styles.css
   Dark, slightly sci-fi, clean, mobile-first
   ============================================================ */

/* ---- CSS Variables ---------------------------------------- */
:root {
  --color-bg:        #0d0d14;
  --color-surface:   #13131f;
  --color-surface-2: #1a1a2e;
  --color-border:    #2a2a42;
  --color-accent:    #00d4ff;
  --color-accent-dim:#007a99;
  --color-purple:    #7c3aed;
  --color-purple-dim:#4c1d95;
  --color-text:      #e8e8f2;
  --color-text-muted:#8888a8;
  --color-text-faint:#555570;
  --color-danger:    #ff4d6d;

  --font-sans: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Courier New', Courier, monospace;

  --radius-sm:  6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.15);

  --transition: 0.2s ease;

  --max-width: 1100px;
  --nav-height: 64px;
}

/* ---- Reset ------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

.home-main {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 34px 34px;
}

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

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

a:hover {
  color: #fff;
}

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 3px;
}

ul, ol {
  list-style: none;
}

/* ---- Typography ------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { max-width: 68ch; }

.text-accent  { color: var(--color-accent); }
.text-muted   { color: var(--color-text-muted); }
.text-center  { text-align: center; }
.text-center p { margin-left: auto; margin-right: auto; }

/* ---- Layout helpers --------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.section {
  padding: 5rem 0;
}

.section--sm {
  padding: 3rem 0;
}

main {
  flex: 1;
}

/* ---- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition),
              transform var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--color-accent);
  color: #000;
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background: #fff;
  border-color: #fff;
  color: #000;
  box-shadow: 0 0 28px rgba(0, 212, 255, 0.4);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn--outline:hover {
  background: rgba(0, 212, 255, 0.1);
  color: #fff;
  border-color: #fff;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-muted);
  border-color: var(--color-border);
}

.btn--ghost:hover {
  color: var(--color-text);
  border-color: var(--color-text-muted);
  transform: translateY(-1px);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* ---- Header / Navigation ---------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(13, 13, 20, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav__logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-accent);
  letter-spacing: -0.04em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav__logo:hover {
  color: #fff;
}

.nav__logo-mark {
  font-size: 1.5rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  color: var(--color-text-muted);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.06);
}

.nav__link[aria-current="page"] {
  color: var(--color-accent);
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.nav__toggle:hover {
  background: rgba(255,255,255,0.06);
}

.nav__toggle:focus-visible {
  outline: 2px solid var(--color-accent);
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav */
@media (max-width: 640px) {
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    gap: 0.25rem;
  }

  .nav__links.is-open {
    display: flex;
  }

  .nav__link {
    width: 100%;
    padding: 0.65rem 0.75rem;
    font-size: 1rem;
  }
}

/* ---- Hero ------------------------------------------------- */
.hero {
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--color-accent-dim);
  border-radius: 100px;
  background: rgba(0, 212, 255, 0.07);
}

.hero__title {
  margin-bottom: 1rem;
}

.hero__subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  max-width: 52ch;
}

.hero__desc {
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  max-width: 50ch;
}

.hero--split {
  padding: 4.5rem 0 4rem;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

.hero-split__content {
  max-width: 60ch;
}

.terminal-card {
  background: #0a0f14;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.terminal-card__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--color-border);
  background: #111923;
}

.terminal-card__lights {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.terminal-card__lights span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #394555;
}

.terminal-card__lights span:nth-child(1) { background: #ff5f56; }
.terminal-card__lights span:nth-child(2) { background: #ffbd2e; }
.terminal-card__lights span:nth-child(3) { background: #27c93f; }

.terminal-card__path {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-text-faint);
  margin: 0;
}

.terminal-card__body {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.7;
  color: #d8e6d2;
  padding: 1rem;
  min-height: 220px;
}

.terminal-card__body p {
  margin-bottom: 0.35rem;
}

.terminal-card__cursor {
  color: #93ffaa;
  margin-top: 0.8rem;
  animation: blink 1s step-end infinite;
}

/* ---- Section headers -------------------------------------- */
.section__header {
  margin-bottom: 3rem;
}

.section__header--row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.section__meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

.section__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.6rem;
}

.section__title {
  margin-bottom: 0.75rem;
}

.section__intro {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

/* ---- Cards ------------------------------------------------ */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: border-color var(--transition), box-shadow var(--transition),
              transform var(--transition);
}

.card:hover {
  border-color: var(--color-accent-dim);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.card--featured {
  border-color: var(--color-accent-dim);
  background: linear-gradient(135deg, var(--color-surface) 0%, rgba(0, 212, 255, 0.04) 100%);
}

.card--secondary {
  opacity: 0.6;
}

.card--secondary:hover {
  opacity: 1;
}

.card__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.card__badge--featured {
  background: rgba(0, 212, 255, 0.12);
  color: var(--color-accent);
  border: 1px solid var(--color-accent-dim);
}

.card__badge--soon {
  background: rgba(124, 58, 237, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(124, 58, 237, 0.4);
}

.card__badge--concept {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-faint);
  border: 1px solid var(--color-border);
}

.card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.card__title {
  margin-bottom: 0.6rem;
}

.card__kicker {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  color: var(--color-text-faint);
  margin-bottom: 0.8rem;
}

.card__desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.card__img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--color-surface-2);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-faint);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.card--domain {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), transparent 70%), var(--color-surface);
}

/* ---- Grid ------------------------------------------------- */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--2 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---- Feature list ---------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  transition: border-color var(--transition);
}

.feature-item:hover {
  border-color: var(--color-accent-dim);
}

.feature-item__icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* ---- Divider ---------------------------------------------- */
.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 0;
}

/* ---- Tag / pill ------------------------------------------- */
.tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  background: rgba(0, 212, 255, 0.08);
  color: var(--color-accent);
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.activity-log {
  background: #090c12;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #cad0dd;
}

.activity-log p {
  margin-bottom: 0.45rem;
}

.activity-log p:last-child {
  margin-bottom: 0;
}

.log-time {
  color: #7a8293;
}

.log-ok {
  color: #67ff8c;
}

.log-note {
  color: #7dd3fc;
}

.log-warn {
  color: #f9c86d;
}

/* ---- Status banner ---------------------------------------- */
.status-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.2rem;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.35);
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #c4b5fd;
}

.status-banner__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a78bfa;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.3; }
}

/* ---- Lore block ------------------------------------------- */
.lore-block {
  background: var(--color-surface-2);
  border-left: 3px solid var(--color-accent-dim);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.5rem 2rem;
  font-style: italic;
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 72ch;
}

/* ---- Screenshots placeholder ------------------------------ */
.screenshots-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.screenshot-placeholder {
  aspect-ratio: 9/16;
  background: var(--color-surface-2);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--color-text-faint);
  font-size: 0.82rem;
}

.screenshot-placeholder__icon {
  font-size: 2rem;
  opacity: 0.4;
}

/* ---- CTA section ----------------------------------------- */
.cta-section {
  text-align: center;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  bottom: -60%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section__title {
  margin-bottom: 1rem;
}

.cta-section__desc {
  color: var(--color-text-muted);
  margin: 0 auto 2rem;
}

/* ---- Footer ----------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 2.5rem 0;
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer__copy {
  color: var(--color-text-faint);
}

.footer__links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer__links a {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--color-text);
}

/* ---- Page hero (inner pages) ------------------------------ */
.page-hero {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--color-border);
}

.page-hero__title {
  margin-bottom: 0.75rem;
}

.page-hero__desc {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 58ch;
}

/* ---- Back link -------------------------------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--color-text-muted);
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.breadcrumb__sep {
  color: var(--color-text-faint);
}

/* ---- 404 -------------------------------------------------- */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1.25rem;
  gap: 1.25rem;
}

.error-page__code {
  font-size: 6rem;
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1;
  opacity: 0.2;
}

.error-page__title {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

/* ---- Geo Nemesis specific -------------------------------- */
.gn-tagline {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--color-accent);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}

.page-geo .hero {
  padding-top: 5rem;
}

.page-geo .hero::before {
  background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 72%);
}

.gn-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
  align-items: center;
}

.gn-copy {
  color: var(--color-text-muted);
}

.gn-copy--wide {
  max-width: 60ch;
}

.gn-copy--spaced {
  margin-bottom: 1rem;
}

.gn-status-card {
  max-width: 640px;
  background: linear-gradient(135deg, var(--color-surface) 0%, rgba(124, 58, 237, 0.05) 100%);
}

.gn-status-banner {
  margin-bottom: 1.25rem;
}

.page-geo .feature-item {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 70%), var(--color-surface);
}

.page-geo .screenshot-placeholder {
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.03), rgba(124, 58, 237, 0.03)), var(--color-surface-2);
}

.btn-group--center {
  justify-content: center;
}

/* ---- Legal pages ------------------------------------------ */
.policy-content {
  max-width: 760px;
}

.policy-content h2 {
  font-size: 1.1rem;
  margin-top: 1.8rem;
  margin-bottom: 0.65rem;
}

.policy-content p {
  color: var(--color-text-muted);
  margin-bottom: 0.85rem;
}

.policy-content ul {
  list-style: disc;
  padding-left: 1.2rem;
  color: var(--color-text-muted);
  margin-bottom: 0.9rem;
}

.policy-content li {
  margin-bottom: 0.4rem;
}

/* ---- Animations ------------------------------------------ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeInUp 0.6s ease both;
}

.animate-in--delay-1 { animation-delay: 0.1s; }
.animate-in--delay-2 { animation-delay: 0.2s; }
.animate-in--delay-3 { animation-delay: 0.3s; }
.animate-in--delay-4 { animation-delay: 0.4s; }

@media (min-width: 980px) {
  .hero-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
  }

  .terminal-card__body {
    min-height: 300px;
  }
}

/* ---- Utilities ------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-sm { margin-top: 1rem; }
.mt-md { margin-top: 2rem; }
.mt-lg { margin-top: 3.5rem; }

