/* 
  Intec Infosys — Shared Premium Design System
  Includes modern CSS variables, responsive typography, dark/light theme support, 
  glassmorphism tokens, scroll entry effects, and responsive layout systems.
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Colors - Base HSL */
  --hue-primary: 224;   /* Indigo / Corporate Tech */
  --hue-secondary: 162; /* Mint / eCommerce Growth */
  --hue-accent: 38;     /* Amber / ETSY Creative */

  /* Light Theme Colors (Default) */
  --primary: hsl(var(--hue-primary), 76%, 48%);
  --primary-light: hsl(var(--hue-primary), 76%, 58%);
  --primary-dark: hsl(var(--hue-primary), 76%, 38%);
  
  --secondary: hsl(var(--hue-secondary), 85%, 38%);
  --secondary-light: hsl(var(--hue-secondary), 85%, 48%);
  
  --accent: hsl(var(--hue-accent), 92%, 50%);
  --accent-light: hsl(var(--hue-accent), 92%, 60%);

  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --border-color: #e2e8f0;
  --card-bg: rgba(255, 255, 255, 0.8);
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --card-hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --glow-shadow: rgba(30, 64, 175, 0.15);
  
  --header-bg: rgba(255, 255, 255, 0.8);
  --header-border: rgba(226, 232, 240, 0.8);
  
  /* Fonts */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  
  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;
  --header-height-shrink: 60px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

/* Dark Theme Override */
[data-theme="dark"] {
  --bg-primary: #0b0f19;
  --bg-secondary: #111827;
  --bg-tertiary: #1f2937;
  
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --text-muted: #9ca3af;
  
  --border-color: #374151;
  --card-bg: rgba(17, 24, 39, 0.7);
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --card-hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  --glow-shadow: rgba(59, 130, 246, 0.3);
  
  --header-bg: rgba(11, 15, 25, 0.8);
  --header-border: rgba(55, 65, 81, 0.8);
}

/* Reset and Global Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 1rem;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  padding-top: var(--header-height);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 1.25rem;
  position: relative;
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-light);
}

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

/* Grid & Flex Utilities */
.grid {
  display: grid;
  gap: 2rem;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
@media (min-width: 992px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.flex {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.flex-column {
  flex-direction: column;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: height var(--transition-normal), background-color var(--transition-normal);
  
  /* Scroll-driven shrink timeline declarations */
  animation: shrink-header auto linear both;
  animation-timeline: scroll(block root);
  animation-range: 0px 100px;
}

@keyframes shrink-header {
  to {
    height: var(--header-height-shrink);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  }
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.03em;
}

.logo span {
  color: var(--primary);
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
}

nav {
  display: none;
}

@media (min-width: 768px) {
  nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Nav Dropdown */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  box-shadow: var(--card-hover-shadow);
  border-radius: var(--radius-md);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
  z-index: 1001;
  padding: 0.5rem 0;
  backdrop-filter: blur(12px);
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.dropdown-item:hover {
  background: var(--bg-tertiary);
  color: var(--primary);
}

/* Theme Switcher Button */
.theme-toggle {
  background: none;
  border: 1px solid var(--border-color);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.theme-toggle:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--text-muted);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle .sun-icon {
  display: none;
}

[data-theme="dark"] .theme-toggle .moon-icon {
  display: none;
}

[data-theme="dark"] .theme-toggle .sun-icon {
  display: block;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: flex;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

@media (min-width: 768px) {
  .mobile-nav-toggle {
    display: none;
  }
}

.mobile-menu {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-secondary);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  gap: 1.5rem;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  border-top: 1px solid var(--border-color);
  overflow-y: auto;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu .nav-link {
  font-size: 1.2rem;
  font-family: var(--font-heading);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
  border: 1px solid transparent;
  font-family: var(--font-heading);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 14px 0 var(--glow-shadow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  box-shadow: 0 6px 20px 0 var(--glow-shadow);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--border-color);
  box-shadow: var(--card-shadow);
}

.btn-secondary:hover {
  background: var(--bg-tertiary);
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), hsl(var(--hue-accent), 100%, 42%));
  color: #000;
  font-weight: 700;
  box-shadow: 0 4px 14px 0 rgba(245, 158, 11, 0.25);
}

.btn-accent:hover {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  box-shadow: 0 6px 20px 0 rgba(245, 158, 11, 0.35);
  transform: translateY(-2px);
}

.btn-growth {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  color: white;
  box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.2);
}

.btn-growth:hover {
  background: linear-gradient(135deg, var(--secondary-light), var(--secondary));
  box-shadow: 0 6px 20px 0 rgba(16, 185, 129, 0.3);
  transform: translateY(-2px);
}

/* Sections & Cards */
section {
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.bg-alternate {
  background-color: var(--bg-tertiary);
}

.section-tag {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  display: block;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  margin: 1rem auto 0 auto;
  border-radius: var(--radius-full);
}

/* Card */
.card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-hover-shadow);
  border-color: var(--primary-light);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.icon-blue {
  background: rgba(30, 64, 175, 0.1);
  color: var(--primary);
}
[data-theme="dark"] .icon-blue {
  background: rgba(59, 130, 246, 0.2);
}

.icon-mint {
  background: rgba(16, 185, 129, 0.1);
  color: var(--secondary);
}
[data-theme="dark"] .icon-mint {
  background: rgba(16, 185, 129, 0.2);
}

.icon-amber {
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent);
}
[data-theme="dark"] .icon-amber {
  background: rgba(245, 158, 11, 0.2);
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 10vw, 8rem) 0;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, rgba(37, 99, 235, 0) 70%);
  border-radius: var(--radius-full);
  top: -100px;
  right: -100px;
  z-index: 0;
  pointer-events: none;
}

[data-theme="dark"] .hero-glow {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0) 70%);
}

.hero-glow-secondary {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, rgba(16, 185, 129, 0) 70%);
  border-radius: var(--radius-full);
  bottom: -100px;
  left: -100px;
  z-index: 0;
  pointer-events: none;
}

[data-theme="dark"] .hero-glow-secondary {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0) 70%);
}

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

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="dark"] .gradient-text {
  background: linear-gradient(135deg, #60a5fa, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p.subheadline {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.trust-line {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  border-top: 1px solid var(--border-color);
  padding-top: 1.25rem;
  margin-top: 1.5rem;
  display: inline-block;
}

/* Feature highlight section (alternating layouts) */
.highlight-row {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 992px) {
  .highlight-row {
    flex-direction: row;
  }
  .highlight-row.reverse {
    flex-direction: row-reverse;
  }
  .highlight-col {
    flex: 1;
  }
}

.highlight-image-box {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

/* Trust list */
.bullet-list {
  list-style: none;
  margin: 1.5rem 0 2rem 0;
}

.bullet-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.bullet-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: 900;
  font-size: 1.1rem;
}

.bullet-list.bullet-blue li::before {
  color: var(--primary);
}

/* Forms */
.form-container {
  max-width: 650px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 576px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}

input[type="text"],
input[type="email"],
input[type="url"],
select,
textarea {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.15);
}

[data-theme="dark"] input[type="text"]:focus,
[data-theme="dark"] input[type="email"]:focus,
[data-theme="dark"] input[type="url"]:focus,
[data-theme="dark"] select:focus,
[data-theme="dark"] textarea:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* Conditional Logic containers */
.conditional-block {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: none; /* Controlled by JS */
  animation: slide-down 0.3s ease-out forwards;
}

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

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

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-info {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Interactive Guides Dashboard inside Visual template */
.guides-section {
  background: var(--bg-secondary);
  border-top: 2px dashed var(--border-color);
  padding-top: 5rem;
}

.guides-container {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-hover-shadow);
  background: var(--bg-secondary);
}

.guides-header {
  background: var(--bg-tertiary);
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .guides-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.guides-title h3 {
  margin-bottom: 0.25rem;
}

.guides-tabs {
  display: flex;
  overflow-x: auto;
  gap: 0.5rem;
  padding-bottom: 0.25rem;
  -webkit-overflow-scrolling: touch;
}

.guide-tab {
  white-space: nowrap;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.guide-tab:hover, .guide-tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.guide-content {
  display: none;
  padding: 2.5rem;
  animation: fade-in 0.3s ease-out forwards;
}

.guide-content.active {
  display: block;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.guide-content h4 {
  font-size: 1.4rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.guide-content h4:first-of-type {
  margin-top: 0;
}

/* Info pill badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  margin-right: 0.5rem;
}

.badge-blue { background: rgba(37, 99, 235, 0.1); color: var(--primary); }
.badge-mint { background: rgba(16, 185, 129, 0.1); color: var(--secondary); }
.badge-amber { background: rgba(245, 158, 11, 0.1); color: var(--accent); }

/* Custom components inside guides */
.seo-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.seo-table th, .seo-table td {
  border: 1px solid var(--border-color);
  padding: 1rem;
  text-align: left;
  font-size: 0.95rem;
}

.seo-table th {
  background: var(--bg-tertiary);
  font-weight: 700;
  font-family: var(--font-heading);
}

.seo-table tr:hover {
  background: var(--bg-primary);
}

.code-box {
  background: #0f172a;
  color: #f8fafc;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-family: monospace;
  font-size: 0.9rem;
  margin: 1.5rem 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.code-box code {
  white-space: pre;
}

/* Fallback Scroll entry effect using intersection observer for browsers that don't support ViewTimeline */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}
