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

:root {
  /* Professional Modern Palette - Soothing Blue & Vibrant Orange */
  --primary-900: #1e3a8a;
  --primary-800: #1e40af;
  --primary-700: #2563eb;
  --primary-600: #3b82f6;
  --primary-500: #60a5fa;
  --accent-500: #ff6b35;
  --accent-600: #ff5722;
  --accent-700: #e64a19;
  --success-500: #10b981;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
}

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
  color: var(--gray-800);
  background: #ffffff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --------------------
   LAYOUT
-------------------- */
header, main, footer {
  max-width: 1200px;
  margin: auto;
  padding: 12px 24px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border-bottom: none;
  padding: 16px 24px;
}

header h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.02em;
}

header h1 .logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-900);
  text-decoration: none;
  transition: all 0.3s ease;
}

header h1 .logo:hover {
  transform: translateY(-1px);
}

.logo-icon {
  width: 32px;
  height: 32px;
  display: inline-block;
  transition: transform 0.6s ease;
}

header h1 .logo:hover .logo-icon {
  transform: rotate(360deg);
}

@keyframes sparkleRotate {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(360deg); }
}

.logo-text {
  display: flex;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  text-transform: lowercase;
}

.logo-enchanted {
  color: #1e293b;
  font-weight: 900;
}

.logo-ai {
  color: #ff5722;
  font-weight: 900;
  margin: 0 -2px;
}

.logo-tools {
  color: #64748b;
  font-weight: 600;
}

header h1 a:hover .logo-ai {
  color: #ff6b35;
}

main {
  padding-top: 16px;
  padding-bottom: 24px;
}

/* --------------------
   NAVIGATION
-------------------- */
nav {
  display: flex;
  gap: 8px;
}

nav a {
  padding: 10px 20px;
  text-decoration: none;
  color: var(--gray-700);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-700), var(--accent-600));
  transition: transform 0.3s ease;
}

nav a:hover {
  color: var(--primary-700);
  background: rgba(99, 102, 241, 0.08);
}

nav a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* --------------------
   HEADINGS
-------------------- */
h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--gray-900);
}

h2 {
  font-size: 3.5rem;
  line-height: 1.15;
}

h3 {
  font-size: 2rem;
  margin-bottom: 16px;
}

/* --------------------
   HERO SECTION
-------------------- */
.hero {
  max-width: 820px;
  margin-top: 12px;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h2 {
  background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-700) 50%, var(--accent-600) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  font-size: 2.75rem;
}

.hero p {
  font-size: 1.1rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 12px;
  font-weight: 400;
}

/* --------------------
   CTA BUTTONS
-------------------- */
.hero-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-actions a {
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-actions .button {
  background: linear-gradient(135deg, var(--accent-600) 0%, var(--accent-700) 100%);
  color: #ffffff;
  padding: 10px 24px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(255, 87, 34, 0.4);
  position: relative;
  overflow: hidden;
}

.hero-actions .button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.hero-actions .button:hover::before {
  left: 100%;
}

.hero-actions .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 87, 34, 0.5);
}

.hero-actions a:not(.button) {
  color: var(--primary-700);
  padding: 10px 24px;
  border: 2px solid var(--primary-700);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
}

.hero-actions a:not(.button):hover {
  background: var(--primary-700);
  color: white;
  transform: translateY(-2px);
}

/* --------------------
   SECTIONS
-------------------- */
section {
  margin-top: 40px;
  animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

section h3 {
  color: var(--gray-900);
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}

section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-600), var(--accent-700));
  border-radius: 2px;
}

.why ul, .popular ul {
  list-style: none;
  padding: 0;
  margin-top: 14px;
}

.why li, .popular li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.6;
}

.why li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success-500);
  font-weight: bold;
  font-size: 1.3rem;
}

.popular li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-600);
  font-weight: bold;
  font-size: 1.2rem;
}

.popular a {
  color: var(--primary-700);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.popular a:hover {
  color: var(--accent-700);
  text-decoration: underline;
}

.method p {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.6;
  max-width: 800px;
  margin-top: 12px;
}

/* --------------------
   CATEGORY GRID
-------------------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.category-grid a {
  padding: 20px 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
  border: 2px solid transparent;
  border-radius: 12px;
  text-decoration: none;
  color: var(--gray-800);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.category-grid a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.08) 0%, rgba(255, 87, 34, 0.08) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.category-grid a:hover::before {
  opacity: 1;
}

.category-grid a:hover {
  transform: translateY(-8px);
  border-color: var(--accent-600);
  box-shadow: 0 12px 24px rgba(255, 87, 34, 0.2);
}

/* --------------------
   FOOTER
-------------------- */
footer {
  border-top: 1px solid var(--gray-200);
  background: transparent;
  margin-top: 40px;
  padding: 20px 32px;
  text-align: center;
}

footer p {
  font-size: 0.9rem;
  color: var(--gray-600);
  font-weight: 400;
  margin: 0;
}

/* --------------------
   MOBILE
-------------------- */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
  }

  header h1 {
    font-size: 1.5rem;
  }

  .logo-text {
    font-size: 1.2rem;
  }

  .logo-icon {
    width: 28px;
    height: 28px;
  }

  nav {
    margin-top: 16px;
    flex-wrap: wrap;
  }

  nav a {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  .hero {
    margin-top: 20px;
  }

  .hero h2 {
    font-size: 1.85rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  h3 {
    font-size: 1.4rem;
  }

  section {
    margin-top: 32px;
  }

  main {
    padding-top: 20px;
    padding: 20px 20px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .hero-actions a,
  .hero-actions .button {
    width: 100%;
    text-align: center;
  }

  .category-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-content {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
}

/* --------------------
   FOOTER
-------------------- */
footer {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  margin-top: 40px;
  padding: 32px 24px 16px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto 20px;
}

.footer-section h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.footer-section h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 8px;
}

.footer-section p {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 8px;
}

.contact-email {
  margin-top: 16px;
}

.contact-email a {
  color: var(--primary-700);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.contact-email a:hover {
  color: var(--primary-600);
  text-decoration: underline;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section ul li a {
  color: var(--gray-600);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-section ul li a:hover {
  color: var(--primary-700);
}

.footer-bottom {
  border-top: 1px solid var(--gray-200);
  padding-top: 16px;
  text-align: center;
}

.footer-bottom > p {
  color: var(--gray-600);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.footer-bottom .disclaimers {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px;
  background: #fff9f5;
  border: 1px solid #ffd4c0;
  border-radius: 8px;
  margin-bottom: 8px;
}

.footer-bottom .disclaimer {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 10px;
  line-height: 1.6;
  text-align: left;
}

.footer-bottom .disclaimer:last-child {
  margin-bottom: 0;
}

.footer-bottom .disclaimer strong {
  color: #475569;
  font-weight: 600;
}

.footer-bottom .disclaimer a {
  color: var(--primary-700);
  text-decoration: underline;
}

.footer-bottom .disclaimer a:hover {
  color: var(--accent-600);
}
