/* ==========================================================================
   DOMAINS TOOLVERSE - GLASSMORPHISM STYLING & DESIGN SYSTEM
   Theme: Soft Slate Ice (#F8FAFC) + Ambient Radial Blurs + Indigo/Violet Accents
   ========================================================================== */

:root {
  --bg-main: #F8FAFC;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --border-color: rgba(226, 232, 240, 0.8);
  --border-focus: rgba(99, 102, 241, 0.5);
  
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;

  --accent-gradient: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
  --accent-gradient-hover: linear-gradient(135deg, #4338CA 0%, #6D28D9 100%);
  --accent-indigo: #4F46E5;
  --accent-violet: #7C3AED;
  --glow-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.3);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --glass-backdrop: blur(16px) saturate(180%);
  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme Overrides */
[data-theme="dark"] {
  --bg-main: #0B0F19;
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-card-hover: rgba(31, 41, 55, 0.85);
  --border-color: rgba(55, 65, 81, 0.6);
  --border-focus: rgba(129, 140, 248, 0.5);

  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #64748B;
  
  --glow-shadow: 0 10px 25px -5px rgba(124, 58, 237, 0.4);
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Ambient Radial Blur Backdrops */
.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.blur-orb-1 {
  position: absolute;
  top: -10%;
  left: -5%;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(238, 242, 255, 0.8) 0%, rgba(238, 242, 255, 0) 70%);
  filter: blur(60px);
}

.blur-orb-2 {
  position: absolute;
  top: 20%;
  right: -10%;
  width: 45vw;
  height: 45vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 232, 255, 0.8) 0%, rgba(243, 232, 255, 0) 70%);
  filter: blur(60px);
}

[data-theme="dark"] .blur-orb-1 {
  background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, transparent 70%);
}

[data-theme="dark"] .blur-orb-2 {
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Glass Card Utility */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
}

/* ==========================================================================
   BLOCK 1: GLOBAL NAVIGATION HEADER
   ========================================================================== */
.global-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-card);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 0;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: var(--glow-shadow);
}

.brand-text-group {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent-indigo);
  text-transform: uppercase;
  margin-top: 2px;
}

.search-trigger-pill {
  flex: 1;
  max-width: 420px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 1.1rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  color: var(--text-muted);
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

[data-theme="dark"] .search-trigger-pill {
  background: rgba(15, 23, 42, 0.6);
}

.search-trigger-pill:hover {
  border-color: var(--accent-indigo);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.shortcut-badge {
  background: rgba(79, 70, 229, 0.08);
  color: var(--accent-indigo);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: monospace;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.category-btn {
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  transition: var(--transition-fast);
}

.category-btn:hover {
  color: var(--accent-indigo);
}

.icon-btn {
  background: rgba(79, 70, 229, 0.06);
  border: 1px solid var(--border-color);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-indigo);
  cursor: pointer;
  transition: var(--transition-fast);
}

.icon-btn:hover {
  background: rgba(79, 70, 229, 0.15);
  border-color: var(--accent-indigo);
}

.nav-divider {
  width: 1px;
  height: 22px;
  background: var(--border-color);
}

.btn-signup {
  background: var(--accent-gradient);
  color: white;
  border: none;
  padding: 0.55rem 1.35rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--glow-shadow);
  transition: var(--transition-fast);
}

.btn-signup:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px -3px rgba(99, 102, 241, 0.4);
}


/* ==========================================================================
   BLOCK 2: TOOL HERO HEADER
   ========================================================================== */
.hero-section {
  padding: 3rem 0 2rem;
  text-align: center;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
}

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

.hero-title-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.hero-title-group h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 1.75rem;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.badge svg {
  color: #10B981;
}

/* ==========================================================================
   BLOCK 3: INTERACTIVE TOOL WORKSPACE CANVAS
   ========================================================================== */
.workspace-canvas {
  margin-bottom: 4rem;
}

.input-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.panel-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-secondary {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-color);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

[data-theme="dark"] .btn-secondary {
  background: rgba(255, 255, 255, 0.05);
}

.btn-secondary:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--accent-indigo);
  color: var(--accent-indigo);
}

.input-container {
  padding: 1.5rem;
}

.url-textarea {
  width: 100%;
  min-height: 150px;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.02);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: monospace;
  font-size: 0.95rem;
  color: var(--text-primary);
  resize: vertical;
  outline: none;
  transition: var(--transition-fast);
}

[data-theme="dark"] .url-textarea {
  background: rgba(0, 0, 0, 0.2);
}

.url-textarea:focus {
  border-color: var(--accent-indigo);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.input-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.action-trigger-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.btn-primary-cta {
  background: var(--accent-gradient);
  color: white;
  border: none;
  padding: 0.9rem 2.5rem;
  border-radius: var(--radius-lg);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--glow-shadow);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: var(--transition-fast);
}

.btn-primary-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(99, 102, 241, 0.4);
}

.btn-primary-cta:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.option-toggles {
  display: flex;
  gap: 1.5rem;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
}

/* OUTPUT PANEL & DATA TABLE */
.output-panel {
  margin-top: 2rem;
  display: none;
}

.output-panel.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

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

.output-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

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

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.data-table th {
  background: rgba(0, 0, 0, 0.02);
  padding: 1rem 1.25rem;
  font-weight: 700;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

[data-theme="dark"] .data-table th {
  background: rgba(255, 255, 255, 0.03);
}

.data-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.domain-cell {
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.age-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.8rem;
  background: rgba(79, 70, 229, 0.1);
  color: var(--accent-indigo);
  border: 1px solid rgba(79, 70, 229, 0.2);
}

.trust-meter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.meter-bar {
  width: 60px;
  height: 6px;
  background: var(--border-color);
  border-radius: 3px;
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 3px;
}

.status-pill {
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-pill.trusted {
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
}

.status-pill.new {
  background: rgba(245, 158, 11, 0.1);
  color: #F59E0B;
}

/* Real-Time Live Feed Bar */
.realtime-bar {
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: #10B981;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ==========================================================================
   BLOCK 4: EDUCATIONAL CONTENT & SEO SECTION
   ========================================================================== */
.seo-section {
  margin-bottom: 4rem;
}

.section-h2 {
  font-size: 1.75rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.step-card {
  padding: 2rem;
  position: relative;
}

.step-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: white;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow: var(--glow-shadow);
}

.step-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

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

.feature-card {
  padding: 1.75rem;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(79, 70, 229, 0.1);
  color: var(--accent-indigo);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* FAQ Accordion */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  display: none;
}

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

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

.faq-icon {
  transition: var(--transition-fast);
}

/* ==========================================================================
   BLOCK 5: RELATED TOOLS CAROUSEL & FOOTER
   ========================================================================== */
.related-section {
  margin-bottom: 4rem;
}

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

.tool-card-link {
  text-decoration: none;
  color: inherit;
}

.tool-card {
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tool-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--accent-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-card h4 {
  font-size: 1rem;
}

.tool-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Footer */
.global-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  max-width: 300px;
}

.footer-col h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition-fast);
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Search Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
}

.modal-overlay.active {
  display: flex;
}

.search-modal {
  width: 90%;
  max-width: 600px;
  overflow: hidden;
}

.modal-search-input {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
  font-size: 1.1rem;
  color: var(--text-primary);
  outline: none;
}

.modal-results {
  max-height: 300px;
  overflow-y: auto;
  padding: 1rem;
}

.search-result-item {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.search-result-item:hover {
  background: rgba(79, 70, 229, 0.1);
  color: var(--accent-indigo);
}

@media (max-width: 768px) {
  .hero-title-group h1 { font-size: 1.85rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .option-toggles { flex-direction: column; gap: 0.75rem; }
}
