/* TDK CLI Website Styles - Modern Design System */

/* CSS Variables */
:root {
  /* Colors */
  --color-purple: #7c4dff;
  --color-purple-light: #a78bfa;
  --color-purple-dark: #5b21b6;
  --color-black: #0a0a0f;
  --color-white: #fafafa;

  /* Grays */
  --color-gray-50: #fafafa;
  --color-gray-100: #f4f4f5;
  --color-gray-200: #e4e4e7;
  --color-gray-300: #d4d4d8;
  --color-gray-400: #a1a1aa;
  --color-gray-500: #71717a;
  --color-gray-600: #52525b;
  --color-gray-700: #3f3f46;
  --color-gray-800: #27272a;
  --color-gray-900: #18181b;

  /* Semantic colors */
  --color-success: #22c55e;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-info: #3b82f6;

  /* Typography */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border radius */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Reset & Base */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--color-gray-50);
  color: var(--color-gray-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

code,
pre {
  font-family: var(--font-mono);
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-purple);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-gray-200);
  padding: 0.75rem 0;
}

.navbar-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-gray-900) !important;
}

.navbar-brand i {
  color: var(--color-purple);
  font-size: 1.25rem;
}

.nav-link {
  font-weight: 500;
  color: var(--color-gray-600) !important;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-purple) !important;
}

/* Hero Section */
.hero {
  padding: 120px 0 80px;
  text-align: center;
  background: linear-gradient(180deg, var(--color-gray-50) 0%, var(--color-white) 100%);
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  height: 100%;
  background: radial-gradient(ellipse at center top, rgba(124, 77, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-purple);
  background: rgba(124, 77, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero h1 .highlight {
  color: var(--color-purple);
  position: relative;
}

.hero .lead {
  font-size: 1.25rem;
  color: var(--color-gray-600);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: var(--color-purple);
  color: white;
  box-shadow: 0 4px 14px rgba(124, 77, 255, 0.4);
}

.btn-primary:hover {
  background: var(--color-purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 77, 255, 0.5);
  color: white;
}

.btn-outline-dark {
  background: transparent;
  color: var(--color-gray-800);
  border: 2px solid var(--color-gray-300);
}

.btn-outline-dark:hover {
  border-color: var(--color-gray-400);
  background: var(--color-gray-100);
  color: var(--color-gray-900);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  border: 1px solid var(--color-gray-300);
  background: transparent;
  color: var(--color-gray-700);
}

.badge.bg-purple {
  background: var(--color-purple);
  border-color: var(--color-purple);
  color: white;
}

/* Cards */
.card {
  background: white;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  overflow: hidden;
}

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

.card-tool {
  text-decoration: none !important;
  color: inherit;
}

.card-tool:hover {
  color: inherit;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-purple);
  background: rgba(124, 77, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--color-gray-600);
}

/* Tables */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9375rem;
}

.table th {
  font-weight: 600;
  color: var(--color-gray-700);
  background: var(--color-gray-100);
  padding: 1rem;
  border-bottom: 2px solid var(--color-gray-200);
  text-align: left;
}

.table td {
  padding: 1rem;
  border-bottom: 1px solid var(--color-gray-200);
  vertical-align: middle;
}

.table tr:hover td {
  background: var(--color-gray-50);
}

/* Status icons */
.status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.75rem;
}

.status-yes {
  color: var(--color-success);
}

.status-no {
  color: var(--color-gray-400);
}

/* Code blocks */
pre {
  background: var(--color-gray-900);
  color: var(--color-gray-100);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.7;
}

code {
  background: var(--color-gray-100);
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.875em;
  color: var(--color-purple-dark);
}

pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* Footer */
.site-footer {
  background: var(--color-gray-900);
  color: var(--color-gray-400);
  padding: 64px 0 32px;
  margin-top: 0;
}

.site-footer h5,
.site-footer h6 {
  color: var(--color-white);
  font-weight: 600;
}

.site-footer h5 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.site-footer h6 {
  font-size: 0.875rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--color-gray-500);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-text {
  font-size: 0.875rem;
  color: var(--color-gray-500);
}

.site-footer hr {
  border-color: var(--color-gray-800);
  margin: 2rem 0;
}

.site-footer a {
  color: var(--color-gray-500);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--color-white);
}

/* Page content */
.page-content {
  min-height: calc(100vh - 300px);
  padding-top: 7rem;
  /* clearance for the fixed glass-pill nav (homepage overrides to 0) */
}

/* Anchor targets always clear the fixed nav */
html {
  scroll-padding-top: 5.5rem;
}

/* Feature matrix */
.feature-matrix {
  background: white;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Tool cards */
.tool-card {
  height: 100%;
  transition: all 0.3s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 100px 0 60px;
  }

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

  .section {
    padding: 60px 0;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .navbar-collapse {
    background: white;
    padding: 1rem;
    border-radius: var(--radius);
    margin-top: 0.5rem;
    box-shadow: var(--shadow-lg);
  }
}

/* Utilities */
.bg-purple {
  background: var(--color-purple) !important;
}

.text-purple {
  color: var(--color-purple) !important;
}

.border-purple {
  border-color: var(--color-purple) !important;
}

/* ============================================================
   Floating glass pill navigation
   ============================================================ */
.aw-nav {
  position: fixed;
  top: 1.25rem;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
  pointer-events: none;
  transition: top 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.aw-nav.is-scrolled {
  top: 0.75rem;
}

.aw-nav-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(76rem, 100%);
  min-height: 4rem;
  padding: 0.5rem 0.5rem 0.5rem 0.625rem;
  border-radius: 100px;
  background: rgba(12, 12, 16, 0.78);
  -webkit-backdrop-filter: blur(24px) saturate(1.35);
  backdrop-filter: blur(24px) saturate(1.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42), inset 0 1px rgba(255, 255, 255, 0.05);
  font-family: 'Satoshi', 'Geist', sans-serif;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.aw-nav.is-scrolled .aw-nav-pill {
  background: rgba(10, 10, 14, 0.92);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), inset 0 1px rgba(255, 255, 255, 0.06);
}

.aw-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.aw-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: #ececf1;
  color: #0a0a0e;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: -0.12em;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease;
}

.aw-brand-mark>span {
  color: #7c4dff;
}

.aw-brand:hover .aw-brand-mark {
  transform: rotate(-8deg);
  background: #fff;
}

.aw-brand-wordmark {
  font-size: 1.05rem;
  letter-spacing: 0;
}

.aw-brand-wordmark>span {
  color: #b79aff;
}

.aw-brand:hover {
  color: #fff;
}

.aw-nav-links {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  margin: 0 auto;
}

.aw-nav-link {
  color: rgba(255, 255, 255, 0.77);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.625rem 0.75rem;
  border-radius: 100px;
  white-space: nowrap;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.aw-nav-link:hover,
.aw-nav-link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.aw-nav-link:hover {
  transform: translateY(-1px);
}

.aw-nav-more {
  position: relative;
  color: rgba(255, 255, 255, 0.77);
}

.aw-nav-more summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.625rem 0.75rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.6;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
  transition: color 0.25s ease, background 0.25s ease;
}

.aw-nav-more summary::-webkit-details-marker {
  display: none;
}

.aw-nav-more summary:hover,
.aw-nav-more[open] summary,
.aw-nav-more.is-active summary {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.aw-nav-more summary i {
  font-size: 0.65rem;
  transition: transform 0.3s ease;
}

.aw-nav-more[open] summary i {
  transform: rotate(180deg);
}

.aw-nav-menu {
  position: absolute;
  top: calc(100% + 1rem);
  right: -1rem;
  width: 21rem;
  max-height: calc(100vh - 7rem);
  overflow-y: auto;
  padding: 0.5rem;
  border-radius: 1.25rem;
  background: rgba(13, 13, 18, 0.96);
  -webkit-backdrop-filter: blur(24px) saturate(1.35);
  backdrop-filter: blur(24px) saturate(1.35);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.58);
  transform-origin: top right;
  animation: aw-nav-menu-in 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes aw-nav-menu-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.aw-nav-menu a {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  min-height: 3.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.875rem;
  color: #ececf1;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease;
}

.aw-nav-menu a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.065);
  transform: translateX(3px);
}

.aw-nav-menu a>i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: rgba(124, 77, 255, 0.12);
  color: #b79aff;
  font-size: 1rem;
}

.aw-nav-menu a>span {
  min-width: 0;
}

.aw-nav-menu strong,
.aw-nav-menu small {
  display: block;
}

.aw-nav-menu strong {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
}

.aw-nav-menu small {
  margin-top: 0.2rem;
  color: rgba(236, 236, 241, 0.65);
  font-size: 0.75rem;
  line-height: 1.3;
}

.aw-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.aw-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.375rem;
  height: 2.375rem;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.aw-nav-icon:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.aw-nav-star {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 2.375rem;
  padding: 0 0.875rem;
  border-radius: 100px;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.aw-nav-star:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.aw-nav-star-count {
  padding-left: 0.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  font-variant-numeric: tabular-nums;
}

.aw-nav-cta.aw-nav-cta-star {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.aw-nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1.25rem;
  border-radius: 100px;
  background: #fff;
  color: #0e0e12;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.aw-nav-cta-sandbox {
  background: linear-gradient(135deg, #7c4dff 0%, #9a6bff 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.aw-nav-cta-sandbox:hover {
  color: #fff;
  box-shadow: 0 0 22px rgba(124, 77, 255, 0.55), 0 10px 28px rgba(255, 255, 255, 0.1);
}

.aw-nav-cta:not(.aw-nav-cta-sandbox):not(.aw-nav-cta-license):not(.aw-nav-cta-star):hover {
  color: #0e0e12;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(255, 255, 255, 0.16);
}

.aw-nav-cta-license {
  background: rgba(110, 231, 183, 0.14);
  color: #6ee7b7;
  border: 1px solid rgba(110, 231, 183, 0.4);
}

.aw-nav-cta-license:hover {
  color: #6ee7b7;
  transform: translateY(-1px);
  border-color: rgba(110, 231, 183, 0.7);
  box-shadow: 0 0 18px rgba(110, 231, 183, 0.35);
}

.aw-nav-cta-mobile {
  display: none;
}

.aw-nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.375rem;
  height: 2.375rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  cursor: pointer;
  align-items: center;
}

.aw-nav-burger span {
  display: block;
  width: 14px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease;
}

.aw-nav.is-open .aw-nav-burger span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.aw-nav.is-open .aw-nav-burger span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

@media (max-width: 1040px) {
  .aw-nav-pill {
    flex-wrap: wrap;
    padding: 0.5rem;
    border-radius: 2rem;
  }

  .aw-nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    order: 3;
    padding: 0.5rem 0 0;
    gap: 0.125rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

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

  .aw-nav-link {
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
  }

  .aw-nav-more summary {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
  }

  .aw-nav-menu {
    position: static;
    width: 100%;
    margin: 0.25rem 0 0.5rem;
    padding: 0.25rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.035);
    box-shadow: none;
    animation-duration: 0.2s;
  }

  .aw-nav-burger {
    display: flex;
  }

  .aw-nav-actions .aw-nav-cta {
    display: none;
  }

  .aw-nav-cta-mobile {
    display: inline-flex;
    justify-content: center;
    margin-top: 0.5rem;
  }

  .aw-nav-actions {
    margin-left: auto;
  }
}

@media (max-width: 480px) {
  .aw-nav {
    top: 0.75rem;
    padding: 0 0.625rem;
  }

  .aw-brand-wordmark {
    font-size: 0.95rem;
  }

  .aw-nav-icon,
  .aw-nav-star {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {

  .aw-nav,
  .aw-nav-pill,
  .aw-brand-mark,
  .aw-nav-link,
  .aw-nav-more summary i,
  .aw-nav-menu,
  .aw-nav-menu a,
  .aw-nav-cta {
    transition: none;
    animation: none;
  }
}