/* ============================================
   Tools — High-End Design System (Premium Glass)
   ============================================ */

:root,
[data-theme="light"] {
  /* Neutrals */
  --bg-main: #f5f5f7;
  --surface-card: rgba(255, 255, 255, 0.7);
  --surface-overlay: rgba(255, 255, 255, 0.4);
  --border-glass: rgba(255, 255, 255, 0.5);
  
  /* Text Hierarchy */
  --text-title: #1d1d1f;
  --text-body: #424245;
  --text-muted: #86868b;
  
  /* Accent & UI */
  --accent: #007aff;
  --accent-hover: #0062cc;
  --dropzone-bg: rgba(0, 122, 255, 0.05);
  --shadow-primary: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-elevated: 0 12px 48px rgba(0, 0, 0, 0.12);
  
  /* Component Tokens */
  --card-radius: 24px;
  --control-radius: 12px;
  --glass-blur: 24px;
}

[data-theme="dark"] {
  --bg-main: #000000;
  --surface-card: rgba(28, 28, 30, 0.7);
  --surface-overlay: rgba(44, 44, 46, 0.4);
  --border-glass: rgba(255, 255, 255, 0.1);
  
  /* Text Hierarchy */
  --text-title: #f5f5f7;
  --text-body: #d2d2d7;
  --text-muted: #86868b;
  
  /* Accent & UI */
  --accent: #0a84ff;
  --accent-hover: #409cff;
  --dropzone-bg: rgba(10, 132, 255, 0.1);
  --shadow-primary: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-elevated: 0 12px 48px rgba(0, 0, 0, 0.6);
  
  /* Component Tokens */
  --card-radius: 24px;
  --control-radius: 12px;
  --glass-blur: 24px;
}

/* --- Base Layout & Typography --- */
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-body);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  color: var(--text-title);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* --- Glassmorphism Utility --- */
.glass {
  background: var(--surface-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-glass);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-primary);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

/* --- Shared Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--control-radius);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1.4;
}

.btn-secondary {
  background: var(--surface-overlay);
  color: var(--text-title);
  border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
  background: var(--surface-card);
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 122, 255, 0.4);
}

/* --- Tools Hero --- */
.tools-hero {
  padding: 5rem 0 2rem;
}

.tools-hero h1 {
  font-size: clamp(3rem, 8vw, 5rem);
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
}

.tools-hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* --- Footer --- */
footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border-glass);
  margin-top: 4rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.social-icon {
  color: var(--text-muted);
  transition: color 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
}

.social-icon:hover {
  color: var(--accent);
  transform: translateY(-2px);
}
