/* TRT Lab — Static Website Stylesheet */

:root {
  --color-bg: #000000;
  --color-surface: #0a0a0a;
  --color-surface-elevated: #111111;
  --color-gold: #d4af37;
  --color-gold-light: #e8c96a;
  --color-gold-dim: rgba(212, 175, 55, 0.15);
  --color-text: #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.6);
  --color-text-subtle: rgba(255, 255, 255, 0.4);
  --color-border: rgba(212, 175, 55, 0.2);
  --color-border-hover: rgba(212, 175, 55, 0.45);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-gold: 0 4px 32px rgba(212, 175, 55, 0.08);
  --shadow-card-hover: 0 8px 40px rgba(212, 175, 55, 0.12);
  --max-width: 1120px;
  --max-width-narrow: 760px;
  --nav-height: 72px;
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

/* Honeycomb background pattern */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath fill='%232e2a22' fill-opacity='0.35' d='M28 66L0 50V16L28 0l28 16v34L28 66zm0-12l22-12.7V22.7L28 10 6 22.7v20.6L28 54z'/%3E%3C/svg%3E");
  background-size: 56px 100px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(26, 20, 8, 0.6) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Navigation ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
}

.nav-brand img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
}

.nav-brand span {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-gold);
  background: var(--color-gold-dim);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  cursor: pointer;
  padding: 8px 10px;
  line-height: 0;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

/* ── Main content ── */

main {
  flex: 1;
  position: relative;
  z-index: 1;
}

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

.container-narrow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Home page ── */

.hero {
  text-align: center;
  padding: 80px 24px 64px;
}

.hero-logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-gold);
}

.hero-headline {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--color-text) 0%, var(--color-gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto 56px;
  line-height: 1.7;
}

.nav-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 80px;
}

.nav-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

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

.nav-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gold-dim);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  color: var(--color-gold);
}

.nav-card-icon svg {
  width: 24px;
  height: 24px;
}

.nav-card h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.nav-card p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.nav-card-cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-gold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Legal / content pages ── */

.page-header {
  padding: 64px 24px 40px;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 48px;
}

.page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.page-header .last-updated {
  font-size: 0.875rem;
  color: var(--color-text-subtle);
}

.legal-content {
  padding-bottom: 80px;
}

.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-gold);
  margin: 40px 0 16px;
  letter-spacing: 0.02em;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 24px 0 12px;
}

.legal-content p {
  color: var(--color-text-muted);
  margin-bottom: 16px;
  line-height: 1.75;
}

.legal-content ul,
.legal-content ol {
  color: var(--color-text-muted);
  margin: 0 0 16px 24px;
  line-height: 1.75;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content a {
  color: var(--color-gold);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.legal-content a:hover {
  border-bottom-color: var(--color-gold);
}

.legal-content strong {
  color: var(--color-text);
  font-weight: 600;
}

/* ── Support page ── */

.support-content {
  padding-bottom: 80px;
}

.support-intro {
  text-align: center;
  margin-bottom: 48px;
}

.support-intro p {
  color: var(--color-text-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

.support-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-soft);
  text-align: center;
  margin-bottom: 40px;
}

.support-card h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.support-email {
  display: inline-block;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  color: var(--color-gold);
  text-decoration: none;
  transition: color var(--transition);
}

.support-email:hover {
  color: var(--color-gold-light);
}

.support-topics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.support-topic {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.support-topic h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.support-topic h3 svg {
  width: 20px;
  height: 20px;
  color: var(--color-gold);
  flex-shrink: 0;
}

.support-topic p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ── Footer ── */

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--color-border);
  padding: 32px 24px;
  text-align: center;
}

.site-footer p {
  font-size: 0.875rem;
  color: var(--color-text-subtle);
  letter-spacing: 0.04em;
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .nav-cards {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .support-topics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    padding: 16px;
    gap: 4px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 12px 16px;
  }

  .hero {
    padding: 56px 24px 48px;
  }

  .hero-logo {
    width: 96px;
    height: 96px;
  }

  .nav-card {
    padding: 24px;
  }

  .support-card {
    padding: 28px 24px;
  }

  .page-header {
    padding: 48px 24px 32px;
  }
}
