/* ==========================================================================
   Xigniva SaaS — Public Website Design System
   Themed to match xigniva.com: Inter & Inter Tight typography, Crisp #F3F3F3 light background,
   Pure white cards, Signature Vibrant Red (#FF0000) accents, and smooth gradients.
   ========================================================================== */

:root {
  /* Colors */
  --bg-main: #F3F3F3;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #FAFAFA;
  --bg-surface-card: #FFFFFF;
  --bg-surface-glass: rgba(255, 255, 255, 0.94);
  --bg-section-alt: #EAEAEA;
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-focus: rgba(255, 0, 0, 0.5);
  --text-primary: #171717;
  --text-secondary: #525252;
  --text-muted: #787878;
  --primary: #FF0000;
  --primary-hover: #D90000;
  --primary-active: #B80000;
  --primary-glow: rgba(255, 0, 0, 0.25);
  --accent-red: #FF0000;
  --accent-dark: #101010;
  --accent-cyan: #0284c7;
  --accent-emerald: #059669;
  --accent-amber: #d97706;
  --danger: #dc2626;

  /* Typography matching xigniva.com */
  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Inter Tight', 'Inter', system-ui, -apple-system, sans-serif;
  --font-accent: 'Manrope', 'Inter', sans-serif;

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

  /* Elevation Shadows */
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.06), 0 2px 6px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 12px 28px -4px rgba(0, 0, 0, 0.08), 0 6px 12px -3px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 4px 20px rgba(255, 0, 0, 0.28);
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1240px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-primary);
  scroll-behavior: smooth;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% -10%, rgba(255, 0, 0, 0.06) 0%, transparent 60%),
              radial-gradient(circle at 90% 20%, rgba(255, 0, 0, 0.03) 0%, transparent 40%),
              var(--bg-main);
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }

p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* Gradient Text matching xigniva.com */
.text-gradient {
  background: linear-gradient(135deg, #171717 0%, #FF0000 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-red {
  background: linear-gradient(135deg, #FF0000 0%, #B80000 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-purple {
  background: linear-gradient(135deg, #FF0000 0%, #D80000 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Header & Floating Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
  background: transparent;
  transition: var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 24px;
  padding: 0.65rem 1.75rem;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
  transition: var(--transition);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: #111827;
  letter-spacing: -0.02em;
}

.brand-logo-icon {
  width: 32px;
  height: 32px;
  background: #FF0000;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(255, 0, 0, 0.25);
}

.brand-name {
  font-weight: 800;
  font-size: 1.35rem;
  color: #111827;
  letter-spacing: -0.02em;
}

.brand-badge, .brand-badge-saas {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  background: #FEE2E2;
  color: #DC2626;
  border: 1px solid rgba(220, 38, 38, 0.15);
  letter-spacing: 0.05em;
  line-height: 1;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.85rem;
  list-style: none;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: #4B5563;
  position: relative;
  padding: 0.4rem 0.15rem;
  transition: var(--transition);
}

.nav-link:hover {
  color: #FF0000;
}

.nav-link.active {
  color: #FF0000;
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2.5px;
  background: #FF0000;
  border-radius: 2px;
}

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

.btn-pill-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.65rem 1.6rem;
  border-radius: 9999px;
  background: #FF0000;
  color: #FFFFFF !important;
  border: 1px solid transparent;
  box-shadow: 0 4px 14px rgba(255, 0, 0, 0.25);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-pill-cta:hover {
  background: #D90000;
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.35);
  transform: translateY(-1px);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  background: var(--bg-surface);
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  margin-top: 0.75rem;
  padding: 1.5rem;
}

.mobile-drawer.open {
  display: block;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.7rem 1.45rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

/* Red Vibrant Gradient Button matching xigniva.com */
.btn-primary {
  background: linear-gradient(135deg, #FF0000 0%, #D80000 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(255, 0, 0, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #E60000 0%, #B80000 100%);
  box-shadow: 0 6px 22px rgba(255, 0, 0, 0.42);
  transform: translateY(-2px);
  color: #FFFFFF;
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--text-primary);
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: #FAFAFA;
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-sm {
  font-size: 0.85rem;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  font-size: 1.05rem;
  padding: 0.85rem 2.15rem;
  border-radius: var(--radius-lg);
}

/* Badges & Pills */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-accent);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}

.badge-indigo, .badge-red {
  background: rgba(255, 0, 0, 0.08);
  color: #D80000;
  border: 1px solid rgba(255, 0, 0, 0.22);
}

.badge-dark {
  background: rgba(17, 17, 17, 0.07);
  color: #171717;
  border: 1px solid rgba(17, 17, 17, 0.15);
}

.badge-cyan {
  background: rgba(2, 132, 199, 0.08);
  color: #0284c7;
  border: 1px solid rgba(2, 132, 199, 0.22);
}

.badge-emerald {
  background: rgba(5, 150, 105, 0.08);
  color: #059669;
  border: 1px solid rgba(5, 150, 105, 0.22);
}

/* Cards & Elevated Surfaces */
.glass-card {
  background: var(--bg-surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.glass-card:hover {
  border-color: rgba(255, 0, 0, 0.35);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Section Common */
.section {
  padding: 5.5rem 0;
}

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

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

.section-title {
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

/* Hero Section (2-Column with Visual Mockup & Horizontal Stats) */
.hero-section {
  padding: 2.5rem 0 4.5rem 0;
  position: relative;
  background: radial-gradient(circle at 85% 30%, rgba(255, 0, 0, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 20% 10%, rgba(255, 0, 0, 0.03) 0%, transparent 40%),
              var(--bg-main);
  overflow: hidden;
}

.hero-grid-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.hero-left {
  text-align: left;
}

.hero-pill {
  margin-bottom: 1.25rem;
}

.badge-hero-engine {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: #FEE2E2;
  color: #DC2626;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.hero-title {
  font-size: clamp(2.3rem, 3.8vw, 3.4rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.035em;
  color: #111827;
  margin-bottom: 1.25rem;
}

.text-hero-red {
  color: #FF0000;
}

.hero-subheadline {
  font-size: 1.125rem;
  line-height: 1.68;
  color: #4B5563;
  margin-bottom: 2.25rem;
  max-width: 520px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 600;
  padding: 0.85rem 1.85rem;
  border-radius: 9999px;
  background: #FF0000;
  color: #FFFFFF !important;
  border: 1px solid transparent;
  box-shadow: 0 4px 18px rgba(255, 0, 0, 0.28);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-hero-primary:hover {
  background: #D90000;
  box-shadow: 0 6px 24px rgba(255, 0, 0, 0.4);
  transform: translateY(-2px);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 600;
  padding: 0.85rem 1.85rem;
  border-radius: 9999px;
  background: #FFFFFF;
  color: #111827;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-hero-secondary:hover {
  background: #FAFAFA;
  border-color: rgba(0, 0, 0, 0.25);
  color: #111827;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.hero-visual-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-mockup-img {
  width: 100%;
  max-width: 580px;
  height: auto;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.05));
  transition: transform 0.3s ease;
}

.hero-mockup-img:hover {
  transform: scale(1.01);
}

/* Horizontal Clean Stats Row */
.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.stat-card-clean {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.15rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}

.stat-card-clean:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 0, 0, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.stat-icon-wrap {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon-wrap.icon-red {
  background: #FEE2E2;
  color: #EF4444;
}

.stat-icon-wrap.icon-purple {
  background: #EDE9FE;
  color: #6366F1;
}

.stat-icon-wrap.icon-green {
  background: #DCFCE7;
  color: #10B981;
}

.stat-icon-wrap.icon-orange {
  background: #FFEDD5;
  color: #F59E0B;
}

.stat-content {
  text-align: left;
}

.stat-val {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  color: #DC2626;
  line-height: 1.1;
  margin-bottom: 0.2rem;
  letter-spacing: -0.02em;
}

.stat-lbl {
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 500;
  color: #6B7280;
  line-height: 1.3;
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Template Card */
.template-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.template-card:hover {
  border-color: rgba(255, 0, 0, 0.35);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.template-thumb-wrapper {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #EAEAEA;
}

.template-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.template-card:hover .template-thumb {
  transform: scale(1.05);
}

.template-overlay {
  position: absolute;
  inset: 0;
  background: rgba(16, 16, 16, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  opacity: 0;
  transition: var(--transition);
}

.template-card:hover .template-overlay {
  opacity: 1;
}

.template-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: #FFFFFF;
}

.template-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.template-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.template-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.template-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.template-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

/* Category Filter Tabs */
.filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 2.75rem;
}

.filter-tab {
  padding: 0.55rem 1.25rem;
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  background: #FFFFFF;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.filter-tab:hover, .filter-tab.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 2px 12px rgba(255, 0, 0, 0.35);
}

/* Search Bar */
.search-box {
  display: flex;
  max-width: 520px;
  margin: 0 auto 2.5rem auto;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 0.85rem 1.35rem;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.15);
}

/* Forms */
.form-group {
  margin-bottom: 1.35rem;
}

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

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.15);
}

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

.form-error {
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

/* Alerts */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.alert-success {
  background: rgba(5, 150, 105, 0.1);
  border: 1px solid rgba(5, 150, 105, 0.3);
  color: #047857;
}

.alert-danger {
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: #b91c1c;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-xl);
  background: #FFFFFF;
  max-width: 600px;
  margin: 2rem auto;
  box-shadow: var(--shadow-sm);
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem auto;
  color: var(--text-muted);
}

/* Footer (Contrasting Modern Charcoal matching enterprise xigniva) */
.site-footer {
  margin-top: auto;
  background: #111111;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4.5rem 0 2.5rem 0;
  color: #F5F5F5;
}

.site-footer h4 {
  color: #FFFFFF;
  font-weight: 700;
}

.site-footer p {
  color: #A3A3A3;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

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

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  font-size: 0.9rem;
  color: #A3A3A3;
}

.footer-link:hover {
  color: var(--primary);
  transform: translateX(2px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.875rem;
  color: #737373;
}

/* Viewport Switcher for Template Preview */
.preview-header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.viewport-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-main);
  padding: 0.3rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.viewport-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  transition: var(--transition);
}

.viewport-btn.active, .viewport-btn:hover {
  background: #FFFFFF;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.preview-container {
  display: flex;
  justify-content: center;
  padding: 2.5rem 1rem;
  min-height: calc(100vh - 60px);
  background: #EAEAEA;
}

.preview-frame-wrapper {
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transition: width 0.3s ease;
  width: 100%;
  max-width: 1200px;
  height: 800px;
}

.preview-frame-wrapper.tablet {
  max-width: 768px;
}

.preview-frame-wrapper.mobile {
  max-width: 375px;
}

/* Media Queries / Responsive */
@media (max-width: 1024px) {
  .hero-grid-layout {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }
  .hero-left {
    text-align: center;
  }
  .hero-subheadline {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 0.5rem 0;
  }
  .nav-container {
    border-radius: 16px;
    padding: 0.65rem 1.25rem;
  }
  .nav-menu, .nav-actions {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-stats-row {
    grid-template-columns: 1fr;
  }
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .hero-section {
    padding: 2rem 0 2.5rem 0;
  }
}
