/* ========================================
   hiamz.com - Amazon Seller Tools
   Design System & Global Styles
   ======================================== */

/* ----------------------------------------
   CSS Custom Properties (Design Tokens)
   ---------------------------------------- */
:root {
  /* Colors */
  --bg: #FAFAF7;
  --bg-card: #FFFFFF;
  --bg-muted: #F3F2EE;
  --ink: #1A1A2E;
  --ink-2: #4A4A6A;
  --ink-3: #9090A8;
  --orange: #E8470A;
  --orange-2: #FF6B35;
  --orange-light: rgba(232, 71, 10, 0.1);
  --border: #E8E6DF;
  --shadow: rgba(26, 26, 46, 0.08);
  --shadow-lg: rgba(26, 26, 46, 0.12);

  /* Typography */
  --font-display: 'Clash Display', sans-serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing (4px grid) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;

  /* Container */
  --container-max: 1280px;
  --container-padding: var(--space-6);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
  min-height: 100vh;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ----------------------------------------
   Typography
   ---------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

h4 {
  font-size: 1.125rem;
}

p {
  color: var(--ink-2);
}

.text-display {
  font-family: var(--font-display);
}

.text-mono {
  font-family: var(--font-mono);
}

.text-orange {
  color: var(--orange);
}

.text-muted {
  color: var(--ink-3);
}

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

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

.section {
  padding: var(--space-16) 0;
}

.section-lg {
  padding: var(--space-24) 0;
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Flexbox Utilities */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* ----------------------------------------
   Navigation
   ---------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 72px;
}

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

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav-logo .logo-icon {
  width: 32px;
  height: 32px;
  background: var(--orange);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo .logo-icon svg {
  width: 20px;
  height: 20px;
  color: white;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--orange);
  border-radius: var(--radius-full);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* Language Switcher */
.lang-switch {
  display: flex;
  align-items: center;
  background: var(--bg-muted);
  border-radius: var(--radius-full);
  padding: 4px;
  font-size: 0.875rem;
}

.lang-switch-btn {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-weight: 500;
  color: var(--ink-3);
  transition: all var(--transition-fast);
}

.lang-switch-btn.active {
  background: var(--bg-card);
  color: var(--ink);
  box-shadow: 0 1px 3px var(--shadow);
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--ink);
}

.nav-toggle:hover {
  background: var(--bg-muted);
}

/* ----------------------------------------
   Buttons
   ---------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px 24px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--orange);
  color: white;
  box-shadow: 0 2px 8px rgba(232, 71, 10, 0.3);
}

.btn-primary:hover {
  background: var(--orange-2);
  box-shadow: 0 4px 12px rgba(232, 71, 10, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--ink);
  background: var(--bg-muted);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-2);
}

.btn-ghost:hover {
  color: var(--ink);
  background: var(--bg-muted);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
}

/* ----------------------------------------
   Cards
   ---------------------------------------- */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: var(--space-6);
  transition: all var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--shadow-lg);
}

.card-flat {
  box-shadow: 0 2px 8px var(--shadow);
}

.card-flat:hover {
  transform: none;
  box-shadow: 0 4px 16px var(--shadow-lg);
}

.card-accent {
  border-left: 4px solid var(--orange);
}

/* Card Header */
.card-header {
  margin-bottom: var(--space-4);
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.card-desc {
  font-size: 0.9375rem;
  color: var(--ink-3);
}

/* ----------------------------------------
   Tags & Badges
   ---------------------------------------- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tag-orange {
  background: var(--orange-light);
  color: var(--orange);
}

.tag-blue {
  background: rgba(59, 130, 246, 0.1);
  color: #3B82F6;
}

.tag-green {
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
}

.tag-purple {
  background: rgba(139, 92, 246, 0.1);
  color: #8B5CF6;
}

/* ----------------------------------------
   Forms
   ---------------------------------------- */
.form-group {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--space-2);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-light);
}

.form-input::placeholder {
  color: var(--ink-3);
}

/* Search Input */
.search-input-wrapper {
  position: relative;
}

.search-input-wrapper svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--ink-3);
}

.search-input-wrapper .form-input {
  padding-left: 48px;
}

/* Range Slider */
.form-range {
  width: 100%;
  height: 6px;
  background: var(--bg-muted);
  border-radius: var(--radius-full);
  -webkit-appearance: none;
  appearance: none;
}

.form-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: var(--orange);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(232, 71, 10, 0.4);
}

/* ----------------------------------------
   Hero Section
   ---------------------------------------- */
.hero {
  padding-top: calc(72px + var(--space-16));
  padding-bottom: var(--space-16);
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.hero-content {
  max-width: 560px;
}

.hero-title {
  margin-bottom: var(--space-6);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--ink-2);
  margin-bottom: var(--space-8);
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
}

/* Hero Stats Cards */
.hero-visual {
  position: relative;
  height: 480px;
}

.hero-card {
  position: absolute;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: var(--space-5);
  box-shadow: 0 8px 24px var(--shadow);
  animation: float 6s ease-in-out infinite;
}

.hero-card:nth-child(1) {
  top: 20px;
  right: 20px;
  border-left: 4px solid var(--orange);
  animation-delay: 0s;
}

.hero-card:nth-child(2) {
  top: 160px;
  right: 120px;
  border-left: 4px solid #10B981;
  animation-delay: 1s;
}

.hero-card:nth-child(3) {
  top: 300px;
  right: 40px;
  border-left: 4px solid #3B82F6;
  animation-delay: 2s;
}

.hero-card-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--space-1);
}

.hero-card-label {
  font-size: 0.875rem;
  color: var(--ink-3);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ----------------------------------------
   Value Props Section
   ---------------------------------------- */
.value-props {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.value-prop {
  text-align: center;
  padding: var(--space-8);
}

.value-prop-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  background: var(--orange-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-prop-icon svg {
  width: 32px;
  height: 32px;
  color: var(--orange);
}

.value-prop-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-3);
}

.value-prop-desc {
  font-size: 0.9375rem;
  color: var(--ink-3);
}

/* ----------------------------------------
   Timeline / Journey
   ---------------------------------------- */
.timeline {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  padding: var(--space-8) 0;
}

.timeline-item {
  position: relative;
  text-align: center;
  flex: 1;
  max-width: 280px;
}

.timeline-dot {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-4);
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  position: relative;
  z-index: 2;
}

.timeline-item:not(:last-child) .timeline-dot::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  width: calc(100% + var(--space-8));
  height: 2px;
  background: var(--border);
  transform: translateY(-50%);
  z-index: 1;
}

.timeline-title {
  font-size: 1.125rem;
  margin-bottom: var(--space-2);
}

.timeline-desc {
  font-size: 0.875rem;
  color: var(--ink-3);
}

/* ----------------------------------------
   Tools Grid
   ---------------------------------------- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.tool-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
}

.tool-card-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-muted);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.tool-card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--orange);
}

.tool-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.tool-card-desc {
  font-size: 0.875rem;
  color: var(--ink-3);
  margin-bottom: var(--space-4);
  flex-grow: 1;
}

.tool-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--orange);
  transition: gap var(--transition-fast);
}

.tool-card-link:hover {
  gap: var(--space-3);
}

/* ----------------------------------------
   CTA Banner
   ---------------------------------------- */
.cta-banner {
  background: var(--ink);
  border-radius: var(--radius-xl);
  padding: var(--space-12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.cta-content {
  max-width: 480px;
}

.cta-title {
  font-size: 1.75rem;
  color: white;
  margin-bottom: var(--space-3);
}

.cta-desc {
  color: rgba(255, 255, 255, 0.7);
}

/* ----------------------------------------
   Footer
   ---------------------------------------- */
.footer {
  background: var(--bg-muted);
  padding: var(--space-12) 0 var(--space-8);
  margin-top: var(--space-16);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--ink-3);
  margin-top: var(--space-4);
  max-width: 280px;
}

.footer-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-link {
  font-size: 0.875rem;
  color: var(--ink-3);
  transition: color var(--transition-fast);
}

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

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

.footer-copyright {
  font-size: 0.8125rem;
  color: var(--ink-3);
}

.footer-icp {
  font-size: 0.8125rem;
  color: var(--ink-3);
}

.footer-icp a {
  color: var(--ink-3);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-icp a:hover {
  color: var(--orange);
}

/* ----------------------------------------
   Page Hero
   ---------------------------------------- */
.page-hero {
  padding-top: calc(72px + var(--space-12));
  padding-bottom: var(--space-12);
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-muted) 100%);
}

.page-hero.centered {
  text-align: center;
}

.page-title {
  margin-bottom: var(--space-4);
}

.page-desc {
  font-size: 1.125rem;
  color: var(--ink-2);
  max-width: 640px;
}

.page-hero.centered .page-desc {
  margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.875rem;
  color: var(--ink-3);
  margin-bottom: var(--space-6);
}

.breadcrumb a {
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--ink);
}

.breadcrumb-sep {
  color: var(--ink-3);
}

/* ----------------------------------------
   Tabs
   ---------------------------------------- */
.tabs {
  display: flex;
  gap: var(--space-2);
  background: var(--bg-muted);
  padding: var(--space-1);
  border-radius: var(--radius-lg);
  width: fit-content;
}

.tab-btn {
  padding: 12px 24px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  color: var(--ink);
}

.tab-btn.active {
  background: var(--bg-card);
  color: var(--ink);
  box-shadow: 0 2px 8px var(--shadow);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* ----------------------------------------
   Checklist
   ---------------------------------------- */
.checklist {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.checklist-item:hover {
  background: var(--bg-muted);
}

.checklist-checkbox {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.checklist-item.checked .checklist-checkbox {
  background: var(--orange);
  border-color: var(--orange);
}

.checklist-checkbox svg {
  width: 14px;
  height: 14px;
  color: white;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.checklist-item.checked .checklist-checkbox svg {
  opacity: 1;
}

.checklist-text {
  font-size: 0.9375rem;
  color: var(--ink-2);
  transition: all var(--transition-fast);
}

.checklist-item.checked .checklist-text {
  color: var(--ink-3);
  text-decoration: line-through;
}

/* ----------------------------------------
   Progress Bar
   ---------------------------------------- */
.progress-bar {
  height: 8px;
  background: var(--bg-muted);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--orange);
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

/* ----------------------------------------
   Category Filters
   ---------------------------------------- */
.category-filters {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--ink-2);
}

.filter-btn.active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

/* ----------------------------------------
   Calculator Layout
   ---------------------------------------- */
.calculator {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
}

.calc-input-section {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: var(--space-6);
}

.calc-section-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
}

.calc-result-section {
  position: sticky;
  top: calc(72px + var(--space-6));
}

.result-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: var(--space-6);
}

.result-main {
  text-align: center;
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-6);
}

.result-label {
  font-size: 0.875rem;
  color: var(--ink-3);
  margin-bottom: var(--space-2);
}

.result-value {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--orange);
}

.result-value.negative {
  color: #EF4444;
}

/* Fee Breakdown */
.fee-breakdown {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.fee-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.fee-item-label {
  flex: 1;
  font-size: 0.875rem;
  color: var(--ink-2);
}

.fee-item-value {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.fee-bar {
  flex: 2;
  height: 8px;
  background: var(--bg-muted);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.fee-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

/* ----------------------------------------
   Accordion / FAQ
   ---------------------------------------- */
.accordion {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid var(--border);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  width: 100%;
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--bg-card);
  text-align: left;
  transition: background var(--transition-fast);
}

.accordion-header:hover {
  background: var(--bg-muted);
}

.accordion-icon {
  width: 20px;
  height: 20px;
  color: var(--ink-3);
  transition: transform var(--transition-base);
}

.accordion-item.open .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.accordion-item.open .accordion-content {
  max-height: 500px;
}

.accordion-body {
  padding: 0 var(--space-5) var(--space-5);
  font-size: 0.9375rem;
  color: var(--ink-2);
}

/* ----------------------------------------
   Animations
   ---------------------------------------- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.stagger > * {
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

.stagger > *:nth-child(1) { animation-delay: 0.1s; }
.stagger > *:nth-child(2) { animation-delay: 0.2s; }
.stagger > *:nth-child(3) { animation-delay: 0.3s; }
.stagger > *:nth-child(4) { animation-delay: 0.4s; }
.stagger > *:nth-child(5) { animation-delay: 0.5s; }
.stagger > *:nth-child(6) { animation-delay: 0.6s; }

/* ----------------------------------------
   Responsive Design
   ---------------------------------------- */
@media (max-width: 1279px) {
  :root {
    --container-padding: var(--space-8);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .hero-visual {
    height: 320px;
    order: -1;
  }

  .hero-card:nth-child(1) { top: 10px; right: 10%; }
  .hero-card:nth-child(2) { top: 100px; right: 30%; }
  .hero-card:nth-child(3) { top: 200px; right: 5%; }

  .value-props {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .calc-result-section {
    position: static;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }
}

@media (max-width: 767px) {
  :root {
    --container-padding: var(--space-4);
  }

  .nav-links,
  .nav-actions .btn {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-bottom: var(--space-10);
  }

  .hero-visual {
    height: 240px;
  }

  .hero-card {
    padding: var(--space-4);
  }

  .hero-card-value {
    font-size: 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

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

  .timeline-item:not(:last-child) .timeline-dot::after {
    display: none;
  }

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

  .cta-banner {
    flex-direction: column;
    text-align: center;
    padding: var(--space-8);
  }

  .cta-content {
    max-width: none;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }

  .tabs {
    width: 100%;
    overflow-x: auto;
  }

  .tab-btn {
    padding: 10px 16px;
    font-size: 0.875rem;
    white-space: nowrap;
  }
}

/* ----------------------------------------
   Mobile Navigation (JS Toggle)
   ---------------------------------------- */
.nav-mobile {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  padding: var(--space-6);
  z-index: 99;
}

.nav-mobile.open {
  display: block;
}

.nav-mobile-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.nav-mobile-link {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--ink);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
}

.nav-mobile-actions {
  margin-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* ----------------------------------------
   Utility Classes
   ---------------------------------------- */
.hidden { display: none !important; }
.visible { display: block !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ----------------------------------------
   Visual Effects System
   ---------------------------------------- */

/* Glow Effects - Buttons */
.btn-primary {
  box-shadow: 
    0 0 20px rgba(232, 71, 10, 0.4),
    0 0 40px rgba(232, 71, 10, 0.2);
  transition: box-shadow 0.3s ease;
}

.btn-primary:hover {
  box-shadow: 
    0 0 30px rgba(232, 71, 10, 0.6),
    0 0 60px rgba(232, 71, 10, 0.3);
}

.btn-primary:active {
  box-shadow: 
    0 0 15px rgba(232, 71, 10, 0.5),
    0 0 30px rgba(232, 71, 10, 0.25);
}

/* Glow Effects - Cards */
.card {
  transition: all var(--transition-base);
  will-change: transform, filter;
}

.card:hover {
  filter: drop-shadow(0 0 15px rgba(232, 71, 10, 0.15));
  box-shadow: 
    0 12px 32px var(--shadow-lg),
    0 0 20px rgba(232, 71, 10, 0.08);
}

.tool-card:hover {
  filter: drop-shadow(0 0 20px rgba(232, 71, 10, 0.2));
}

/* Glow Effects - Form Inputs */
.form-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232, 71, 10, 0.1);
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { 
    box-shadow: 0 0 0 3px rgba(232, 71, 10, 0.1);
  }
  50% { 
    box-shadow: 0 0 0 5px rgba(232, 71, 10, 0.2);
  }
}

/* Glow Effects - Nav Logo */
.nav-logo:hover .logo-icon {
  box-shadow: 0 0 20px rgba(232, 71, 10, 0.5);
}

/* ----------------------------------------
   Breathing Background Animation
   ---------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(232, 71, 10, 0.03) 0%, transparent 70%);
  animation: breathe 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

@keyframes breathe {
  0%, 100% { 
    opacity: 0.03;
    transform: scale(1);
  }
  50% { 
    opacity: 0.08;
    transform: scale(1.05);
  }
}

/* Page Hero Breathing */
.page-hero {
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(232, 71, 10, 0.025) 0%, transparent 70%);
  animation: breathe 5s ease-in-out infinite;
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

/* Tool Hero Breathing */
.tool-hero {
  position: relative;
  overflow: hidden;
}

.tool-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(232, 71, 10, 0.02) 0%, transparent 70%);
  animation: breathe 6s ease-in-out infinite;
  pointer-events: none;
}

.tool-hero .container {
  position: relative;
  z-index: 1;
}

/* ----------------------------------------
   CSS-Only Particle System
   ---------------------------------------- */

.css-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.css-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(232, 71, 10, 0.25);
  border-radius: 50%;
  animation: floatParticle 20s ease-in-out infinite;
  will-change: transform, opacity;
  transform: translateZ(0);
}

.css-particle:nth-child(1) {
  left: 10%;
  top: 20%;
  animation-delay: 0s;
  animation-duration: 18s;
}

.css-particle:nth-child(2) {
  left: 20%;
  top: 60%;
  animation-delay: 1s;
  animation-duration: 22s;
  width: 4px;
  height: 4px;
}

.css-particle:nth-child(3) {
  left: 35%;
  top: 30%;
  animation-delay: 2s;
  animation-duration: 25s;
  width: 8px;
  height: 8px;
}

.css-particle:nth-child(4) {
  left: 50%;
  top: 70%;
  animation-delay: 3s;
  animation-duration: 19s;
}

.css-particle:nth-child(5) {
  left: 65%;
  top: 15%;
  animation-delay: 4s;
  animation-duration: 23s;
  width: 5px;
  height: 5px;
}

.css-particle:nth-child(6) {
  left: 75%;
  top: 45%;
  animation-delay: 5s;
  animation-duration: 21s;
}

.css-particle:nth-child(7) {
  left: 85%;
  top: 80%;
  animation-delay: 6s;
  animation-duration: 24s;
  width: 7px;
  height: 7px;
}

.css-particle:nth-child(8) {
  left: 5%;
  top: 85%;
  animation-delay: 7s;
  animation-duration: 20s;
}

.css-particle:nth-child(9) {
  left: 30%;
  top: 5%;
  animation-delay: 8s;
  animation-duration: 26s;
  width: 4px;
  height: 4px;
}

.css-particle:nth-child(10) {
  left: 55%;
  top: 50%;
  animation-delay: 9s;
  animation-duration: 18s;
}

.css-particle:nth-child(11) {
  left: 70%;
  top: 25%;
  animation-delay: 10s;
  animation-duration: 22s;
  width: 6px;
  height: 6px;
}

.css-particle:nth-child(12) {
  left: 90%;
  top: 60%;
  animation-delay: 11s;
  animation-duration: 19s;
}

.css-particle:nth-child(13) {
  left: 15%;
  top: 40%;
  animation-delay: 12s;
  animation-duration: 25s;
  width: 5px;
  height: 5px;
}

.css-particle:nth-child(14) {
  left: 45%;
  top: 90%;
  animation-delay: 13s;
  animation-duration: 21s;
}

.css-particle:nth-child(15) {
  left: 80%;
  top: 10%;
  animation-delay: 14s;
  animation-duration: 23s;
  width: 8px;
  height: 8px;
}

.css-particle:nth-child(16) {
  left: 25%;
  top: 75%;
  animation-delay: 15s;
  animation-duration: 20s;
}

.css-particle:nth-child(17) {
  left: 60%;
  top: 35%;
  animation-delay: 0.5s;
  animation-duration: 24s;
  width: 4px;
  height: 4px;
}

.css-particle:nth-child(18) {
  left: 95%;
  top: 45%;
  animation-delay: 2.5s;
  animation-duration: 22s;
}

.css-particle:nth-child(19) {
  left: 40%;
  top: 20%;
  animation-delay: 4.5s;
  animation-duration: 26s;
  width: 6px;
  height: 6px;
}

.css-particle:nth-child(20) {
  left: 88%;
  top: 92%;
  animation-delay: 6.5s;
  animation-duration: 19s;
}

@keyframes floatParticle {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.25;
  }
  25% {
    transform: translate(30px, -50px) scale(1.1);
    opacity: 0.4;
  }
  50% {
    transform: translate(-20px, -100px) scale(1);
    opacity: 0.3;
  }
  75% {
    transform: translate(40px, -50px) scale(0.9);
    opacity: 0.35;
  }
}

/* ----------------------------------------
   Performance Optimizations
   ---------------------------------------- */

.hero-card,
.card,
.btn,
.form-input,
.nav-link,
.tool-card,
.css-particle {
  will-change: transform, opacity;
  transform: translateZ(0);
}

.timeline-dot {
  will-change: transform;
  transform: translateZ(0);
}

.value-prop-icon {
  will-change: transform;
  transform: translateZ(0);
}

/* GPU Acceleration for animations */
@keyframes float {
  0%, 100% { 
    transform: translateZ(0) translateY(0); 
  }
  50% { 
    transform: translateZ(0) translateY(-10px); 
  }
}

/* ----------------------------------------
   Reduced Motion Accessibility
   ---------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .hero::before,
  .page-hero::before,
  .tool-hero::before {
    animation: none;
    opacity: 0.03;
  }
  
  .css-particles {
    display: none;
  }
  
  .hero-card {
    animation: none;
  }
  
  .form-input:focus {
    animation: none;
    box-shadow: 0 0 0 3px rgba(232, 71, 10, 0.15);
  }
}

/* ----------------------------------------
   Enhanced Hover States
   ---------------------------------------- */

.timeline-item:hover .timeline-dot {
  box-shadow: 0 0 20px rgba(232, 71, 10, 0.5);
  transform: scale(1.1);
  transition: all 0.3s ease;
}

.value-prop:hover .value-prop-icon {
  box-shadow: 0 0 25px rgba(232, 71, 10, 0.3);
  transform: translateY(-4px);
  transition: all 0.3s ease;
}

.filter-btn:hover {
  box-shadow: 0 0 15px rgba(232, 71, 10, 0.2);
}

.filter-btn.active {
  box-shadow: 0 0 20px rgba(232, 71, 10, 0.3);
}

.size-tier-option:hover {
  box-shadow: 0 0 12px rgba(232, 71, 10, 0.15);
}

.size-tier-option.active {
  box-shadow: 0 0 18px rgba(232, 71, 10, 0.25);
}

.related-tool-card:hover {
  box-shadow: 
    0 4px 12px var(--shadow),
    0 0 15px rgba(232, 71, 10, 0.1);
}

.cta-banner {
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(232, 71, 10, 0.08) 0%, transparent 50%);
  animation: ctaGlow 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes ctaGlow {
  0%, 100% {
    opacity: 0.5;
    transform: translateX(-10%);
  }
  50% {
    opacity: 1;
    transform: translateX(10%);
  }
}

/* Result profit glow animation */
.result-profit {
  position: relative;
}

.result-profit::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, rgba(232, 71, 10, 0.3), transparent, rgba(232, 71, 10, 0.3));
  border-radius: inherit;
  animation: resultGlow 3s ease-in-out infinite;
  z-index: -1;
  opacity: 0;
}

.result-profit:hover::before {
  opacity: 1;
}

@keyframes resultGlow {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
}

/* Mobile adjustments for particles */
@media (max-width: 767px) {
  .css-particle {
    width: 4px;
    height: 4px;
    opacity: 0.2;
  }
  
  .css-particle:nth-child(n+11) {
    display: none;
  }
  
  .hero::before,
  .page-hero::before,
  .tool-hero::before {
    animation-duration: 6s;
  }
}
