/* ==========================================================================
   SpinTheWheelOut - Modern Glassmorphic Dark / Light Theme
   Primary Accent: #00415a (Deep Ocean Teal)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  /* Color Palette - Deep Dark Slate & Ocean Teal #00415a */
  --bg: #070c12;
  --bg-gradient: radial-gradient(circle at 50% -120px, rgba(0, 65, 90, 0.35), transparent 750px), #070c12;
  
  /* Glassmorphism Surface Tokens */
  --surface: rgba(11, 20, 30, 0.72);
  --surface-hover: rgba(16, 28, 42, 0.88);
  --surface-border: rgba(255, 255, 255, 0.09);
  --surface-border-hover: rgba(0, 168, 204, 0.35);
  --surface-border-focus: rgba(0, 168, 204, 0.65);

  /* Typography Colors */
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Primary Accent: #00415a (Teal / Deep Blue Cyan) */
  --primary: #00415a;
  --primary-hover: #005575;
  --primary-light: #006f99;
  --primary-glow: rgba(0, 65, 90, 0.45);
  --accent: #00a8cc;
  --accent-glow: rgba(0, 168, 204, 0.35);

  /* Fonts */
  --font: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Plus Jakarta Sans', var(--font);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.38);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55);
  --shadow-glass: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 4px 20px var(--primary-glow);
}

/* --------------------------------------------------------------------------
   Light Mode Theme Overrides [data-theme="light"]
   -------------------------------------------------------------------------- */
[data-theme="light"] {
  --bg: #f8fafc;
  --bg-gradient: radial-gradient(circle at 50% -120px, rgba(0, 65, 90, 0.12), transparent 750px), #f8fafc;
  
  --surface: rgba(255, 255, 255, 0.82);
  --surface-hover: rgba(255, 255, 255, 0.96);
  --surface-border: rgba(0, 65, 90, 0.14);
  --surface-border-hover: rgba(0, 65, 90, 0.35);
  --surface-border-focus: rgba(0, 65, 90, 0.65);

  --text: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;

  --primary: #00415a;
  --primary-hover: #002e40;
  --primary-light: #005575;
  --primary-glow: rgba(0, 65, 90, 0.25);
  --accent: #0284c7;
  --accent-glow: rgba(2, 132, 199, 0.25);

  --shadow-glass: 0 10px 25px rgba(0, 65, 90, 0.08);
}

/* --------------------------------------------------------------------------
   Base Styles & Reset
   -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* --------------------------------------------------------------------------
   Header & Nav with Controls
   -------------------------------------------------------------------------- */
header {
  background: var(--surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--surface-border);
  padding: 0.85rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 50;
  transition: border-color 0.2s ease, background 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
}

.logo {
  color: var(--text);
  font-family: var(--font-heading);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  transition: opacity 0.15s ease;
  flex-shrink: 0;
}

.logo:hover {
  opacity: 0.9;
}

.logo svg {
  color: var(--accent);
  flex-shrink: 0;
}

.logo span {
  color: var(--accent);
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .nav-links a:hover {
  background: rgba(0, 65, 90, 0.08);
}

.nav-links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  font-weight: 600;
}

[data-theme="light"] .nav-links a.active {
  background: rgba(0, 65, 90, 0.12);
  color: var(--primary);
}

/* Header Action Controls (Theme Toggle & Fullscreen) */
.header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-control-btn {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  color: var(--text);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.header-control-btn:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px var(--accent-glow);
}

.header-control-btn:active {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Layout & Hero
   -------------------------------------------------------------------------- */
main {
  max-width: 1200px;
  margin: 2rem auto 4rem;
  padding: 0 1.5rem;
  flex: 1;
  width: 100%;
}

.hero-title {
  text-align: center;
  margin-bottom: 2.2rem;
}

.hero-title h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 0.6rem;
}

[data-theme="dark"] .hero-title h1 {
  background: linear-gradient(180deg, #ffffff 60%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .hero-title h1 {
  color: #0f172a;
}

.hero-title p {
  color: var(--text-muted);
  font-size: 1.05rem;
  font-weight: 400;
  max-width: 650px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Tool & Wheel Grid - Glass Panels
   -------------------------------------------------------------------------- */
.tool-layout {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 2rem;
  align-items: start;
}

.wheel-stage {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  box-shadow: var(--shadow-glass);
}

.canvas-container {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

canvas#wheelCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

canvas#confettiCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Modern Needle Pointer */
.pointer {
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-right: 28px solid #f43f5e;
  z-index: 10;
  filter: drop-shadow(-2px 0 6px rgba(0, 0, 0, 0.55));
  transition: transform 0.1s ease;
}

/* Pill Spin Button (#00415a Gradient) */
.spin-btn {
  margin-top: 1.8rem;
  background: linear-gradient(135deg, #00415a 0%, #006080 100%);
  color: #ffffff;
  border: 1px solid rgba(0, 168, 204, 0.35);
  padding: 0.95rem 3.4rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 65, 90, 0.45);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.spin-btn:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 28px rgba(0, 168, 204, 0.5);
  background: linear-gradient(135deg, #005575 0%, #007ea7 100%);
}

.spin-btn:active:not(:disabled) {
  transform: translateY(0) scale(0.99);
}

.spin-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   Editor Panel - Glass Box
   -------------------------------------------------------------------------- */
.editor-panel {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  box-shadow: var(--shadow-glass);
}

.editor-panel h2 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

/* Textarea - Vertically Aligned Items */
.editor-panel textarea,
textarea#itemsInput {
  width: 100%;
  min-height: 200px;
  background: rgba(6, 11, 17, 0.7);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.7;
  padding: 12px 14px;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  white-space: pre;
}

[data-theme="light"] .editor-panel textarea,
[data-theme="light"] textarea#itemsInput {
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
}

.editor-panel textarea:focus,
textarea#itemsInput:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 168, 204, 0.25);
}

.btn-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.btn-secondary {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--surface-border);
  color: var(--text);
  padding: 0.65rem 1rem;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

[data-theme="light"] .btn-secondary {
  background: rgba(0, 65, 90, 0.06);
}

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

#removeWinnerBtn {
  background: #00415a !important;
  color: #ffffff !important;
  border: 1px solid rgba(0, 168, 204, 0.3) !important;
}

#removeWinnerBtn:hover {
  background: #005575 !important;
}

/* --------------------------------------------------------------------------
   Hub Grid Section - Glass Cards
   -------------------------------------------------------------------------- */
.hub-grid-section {
  margin-top: 4rem;
}

.hub-grid-section h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.tool-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-glass);
}

.tool-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(0, 65, 90, 0.3);
}

.tool-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.tool-card:hover h3 {
  color: var(--accent);
}

.tool-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   SEO Rich Content, Features & FAQ Sections - Glass Cards
   -------------------------------------------------------------------------- */
.seo-content-block {
  margin-top: 4.5rem;
  border-top: 1px solid var(--surface-border);
  padding-top: 3.5rem;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 680px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.feature-box {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-glass);
}

.feature-box:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 12px 30px rgba(0, 65, 90, 0.25);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(0, 65, 90, 0.25);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1.1rem;
}

.feature-box h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.feature-box p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Steps / How It Works - Glass Cards */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.step-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.6rem;
  position: relative;
  box-shadow: var(--shadow-glass);
}

.step-badge {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent);
  background: rgba(0, 65, 90, 0.35);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(0, 168, 204, 0.25);
}

.step-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* FAQ Accordion - Glass Panels */
.faq-list {
  max-width: 860px;
  margin: 0 auto 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-glass);
}

.faq-item:hover {
  border-color: var(--surface-border-hover);
}

.faq-question {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  user-select: none;
  transition: color 0.15s ease;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-question::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.faq-item.open .faq-question::after {
  content: "−";
}

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.3rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  border-top: 1px solid var(--surface-border);
  margin-top: -0.2rem;
  padding-top: 0.9rem;
}

.faq-item.open .faq-answer {
  display: block;
}

/* --------------------------------------------------------------------------
   Winner Modal - Frosted Glass
   -------------------------------------------------------------------------- */
.winner-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
}

.winner-box {
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 168, 204, 0.35);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  text-align: center;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  animation: popIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes popIn {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.winner-box h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.winner-text {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1.8rem;
  word-break: break-word;
}

.btn-close {
  background: linear-gradient(135deg, #00415a 0%, #006080 100%);
  color: #ffffff;
  border: 1px solid rgba(0, 168, 204, 0.35);
  padding: 0.75rem 2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.btn-close:hover {
  background: linear-gradient(135deg, #005575 0%, #007ea7 100%);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Articles & Content Pages (Blog, About, Privacy, Terms)
   -------------------------------------------------------------------------- */
article {
  max-width: 860px;
  margin: 0 auto;
}

article h1 {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  line-height: 1.25;
  margin-bottom: 0.8rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
}

.meta {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--surface-border);
  padding-bottom: 1rem;
}

article h2, main h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin: 2rem 0 0.75rem;
  color: var(--text);
  letter-spacing: -0.015em;
}

article h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin: 1.4rem 0 0.5rem;
  color: var(--accent);
}

article p, main p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  line-height: 1.75;
}

article ul, article ol {
  margin: 0 0 1.5rem 1.5rem;
  color: var(--text-muted);
  line-height: 1.7;
}

article li {
  margin-bottom: 0.5rem;
}

.callout-box {
  background: var(--surface);
  backdrop-filter: blur(14px);
  border-left: 4px solid var(--accent);
  padding: 1.2rem 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.8rem 0;
}

.callout-box p {
  margin: 0;
  color: var(--text);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Blog Hub Specific Styles - Glass Cards
   -------------------------------------------------------------------------- */
.blog-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.category-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 1.2rem 1rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-glass);
}

.category-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  color: var(--accent);
}

.category-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.category-card span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.article-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-glass);
}

.article-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 65, 90, 0.25);
}

.article-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.article-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 0.6rem;
}

.article-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
  flex: 1;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--surface-border);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 4rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

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

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .tool-layout {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  .hero-title h1 {
    font-size: 2rem;
  }
  .wheel-stage {
    padding: 1.5rem 1rem;
  }
}
