/* LinkedClaims.com — LinkedTrust Design System */

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

:root {
  /* LinkedTrust palette */
  --lt-cyan: #00B2E5;
  --lt-teal: #00D0DB;
  --lt-green: #8DC63F;
  --lt-pink: #FF6872;
  --lt-amber: #FFCA4D;
  --lt-brown: #3F2534;

  /* Functional colors */
  --color-bg: #F8FAFC;
  --color-surface: #FFFFFF;
  --color-text: #0F172A;
  --color-text-secondary: #334155;
  --color-muted: #64748B;
  --color-border: #E2E8F0;

  --color-primary: #00B2E5;
  --color-primary-dark: #0891B2;
  --color-success: #10B981;

  --color-code-bg: #0F172A;
  --color-code-text: #E2E8F0;

  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "SF Mono", "Fira Code", Menlo, Consolas, monospace;
  --max-width: 1080px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.15s;
}

a:hover {
  color: var(--color-primary-dark);
}

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(0, 178, 229, 0.1);
  color: var(--color-primary-dark);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

/* ── Layout ────────────────────────────────────────── */

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

section {
  padding: 80px 0;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.section-desc {
  color: var(--color-muted);
  font-size: 1.05rem;
  max-width: 600px;
}

h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin: 0 0 16px;
  color: var(--color-text);
  letter-spacing: -0.5px;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 8px;
}

/* ── Navigation ───────────────────────────────────── */

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

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-text);
}

.nav-brand:hover {
  color: var(--color-text);
  text-decoration: none;
}

.nav-logo {
  width: 32px;
  height: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-muted);
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--color-text);
  text-decoration: none;
}

/* ── Buttons ──────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--lt-cyan) 0%, var(--lt-teal) 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 178, 229, 0.35);
}

.btn-primary:hover {
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(0, 178, 229, 0.45);
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border: 2px solid var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-nav {
  padding: 8px 20px;
  background: var(--color-text);
  color: #FFFFFF;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-nav:hover {
  color: #FFFFFF;
  background: var(--lt-brown);
  transform: none;
}

/* ── Hero ──────────────────────────────────────────── */

.hero {
  position: relative;
  padding: 100px 0 80px;
  text-align: center;
  background: var(--color-surface);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 178, 229, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(141, 198, 63, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(255, 104, 114, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
}

.hero-badge {
  display: inline-block;
  padding: 6px 18px;
  background: linear-gradient(135deg, rgba(0, 178, 229, 0.12), rgba(0, 208, 219, 0.12));
  color: var(--color-primary-dark);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 9999px;
  margin-bottom: 28px;
  border: 1px solid rgba(0, 178, 229, 0.2);
}

.hero h1 {
  font-size: 4rem;
  font-weight: 900;
  margin: 0 0 12px;
  letter-spacing: -1.5px;
  color: var(--lt-brown);
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--lt-cyan), var(--lt-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .tagline {
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--color-muted);
  margin: 0 0 24px;
}

.hero .description {
  max-width: 620px;
  margin: 0 auto 36px;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.hero .description strong {
  color: var(--color-primary-dark);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 16px 0;
}

.stat {
  padding: 0 36px;
  text-align: center;
}

.stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--color-border);
}

/* ── About ─────────────────────────────────────────── */

.about {
  background: var(--color-surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 24px;
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
}

.about-text a {
  font-weight: 600;
}

.claim-example {
  background: var(--color-code-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.claim-example-header {
  padding: 14px 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-muted);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.claim-example-row {
  display: flex;
  align-items: baseline;
  padding: 10px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.claim-example-row:last-child {
  border-bottom: none;
}

.claim-label {
  color: #7DD3FC;
  min-width: 110px;
  flex-shrink: 0;
}

.claim-val {
  color: #6EE7B7;
}

.claim-val-type {
  color: var(--lt-cyan);
  font-weight: 600;
}

.claim-val-stars {
  color: var(--lt-amber);
  font-size: 1rem;
}

/* ── Features ──────────────────────────────────────── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0;
  transition: opacity 0.25s;
}

.feature-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-cyan::before { background: linear-gradient(90deg, var(--lt-cyan), var(--lt-teal)); }
.feature-green::before { background: linear-gradient(90deg, var(--lt-green), #10B981); }
.feature-pink::before { background: linear-gradient(90deg, var(--lt-pink), #EC4899); }
.feature-amber::before { background: linear-gradient(90deg, var(--lt-amber), #F59E0B); }
.feature-purple::before { background: linear-gradient(90deg, #8B5CF6, #6366F1); }
.feature-teal::before { background: linear-gradient(90deg, var(--lt-teal), var(--lt-cyan)); }

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.feature-cyan .feature-icon { background: rgba(0, 178, 229, 0.1); color: var(--lt-cyan); }
.feature-green .feature-icon { background: rgba(141, 198, 63, 0.1); color: var(--lt-green); }
.feature-pink .feature-icon { background: rgba(255, 104, 114, 0.1); color: var(--lt-pink); }
.feature-amber .feature-icon { background: rgba(255, 202, 77, 0.15); color: #D97706; }
.feature-purple .feature-icon { background: rgba(139, 92, 246, 0.1); color: #8B5CF6; }
.feature-teal .feature-icon { background: rgba(0, 208, 219, 0.1); color: var(--lt-teal); }

.feature-card h3 {
  color: var(--color-text);
}

.feature-card p {
  margin: 8px 0 0;
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ── Lexicon ───────────────────────────────────────── */

.lexicon-section {
  background: var(--color-surface);
}

.lexicon-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  color: var(--color-text);
  margin-top: 16px;
  transition: all 0.2s;
}

.lexicon-toggle:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(0, 178, 229, 0.05);
}

.lexicon-toggle .arrow {
  transition: transform 0.2s;
  font-size: 0.75rem;
  color: var(--color-primary);
}

.lexicon-toggle.open .arrow {
  transform: rotate(90deg);
}

.lexicon-code {
  display: none;
  margin-top: 20px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.lexicon-code.visible {
  display: block;
}

.lexicon-code pre {
  margin: 0;
  padding: 28px;
  background: var(--color-code-bg);
  color: var(--color-code-text);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.65;
  overflow-x: auto;
  tab-size: 2;
}

.json-key { color: #7DD3FC; }
.json-string { color: #6EE7B7; }
.json-number { color: #FCD34D; }
.json-bool { color: #C4B5FD; }
.json-null { color: #C4B5FD; }
.json-bracket { color: #94A3B8; }

/* ── Feed ──────────────────────────────────────────── */

.feed-section {
  background: var(--color-bg);
}

.feed-section linked-claims-atproto {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* ── Resources ─────────────────────────────────────── */

.resources-section {
  background: var(--color-surface);
  padding: 80px 0;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.resource-link {
  display: block;
  padding: 24px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all 0.25s;
}

.resource-link:hover {
  border-color: var(--color-primary);
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.resource-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  margin-bottom: 14px;
}

.resource-icon-github { background: #F1F5F9; color: #1E293B; }
.resource-icon-npm { background: #FEE2E2; color: #CB3837; }
.resource-icon-lt { background: rgba(0, 178, 229, 0.1); }
.resource-icon-spec { background: rgba(139, 92, 246, 0.1); color: #8B5CF6; }

.resource-link .label {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
}

.resource-link .desc {
  margin-top: 6px;
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.55;
}

/* ── DNS Info ──────────────────────────────────────── */

.dns-info {
  margin-top: 48px;
  padding: 28px;
  background: linear-gradient(135deg, rgba(141, 198, 63, 0.08), rgba(0, 208, 219, 0.08));
  border: 1px solid rgba(141, 198, 63, 0.2);
  border-radius: var(--radius-lg);
}

.dns-info h3 {
  margin-top: 0;
  color: #065F46;
}

.dns-info p {
  color: var(--color-text-secondary);
}

.dns-info > code {
  display: block;
  margin-top: 12px;
  padding: 16px 20px;
  background: var(--color-code-bg);
  color: var(--color-code-text);
  font-family: var(--font-mono);
  font-size: 13px;
  border-radius: var(--radius-md);
  overflow-x: auto;
}

/* ── Footer ────────────────────────────────────────── */

footer {
  padding: 40px 0 32px;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 0.875rem;
  background: var(--color-code-bg);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: #FFFFFF;
}

.footer-logo-img {
  width: 28px;
  height: 28px;
}

footer a {
  color: #94A3B8;
  font-weight: 500;
  transition: color 0.15s;
}

footer a:hover {
  color: var(--lt-cyan);
  text-decoration: none;
}

footer .links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-bottom {
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: #64748B;
}

/* ── Responsive ────────────────────────────────────── */

@media (max-width: 768px) {
  .nav-links a:not(.btn-nav) {
    display: none;
  }

  .hero {
    padding: 72px 0 56px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero .tagline {
    font-size: 1.1rem;
  }

  section {
    padding: 56px 0;
  }

  .container {
    padding: 0 16px;
  }

  h2 {
    font-size: 1.75rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .resources-grid {
    grid-template-columns: 1fr;
  }

  .lexicon-code pre {
    font-size: 11px;
    padding: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .hero-stats {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    padding: 0 16px;
    gap: 0;
  }

  .stat {
    padding: 12px 0;
  }

  .stat-divider {
    width: 100%;
    height: 1px;
  }

  .footer-top {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .features-grid {
    gap: 12px;
  }

  .feature-card {
    padding: 20px;
  }
}
