/* Universal Tier C Master Light Theme Glassmorphism Design System */
:root {
  --bg-slate: #f8fafc;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --border-glass: rgba(226, 232, 240, 0.8);
  --border-glass-hover: rgba(199, 210, 254, 0.9);
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  /* Accent Colors & Gradients */
  --indigo-primary: #4f46e5;
  --violet-primary: #7c3aed;
  --gradient-accent: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --shadow-glow: 0 8px 24px -4px rgba(99, 102, 241, 0.25);
  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.04), 0 4px 12px -2px rgba(0, 0, 0, 0.02);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'Fira Code', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-slate);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  font-size: 16px;
}

/* Ambient Radial Blur Backgrounds */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.glow-1 {
  top: -10%;
  left: -5%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(238, 242, 255, 0.95) 0%, rgba(243, 232, 255, 0.6) 100%);
}
.glow-2 {
  top: 35%;
  right: -5%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(238, 242, 255, 0.85) 0%, rgba(224, 231, 255, 0.5) 100%);
}

/* Icons */
.icon-xs { width: 15px; height: 15px; flex-shrink: 0; display: inline-block; vertical-align: middle; }
.icon-sm { width: 18px; height: 18px; flex-shrink: 0; display: inline-block; vertical-align: middle; }
.icon { width: 22px; height: 22px; flex-shrink: 0; display: inline-block; vertical-align: middle; }
.hidden { display: none !important; }
.w-full { width: 100%; }

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: #0f172a;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  animation: toastUp 0.3s ease-out;
}
@keyframes toastUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* GLASS CARD CORE */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  z-index: 1;
}
.glass-card:hover {
  border-color: var(--border-glass-hover);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-indigo-gradient {
  background: var(--gradient-accent);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}
.btn-indigo-gradient:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}
.btn-glass-secondary {
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-main);
  border-color: var(--border-glass);
}
.btn-glass-secondary:hover {
  background: #ffffff;
  border-color: #cbd5e1;
}
.btn-nav-ghost {
  background: transparent;
  color: var(--text-main);
  border-color: transparent;
}
.btn-nav-ghost:hover {
  background: rgba(238, 242, 255, 0.8);
  color: var(--indigo-primary);
}
.icon-btn-round {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid var(--border-glass);
  color: var(--indigo-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.icon-btn-round:hover {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.2);
}
.btn-signup {
  border-radius: var(--radius-full);
  padding: 10px 22px;
}
.btn-full { width: 100%; padding: 14px; font-size: 1rem; }

/* 1. GLOBAL NAVBAR */
.global-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
}
.navbar-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--gradient-accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}
.logo-icon-badge svg { width: 22px; height: 22px; }
.brand-text-wrap { display: flex; flex-direction: column; }
.brand-title { font-size: 1.25rem; font-weight: 800; color: var(--text-main); line-height: 1.2; letter-spacing: -0.3px; }
.brand-subtitle-accent {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--indigo-primary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.nav-center { display: flex; align-items: center; justify-content: center; flex: 1; max-width: 480px; margin: 0 20px; }
.search-trigger-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}
.search-trigger-btn:hover { border-color: var(--indigo-primary); box-shadow: 0 4px 12px rgba(79, 70, 229, 0.12); color: var(--text-main); }
.kbd-shortcut {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--indigo-primary);
}

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-divider { width: 1px; height: 24px; background: #e2e8f0; }

/* 2. TOOL HERO HEADER (CENTER ALIGNED) */
.hero-header-section {
  position: relative;
  z-index: 1;
  padding: 40px 24px 28px 24px;
  max-width: 1240px;
  margin: 0 auto;
}
.hero-centered { text-align: center; }

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.breadcrumb-centered { justify-content: center; }
.breadcrumb-nav a { color: var(--text-muted); text-decoration: none; }
.breadcrumb-nav a:hover { color: var(--indigo-primary); }
.crumb-sep { color: #cbd5e1; }
.crumb-current { color: var(--indigo-primary); }

.hero-title-wrap { display: flex; margin-bottom: 16px; }
.hero-title-centered { flex-direction: column; align-items: center; text-align: center; gap: 16px; }

.glowing-hero-icon {
  width: 62px;
  height: 62px;
  border-radius: var(--radius-lg);
  background: var(--gradient-accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
  flex-shrink: 0;
}
.glowing-hero-icon svg { width: 34px; height: 34px; }
.hero-text-centered { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-title { font-size: 2.3rem; font-weight: 800; color: var(--text-main); letter-spacing: -0.5px; line-height: 1.2; }
.hero-subtitle { font-size: 1.08rem; color: var(--text-muted); margin-top: 8px; max-width: 780px; text-align: center; }

/* 3. INTERACTIVE TOOL WORKSPACE CANVAS */
.workspace-main-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.card-header-bar { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border-glass); padding-bottom: 14px; margin-bottom: 18px; }
.card-heading { font-size: 1.05rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }
.section-pill { font-size: 0.75rem; font-weight: 700; padding: 4px 12px; border-radius: var(--radius-full); background: #e0e7ff; color: var(--indigo-primary); text-transform: uppercase; }
.section-pill.code { background: #dcfce7; color: #15803d; }

.form-table-container { display: flex; flex-direction: column; gap: 18px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }

.form-group { display: flex; flex-direction: column; margin-bottom: 8px; }
.text-center { text-align: center; }
.label-centered {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  text-align: center;
  display: block;
}

input[type="text"], select, textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  color: var(--text-main);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input[type="text"]:focus, select:focus, textarea:focus {
  border-color: var(--indigo-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.action-trigger-bar { margin-top: 18px; }

.code-editor-frame { background: #0f172a; border: 1px solid #1e293b; border-radius: var(--radius-md); overflow: hidden; }
.code-top-bar { background: #1e293b; padding: 10px 16px; font-size: 0.78rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; }
.code-pre { padding: 18px; overflow-x: auto; }
.code-pre code { font-family: var(--font-mono); font-size: 0.92rem; color: #34d399; line-height: 1.7; white-space: pre-wrap; word-break: break-all; }
.code-action-bar { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }

/* 4. EDUCATIONAL CONTENT & SEO SECTION */
.educational-seo-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px 24px 60px 24px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
  z-index: 1;
}
.seo-block { display: flex; flex-direction: column; gap: 20px; }
.seo-section-title { font-size: 1.45rem; font-weight: 800; color: var(--text-main); letter-spacing: -0.3px; }

.steps-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-card);
}
.step-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: var(--shadow-glow);
}
.step-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.step-desc { font-size: 0.9rem; color: var(--text-muted); }

.features-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
}
.feature-icon-wrap { font-size: 1.8rem; margin-bottom: 12px; }
.feature-title { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.feature-desc { font-size: 0.88rem; color: var(--text-muted); }

.faq-accordion-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s ease;
}
.faq-item[open] { border-color: var(--indigo-primary); }
.faq-question { font-size: 0.98rem; font-weight: 700; color: var(--text-main); cursor: pointer; outline: none; }
.faq-answer { margin-top: 12px; font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* 5. RELATED TOOLS CAROUSEL & FOOTER */
.global-footer-section {
  background: #0f172a;
  color: #f8fafc;
  padding: 60px 24px 30px 24px;
  position: relative;
  z-index: 1;
}
.carousel-container { max-width: 1240px; margin: 0 auto 60px auto; }
.carousel-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 20px; color: #ffffff; }
.carousel-scroll-row { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 10px; }
.tool-carousel-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: var(--radius-lg);
  padding: 20px;
  min-width: 260px;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.tool-carousel-card:hover { transform: translateY(-3px); border-color: var(--indigo-primary); }
.tool-card-icon { font-size: 1.6rem; margin-bottom: 8px; }
.tool-card-name { font-size: 0.95rem; font-weight: 700; color: #ffffff; margin-bottom: 4px; }
.tool-card-desc { font-size: 0.82rem; color: #94a3b8; }

.footer-columns-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  border-bottom: 1px solid #1e293b;
  padding-bottom: 40px;
}
.footer-brand-title { font-size: 1.3rem; font-weight: 800; margin-bottom: 8px; color: #ffffff; }
.footer-brand-text { font-size: 0.88rem; color: #94a3b8; max-width: 320px; }
.footer-col-title { font-size: 0.9rem; font-weight: 700; color: #ffffff; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 0.88rem; color: #94a3b8; text-decoration: none; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--indigo-primary); }

.footer-bottom-bar { max-width: 1240px; margin: 30px auto 0 auto; text-align: center; font-size: 0.82rem; color: #64748b; }

/* SEARCH MODAL */
.search-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
}
.search-modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}
.search-modal-header { display: flex; align-items: center; padding: 16px; border-bottom: 1px solid var(--border-glass); gap: 10px; }
.search-modal-header input { border: none; box-shadow: none; font-size: 1rem; flex: 1; }
.close-modal-btn { background: none; border: none; font-size: 1.3rem; color: var(--text-muted); cursor: pointer; }
.search-modal-results { padding: 14px; max-height: 320px; overflow-y: auto; }
.search-result-item { padding: 12px 16px; border-radius: var(--radius-md); font-size: 0.92rem; display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.search-result-item:hover { background: var(--bg-slate); }
.badge-mini { font-size: 0.72rem; padding: 3px 8px; border-radius: 4px; background: #e0e7ff; color: var(--indigo-primary); }

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
  .steps-grid-3 { grid-template-columns: 1fr; }
  .features-grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-columns-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .search-trigger-btn { display: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .features-grid-4 { grid-template-columns: 1fr; }
  .footer-columns-grid { grid-template-columns: 1fr; }
}
