/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --primary-bg: rgba(37, 99, 235, 0.08);
  --black: #111827;
  --gray-900: #1f2937;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --red: #ef4444;
  --green: #10b981;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
  --shadow-blue: 0 4px 20px rgba(37, 99, 235, 0.2);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-h: 70px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--white);
  color: var(--gray-900);
  overflow-x: hidden;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  z-index: 1000;
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--black);
}
.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
}
.nav-logo strong { color: var(--primary); }
.nav-menu { display: flex; gap: 8px; }
.nav-link {
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-500);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-link:hover,
.nav-link.active { color: var(--primary); background: var(--primary-bg); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  outline: none;
  white-space: nowrap;
}
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.3);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}
.btn-secondary {
  background: var(--gray-100);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
}
.btn-secondary:hover {
  background: var(--gray-200);
  color: var(--black);
}

/* ===== HERO ===== */
.hero {
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 50%, #f0f7ff 100%);
}
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.07;
}
.shape-1 {
  width: 600px; height: 600px;
  background: var(--primary);
  top: -200px; right: -200px;
}
.shape-2 {
  width: 400px; height: 400px;
  background: var(--primary-dark);
  bottom: -150px; left: -100px;
}
.shape-3 {
  width: 300px; height: 300px;
  background: var(--primary-light);
  top: 40%; left: 50%;
  transform: translate(-50%, -50%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-content { max-width: 600px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--black);
  margin-bottom: 16px;
  letter-spacing: -1px;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 40px; }
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
}
.stat-plus { font-size: 1.2rem; font-weight: 700; color: var(--primary); }
.stat-label {
  font-size: 0.75rem;
  color: var(--gray-400);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.hero-visual { display: flex; align-items: center; justify-content: center; }
.hero-illustration {
  position: relative;
  width: 400px;
  height: 400px;
}
.il-circle {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 2px dashed var(--gray-200);
  animation: spin 30s linear infinite;
}
.il-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--black);
  animation: float 3s ease-in-out infinite;
  transition: transform var(--transition);
}
.il-card:hover { transform: scale(1.05); }
.il-card i { color: var(--primary); font-size: 1.1rem; }
.il-card-1 { top: 5%; left: 10%; animation-delay: 0s; }
.il-card-2 { top: 20%; right: 5%; animation-delay: 0.5s; }
.il-card-3 { bottom: 25%; left: 5%; animation-delay: 1s; }
.il-card-4 { bottom: 10%; right: 15%; animation-delay: 1.5s; }
.il-card-5 { top: 55%; left: 30%; animation-delay: 2s; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.bg-light { background: var(--gray-50); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-badge {
  display: inline-block;
  padding: 5px 14px;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.section-header p {
  font-size: 1rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ===== FEATURES ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.feature-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--primary-bg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; color: var(--gray-500); line-height: 1.7; }

/* ===== DASHBOARD ===== */
.section-tools { background: var(--gray-50); overflow-x: hidden; }

.dashboard {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 24px;
  align-items: start;
  max-width: 100%;
}
.dashboard-sidebar { min-width: 0; max-width: 100%; }
.dashboard-main { min-width: 0; max-width: 100%; }

.dash-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color var(--transition);
  max-width: 100%;
  overflow: hidden;
}
.dash-card:hover { border-color: var(--gray-300); }
.dash-card-sm { padding: 20px; }

.dash-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 8px;
}
.dash-card-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dash-card-header h3 i { color: var(--primary); }

.dash-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.saved-list {
  max-height: 200px;
  overflow-y: auto;
}
.empty-hint {
  font-size: 0.8rem;
  color: var(--gray-400);
  text-align: center;
  padding: 16px 0;
}
.saved-item {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  cursor: pointer;
  transition: background var(--transition);
  margin-bottom: 4px;
  border: 1px solid transparent;
}
.saved-item:hover { background: var(--gray-50); border-color: var(--gray-200); }
.saved-item .saved-meta { font-size: 0.7rem; color: var(--gray-400); margin-top: 2px; }
.saved-item .saved-del {
  float: right;
  color: var(--red);
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--transition);
}
.saved-item:hover .saved-del { opacity: 1; }

/* ===== PRESET CHIPS ===== */
.preset-chips-bar { margin-bottom: 16px; }
.preset-chips-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.preset-chips-header label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-500);
}
.preset-reset-btn {
  background: none;
  border: none;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gray-400);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all var(--transition);
  font-family: inherit;
}
.preset-reset-btn:hover { color: var(--primary); background: var(--primary-bg); }
.preset-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-200) transparent;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
.preset-chips::-webkit-scrollbar { height: 3px; }
.preset-chips::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 3px; }
.preset-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gray-500);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.preset-chip:hover {
  background: var(--primary-bg);
  border-color: var(--primary);
  color: var(--primary);
}
.preset-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.preset-chip.active i { color: #fff; }
.preset-chip i { font-size: 0.75rem; color: var(--gray-400); transition: color var(--transition); }
.preset-chip:hover i { color: var(--primary); }

/* ===== FORMS ===== */
.form-group { margin-bottom: 14px; min-width: 0; }
.form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--gray-500);
  margin-bottom: 4px;
}

.form-input {
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  color: var(--black);
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  transition: all var(--transition);
  appearance: none;
  -webkit-appearance: none;
}
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background: var(--white);
}
.form-input::placeholder { color: var(--gray-400); }

select.form-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
  cursor: pointer;
}
select.form-input option { background: var(--white); color: var(--black); }

.form-helper {
  display: block;
  font-size: 0.68rem;
  color: var(--gray-400);
  margin-top: 3px;
  line-height: 1.4;
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }

.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 16px;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--gray-500);
  cursor: pointer;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  user-select: none;
}
.check-label:hover { background: var(--gray-50); }
.check-label input { display: none; }
.check-box {
  width: 18px;
  height: 18px;
  border: 2px solid var(--gray-300);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.check-label input:checked + .check-box {
  background: var(--primary);
  border-color: var(--primary);
}
.check-label input:checked + .check-box::after {
  content: '';
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -1px;
}

.btn-primary .spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn-primary.loading .btn-text { display: none; }
.btn-primary.loading .spinner { display: block; }
.btn-primary:disabled, .btn-secondary:disabled { opacity: 0.6; cursor: not-allowed; }

.cooldown-timer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--red);
  margin-top: 6px;
  font-weight: 500;
}

/* ===== OUTPUT ===== */
.output-area.hidden { display: none; }
.output-area { animation: fadeUp 0.4s ease; }

.state-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 50px 20px;
}
.state-box.hidden { display: none; }
.state-icon {
  font-size: 2.5rem;
  color: var(--gray-300);
  margin-bottom: 14px;
}
.state-box h4 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.state-box p { font-size: 0.85rem; color: var(--gray-500); max-width: 360px; line-height: 1.6; }

.loader-ring-custom {
  width: 48px;
  height: 48px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}

.result-meta-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.result-badge {
  padding: 4px 12px;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
}
.result-info { font-size: 0.72rem; color: var(--gray-400); }

.provider-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  background: #e8f5e9;
  color: #2e7d32;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  margin-left: auto;
}

.output-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.output-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: border-color var(--transition);
}
.output-card:hover { border-color: var(--primary); }
.output-card.full-w { grid-column: 1 / -1; }

.card-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  justify-content: space-between;
}
.copy-card-btn {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.7rem;
  color: var(--gray-400);
  transition: all var(--transition);
  opacity: 0;
}
.output-card:hover .copy-card-btn { opacity: 1; }
.copy-card-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.card-body {
  font-size: 0.85rem;
  line-height: 1.7;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.card-body .variation-item {
  padding: 10px;
  margin-bottom: 6px;
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
}
.card-body .variation-item:last-child { margin-bottom: 0; }
.card-body .variation-label { font-size: 0.7rem; color: var(--gray-400); margin-bottom: 4px; }

.output-stats {
  display: flex;
  gap: 14px;
  font-size: 0.75rem;
  color: var(--gray-400);
}
.output-stats i { margin-right: 4px; }

.output-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.output-actions .btn i { font-size: 0.85rem; }

/* ===== PRESETS SECTION ===== */
.presets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.preset-card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  cursor: pointer;
}
.preset-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.preset-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 14px;
}
.preset-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.preset-card p { font-size: 0.82rem; color: var(--gray-500); line-height: 1.6; margin-bottom: 12px; }
.preset-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--gray-100);
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--gray-500);
  margin-right: 4px;
}

/* ===== WHY US ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.why-card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.why-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.why-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-bg);
  line-height: 1;
  margin-bottom: 12px;
}
.why-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.why-card p { font-size: 0.85rem; color: var(--gray-500); line-height: 1.7; }

/* ===== TESTIMONIALS ===== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); }
.testimonial-stars { color: #f59e0b; font-size: 0.85rem; margin-bottom: 12px; }
.testimonial-card p {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 16px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: 0.88rem; }
.testimonial-author span { font-size: 0.78rem; color: var(--gray-400); }

/* ===== FAQ ===== */
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item:hover { border-color: var(--primary); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--white);
  border: none;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--black);
  cursor: pointer;
  transition: background var(--transition);
  text-align: left;
}
.faq-question:hover { background: var(--gray-50); }
.faq-question i { transition: transform var(--transition); font-size: 0.8rem; color: var(--gray-400); }
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--gray-50);
}
.faq-answer p {
  padding: 0 20px 16px;
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.7;
}
.faq-item.active .faq-answer { max-height: 300px; }

/* ===== CONTACT PAGE ===== */
.page-hero {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, #f0f7ff, #ffffff);
  text-align: center;
}
.page-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 12px;
}
.page-hero p { font-size: 1rem; color: var(--gray-500); max-width: 500px; margin: 0 auto; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.services-grid-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}
.service-card-contact {
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}
.service-card-contact:hover,
.service-card-contact.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.service-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin: 0 auto 8px;
  font-size: 1.1rem;
}
.service-card-contact h4 { font-size: 0.8rem; font-weight: 600; }

.contact-details { margin-top: 24px; }
.contact-details h3 { font-size: 1rem; font-weight: 700; margin-bottom: 14px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.contact-item i { font-size: 1.1rem; }
.contact-item strong { display: block; font-size: 0.82rem; }
.contact-item span { font-size: 0.8rem; color: var(--gray-500); }

.contact-form-wrapper {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.contact-form-wrapper h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 4px; }
.contact-form-wrapper > p { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 20px; }

/* ===== FOOTER ===== */
.footer {
  background: var(--black);
  color: var(--gray-300);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--gray-700);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-logo i { color: var(--primary); }
.footer-logo strong { color: var(--primary); }
.footer-brand p { font-size: 0.82rem; margin-bottom: 6px; }
.footer-tagline { font-size: 0.78rem !important; color: var(--gray-500) !important; }

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gray-700);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-300);
  transition: all var(--transition);
  font-size: 0.9rem;
}
.footer-social a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-col a {
  display: block;
  font-size: 0.82rem;
  padding: 4px 0;
  color: var(--gray-400);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--primary); }
.footer-col a i { width: 18px; margin-right: 4px; }

.footer-bottom {
  padding: 20px 0;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.78rem;
  color: var(--gray-500);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .container { padding: 0 20px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .presets-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .why-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .testimonial-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .dashboard { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 60px 0; }
  .section-header { margin-bottom: 32px; }
  .footer { padding: 40px 0 0; }
  .nav-container { padding: 0 20px; }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--gray-200);
    display: none;
    box-shadow: var(--shadow-md);
    z-index: 999;
  }
  .nav-menu.active { display: flex; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .nav-logo img { height: 32px !important; }

  .hero { padding: 100px 0 50px; }
  .hero h1 { font-size: 1.8rem; }
  .hero-subtitle { font-size: 0.95rem; margin-bottom: 24px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 320px; }
  .hero-stats { gap: 16px; flex-wrap: wrap; }
  .hero-stat { min-width: 80px; }
  .stat-number { font-size: 1.4rem; }
  .stat-label { font-size: 0.65rem; }

  .features-grid { grid-template-columns: 1fr; }
  .presets-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .form-row-3 { grid-template-columns: 1fr; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .output-grid { grid-template-columns: 1fr; }
  .dash-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .section-header h2 { font-size: 1.4rem; }
  .section-header p { font-size: 0.9rem; }

  .feature-card { padding: 24px; }
  .preset-card { padding: 20px; }
  .why-card { padding: 20px; }
  .testimonial-card { padding: 20px; }
  .dash-card { padding: 16px; }
  .dash-card-sm { padding: 14px; }

  .preset-chips { padding-bottom: 8px; gap: 5px; }
  .preset-chip { padding: 5px 10px; font-size: 0.68rem; }
  .preset-chip i { font-size: 0.65rem; }

  .services-grid-contact { grid-template-columns: 1fr 1fr; gap: 10px; }
  .page-hero h1 { font-size: 1.6rem; }
  .page-hero { padding: 110px 0 40px; }
  .contact-form-wrapper { padding: 20px; }
  .service-card-contact { padding: 12px; }

  .output-actions { flex-wrap: wrap; }
  .output-actions .btn { flex: 1; min-width: 120px; }

  .footer-col { min-width: 140px; }
  .footer-social { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .nav-container { padding: 0 14px; }

  .hero { padding: 90px 0 40px; }
  .hero h1 { font-size: 1.4rem; letter-spacing: -0.3px; }
  .hero-subtitle { font-size: 0.85rem; }
  .hero-badge { font-size: 0.7rem; padding: 4px 10px; }
  .hero-actions .btn { font-size: 0.85rem; padding: 12px 20px; }
  .hero-stats { flex-direction: row; gap: 8px; justify-content: space-around; }
  .hero-stat { min-width: auto; }
  .stat-number { font-size: 1.2rem; }
  .stat-plus { font-size: 0.9rem; }
  .stat-label { font-size: 0.6rem; }

  .form-row { grid-template-columns: 1fr; }
  .form-group { margin-bottom: 12px; }
  .form-input { padding: 9px 10px; font-size: 0.82rem; }
  .form-helper { font-size: 0.62rem; }

  .checkbox-grid { gap: 4px; }
  .check-label { font-size: 0.75rem; padding: 4px 6px; }

  .section { padding: 40px 0; }
  .section-header { margin-bottom: 24px; }
  .section-header h2 { font-size: 1.2rem; }
  .section-header p { font-size: 0.82rem; }
  .section-badge { font-size: 0.65rem; padding: 4px 10px; }

  .feature-card { padding: 18px; }
  .feature-icon { width: 40px; height: 40px; font-size: 1rem; margin-bottom: 12px; }
  .feature-card h3 { font-size: 0.9rem; }
  .feature-card p { font-size: 0.8rem; }

  .preset-card { padding: 16px; }
  .preset-icon { width: 40px; height: 40px; font-size: 1rem; margin-bottom: 10px; }
  .preset-card h3 { font-size: 0.85rem; }
  .preset-card p { font-size: 0.75rem; margin-bottom: 8px; }
  .preset-tag { font-size: 0.6rem; padding: 2px 8px; }

  .why-card { padding: 16px; }
  .why-number { font-size: 1.8rem; }
  .why-card h3 { font-size: 0.85rem; }
  .why-card p { font-size: 0.78rem; }

  .testimonial-card { padding: 16px; }
  .testimonial-stars { font-size: 0.75rem; }
  .testimonial-card p { font-size: 0.8rem; }
  .testimonial-avatar { width: 36px; height: 36px; font-size: 0.85rem; }
  .testimonial-author strong { font-size: 0.8rem; }

  .dash-card { padding: 14px; }
  .dash-card-header h3 { font-size: 0.85rem; }
  .dash-card-header { margin-bottom: 14px; }
  .dash-card-sm { padding: 12px; }
  .preset-chips { gap: 4px; }
  .preset-chip { padding: 4px 8px; font-size: 0.65rem; }
  .preset-chip i { font-size: 0.6rem; }

  .output-grid { gap: 8px; }
  .output-card { padding: 10px 12px; }
  .card-label { font-size: 0.6rem; letter-spacing: 0.5px; }
  .card-body { font-size: 0.8rem; }
  .result-meta-bar { flex-direction: column; align-items: flex-start; gap: 6px; }
  .output-stats { flex-wrap: wrap; gap: 8px; font-size: 0.68rem; }

  .output-actions { flex-direction: column; }
  .output-actions .btn { width: 100%; font-size: 0.82rem; padding: 10px 16px; }

  .state-box { padding: 30px 14px; }
  .state-icon { font-size: 1.8rem; }
  .state-box h4 { font-size: 0.85rem; }
  .state-box p { font-size: 0.78rem; }

  .faq-question { font-size: 0.82rem; padding: 12px 14px; }
  .faq-answer p { font-size: 0.78rem; padding: 0 14px 12px; }

  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer { padding: 32px 0 0; }
  .footer-logo { font-size: 0.95rem; }
  .footer-brand p { font-size: 0.75rem; }
  .footer-tagline { font-size: 0.7rem !important; }
  .footer-social a { width: 32px; height: 32px; font-size: 0.78rem; }
  .footer-col h4 { font-size: 0.78rem; margin-bottom: 10px; }
  .footer-col a { font-size: 0.75rem; padding: 3px 0; }
  .footer-bottom p { font-size: 0.68rem; }

  .page-hero { padding: 90px 0 30px; }
  .page-hero h1 { font-size: 1.3rem; }
  .page-hero p { font-size: 0.82rem; }
  .services-grid-contact { grid-template-columns: 1fr; gap: 8px; }
  .service-card-contact { padding: 10px; }
  .service-icon { width: 36px; height: 36px; font-size: 0.9rem; }
  .service-card-contact h4 { font-size: 0.72rem; }
  .contact-form-wrapper { padding: 16px; }
  .contact-form-wrapper h2 { font-size: 1.1rem; }
  .contact-item { gap: 10px; }
  .contact-item strong { font-size: 0.75rem; }
  .contact-item span { font-size: 0.72rem; }

  .page-hero + .section { padding-top: 0; }
}

@media (max-width: 360px) {
  .container { padding: 0 10px; }
  .nav-container { padding: 0 10px; }
  .hero h1 { font-size: 1.2rem; }
  .hero-subtitle { font-size: 0.8rem; }
  .preset-grid { grid-template-columns: 1fr; }
}

/* ===== SCROLL TO TOP ===== */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  z-index: 999;
  transition: opacity 0.3s, transform 0.3s;
}
.scroll-top-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}
.scroll-top-btn.visible { display: flex; }
