/* ==========================================================================
   VEIT WORKS — DESIGN SYSTEM & STYLESHEET (BRIGHT & FRIENDLY LIGHT THEME)
   Living Spec: specs/SPECIFICATION.md
   ========================================================================== */

/* --- Custom Properties / Design Tokens --- */
:root {
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-display: 'Outfit', var(--font-sans);
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Color Palette - Bright & Friendly Light Theme */
  --bg-main: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;

  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-highlight: rgba(14, 165, 233, 0.4);
  --border-green-highlight: rgba(34, 197, 94, 0.4);

  /* Primary Accents: Sky Blue & Meadow Grass Green */
  --accent-sky: #0284c7;
  --accent-sky-light: #0ea5e9;
  --accent-sky-soft: #e0f2fe;
  --accent-sky-hover: #0369a1;

  --accent-green: #16a34a;
  --accent-green-light: #22c55e;
  --accent-green-soft: #dcfce7;
  --accent-green-hover: #15803d;

  --accent-amber: #d97706;
  --accent-amber-soft: #fef3c7;
  --accent-violet: #7c3aed;
  --accent-violet-soft: #ede9fe;

  /* Typography Colors */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #0ea5e9 0%, #22c55e 100%);
  --grad-primary-hover: linear-gradient(135deg, #0284c7 0%, #16a34a 100%);
  --grad-sky: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  --grad-green: linear-gradient(135deg, #4ade80 0%, #16a34a 100%);
  --grad-subtle: linear-gradient(180deg, #f0f9ff 0%, #f0fdf4 100%);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-card-hover: 0 20px 30px -10px rgba(14, 165, 233, 0.15), 0 12px 16px -8px rgba(34, 197, 94, 0.12);
  --shadow-glow: 0 4px 20px rgba(14, 165, 233, 0.28);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  background-image:
    radial-gradient(circle at 15% 10%, rgba(56, 189, 248, 0.12), transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(74, 222, 128, 0.12), transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(224, 242, 254, 0.6), transparent 60%);
  background-attachment: fixed;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.025em;
}

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

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

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

/* --- Header / Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-smooth);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.logo-icon svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--accent-sky);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-smooth);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--grad-primary);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background: var(--grad-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(14, 165, 233, 0.4);
}

.btn-secondary {
  background: #ffffff;
  border-color: var(--border-subtle);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--border-medium);
  color: var(--accent-sky);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* --- Hero Section --- */
.hero-section {
  padding: 110px 0 80px;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: var(--accent-sky-soft);
  border: 1px solid rgba(14, 165, 233, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-sky);
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green-light);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw + 1rem, 4.25rem);
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  max-width: 680px;
  margin: 0 auto 36px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Tools Section --- */
.tools-section {
  padding: 80px 0 100px;
}

.section-header {
  text-align: center;
  margin-bottom: 44px;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1.1rem;
  max-width: 580px;
  margin: 0 auto;
  color: var(--text-secondary);
}

/* Filter Controls */
.filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-tab {
  padding: 8px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.filter-tab:hover {
  background: var(--bg-secondary);
  color: var(--accent-sky);
  border-color: var(--border-highlight);
}

.filter-tab.active {
  background: var(--grad-primary);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}

/* Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.tool-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-card-hover);
}

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

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.tool-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: var(--accent-sky-soft);
  border: 1px solid rgba(14, 165, 233, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-sky);
}

.tool-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: var(--radius-full);
}

.badge-live {
  background: var(--accent-green-soft);
  color: var(--accent-green-hover);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-beta {
  background: var(--accent-sky-soft);
  color: var(--accent-sky-hover);
  border: 1px solid rgba(14, 165, 233, 0.3);
}

.badge-in-dev {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.tool-title {
  font-size: 1.35rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.tool-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 22px;
  flex-grow: 1;
  line-height: 1.55;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tool-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-sky);
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.card-link:hover {
  color: var(--accent-green-hover);
  gap: 12px;
}

/* --- Features / Philosophy Section --- */
.about-section {
  padding: 90px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 48px;
}

.feature-item {
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}

.feature-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: var(--border-green-highlight);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-green-soft);
  color: var(--accent-green-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.feature-item p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* --- Footer --- */
.site-footer {
  padding: 60px 0 40px;
  background: #ffffff;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.footer-brand strong {
  color: var(--text-primary);
}

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

.footer-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--accent-sky);
}

/* --- Responsive Breakpoints --- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero-section {
    padding: 70px 0 50px;
  }
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* --- Policy / Legal Document Pages --- */
.policy-main {
  padding: 100px 0 80px;
  min-height: calc(100vh - 160px);
}

.policy-container {
  max-width: 880px;
}

.policy-back-link {
  margin-bottom: 24px;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-sky);
  padding: 8px 16px;
  background: var(--accent-sky-soft);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.btn-back:hover {
  background: var(--accent-sky);
  color: #ffffff;
}

.policy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  overflow-wrap: break-word;
}

.policy-card h1, 
.policy-card [data-custom-class='title'] {
  font-family: var(--font-display), sans-serif !important;
  color: var(--text-primary) !important;
  font-size: 2rem !important;
  font-weight: 700 !important;
  margin-bottom: 8px;
}

.policy-card h2,
.policy-card [data-custom-class='heading_1'] {
  font-family: var(--font-display), sans-serif !important;
  color: var(--text-primary) !important;
  font-size: 1.3rem !important;
  font-weight: 700 !important;
  margin-top: 28px;
  margin-bottom: 12px;
}

.policy-card h3,
.policy-card [data-custom-class='heading_2'] {
  font-family: var(--font-display), sans-serif !important;
  color: var(--text-primary) !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  margin-top: 20px;
  margin-bottom: 10px;
}

.policy-card [data-custom-class='body_text'] {
  font-family: var(--font-sans) !important;
  color: var(--text-secondary) !important;
  font-size: 0.95rem !important;
  line-height: 1.7 !important;
}

.policy-card [data-custom-class='link'] {
  color: var(--accent-sky) !important;
  font-family: var(--font-sans) !important;
  text-decoration: underline;
}

.policy-card [data-custom-class='link']:hover {
  color: var(--accent-sky-hover) !important;
}

.policy-card table {
  width: 100%;
  border-collapse: collapse;
}

@media (max-width: 768px) {
  .policy-card {
    padding: 24px 18px;
  }
}

