:root {
  --bg: #FFFFFF; --fg: #111827; --muted:#6B7280; --card:#F5F3FF; --border:#EDE9FE;
  --primary:#7C3AED; --primary-hover:#8B5CF6;
  --secondary:#06B6D4; --secondary-hover:#06B6D4;
  --success:#22C55E; --warning:#F59E0B; --danger:#EF4444;
  --hero-gradient: linear-gradient(135deg, #7C3AED 0%, #06B6D4 100%);
  --mx: 50%; --my: 50%;

  /* Spacing System */
  --s-xs: 0.25rem;  /* 4px */
  --s-sm: 0.5rem;   /* 8px */
  --s-md: 1rem;     /* 16px */
  --s-lg: 1.5rem;   /* 24px */
  --s-xl: 2rem;     /* 32px */
  --s-2xl: 3rem;    /* 48px */
  --s-3xl: 4rem;    /* 64px */
  --s-4xl: 6rem;    /* 96px */
  --s-5xl: 8rem;    /* 128px */

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 50px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 12px 32px -4px rgba(0,0,0,0.1), 0 4px 12px -2px rgba(0,0,0,0.06);
  --shadow-lg: 0 24px 60px -12px rgba(0,0,0,0.14), 0 8px 32px -4px rgba(0,0,0,0.08);
  --shadow-premium: 0 20px 40px -15px rgba(124, 58, 237, 0.35);

  /* Inputs */
  --input-bg: var(--bg);
  --input-border: var(--border);
  --input-focus: var(--primary);
  --input-radius: var(--r-md);
  --dark-mode-invert: 0;
}
[data-theme="dark"] {
  --bg:#0B1220; --fg:#E5E7EB; --muted:#A78BFA; --card:#1F1B2E; --border:#2A2540;
  --primary:#A78BFA; --primary-hover:#8B5CF6;
  --secondary:#22D3EE; --secondary-hover:#06B6D4;
  --success:#34D399; --warning:#FBBF24; --danger:#F87171;
  --hero-gradient: linear-gradient(135deg, #8B5CF6 0%, #22D3EE 100%);
  --dark-mode-invert: 1;
}
*{box-sizing:border-box}
body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:var(--bg);color:var(--fg);line-height:1.5}
a{color:var(--primary);text-decoration:none;transition:color 0.2s ease}
a:hover{color:var(--primary-hover)}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--fg);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--s-md);
}

.section-header, .section-title {
  margin-bottom: var(--s-2xl);
  text-align: center;
}

.section-header h2, .section-title h2, .section-title h3 {
  font-size: 2.25rem;
  margin-bottom: var(--s-sm);
  position: relative;
  display: inline-block;
}

.section-header p, .section-title p {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Breadcrumbs Redesign */
.page-title .breadcrumbs {
  padding: 0;
  margin: 0;
}

.page-title .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
  gap: var(--s-sm);
  justify-content: flex-start;
}

.page-title .breadcrumbs li {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: var(--muted);
  white-space: nowrap;
}

.page-title .breadcrumbs li a {
  color: var(--muted);
  font-weight: 500;
  transition: all 0.2s ease;
  padding: 4px 8px;
  border-radius: var(--r-sm);
}

.page-title .breadcrumbs li a:hover {
  color: var(--primary);
  background: color-mix(in oklab, var(--primary) 10%, transparent);
}

.page-title .breadcrumbs li:not(:last-child)::after {
  content: "\f285"; /* bi-chevron-right */
  font-family: "bootstrap-icons";
  margin-left: var(--s-sm);
  font-size: 0.75rem;
  color: var(--border);
  font-weight: 900;
}

.page-title .breadcrumbs li.current {
  color: var(--fg);
  font-weight: 600;
  padding: 4px 8px;
}

@media (max-width: 991.98px) {
  .page-title .breadcrumbs ol {
    justify-content: flex-start;
    margin-top: var(--s-sm);
  }
}

header{display:flex;align-items:center;justify-content:space-between;padding:var(--s-md) var(--s-lg);border-bottom:1px solid var(--border);background:var(--bg);position:sticky;top:0;z-index:1030}
nav a{margin:0 var(--s-sm)}
.container{max-width:1100px;margin:0 auto;padding:0 var(--s-lg)}
.btn{display:inline-flex;align-items:center;justify-content:center;padding:12px 28px;border-radius:var(--r-pill);background:var(--primary);color:#fff;font-weight:700;border:none;transition:all 0.3s cubic-bezier(0.16, 1, 0.3, 1);font-size:0.9375rem;cursor:pointer;white-space:nowrap;gap:10px;position:relative;z-index:1;overflow:hidden}
.btn::before{content:"";position:absolute;inset:0;background:var(--hero-gradient);z-index:-1;transition:opacity 0.3s ease}
.btn:hover{transform:translateY(-2px);box-shadow:var(--shadow-premium);color:#fff}
.btn:hover::before{opacity:0.9}
.btn:active{transform:translateY(0);box-shadow:var(--shadow-sm)}
.btn:disabled{opacity:0.6;cursor:not-allowed;transform:none;box-shadow:none}

.btn-primary{background:transparent!important;color:#fff!important}

.btn-secondary{background:var(--secondary)!important;border:none!important;color:#fff!important}
.btn-secondary::before{background:linear-gradient(135deg, var(--secondary) 0%, var(--secondary-hover) 100%)}
.btn-secondary:hover{box-shadow:0 12px 24px -8px rgba(6, 182, 212, 0.5)}

.btn-outline{background:transparent!important;border:2px solid var(--primary)!important;color:var(--primary)!important}
.btn-outline::before{display:none}
.btn-outline:hover{background:var(--primary)!important;color:#fff!important;box-shadow:var(--shadow-premium)}

.btn-glass{background:rgba(255,255,255,0.1)!important;border:1px solid rgba(255,255,255,0.2)!important;color:#fff!important;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.btn-glass::before{display:none}
.btn-glass:hover{background:rgba(255,255,255,0.2)!important;border-color:rgba(255,255,255,0.3)!important;color:#fff!important}

.btn-lg{padding:16px 36px;font-size:1.0625rem}
.btn-sm{padding:8px 20px;font-size:0.875rem}

/* Form System */
.form-group {
  margin-bottom: var(--s-md);
}

label,.form-label{font-weight:600;margin-bottom:var(--s-xs);display:block;font-size:0.875rem;color:var(--fg)}

input,select,textarea,.form-control{width:100%;padding:12px 16px;border:2px solid var(--border);border-radius:var(--r-md);background:var(--bg);color:inherit;transition:all 0.2s ease;font-size:0.9375rem}
input:focus,select:focus,textarea:focus,.form-control:focus{border-color:var(--primary);outline:none;box-shadow:0 0 0 4px color-mix(in oklab, var(--primary) 15%, transparent);background:var(--bg);color:inherit}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 0.7; }

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

/* Input Groups */
.input-group {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.input-group-text {
  display: flex;
  align-items: center;
  padding: 0 var(--s-md);
  color: var(--muted);
  background: var(--card);
  border: 2px solid var(--border);
  border-right: none;
  border-radius: var(--r-md) 0 0 var(--r-md);
  font-size: 1.1rem;
}

.input-group .form-control, 
.input-group input {
  border-radius: 0 var(--r-md) var(--r-md) 0;
  flex: 1 1 auto;
}

.input-group-text + .form-control:focus,
.input-group-text + input:focus {
  z-index: 3;
}

/* Custom Checkbox */
.form-check {
  display: flex;
  align-items: center;
  gap: var(--s-sm);
  cursor: pointer;
  user-select: none;
}

.form-check-input {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 4px;
  appearance: none;
  background: var(--bg);
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  padding: 0;
  margin: 0;
}

.form-check-input:checked {
  background: var(--primary);
  border-color: var(--primary);
}

.form-check-input:checked::after {
  content: "✔";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 10px;
}

.form-check-input:focus {
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 20%, transparent);
}

/* Helper & Error Text */
.form-text {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: var(--s-xs);
}

.invalid-feedback {
  font-size: 0.75rem;
  color: var(--danger);
  margin-top: var(--s-xs);
  display: none;
}
/* Global Components */
.card {
  background: var(--card);
  padding: var(--s-xl);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  height: 100%;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Glass Card Variation */
.glass-card {
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-xl);
  box-shadow: var(--shadow-lg);
}

.flash {
  padding: 12px 16px;
  border-radius: var(--r-sm);
  margin-bottom: var(--s-md);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--s-sm);
}

.flash.success { background: color-mix(in oklab, var(--success) 15%, transparent); color: var(--success); border: 1px solid color-mix(in oklab, var(--success) 20%, transparent); }
.flash.danger { background: color-mix(in oklab, var(--danger) 15%, transparent); color: var(--danger); border: 1px solid color-mix(in oklab, var(--danger) 20%, transparent); }
.flash.warning { background: color-mix(in oklab, var(--warning) 15%, transparent); color: var(--warning); border: 1px solid color-mix(in oklab, var(--warning) 20%, transparent); }

/* Accordion Unification */
.accordion-item {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--r-md) !important;
  margin-bottom: var(--s-sm) !important;
  overflow: hidden;
}

.accordion-button {
  background: var(--card) !important;
  color: var(--fg) !important;
  font-weight: 600 !important;
  padding: var(--s-md) var(--s-lg) !important;
  box-shadow: none !important;
  border: none !important;
}

.accordion-button:not(.collapsed) {
  color: var(--primary) !important;
  background: color-mix(in oklab, var(--primary) 5%, transparent) !important;
}

.accordion-button::after {
  filter: grayscale(1) invert(var(--dark-mode-invert, 0));
}

[data-theme="dark"] .accordion-button::after {
  filter: grayscale(1) invert(1);
}

.accordion-body {
  padding: var(--s-md) var(--s-lg) !important;
  color: var(--muted) !important;
  line-height: 1.6;
}

table{width:100%;border-collapse:collapse}
th,td{padding:10px;border-bottom:1px solid var(--border)}

.hero-card .content {
  max-width: 540px;
}

.social-proof-micro {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-proof-micro .stars {
  color: #FBBF24;
}

/* Mid-page CTA */
.mid-cta-section {
  background: var(--hero-gradient);
  color: #fff;
  border-radius: 32px;
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.1);
}

.mid-cta-section h2 {
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.mid-cta-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -20%;
  width: 100%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  pointer-events: none;
}

/* Vertical Steps */
.process-steps {
  position: relative;
}

.process-step-item {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 50px;
  position: relative;
}

.process-step-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 30px;
  top: 70px;
  bottom: -40px;
  width: 2px;
  background: var(--border);
  z-index: 0;
}

.process-step-icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  box-shadow: 0 8px 16px rgba(124, 58, 237, 0.25);
  z-index: 1;
  border: 4px solid var(--bg);
}

/* Testimonials */
.testimonial-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
  height: 100%;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.verified-badge {
  font-size: 0.75rem;
  background: color-mix(in oklab, var(--success) 10%, transparent);
  color: var(--success);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}

/* AI Demo Visual */
.ai-demo-container {
  perspective: 1000px;
}

.ai-demo-ui {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.02);
  overflow: hidden;
  transform: rotateY(-5deg) rotateX(5deg);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-demo-ui:hover {
  transform: rotateY(0) rotateX(0);
}

.ai-header {
  background: #f8fafc;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* General Crispness */
.text-muted { color: #6B7280 !important; }
.lead { color: #4B5563 !important; }
.dark-background .text-muted, .dark-background .lead { color: rgba(255,255,255,0.7) !important; }
.dark-background .lead { color: rgba(255,255,255,0.9) !important; }
.bg-primary-light { background-color: color-mix(in oklab, var(--primary) 10%, transparent); }
.bg-info-light { background-color: color-mix(in oklab, var(--secondary) 10%, transparent); }
.text-info { color: var(--secondary) !important; }
.bg-secondary-light { background-color: color-mix(in oklab, var(--muted) 10%, transparent); }

.hero-card h1 {
  background: linear-gradient(135deg, #fff 40%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.25));
  letter-spacing: -0.01em;
}

.feature-card {
  transition: all 0.3s ease;
  border: 1px solid var(--border) !important;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md) !important;
}

.step-item {
  position: relative;
}
@media (min-width: 992px) {
  .step-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 54px;
    right: -20px;
    width: 40px;
    height: 2px;
    background: var(--border);
    z-index: 0;
  }
}

.ai-demo-card {
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

#security .bi {
  transition: transform 0.3s ease;
}
#security .col-md-4 .d-flex {
  padding: var(--s-md) var(--s-lg);
  border-radius: var(--r-md);
  transition: all 0.3s ease;
  background: transparent;
}
#security .col-md-4:hover .d-flex {
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.dark-background {
  background: radial-gradient(circle at 0% 0%, #1a162e 0%, #0B1220 100%) !important;
  color: #fff !important;
}

.light-background {
  background-color: #F9FAFB !important;
}

.btn-primary-nav {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff !important;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 700;
  transition: all 0.25s ease;
}
.btn-primary-nav:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}
:root {
  --radius: 12px;
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.06);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.18);
}

html, body { scroll-behavior: smooth; }
body { transition: background-color .3s ease, color .3s ease; }

header {
  backdrop-filter: saturate(1.2) blur(10px);
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--border) 75%, transparent);
  transition: box-shadow .25s ease, background .25s ease, border-color .25s ease;
}
header.scrolled { box-shadow: var(--shadow-sm); }
header .brand { font-weight: 800; font-size: 18px; letter-spacing: .2px; color: var(--fg); }

/* Responsive nav */
.nav-toggle { display: none; align-items: center; justify-content: center; border:1px solid var(--border); background: var(--card); color: var(--fg); border-radius: 10px; width:40px; height:40px; }
.nav-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

@media (max-width: 768px) {
  header { position: sticky; top: 0; }
  header nav { position: absolute; left: 0; right: 0; top: 60px; background: var(--bg); border-bottom:1px solid var(--border); display: grid; gap: 8px; padding: 12px 16px; max-height: 0; overflow: hidden; transition: max-height .25s ease; }
  header nav.open { max-height: 320px; }
  .nav-toggle { display: inline-flex; }
}

section { padding: var(--s-4xl) 0; }
.section-title h2 { font-size: 2.25rem; font-weight: 800; margin-bottom: var(--s-lg); color: var(--fg); letter-spacing: -0.025em; }
.section-title p { color: var(--muted); font-size: 1.125rem; max-width: 600px; margin: 0 auto; }

.product-mockup {
    position: relative;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.1);
    z-index: 1;
    overflow: hidden;
}
.mockup-img {
    display: block;
    width: 100%;
    height: auto;
    filter: contrast(1.02) saturate(1.05);
}
.glass-widget {
    animation: float 6s ease-in-out infinite;
    z-index: 2;
    border: 1px solid rgba(255,255,255,0.4) !important;
    box-shadow: 0 12px 24px rgba(0,0,0,0.15) !important;
}
.glass-widget p.h5 {
    color: #111827 !important;
}
.glass-widget .text-muted {
    color: #4B5563 !important;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

/* Service & Feature Cards */
.service-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--s-xl);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}
.service-number {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 5rem;
    font-weight: 800;
    color: color-mix(in oklab, var(--primary) 5%, transparent);
    line-height: 1;
    z-index: 0;
}
.service-icon {
    width: 64px;
    height: 64px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: var(--s-lg);
    position: relative;
    z-index: 1;
}
.service-card.featured .service-icon { background: var(--secondary); }
.service-content { position: relative; z-index: 1; }
.service-content h4 { font-weight: 800; margin-bottom: var(--s-sm); color: var(--fg); }
.service-content p { color: var(--muted); line-height: 1.6; }

/* Accordion Polish */
.accordion-item { border: 1px solid var(--border); border-radius: var(--r-md) !important; margin-bottom: var(--s-sm); overflow: hidden; background: var(--bg); }
.accordion-button { font-weight: 700; padding: var(--s-md) var(--s-lg); color: var(--fg); background: var(--bg) !important; box-shadow: none !important; }
.accordion-button:not(.collapsed) { color: var(--primary); border-bottom: 1px solid var(--border); }
.accordion-body { padding: var(--s-lg); color: var(--muted); line-height: 1.6; }

/* Contact Info Items */
.info-item {
    background: var(--card);
    padding: var(--s-lg);
    border-radius: var(--r-md);
    margin-bottom: var(--s-md);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}
.info-item:hover { border-color: var(--primary); transform: translateX(5px); }
.info-item i { font-size: 1.5rem; color: var(--primary); margin-right: var(--s-md); }
.info-item h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.info-item p { margin: 0; color: var(--muted); }
.pricing-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--s-xl);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: scale(1.05);
    z-index: 2;
    background: var(--bg);
}
.pricing-card .plan-name { font-size: 1.5rem; font-weight: 800; margin-bottom: var(--s-sm); }
.pricing-card .price { font-size: 3rem; font-weight: 800; margin: var(--s-md) 0; }
.pricing-card .price .currency { font-size: 1.5rem; vertical-align: super; }
.pricing-card .price .period { font-size: 1rem; color: var(--muted); font-weight: 400; }
.pricing-card .btn-plan { margin-top: auto; }

.featured-badge {
    background: var(--primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: var(--r-pill);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: var(--s-md);
}

.feature-list { list-style: none; padding: 0; margin: var(--s-lg) 0; text-align: left; }
.feature-list li { margin-bottom: var(--s-sm); display: flex; align-items: center; gap: 10px; }
.feature-list li i { color: var(--success); font-size: 1.25rem; }
.feature-list li.disabled { color: var(--muted); text-decoration: line-through; opacity: 0.6; }
.feature-list li.disabled i { color: var(--muted); }

/* Buttons */
.btn { box-shadow: 0 8px 20px color-mix(in oklab, var(--primary) 18%, transparent); transition: transform .08s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 28px color-mix(in oklab, var(--primary) 22%, transparent); }
.btn:active { transform: translateY(0); box-shadow: 0 6px 16px color-mix(in oklab, var(--primary) 16%, transparent); }
.btn:focus-visible { outline: 2px solid var(--secondary); outline-offset: 2px; }
.btn-outline { backdrop-filter: blur(4px); }

/* Cards */
.card { box-shadow: var(--shadow-sm); transition: transform .12s ease, box-shadow .2s ease, background-color .25s ease; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Hero polish */
.hero .display-6, .hero .h1 { letter-spacing: .2px; }
.hero p.lead { color: var(--muted); }

/* Footer */
footer.container { color: var(--muted); }

/* Cookie banner */
.cookie-banner { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 1200; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-sm); }
.cookie-banner .cookie-content { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 14px; }
.cookie-banner .cookie-text { color: var(--muted); }
.cookie-banner .cookie-actions { display: flex; align-items: center; gap: 8px; }

/* Forms */
.form-label { font-weight: 600; color: var(--muted); margin-bottom: 6px; }
input, select, textarea { transition: border-color .2s ease, box-shadow .2s ease; }
input:focus, select:focus, textarea:focus { border-color: color-mix(in oklab, var(--primary) 65%, var(--border)); box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 20%, transparent); outline: none; }

/* Tables */
table { border-radius: var(--radius); overflow: hidden; background: color-mix(in oklab, var(--card) 90%, transparent); }
tr:hover td { background: color-mix(in oklab, var(--primary) 6%, transparent); }

/* Alerts Redesign */
.alerts-container {
    margin-top: var(--s-md);
    margin-bottom: var(--s-md);
}

.alert {
    border: none;
    border-radius: var(--r-md);
    padding: 12px 20px;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    animation: alertFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes alertFadeIn {
    from { opacity: 0; transform: translateY(-10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.alert-success { background: #ecfdf5 !important; color: #065f46 !important; border-left: 4px solid #10b981 !important; }
.alert-danger { background: #fef2f2 !important; color: #991b1b !important; border-left: 4px solid #ef4444 !important; }
.alert-warning { background: #fffbeb !important; color: #92400e !important; border-left: 4px solid #f59e0b !important; }
.alert-info { background: #eff6ff !important; color: #1e40af !important; border-left: 4px solid #3b82f6 !important; }

[data-theme="dark"] .alert-success { background: rgba(16, 185, 129, 0.1) !important; color: #34d399 !important; }
[data-theme="dark"] .alert-danger { background: rgba(239, 68, 68, 0.1) !important; color: #f87171 !important; }
[data-theme="dark"] .alert-warning { background: rgba(245, 158, 11, 0.1) !important; color: #fbbf24 !important; }
[data-theme="dark"] .alert-info { background: rgba(59, 130, 246, 0.1) !important; color: #60a5fa !important; }

.alert .btn-close {
    padding: 1.25rem;
    font-size: 0.75rem;
}

/* Brand & Language dropdown */
.brand-logo { height: 32px; width: auto; display: block; transition: transform 0.3s ease; }
.brand-logo:hover { transform: scale(1.02); }

/* Navbar CTA Redesign */
.navmenu .btn-primary {
    padding: 10px 18px !important;
    border-radius: 999px !important;
    background: var(--hero-gradient) !important;
    border: none !important;
    box-shadow: var(--shadow-premium) !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-left: var(--s-md);
    position: relative;
    top: -1px;
    height: 42px;
}

.navmenu .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4) !important;
    opacity: 0.95;
    color: #fff !important;
}

.navmenu .btn-primary::before {
    display: none !important;
}

.lang-dropdown { position: relative; display: inline-block; margin-left: 12px; }
.lang-trigger { 
    background: rgba(255, 255, 255, 0.05); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 10px; 
    padding: 8px 12px; 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    cursor: pointer; 
    transition: all 0.2s ease;
    color: var(--fg);
}
.lang-trigger:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); }
.lang-trigger .fi { border-radius: 2px; }

.lang-menu { 
    position: absolute; 
    right: 0; 
    top: calc(100% + 10px); 
    background: rgba(255, 255, 255, 0.8); 
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3); 
    border-radius: 14px; 
    box-shadow: var(--shadow-lg); 
    padding: 8px; 
    display: grid; 
    gap: 4px; 
    min-width: 160px; 
    opacity: 0; 
    transform: translateY(-10px) scale(0.95); 
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); 
    pointer-events: none; 
    z-index: 1100; 
}
[data-theme="dark"] .lang-menu { background: rgba(30, 41, 59, 0.8); border-color: rgba(255, 255, 255, 0.1); }

.lang-menu a { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    padding: 10px 12px; 
    border-radius: 10px; 
    color: var(--fg); 
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}
.lang-menu a:hover { background: var(--primary); color: #fff; }
.lang-menu a.active { background: color-mix(in oklab, var(--primary) 10%, transparent); color: var(--primary); }
.lang-menu a.active:hover { background: var(--primary); color: #fff; }

.lang-dropdown:hover .lang-menu, .lang-dropdown:focus-within .lang-menu { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.lang-label { font-size: 0.9rem; }

@media (max-width: 1199px) {
    .navmenu .lang-dropdown { margin: 10px 0; width: 100%; }
    .navmenu .lang-trigger { width: 100%; justify-content: space-between; padding: 12px; background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.08); }
    [data-theme="dark"] .navmenu .lang-trigger { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }
    .navmenu .lang-menu { 
        position: static; 
        opacity: 1; 
        transform: none; 
        pointer-events: auto; 
        box-shadow: none; 
        background: transparent; 
        border: none; 
        display: none; 
        padding-left: 15px;
        margin-top: 5px;
    }
    .navmenu .lang-dropdown:focus-within .lang-menu,
    .navmenu .lang-dropdown:active .lang-menu { display: grid; }
    .navmenu .lang-menu a { background: transparent!important; color: var(--fg)!important; }
    .navmenu .btn-primary {
        height: 42px;
        padding: 10px 18px !important;
        border-radius: 999px !important;
        background: var(--hero-gradient) !important;
        border: none !important;
        box-shadow: var(--shadow-premium) !important;
        font-size: 0.875rem !important;
        font-weight: 600 !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        margin-left: var(--s-md);
        margin-top: 10px;
    }
    .navmenu .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4) !important;
        opacity: 0.95;
        color: #fff !important;
    }
    .navmenu .btn-primary::before { display: none; }
}

/* Pricing Page Optimizations */
.pricing .pricing-card {
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 3rem 2.5rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}
.pricing .pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in oklab, var(--primary) 20%, var(--border));
}

.pricing .pricing-card.featured {
  border: 2px solid var(--primary) !important;
  transform: scale(1.03);
  z-index: 10;
  box-shadow: var(--shadow-lg), 0 0 20px rgba(124, 58, 237, 0.1);
}
.pricing .pricing-card.featured:hover {
  transform: scale(1.03) translateY(-10px);
  box-shadow: var(--shadow-lg), 0 15px 30px rgba(124, 58, 237, 0.2);
}

.pricing .featured-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--hero-gradient);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
  letter-spacing: 0.05em;
  border: 2px solid var(--bg);
}

.pricing .plan-name { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.pricing .plan-description { font-size: 0.95rem; color: var(--muted); line-height: 1.5; margin-bottom: 0; }

.pricing .price { display: flex; align-items: baseline; gap: 4px; margin: 1.5rem 0; justify-content: center; }
.pricing .price .currency { font-size: 1.25rem; font-weight: 600; color: var(--muted); }
.pricing .price .amount { font-size: 3.5rem; font-weight: 800; color: var(--fg); letter-spacing: -0.03em; }
.pricing .price .period { font-size: 1rem; color: var(--muted); }

.pricing .feature-list { list-style: none; padding: 0; margin: 0; }
.pricing .feature-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; font-size: 0.95rem; color: var(--fg); }
.pricing .feature-list li i { color: var(--primary); font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
.pricing .feature-list li.disabled { opacity: 0.5; }
.pricing .feature-list li.disabled i { color: var(--muted); }

.reassurance-text { font-size: 0.85rem; color: var(--muted); opacity: 0.8; font-weight: 500; }

.trust-box { border-radius: 20px; transition: all 0.3s ease; border: 1px solid var(--border)!important; background: var(--bg)!important; }
.trust-box:hover { transform: translateY(-3px); box-shadow: var(--shadow-md)!important; border-color: color-mix(in oklab, var(--primary) 15%, var(--border))!important; }

@media (max-width: 991px) {
  .pricing .pricing-card.featured { transform: none; margin: 2rem 0; }
  .pricing .pricing-card.featured:hover { transform: translateY(-8px); }
}

/* Footer layout */
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-logo { height: 22px; width: auto; display: block; }
.site-footer .footer-links a { margin: 0 8px; color: var(--muted); }

/* Theme switch */
.theme-switch { display: inline-flex; align-items: center; gap: 8px; color: var(--fg); padding: 6px 8px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); text-decoration: none; line-height: 1; }
.theme-switch:hover { border-color: color-mix(in oklab, var(--primary) 40%, var(--border)); box-shadow: 0 4px 14px color-mix(in oklab, var(--primary) 18%, transparent); }
.theme-switch .switch-track { position: relative; width: 42px; height: 22px; background: color-mix(in oklab, var(--fg) 10%, var(--bg)); border: 1px solid var(--border); border-radius: 999px; display: inline-block; vertical-align: middle; }
.theme-switch .switch-thumb { position: absolute; top: 50%; left: 2px; transform: translateY(-50%); width: 18px; height: 18px; background: var(--bg); border: 1px solid var(--border); border-radius: 50%; transition: left .2s ease, background .2s ease, border-color .2s ease; }
.theme-switch[aria-checked="true"] .switch-track { background: color-mix(in oklab, var(--primary) 35%, var(--bg)); border-color: color-mix(in oklab, var(--primary) 60%, var(--border)); }
.theme-switch[aria-checked="true"] .switch-thumb { left: 22px; border-color: color-mix(in oklab, var(--primary) 55%, var(--border)); }

/* Nav hover underline */
header nav a { position: relative; }
header nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; opacity: .85; }
header nav a:hover::after { transform: scaleX(1); }

/* Hero spotlight */
.hero { position: relative; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px circle at var(--mx,50%) var(--my,50%), color-mix(in oklab, var(--secondary) 12%, transparent), transparent 35%); opacity: .5; transition: opacity .2s ease; }
@media (prefers-reduced-motion: reduce) { .hero::after { display: none; } }

/* Scroll to top button */
#toTop.show { opacity: 1 !important; transform: translateY(0) !important; pointer-events: auto !important; }

/* Billing toggle */
.billing-toggle { position: relative; width: 46px; height: 26px; border-radius: 999px; border: 1px solid var(--border); background: color-mix(in oklab, var(--fg) 10%, var(--bg)); padding: 0; display: inline-block; vertical-align: middle; cursor: pointer; }
.billing-toggle .knob { position: absolute; top: 50%; left: 2px; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 50%; background: var(--bg); border: 1px solid var(--border); transition: left .2s ease; }
.billing-toggle[aria-checked="true"] { background: color-mix(in oklab, var(--primary) 35%, var(--bg)); border-color: color-mix(in oklab, var(--primary) 60%, var(--border)); }
.billing-toggle[aria-checked="true"] .knob { left: 22px; border-color: color-mix(in oklab, var(--primary) 60%, var(--border)); }
.save-badge { display: inline-block; margin-left: 6px; font-size: 11px; color: var(--primary); background: color-mix(in oklab, var(--primary) 15%, transparent); border: 1px solid var(--border); border-radius: 999px; padding: 2px 6px; }
