/* ============================================================
   SWS Design System — Shop2world Web Service
   AI 챗봇 빌더 SaaS 플랫폼 CSS
   Version 1.0.0
   ============================================================ */

/* ────────────────────────────────────────────────────────────
   0. GOOGLE FONTS
   ──────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ────────────────────────────────────────────────────────────
   1. DESIGN TOKENS  (CSS Custom Properties)
   ──────────────────────────────────────────────────────────── */
:root {
  /* ── Brand Colors ── */
  --sws-primary:          #667eea;
  --sws-primary-dark:     #5568d4;
  --sws-secondary:        #764ba2;
  --sws-accent:           #f093fb;
  --sws-accent-soft:      rgba(240, 147, 251, .15);

  /* ── Gradients ── */
  --sws-gradient:         linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --sws-gradient-h:       linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  --sws-gradient-accent:  linear-gradient(135deg, #667eea 0%, #f093fb 100%);
  --sws-gradient-warm:    linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --sws-gradient-subtle:  linear-gradient(135deg, rgba(102,126,234,.12) 0%, rgba(118,75,162,.12) 100%);
  --sws-gradient-radial:  radial-gradient(ellipse at 50% 0%, rgba(102,126,234,.18) 0%, transparent 60%);

  /* ── Background & Surface ── */
  --sws-bg:               #0a0a1a;
  --sws-bg-alt:           #0e0e24;
  --sws-surface-1:        rgba(255, 255, 255, .03);
  --sws-surface-2:        rgba(255, 255, 255, .05);
  --sws-surface-3:        rgba(255, 255, 255, .06);
  --sws-surface-hover:    rgba(255, 255, 255, .08);
  --sws-surface-active:   rgba(255, 255, 255, .10);

  /* ── Text ── */
  --sws-text:             #e8e8f0;
  --sws-text-secondary:   #a0a0c0;
  --sws-text-muted:       #6b6b8a;
  --sws-text-inverse:     #0a0a1a;

  /* ── Semantic Colors ── */
  --sws-success:          #00c851;
  --sws-success-soft:     rgba(0, 200, 81, .12);
  --sws-warning:          #ffbb33;
  --sws-warning-soft:     rgba(255, 187, 51, .12);
  --sws-error:            #ff4444;
  --sws-error-soft:       rgba(255, 68, 68, .12);
  --sws-info:             #33b5e5;
  --sws-info-soft:        rgba(51, 181, 229, .12);

  /* ── Borders ── */
  --sws-border:           rgba(255, 255, 255, .06);
  --sws-border-light:     rgba(255, 255, 255, .10);
  --sws-border-focus:     rgba(102, 126, 234, .50);
  --sws-border-radius-xs: 4px;
  --sws-border-radius-sm: 6px;
  --sws-border-radius:    8px;
  --sws-border-radius-md: 12px;
  --sws-border-radius-lg: 16px;
  --sws-border-radius-xl: 24px;
  --sws-border-radius-2xl:32px;
  --sws-border-radius-full:9999px;

  /* ── Typography ── */
  --sws-font:             'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --sws-font-mono:        'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  --sws-text-xs:          .75rem;     /* 12px */
  --sws-text-sm:          .875rem;    /* 14px */
  --sws-text-base:        1rem;       /* 16px */
  --sws-text-lg:          1.125rem;   /* 18px */
  --sws-text-xl:          1.25rem;    /* 20px */
  --sws-text-2xl:         1.5rem;     /* 24px */
  --sws-text-3xl:         2rem;       /* 32px */
  --sws-text-4xl:         2.75rem;    /* 44px */
  --sws-text-5xl:         3.5rem;     /* 56px */

  --sws-leading-none:     1;
  --sws-leading-tight:    1.2;
  --sws-leading-snug:     1.35;
  --sws-leading-normal:   1.6;
  --sws-leading-relaxed:  1.75;

  --sws-tracking-tight:   -.02em;
  --sws-tracking-normal:  0;
  --sws-tracking-wide:    .02em;
  --sws-tracking-wider:   .05em;
  --sws-tracking-widest:  .1em;

  /* ── Spacing ── */
  --sws-space-1:  .25rem;   /* 4px  */
  --sws-space-2:  .5rem;    /* 8px  */
  --sws-space-3:  .75rem;   /* 12px */
  --sws-space-4:  1rem;     /* 16px */
  --sws-space-5:  1.25rem;  /* 20px */
  --sws-space-6:  1.5rem;   /* 24px */
  --sws-space-8:  2rem;     /* 32px */
  --sws-space-10: 2.5rem;   /* 40px */
  --sws-space-12: 3rem;     /* 48px */
  --sws-space-16: 4rem;     /* 64px */
  --sws-space-20: 5rem;     /* 80px */
  --sws-space-24: 6rem;     /* 96px */
  --sws-space-32: 8rem;     /* 128px */

  /* ── Shadows ── */
  --sws-shadow-xs:   0 1px 2px rgba(0,0,0,.3);
  --sws-shadow-sm:   0 2px 4px rgba(0,0,0,.3);
  --sws-shadow:      0 4px 12px rgba(0,0,0,.35);
  --sws-shadow-md:   0 8px 24px rgba(0,0,0,.4);
  --sws-shadow-lg:   0 12px 40px rgba(0,0,0,.45);
  --sws-shadow-xl:   0 20px 60px rgba(0,0,0,.5);
  --sws-shadow-glow: 0 0 30px rgba(102,126,234,.25);
  --sws-shadow-glow-accent: 0 0 30px rgba(240,147,251,.20);
  --sws-shadow-glow-sm: 0 0 15px rgba(102,126,234,.18);

  /* ── Transitions ── */
  --sws-ease:        cubic-bezier(.4, 0, .2, 1);
  --sws-ease-in:     cubic-bezier(.4, 0, 1, 1);
  --sws-ease-out:    cubic-bezier(0, 0, .2, 1);
  --sws-ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
  --sws-duration:    .25s;
  --sws-duration-slow: .4s;
  --sws-duration-fast: .15s;

  /* ── Z-index Scale ── */
  --sws-z-dropdown: 100;
  --sws-z-sticky:   200;
  --sws-z-fixed:    300;
  --sws-z-overlay:  400;
  --sws-z-modal:    500;
  --sws-z-popover:  600;
  --sws-z-tooltip:  700;
  --sws-z-toast:    800;

  /* ── Container ── */
  --sws-container:  1200px;
  --sws-container-sm: 640px;
  --sws-container-md: 960px;
  --sws-container-lg: 1400px;
}


/* ────────────────────────────────────────────────────────────
   2. RESET & BASE
   ──────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--sws-font);
  font-size: var(--sws-text-base);
  line-height: var(--sws-leading-normal);
  color: var(--sws-text);
  background: var(--sws-bg);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Subtle radial glow behind the page hero area */
body::before {
  content: '';
  position: fixed;
  top: -30%;
  left: 50%;
  width: 120%;
  height: 80%;
  transform: translateX(-50%);
  background: var(--sws-gradient-radial);
  pointer-events: none;
  z-index: -1;
}

img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--sws-primary); text-decoration: none; transition: color var(--sws-duration) var(--sws-ease); }
a:hover { color: var(--sws-accent); }

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  color: var(--sws-text);
  font-weight: 700;
  line-height: var(--sws-leading-tight);
  letter-spacing: var(--sws-tracking-tight);
}

h1 { font-size: var(--sws-text-5xl); }
h2 { font-size: var(--sws-text-4xl); }
h3 { font-size: var(--sws-text-3xl); }
h4 { font-size: var(--sws-text-2xl); }
h5 { font-size: var(--sws-text-xl); }
h6 { font-size: var(--sws-text-lg); }

p {
  color: var(--sws-text-secondary);
  line-height: var(--sws-leading-normal);
}

::selection {
  background: rgba(102, 126, 234, .35);
  color: #fff;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--sws-bg); }
::-webkit-scrollbar-thumb {
  background: var(--sws-surface-3);
  border-radius: var(--sws-border-radius-full);
}
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.12); }


/* ────────────────────────────────────────────────────────────
   3. LAYOUT — Containers & Grid
   ──────────────────────────────────────────────────────────── */
.sws-container {
  width: 100%;
  max-width: var(--sws-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--sws-space-6);
  padding-right: var(--sws-space-6);
}
.sws-container--sm { max-width: var(--sws-container-sm); }
.sws-container--md { max-width: var(--sws-container-md); }
.sws-container--lg { max-width: var(--sws-container-lg); }

/* Section spacing */
.sws-section {
  padding-top: var(--sws-space-24);
  padding-bottom: var(--sws-space-24);
  position: relative;
}
.sws-section--sm {
  padding-top: var(--sws-space-16);
  padding-bottom: var(--sws-space-16);
}
.sws-section--lg {
  padding-top: var(--sws-space-32);
  padding-bottom: var(--sws-space-32);
}

/* Responsive Grid */
.sws-grid {
  display: grid;
  gap: var(--sws-space-8);
}
.sws-grid--1 { grid-template-columns: 1fr; }
.sws-grid--2 { grid-template-columns: repeat(2, 1fr); }
.sws-grid--3 { grid-template-columns: repeat(3, 1fr); }
.sws-grid--4 { grid-template-columns: repeat(4, 1fr); }

.sws-grid--gap-sm  { gap: var(--sws-space-4); }
.sws-grid--gap-md  { gap: var(--sws-space-6); }
.sws-grid--gap-lg  { gap: var(--sws-space-10); }
.sws-grid--gap-xl  { gap: var(--sws-space-16); }

/* Flex utilities */
.sws-flex          { display: flex; }
.sws-flex--inline  { display: inline-flex; }
.sws-flex--wrap    { flex-wrap: wrap; }
.sws-flex--col     { flex-direction: column; }
.sws-flex--center  { align-items: center; justify-content: center; }
.sws-flex--between { justify-content: space-between; }
.sws-flex--start   { justify-content: flex-start; }
.sws-flex--end     { justify-content: flex-end; }
.sws-items-center  { align-items: center; }
.sws-items-start   { align-items: flex-start; }
.sws-items-end     { align-items: flex-end; }
.sws-gap-2  { gap: var(--sws-space-2); }
.sws-gap-3  { gap: var(--sws-space-3); }
.sws-gap-4  { gap: var(--sws-space-4); }
.sws-gap-6  { gap: var(--sws-space-6); }
.sws-gap-8  { gap: var(--sws-space-8); }


/* ────────────────────────────────────────────────────────────
   4. KEYFRAME ANIMATIONS
   ──────────────────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(20px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(102,126,234,.15); }
  50%      { box-shadow: 0 0 40px rgba(102,126,234,.35); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .6; }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.9); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── Scroll-triggered animations ── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s var(--sws-ease), transform .7s var(--sws-ease);
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger children */
.animate-on-scroll.is-visible .animate-child:nth-child(1) { transition-delay: .05s; }
.animate-on-scroll.is-visible .animate-child:nth-child(2) { transition-delay: .1s; }
.animate-on-scroll.is-visible .animate-child:nth-child(3) { transition-delay: .15s; }
.animate-on-scroll.is-visible .animate-child:nth-child(4) { transition-delay: .2s; }
.animate-on-scroll.is-visible .animate-child:nth-child(5) { transition-delay: .25s; }
.animate-on-scroll.is-visible .animate-child:nth-child(6) { transition-delay: .3s; }

.animate-child {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s var(--sws-ease), transform .5s var(--sws-ease);
}
.animate-on-scroll.is-visible .animate-child {
  opacity: 1;
  transform: translateY(0);
}

/* Direction variants */
.animate-on-scroll--left  { transform: translateX(-30px); }
.animate-on-scroll--right { transform: translateX(30px); }
.animate-on-scroll--left.is-visible,
.animate-on-scroll--right.is-visible { transform: translateX(0); }
.animate-on-scroll--scale { transform: scale(.95); }
.animate-on-scroll--scale.is-visible { transform: scale(1); }

/* Named animation helpers */
.anim-float  { animation: float 4s ease-in-out infinite; }
.anim-glow   { animation: glow 3s ease-in-out infinite; }
.anim-pulse  { animation: pulse 2s ease-in-out infinite; }
.anim-spin   { animation: spin 1s linear infinite; }
.anim-shimmer {
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.04) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 2s linear infinite;
}


/* ────────────────────────────────────────────────────────────
   5. COMPONENT — Navigation
   ──────────────────────────────────────────────────────────── */
.sws-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--sws-z-fixed);
  padding: var(--sws-space-4) 0;
  background: rgba(10, 10, 26, .72);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--sws-border);
  transition: background var(--sws-duration-slow) var(--sws-ease),
              padding var(--sws-duration-slow) var(--sws-ease),
              box-shadow var(--sws-duration-slow) var(--sws-ease);
}
.sws-nav.is-scrolled {
  padding: var(--sws-space-3) 0;
  background: rgba(10, 10, 26, .88);
  box-shadow: var(--sws-shadow-md);
}
.sws-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--sws-container);
  margin: 0 auto;
  padding: 0 var(--sws-space-6);
}
.sws-nav__logo {
  display: flex;
  align-items: center;
  gap: var(--sws-space-3);
  font-size: var(--sws-text-xl);
  font-weight: 800;
  color: var(--sws-text);
  text-decoration: none;
  letter-spacing: var(--sws-tracking-tight);
}
.sws-nav__logo-icon {
  width: 36px;
  height: 36px;
  background: var(--sws-gradient);
  border-radius: var(--sws-border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--sws-text-sm);
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.sws-nav__links {
  display: flex;
  align-items: center;
  gap: var(--sws-space-8);
}
.sws-nav__link {
  color: var(--sws-text-secondary);
  font-size: var(--sws-text-sm);
  font-weight: 500;
  transition: color var(--sws-duration) var(--sws-ease);
  position: relative;
}
.sws-nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--sws-gradient);
  border-radius: 1px;
  transition: width var(--sws-duration) var(--sws-ease);
}
.sws-nav__link:hover,
.sws-nav__link.is-active {
  color: var(--sws-text);
}
.sws-nav__link:hover::after,
.sws-nav__link.is-active::after {
  width: 100%;
}
.sws-nav__actions {
  display: flex;
  align-items: center;
  gap: var(--sws-space-4);
}

/* Hamburger — mobile */
.sws-nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sws-space-2);
  z-index: calc(var(--sws-z-fixed) + 10);
}
.sws-nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--sws-text);
  border-radius: 2px;
  transition: transform var(--sws-duration) var(--sws-ease),
              opacity var(--sws-duration) var(--sws-ease);
}
.sws-nav__hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sws-nav__hamburger.is-open span:nth-child(2) { opacity: 0; }
.sws-nav__hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu overlay */
.sws-nav__mobile {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100vh;
  background: rgba(10, 10, 26, .96);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-left: 1px solid var(--sws-border);
  padding: var(--sws-space-20) var(--sws-space-8) var(--sws-space-8);
  display: flex;
  flex-direction: column;
  gap: var(--sws-space-6);
  transform: translateX(100%);
  transition: transform var(--sws-duration-slow) var(--sws-ease);
  z-index: var(--sws-z-fixed);
}
.sws-nav__mobile.is-open {
  transform: translateX(0);
}
.sws-nav__mobile .sws-nav__link {
  font-size: var(--sws-text-lg);
  padding: var(--sws-space-3) 0;
  border-bottom: 1px solid var(--sws-border);
}
.sws-nav__mobile .sws-nav__link::after { display: none; }

.sws-nav__mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .50);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--sws-duration-slow) var(--sws-ease),
              visibility var(--sws-duration-slow) var(--sws-ease);
  z-index: calc(var(--sws-z-fixed) - 1);
}
.sws-nav__mobile-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}


/* ────────────────────────────────────────────────────────────
   6. COMPONENT — Buttons
   ──────────────────────────────────────────────────────────── */
.sws-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sws-space-2);
  font-family: var(--sws-font);
  font-weight: 600;
  font-size: var(--sws-text-sm);
  line-height: 1;
  padding: .75rem 1.5rem;
  border-radius: var(--sws-border-radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--sws-duration) var(--sws-ease);
  position: relative;
  overflow: hidden;
}
.sws-btn:focus-visible {
  outline: 2px solid var(--sws-primary);
  outline-offset: 2px;
}

/* Primary — gradient */
.sws-btn--primary {
  background: var(--sws-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(102,126,234,.3);
}
.sws-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(102,126,234,.45);
  color: #fff;
}
.sws-btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(102,126,234,.3);
}
/* Shine sweep on hover */
.sws-btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.18) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform .5s var(--sws-ease);
}
.sws-btn--primary:hover::after { transform: translateX(100%); }

/* Secondary — outline */
.sws-btn--secondary {
  background: transparent;
  color: var(--sws-text);
  border-color: var(--sws-border-light);
}
.sws-btn--secondary:hover {
  background: var(--sws-surface-hover);
  border-color: var(--sws-primary);
  color: var(--sws-text);
  transform: translateY(-1px);
}

/* Ghost */
.sws-btn--ghost {
  background: transparent;
  color: var(--sws-text-secondary);
  border-color: transparent;
}
.sws-btn--ghost:hover {
  background: var(--sws-surface-hover);
  color: var(--sws-text);
}

/* Accent */
.sws-btn--accent {
  background: var(--sws-gradient-accent);
  color: #fff;
  box-shadow: 0 4px 15px rgba(240,147,251,.2);
}
.sws-btn--accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(240,147,251,.35);
  color: #fff;
}

/* Sizes */
.sws-btn--sm {
  font-size: var(--sws-text-xs);
  padding: .5rem 1rem;
  border-radius: var(--sws-border-radius-sm);
}
.sws-btn--lg {
  font-size: var(--sws-text-base);
  padding: 1rem 2rem;
  border-radius: var(--sws-border-radius-md);
}
.sws-btn--xl {
  font-size: var(--sws-text-lg);
  padding: 1.15rem 2.5rem;
  border-radius: var(--sws-border-radius-md);
}

/* Full-width */
.sws-btn--block { width: 100%; }

/* Icon-only */
.sws-btn--icon {
  padding: .75rem;
  border-radius: var(--sws-border-radius);
}
.sws-btn--icon.sws-btn--sm { padding: .5rem; }
.sws-btn--icon.sws-btn--lg { padding: 1rem; }

/* Disabled */
.sws-btn:disabled,
.sws-btn.is-disabled {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
}

/* Loading */
.sws-btn.is-loading { color: transparent; pointer-events: none; }
.sws-btn.is-loading::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
}


/* ────────────────────────────────────────────────────────────
   7. COMPONENT — Glass Cards
   ──────────────────────────────────────────────────────────── */
.sws-card {
  background: var(--sws-surface-2);
  border: 1px solid var(--sws-border);
  border-radius: var(--sws-border-radius-lg);
  padding: var(--sws-space-8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform var(--sws-duration) var(--sws-ease),
              box-shadow var(--sws-duration) var(--sws-ease),
              border-color var(--sws-duration) var(--sws-ease);
  position: relative;
  overflow: hidden;
}
.sws-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sws-shadow-lg);
  border-color: var(--sws-border-light);
}
/* Subtle gradient line on top */
.sws-card--accent-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--sws-gradient);
}
/* Glow variant */
.sws-card--glow:hover {
  box-shadow: var(--sws-shadow-glow);
  border-color: rgba(102,126,234,.25);
}

.sws-card__header {
  margin-bottom: var(--sws-space-6);
}
.sws-card__title {
  font-size: var(--sws-text-xl);
  font-weight: 700;
  margin-bottom: var(--sws-space-2);
}
.sws-card__subtitle {
  font-size: var(--sws-text-sm);
  color: var(--sws-text-muted);
}
.sws-card__body {
  color: var(--sws-text-secondary);
  font-size: var(--sws-text-sm);
  line-height: var(--sws-leading-relaxed);
}
.sws-card__footer {
  margin-top: var(--sws-space-6);
  padding-top: var(--sws-space-6);
  border-top: 1px solid var(--sws-border);
}

/* Card sizes */
.sws-card--sm { padding: var(--sws-space-6); border-radius: var(--sws-border-radius-md); }
.sws-card--lg { padding: var(--sws-space-12); }

/* No-hover variant */
.sws-card--static:hover {
  transform: none;
  box-shadow: none;
}


/* ────────────────────────────────────────────────────────────
   8. COMPONENT — Badges / Tags
   ──────────────────────────────────────────────────────────── */
.sws-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sws-space-1);
  font-size: var(--sws-text-xs);
  font-weight: 600;
  padding: .25rem .65rem;
  border-radius: var(--sws-border-radius-full);
  letter-spacing: var(--sws-tracking-wide);
  text-transform: uppercase;
  line-height: 1.4;
  white-space: nowrap;
}
.sws-badge--primary {
  background: rgba(102,126,234,.15);
  color: var(--sws-primary);
  border: 1px solid rgba(102,126,234,.25);
}
.sws-badge--accent {
  background: var(--sws-accent-soft);
  color: var(--sws-accent);
  border: 1px solid rgba(240,147,251,.25);
}
.sws-badge--success {
  background: var(--sws-success-soft);
  color: var(--sws-success);
  border: 1px solid rgba(0,200,81,.25);
}
.sws-badge--warning {
  background: var(--sws-warning-soft);
  color: var(--sws-warning);
  border: 1px solid rgba(255,187,51,.25);
}
.sws-badge--error {
  background: var(--sws-error-soft);
  color: var(--sws-error);
  border: 1px solid rgba(255,68,68,.25);
}
.sws-badge--gradient {
  background: var(--sws-gradient);
  color: #fff;
  border: none;
}
/* Dot indicator */
.sws-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}


/* ────────────────────────────────────────────────────────────
   9. COMPONENT — Forms / Inputs
   ──────────────────────────────────────────────────────────── */
.sws-form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sws-space-2);
}
.sws-label {
  font-size: var(--sws-text-sm);
  font-weight: 500;
  color: var(--sws-text-secondary);
}
.sws-label__required {
  color: var(--sws-error);
  margin-left: 2px;
}
.sws-input,
.sws-textarea,
.sws-select {
  width: 100%;
  font-family: var(--sws-font);
  font-size: var(--sws-text-sm);
  color: var(--sws-text);
  background: var(--sws-surface-1);
  border: 1px solid var(--sws-border);
  border-radius: var(--sws-border-radius);
  padding: .75rem 1rem;
  transition: border-color var(--sws-duration) var(--sws-ease),
              box-shadow var(--sws-duration) var(--sws-ease),
              background var(--sws-duration) var(--sws-ease);
  outline: none;
}
.sws-input:hover,
.sws-textarea:hover,
.sws-select:hover {
  border-color: var(--sws-border-light);
  background: var(--sws-surface-2);
}
.sws-input:focus,
.sws-textarea:focus,
.sws-select:focus {
  border-color: var(--sws-primary);
  box-shadow: 0 0 0 3px rgba(102,126,234,.15), var(--sws-shadow-glow-sm);
  background: var(--sws-surface-2);
}
.sws-input::placeholder,
.sws-textarea::placeholder {
  color: var(--sws-text-muted);
}
.sws-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: var(--sws-leading-normal);
}
.sws-select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b6b8a' d='M6 8.825a.5.5 0 0 1-.354-.146l-3.5-3.5a.5.5 0 0 1 .708-.708L6 7.618l3.146-3.147a.5.5 0 0 1 .708.708l-3.5 3.5A.5.5 0 0 1 6 8.825Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Sizes */
.sws-input--sm, .sws-textarea--sm { padding: .5rem .75rem; font-size: var(--sws-text-xs); }
.sws-input--lg, .sws-textarea--lg { padding: 1rem 1.25rem; font-size: var(--sws-text-base); }

/* Error state */
.sws-input--error,
.sws-textarea--error {
  border-color: var(--sws-error);
}
.sws-input--error:focus,
.sws-textarea--error:focus {
  box-shadow: 0 0 0 3px rgba(255,68,68,.15);
}
.sws-form-error {
  font-size: var(--sws-text-xs);
  color: var(--sws-error);
}
.sws-form-hint {
  font-size: var(--sws-text-xs);
  color: var(--sws-text-muted);
}

/* Search input variant */
.sws-input-search {
  position: relative;
}
.sws-input-search .sws-input {
  padding-left: 2.75rem;
}
.sws-input-search__icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--sws-text-muted);
  pointer-events: none;
}


/* ────────────────────────────────────────────────────────────
  10. COMPONENT — Hero Section
   ──────────────────────────────────────────────────────────── */
.sws-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sws-space-32) var(--sws-space-6) var(--sws-space-24);
  position: relative;
  overflow: hidden;
}
.sws-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
/* Large ambient glow */
.sws-hero__bg::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(102,126,234,.15) 0%, transparent 65%);
  pointer-events: none;
}
.sws-hero__bg::after {
  content: '';
  position: absolute;
  top: 10%;
  right: 15%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(240,147,251,.08) 0%, transparent 65%);
  pointer-events: none;
}
.sws-hero__content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.sws-hero__badge {
  margin-bottom: var(--sws-space-6);
}
.sws-hero__title {
  font-size: clamp(var(--sws-text-3xl), 6vw, var(--sws-text-5xl));
  font-weight: 800;
  line-height: var(--sws-leading-tight);
  margin-bottom: var(--sws-space-6);
  letter-spacing: var(--sws-tracking-tight);
}
.sws-hero__subtitle {
  font-size: clamp(var(--sws-text-base), 2.5vw, var(--sws-text-xl));
  color: var(--sws-text-secondary);
  max-width: 560px;
  margin: 0 auto var(--sws-space-10);
  line-height: var(--sws-leading-relaxed);
}
.sws-hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sws-space-4);
  flex-wrap: wrap;
}


/* ────────────────────────────────────────────────────────────
  11. COMPONENT — Section Headers
   ──────────────────────────────────────────────────────────── */
.sws-section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--sws-space-16);
}
.sws-section-header__badge {
  margin-bottom: var(--sws-space-4);
}
.sws-section-header__title {
  font-size: clamp(var(--sws-text-2xl), 4vw, var(--sws-text-4xl));
  font-weight: 800;
  margin-bottom: var(--sws-space-4);
}
.sws-section-header__subtitle {
  font-size: var(--sws-text-lg);
  color: var(--sws-text-secondary);
  line-height: var(--sws-leading-relaxed);
}
/* Left-aligned variant */
.sws-section-header--left {
  text-align: left;
  margin-left: 0;
}


/* ────────────────────────────────────────────────────────────
  12. COMPONENT — Pricing Table
   ──────────────────────────────────────────────────────────── */
.sws-pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sws-space-8);
  align-items: stretch;
}
.sws-pricing__card {
  background: var(--sws-surface-2);
  border: 1px solid var(--sws-border);
  border-radius: var(--sws-border-radius-xl);
  padding: var(--sws-space-10);
  display: flex;
  flex-direction: column;
  transition: transform var(--sws-duration) var(--sws-ease),
              box-shadow var(--sws-duration) var(--sws-ease),
              border-color var(--sws-duration) var(--sws-ease);
  position: relative;
}
.sws-pricing__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sws-shadow-lg);
}

/* Recommended / highlighted plan */
.sws-pricing__card--recommended {
  border-color: var(--sws-primary);
  background: linear-gradient(180deg, rgba(102,126,234,.08) 0%, var(--sws-surface-2) 40%);
  box-shadow: var(--sws-shadow-glow);
  transform: scale(1.03);
}
.sws-pricing__card--recommended:hover {
  transform: scale(1.03) translateY(-4px);
  box-shadow: 0 0 40px rgba(102,126,234,.35), var(--sws-shadow-lg);
}
.sws-pricing__card--recommended::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--sws-gradient);
  border-radius: var(--sws-border-radius-xl) var(--sws-border-radius-xl) 0 0;
}

.sws-pricing__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
}
.sws-pricing__name {
  font-size: var(--sws-text-lg);
  font-weight: 700;
  margin-bottom: var(--sws-space-2);
}
.sws-pricing__desc {
  font-size: var(--sws-text-sm);
  color: var(--sws-text-muted);
  margin-bottom: var(--sws-space-8);
}
.sws-pricing__price {
  display: flex;
  align-items: baseline;
  gap: var(--sws-space-1);
  margin-bottom: var(--sws-space-2);
}
.sws-pricing__currency {
  font-size: var(--sws-text-xl);
  font-weight: 700;
  color: var(--sws-text);
}
.sws-pricing__amount {
  font-size: var(--sws-text-5xl);
  font-weight: 800;
  line-height: 1;
  background: var(--sws-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sws-pricing__period {
  font-size: var(--sws-text-sm);
  color: var(--sws-text-muted);
  margin-bottom: var(--sws-space-8);
}
.sws-pricing__divider {
  border: none;
  border-top: 1px solid var(--sws-border);
  margin: var(--sws-space-6) 0;
}
.sws-pricing__features {
  display: flex;
  flex-direction: column;
  gap: var(--sws-space-4);
  flex: 1;
  margin-bottom: var(--sws-space-8);
}
.sws-pricing__feature {
  display: flex;
  align-items: center;
  gap: var(--sws-space-3);
  font-size: var(--sws-text-sm);
  color: var(--sws-text-secondary);
}
.sws-pricing__feature-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--sws-success-soft);
  color: var(--sws-success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
}
.sws-pricing__feature--disabled {
  color: var(--sws-text-muted);
  text-decoration: line-through;
  opacity: .5;
}
.sws-pricing__cta {
  margin-top: auto;
}


/* ────────────────────────────────────────────────────────────
  13. COMPONENT — Footer
   ──────────────────────────────────────────────────────────── */
.sws-footer {
  border-top: 1px solid var(--sws-border);
  padding-top: var(--sws-space-16);
  padding-bottom: var(--sws-space-8);
  background: var(--sws-surface-1);
}
.sws-footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--sws-space-10);
  margin-bottom: var(--sws-space-12);
}
.sws-footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--sws-space-4);
}
.sws-footer__logo {
  font-size: var(--sws-text-xl);
  font-weight: 800;
  color: var(--sws-text);
  display: flex;
  align-items: center;
  gap: var(--sws-space-3);
}
.sws-footer__desc {
  font-size: var(--sws-text-sm);
  color: var(--sws-text-muted);
  max-width: 280px;
  line-height: var(--sws-leading-relaxed);
}
.sws-footer__socials {
  display: flex;
  gap: var(--sws-space-3);
  margin-top: var(--sws-space-2);
}
.sws-footer__social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--sws-border-radius);
  border: 1px solid var(--sws-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sws-text-muted);
  transition: all var(--sws-duration) var(--sws-ease);
}
.sws-footer__social-link:hover {
  border-color: var(--sws-primary);
  color: var(--sws-primary);
  background: rgba(102,126,234,.1);
}
.sws-footer__column-title {
  font-size: var(--sws-text-sm);
  font-weight: 700;
  color: var(--sws-text);
  text-transform: uppercase;
  letter-spacing: var(--sws-tracking-wider);
  margin-bottom: var(--sws-space-6);
}
.sws-footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--sws-space-3);
}
.sws-footer__link {
  font-size: var(--sws-text-sm);
  color: var(--sws-text-muted);
  transition: color var(--sws-duration) var(--sws-ease);
}
.sws-footer__link:hover {
  color: var(--sws-text);
}
.sws-footer__bottom {
  border-top: 1px solid var(--sws-border);
  padding-top: var(--sws-space-8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sws-space-4);
}
.sws-footer__copy {
  font-size: var(--sws-text-xs);
  color: var(--sws-text-muted);
}
.sws-footer__legal {
  display: flex;
  gap: var(--sws-space-6);
}
.sws-footer__legal a {
  font-size: var(--sws-text-xs);
  color: var(--sws-text-muted);
}
.sws-footer__legal a:hover { color: var(--sws-text-secondary); }


/* ────────────────────────────────────────────────────────────
  14. COMPONENT — FAQ Accordion
   ──────────────────────────────────────────────────────────── */
.sws-faq {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--sws-space-4);
}
.sws-faq__item {
  border: 1px solid var(--sws-border);
  border-radius: var(--sws-border-radius-md);
  background: var(--sws-surface-1);
  overflow: hidden;
  transition: border-color var(--sws-duration) var(--sws-ease);
}
.sws-faq__item:hover { border-color: var(--sws-border-light); }
.sws-faq__item.is-open { border-color: rgba(102,126,234,.25); }

.sws-faq__question {
  width: 100%;
  padding: var(--sws-space-5) var(--sws-space-6);
  background: none;
  border: none;
  color: var(--sws-text);
  font-family: var(--sws-font);
  font-size: var(--sws-text-base);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sws-space-4);
  transition: color var(--sws-duration) var(--sws-ease);
}
.sws-faq__question:hover { color: var(--sws-primary); }
.sws-faq__icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--sws-surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--sws-duration) var(--sws-ease),
              background var(--sws-duration) var(--sws-ease);
  font-size: var(--sws-text-xs);
  color: var(--sws-text-secondary);
}
.sws-faq__item.is-open .sws-faq__icon {
  transform: rotate(45deg);
  background: var(--sws-primary);
  color: #fff;
}
.sws-faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--sws-duration-slow) var(--sws-ease);
}
.sws-faq__item.is-open .sws-faq__answer {
  max-height: 500px;
}
.sws-faq__answer-inner {
  padding: 0 var(--sws-space-6) var(--sws-space-6);
  font-size: var(--sws-text-sm);
  color: var(--sws-text-secondary);
  line-height: var(--sws-leading-relaxed);
}


/* ────────────────────────────────────────────────────────────
  15. COMPONENT — Stats / Counters
   ──────────────────────────────────────────────────────────── */
.sws-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sws-space-8);
}
.sws-stat {
  text-align: center;
  padding: var(--sws-space-8);
  position: relative;
}
/* Divider between stats */
.sws-stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--sws-border);
}
.sws-stat__number {
  font-size: clamp(var(--sws-text-3xl), 5vw, var(--sws-text-5xl));
  font-weight: 800;
  line-height: 1;
  background: var(--sws-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--sws-space-2);
}
.sws-stat__label {
  font-size: var(--sws-text-sm);
  color: var(--sws-text-muted);
  font-weight: 500;
}
.sws-stat__sublabel {
  font-size: var(--sws-text-xs);
  color: var(--sws-text-muted);
  margin-top: var(--sws-space-1);
}


/* ────────────────────────────────────────────────────────────
  16. COMPONENT — Testimonial Cards
   ──────────────────────────────────────────────────────────── */
.sws-testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sws-space-8);
}
.sws-testimonial {
  background: var(--sws-surface-2);
  border: 1px solid var(--sws-border);
  border-radius: var(--sws-border-radius-lg);
  padding: var(--sws-space-8);
  display: flex;
  flex-direction: column;
  transition: transform var(--sws-duration) var(--sws-ease),
              border-color var(--sws-duration) var(--sws-ease);
}
.sws-testimonial:hover {
  transform: translateY(-3px);
  border-color: var(--sws-border-light);
}
.sws-testimonial__stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--sws-space-4);
  color: var(--sws-warning);
  font-size: var(--sws-text-sm);
}
.sws-testimonial__quote {
  font-size: var(--sws-text-sm);
  color: var(--sws-text-secondary);
  line-height: var(--sws-leading-relaxed);
  flex: 1;
  margin-bottom: var(--sws-space-6);
  position: relative;
}
.sws-testimonial__quote::before {
  content: '\201C';
  position: absolute;
  top: -10px;
  left: -4px;
  font-size: var(--sws-text-3xl);
  background: var(--sws-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: .4;
  line-height: 1;
}
.sws-testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--sws-space-3);
  padding-top: var(--sws-space-4);
  border-top: 1px solid var(--sws-border);
}
.sws-testimonial__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sws-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--sws-text-sm);
  color: #fff;
  flex-shrink: 0;
}
.sws-testimonial__avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.sws-testimonial__name {
  font-size: var(--sws-text-sm);
  font-weight: 600;
  color: var(--sws-text);
}
.sws-testimonial__role {
  font-size: var(--sws-text-xs);
  color: var(--sws-text-muted);
}


/* ────────────────────────────────────────────────────────────
  17. COMPONENT — Code Block
   ──────────────────────────────────────────────────────────── */
.sws-code-block {
  background: rgba(0, 0, 0, .45);
  border: 1px solid var(--sws-border);
  border-radius: var(--sws-border-radius-md);
  overflow: hidden;
  font-family: var(--sws-font-mono);
  font-size: var(--sws-text-sm);
}
.sws-code-block__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sws-space-3) var(--sws-space-4);
  background: rgba(255, 255, 255, .03);
  border-bottom: 1px solid var(--sws-border);
}
.sws-code-block__dots {
  display: flex;
  gap: 6px;
}
.sws-code-block__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.sws-code-block__dot--red    { background: #ff5f57; }
.sws-code-block__dot--yellow { background: #febc2e; }
.sws-code-block__dot--green  { background: #28c840; }
.sws-code-block__lang {
  font-size: var(--sws-text-xs);
  color: var(--sws-text-muted);
  text-transform: uppercase;
  letter-spacing: var(--sws-tracking-wider);
}
.sws-code-block__copy {
  background: none;
  border: 1px solid var(--sws-border);
  border-radius: var(--sws-border-radius-sm);
  color: var(--sws-text-muted);
  font-family: var(--sws-font);
  font-size: var(--sws-text-xs);
  padding: .25rem .5rem;
  cursor: pointer;
  transition: all var(--sws-duration) var(--sws-ease);
}
.sws-code-block__copy:hover {
  border-color: var(--sws-primary);
  color: var(--sws-primary);
}
.sws-code-block__body {
  padding: var(--sws-space-5);
  overflow-x: auto;
}
.sws-code-block__body code {
  color: var(--sws-text-secondary);
  line-height: var(--sws-leading-relaxed);
  white-space: pre;
}
/* Inline code */
code:not([class]) {
  font-family: var(--sws-font-mono);
  font-size: .875em;
  background: var(--sws-surface-3);
  padding: .15em .4em;
  border-radius: var(--sws-border-radius-xs);
  color: var(--sws-accent);
}
/* Syntax highlight token colors */
.sws-token--keyword  { color: #c792ea; }
.sws-token--string   { color: #c3e88d; }
.sws-token--number   { color: #f78c6c; }
.sws-token--comment  { color: #546e7a; font-style: italic; }
.sws-token--function { color: #82aaff; }
.sws-token--variable { color: #f07178; }
.sws-token--operator { color: #89ddff; }
.sws-token--type     { color: #ffcb6b; }


/* ────────────────────────────────────────────────────────────
  18. COMPONENT — Feature Grid
   ──────────────────────────────────────────────────────────── */
.sws-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sws-space-8);
}
.sws-feature {
  background: var(--sws-surface-1);
  border: 1px solid var(--sws-border);
  border-radius: var(--sws-border-radius-lg);
  padding: var(--sws-space-8);
  transition: transform var(--sws-duration) var(--sws-ease),
              border-color var(--sws-duration) var(--sws-ease),
              box-shadow var(--sws-duration) var(--sws-ease);
  position: relative;
  overflow: hidden;
}
.sws-feature:hover {
  transform: translateY(-4px);
  border-color: rgba(102,126,234,.2);
  box-shadow: var(--sws-shadow-glow-sm);
}
/* Gradient corner accent */
.sws-feature::before {
  content: '';
  position: absolute;
  top: -1px;
  right: -1px;
  width: 80px;
  height: 80px;
  background: var(--sws-gradient);
  opacity: .06;
  border-radius: 0 var(--sws-border-radius-lg) 0 80px;
  transition: opacity var(--sws-duration) var(--sws-ease);
}
.sws-feature:hover::before { opacity: .12; }

.sws-feature__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--sws-border-radius-md);
  background: var(--sws-gradient-subtle);
  border: 1px solid rgba(102,126,234,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--sws-text-xl);
  margin-bottom: var(--sws-space-5);
  color: var(--sws-primary);
  transition: transform var(--sws-duration) var(--sws-ease);
}
.sws-feature:hover .sws-feature__icon {
  transform: scale(1.08);
}
.sws-feature__title {
  font-size: var(--sws-text-lg);
  font-weight: 700;
  margin-bottom: var(--sws-space-3);
  color: var(--sws-text);
}
.sws-feature__desc {
  font-size: var(--sws-text-sm);
  color: var(--sws-text-secondary);
  line-height: var(--sws-leading-relaxed);
}
.sws-feature__link {
  display: inline-flex;
  align-items: center;
  gap: var(--sws-space-2);
  font-size: var(--sws-text-sm);
  font-weight: 600;
  color: var(--sws-primary);
  margin-top: var(--sws-space-4);
  transition: gap var(--sws-duration) var(--sws-ease);
}
.sws-feature__link:hover { gap: var(--sws-space-3); }


/* ────────────────────────────────────────────────────────────
  19. COMPONENT — CTA Banner
   ──────────────────────────────────────────────────────────── */
.sws-cta {
  background: var(--sws-gradient);
  border-radius: var(--sws-border-radius-2xl);
  padding: var(--sws-space-16) var(--sws-space-8);
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Decorative circles */
.sws-cta::before,
.sws-cta::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.sws-cta::before {
  width: 400px;
  height: 400px;
  top: -200px;
  right: -100px;
}
.sws-cta::after {
  width: 300px;
  height: 300px;
  bottom: -150px;
  left: -80px;
}
.sws-cta__title {
  font-size: clamp(var(--sws-text-2xl), 4vw, var(--sws-text-4xl));
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--sws-space-4);
  position: relative;
  z-index: 1;
}
.sws-cta__subtitle {
  font-size: var(--sws-text-lg);
  color: rgba(255,255,255,.8);
  max-width: 500px;
  margin: 0 auto var(--sws-space-8);
  position: relative;
  z-index: 1;
}
.sws-cta__actions {
  display: flex;
  justify-content: center;
  gap: var(--sws-space-4);
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
/* White button for CTA context */
.sws-btn--white {
  background: #fff;
  color: var(--sws-bg);
  font-weight: 700;
}
.sws-btn--white:hover {
  background: rgba(255,255,255,.92);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,.2);
  color: var(--sws-bg);
}
.sws-btn--outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.35);
}
.sws-btn--outline-white:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.6);
  color: #fff;
}


/* ────────────────────────────────────────────────────────────
  20. COMPONENT — Logo Ticker / Trust Badges
   ──────────────────────────────────────────────────────────── */
.sws-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sws-space-12);
  flex-wrap: wrap;
  opacity: .4;
  filter: grayscale(1);
  transition: opacity var(--sws-duration-slow) var(--sws-ease),
              filter var(--sws-duration-slow) var(--sws-ease);
}
.sws-logos:hover {
  opacity: .65;
  filter: grayscale(.5);
}
.sws-logos img {
  height: 28px;
  width: auto;
}


/* ────────────────────────────────────────────────────────────
  21. COMPONENT — Toggle Switch
   ──────────────────────────────────────────────────────────── */
.sws-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--sws-space-3);
  cursor: pointer;
}
.sws-toggle__track {
  width: 44px;
  height: 24px;
  border-radius: var(--sws-border-radius-full);
  background: var(--sws-surface-3);
  border: 1px solid var(--sws-border);
  position: relative;
  transition: background var(--sws-duration) var(--sws-ease),
              border-color var(--sws-duration) var(--sws-ease);
}
.sws-toggle__thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--sws-text-muted);
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform var(--sws-duration) var(--sws-ease-bounce),
              background var(--sws-duration) var(--sws-ease);
}
.sws-toggle input { display: none; }
.sws-toggle input:checked + .sws-toggle__track {
  background: var(--sws-primary);
  border-color: var(--sws-primary);
}
.sws-toggle input:checked + .sws-toggle__track .sws-toggle__thumb {
  transform: translateX(20px);
  background: #fff;
}
.sws-toggle__label {
  font-size: var(--sws-text-sm);
  color: var(--sws-text-secondary);
  font-weight: 500;
}


/* ────────────────────────────────────────────────────────────
  22. COMPONENT — Tabs
   ──────────────────────────────────────────────────────────── */
.sws-tabs {
  display: flex;
  align-items: center;
  gap: var(--sws-space-1);
  background: var(--sws-surface-1);
  border: 1px solid var(--sws-border);
  border-radius: var(--sws-border-radius-md);
  padding: var(--sws-space-1);
  width: fit-content;
}
.sws-tab {
  padding: .5rem 1.25rem;
  border-radius: var(--sws-border-radius);
  font-size: var(--sws-text-sm);
  font-weight: 500;
  color: var(--sws-text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--sws-font);
  transition: all var(--sws-duration) var(--sws-ease);
}
.sws-tab:hover { color: var(--sws-text-secondary); }
.sws-tab.is-active {
  background: var(--sws-surface-3);
  color: var(--sws-text);
  box-shadow: var(--sws-shadow-xs);
}
.sws-tab-panel { display: none; }
.sws-tab-panel.is-active { display: block; animation: fadeIn .3s var(--sws-ease); }


/* ────────────────────────────────────────────────────────────
  23. COMPONENT — Tooltip
   ──────────────────────────────────────────────────────────── */
[data-tooltip] {
  position: relative;
}
[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--sws-surface-active);
  color: var(--sws-text);
  font-size: var(--sws-text-xs);
  padding: .35rem .65rem;
  border-radius: var(--sws-border-radius-sm);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  border: 1px solid var(--sws-border-light);
  backdrop-filter: blur(12px);
  z-index: var(--sws-z-tooltip);
  transition: opacity var(--sws-duration) var(--sws-ease),
              transform var(--sws-duration) var(--sws-ease);
}
[data-tooltip]:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* ────────────────────────────────────────────────────────────
  24. COMPONENT — Avatar
   ──────────────────────────────────────────────────────────── */
.sws-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--sws-border);
}
.sws-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sws-avatar--sm { width: 32px; height: 32px; }
.sws-avatar--lg { width: 56px; height: 56px; }
.sws-avatar--xl { width: 72px; height: 72px; }
.sws-avatar-group {
  display: flex;
}
.sws-avatar-group .sws-avatar {
  margin-left: -8px;
  border-color: var(--sws-bg);
}
.sws-avatar-group .sws-avatar:first-child { margin-left: 0; }


/* ────────────────────────────────────────────────────────────
  25. COMPONENT — Notification / Toast
   ──────────────────────────────────────────────────────────── */
.sws-toast {
  position: fixed;
  bottom: var(--sws-space-6);
  right: var(--sws-space-6);
  min-width: 320px;
  max-width: 420px;
  background: var(--sws-surface-3);
  border: 1px solid var(--sws-border);
  border-radius: var(--sws-border-radius-md);
  padding: var(--sws-space-4) var(--sws-space-5);
  display: flex;
  gap: var(--sws-space-3);
  align-items: flex-start;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--sws-shadow-lg);
  z-index: var(--sws-z-toast);
  animation: slideIn .3s var(--sws-ease);
}
.sws-toast--success { border-left: 3px solid var(--sws-success); }
.sws-toast--error   { border-left: 3px solid var(--sws-error); }
.sws-toast--warning { border-left: 3px solid var(--sws-warning); }
.sws-toast--info    { border-left: 3px solid var(--sws-info); }

.sws-toast__title {
  font-size: var(--sws-text-sm);
  font-weight: 600;
  color: var(--sws-text);
}
.sws-toast__message {
  font-size: var(--sws-text-xs);
  color: var(--sws-text-muted);
  margin-top: 2px;
}
.sws-toast__close {
  background: none;
  border: none;
  color: var(--sws-text-muted);
  cursor: pointer;
  padding: 2px;
  margin-left: auto;
  font-size: var(--sws-text-lg);
  line-height: 1;
  transition: color var(--sws-duration) var(--sws-ease);
}
.sws-toast__close:hover { color: var(--sws-text); }


/* ────────────────────────────────────────────────────────────
  26. COMPONENT — Divider
   ──────────────────────────────────────────────────────────── */
.sws-divider {
  border: none;
  border-top: 1px solid var(--sws-border);
  margin: var(--sws-space-8) 0;
}
.sws-divider--gradient {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sws-border-light), transparent);
}
.sws-divider--lg { margin: var(--sws-space-16) 0; }


/* ────────────────────────────────────────────────────────────
  27. UTILITY CLASSES
   ──────────────────────────────────────────────────────────── */

/* ── Text alignment ── */
.text-left    { text-align: left; }
.text-center  { text-align: center; }
.text-right   { text-align: right; }

/* ── Text colors ── */
.text-primary   { color: var(--sws-text) !important; }
.text-secondary { color: var(--sws-text-secondary) !important; }
.text-muted     { color: var(--sws-text-muted) !important; }
.text-brand     { color: var(--sws-primary) !important; }
.text-accent    { color: var(--sws-accent) !important; }
.text-success   { color: var(--sws-success) !important; }
.text-warning   { color: var(--sws-warning) !important; }
.text-error     { color: var(--sws-error) !important; }
.text-white     { color: #fff !important; }

/* ── Gradient text ── */
.text-gradient {
  background: var(--sws-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-gradient-accent {
  background: var(--sws-gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Font weights ── */
.fw-300 { font-weight: 300; }
.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.fw-900 { font-weight: 900; }

/* ── Font sizes ── */
.text-xs  { font-size: var(--sws-text-xs); }
.text-sm  { font-size: var(--sws-text-sm); }
.text-base{ font-size: var(--sws-text-base); }
.text-lg  { font-size: var(--sws-text-lg); }
.text-xl  { font-size: var(--sws-text-xl); }
.text-2xl { font-size: var(--sws-text-2xl); }
.text-3xl { font-size: var(--sws-text-3xl); }
.text-4xl { font-size: var(--sws-text-4xl); }
.text-5xl { font-size: var(--sws-text-5xl); }

/* ── Display ── */
.d-none    { display: none !important; }
.d-block   { display: block; }
.d-flex    { display: flex; }
.d-grid    { display: grid; }
.d-inline  { display: inline; }
.d-inline-block { display: inline-block; }
.d-inline-flex  { display: inline-flex; }

/* ── Overflow ── */
.overflow-hidden  { overflow: hidden; }
.overflow-auto    { overflow: auto; }

/* ── Position ── */
.relative  { position: relative; }
.absolute  { position: absolute; }
.fixed     { position: fixed; }
.sticky    { position: sticky; }

/* ── Width/Height ── */
.w-full    { width: 100%; }
.h-full    { height: 100%; }
.w-auto    { width: auto; }
.min-h-screen { min-height: 100vh; }

/* ── Margin ── */
.m-auto  { margin: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-0  { margin-top: 0; }
.mt-2  { margin-top: var(--sws-space-2); }
.mt-4  { margin-top: var(--sws-space-4); }
.mt-6  { margin-top: var(--sws-space-6); }
.mt-8  { margin-top: var(--sws-space-8); }
.mt-10 { margin-top: var(--sws-space-10); }
.mt-12 { margin-top: var(--sws-space-12); }
.mt-16 { margin-top: var(--sws-space-16); }
.mb-0  { margin-bottom: 0; }
.mb-2  { margin-bottom: var(--sws-space-2); }
.mb-4  { margin-bottom: var(--sws-space-4); }
.mb-6  { margin-bottom: var(--sws-space-6); }
.mb-8  { margin-bottom: var(--sws-space-8); }
.mb-10 { margin-bottom: var(--sws-space-10); }
.mb-12 { margin-bottom: var(--sws-space-12); }
.mb-16 { margin-bottom: var(--sws-space-16); }
.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }

/* ── Padding ── */
.p-0  { padding: 0; }
.p-2  { padding: var(--sws-space-2); }
.p-4  { padding: var(--sws-space-4); }
.p-6  { padding: var(--sws-space-6); }
.p-8  { padding: var(--sws-space-8); }
.px-4 { padding-left: var(--sws-space-4); padding-right: var(--sws-space-4); }
.px-6 { padding-left: var(--sws-space-6); padding-right: var(--sws-space-6); }
.px-8 { padding-left: var(--sws-space-8); padding-right: var(--sws-space-8); }
.py-4 { padding-top: var(--sws-space-4); padding-bottom: var(--sws-space-4); }
.py-6 { padding-top: var(--sws-space-6); padding-bottom: var(--sws-space-6); }
.py-8 { padding-top: var(--sws-space-8); padding-bottom: var(--sws-space-8); }

/* ── Border utilities ── */
.border     { border: 1px solid var(--sws-border); }
.border-top { border-top: 1px solid var(--sws-border); }
.border-bottom { border-bottom: 1px solid var(--sws-border); }
.rounded    { border-radius: var(--sws-border-radius); }
.rounded-md { border-radius: var(--sws-border-radius-md); }
.rounded-lg { border-radius: var(--sws-border-radius-lg); }
.rounded-xl { border-radius: var(--sws-border-radius-xl); }
.rounded-full { border-radius: var(--sws-border-radius-full); }

/* ── Glassmorphism utility ── */
.glass {
  background: var(--sws-surface-2);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid var(--sws-border);
}
.glass--strong {
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .10);
}

/* ── Background ── */
.bg-surface-1 { background: var(--sws-surface-1); }
.bg-surface-2 { background: var(--sws-surface-2); }
.bg-surface-3 { background: var(--sws-surface-3); }
.bg-gradient  { background: var(--sws-gradient); }
.bg-gradient-subtle { background: var(--sws-gradient-subtle); }

/* ── Shadow ── */
.shadow     { box-shadow: var(--sws-shadow); }
.shadow-md  { box-shadow: var(--sws-shadow-md); }
.shadow-lg  { box-shadow: var(--sws-shadow-lg); }
.shadow-glow{ box-shadow: var(--sws-shadow-glow); }

/* ── Cursor ── */
.cursor-pointer { cursor: pointer; }

/* ── Truncate ── */
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Visually hidden (accessible) ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}


/* ────────────────────────────────────────────────────────────
  28. RESPONSIVE BREAKPOINTS
   ──────────────────────────────────────────────────────────── */

/* ── Max-width 1280px (xl down) ── */
@media (max-width: 1280px) {
  .sws-stats { gap: var(--sws-space-6); }
}

/* ── Max-width 1024px (lg down) ── */
@media (max-width: 1024px) {
  .sws-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .sws-grid--3 { grid-template-columns: repeat(2, 1fr); }

  .sws-pricing { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; }
  .sws-pricing__card--recommended { transform: none; }
  .sws-pricing__card--recommended:hover { transform: translateY(-4px); }

  .sws-features { grid-template-columns: repeat(2, 1fr); }
  .sws-testimonials { grid-template-columns: repeat(2, 1fr); }

  .sws-stats { grid-template-columns: repeat(2, 1fr); }
  .sws-stat:nth-child(2)::after { display: none; }

  .sws-footer__grid { grid-template-columns: 1fr 1fr; gap: var(--sws-space-8); }
}

/* ── Max-width 768px (md down) ── */
@media (max-width: 768px) {
  :root {
    --sws-text-5xl: 2.5rem;
    --sws-text-4xl: 2rem;
    --sws-text-3xl: 1.5rem;
  }

  .sws-section {
    padding-top: var(--sws-space-16);
    padding-bottom: var(--sws-space-16);
  }
  .sws-section--lg {
    padding-top: var(--sws-space-20);
    padding-bottom: var(--sws-space-20);
  }

  .sws-container {
    padding-left: var(--sws-space-5);
    padding-right: var(--sws-space-5);
  }

  /* Nav — show hamburger, hide links */
  .sws-nav__links,
  .sws-nav__actions { display: none; }
  .sws-nav__hamburger { display: flex; }

  .sws-grid--2,
  .sws-grid--3,
  .sws-grid--4 { grid-template-columns: 1fr; }

  .sws-features { grid-template-columns: 1fr; }
  .sws-testimonials { grid-template-columns: 1fr; }
  .sws-stats { grid-template-columns: repeat(2, 1fr); }
  .sws-stat:not(:last-child)::after { display: none; }

  .sws-hero {
    min-height: auto;
    padding: var(--sws-space-24) var(--sws-space-5) var(--sws-space-16);
  }
  .sws-hero__actions {
    flex-direction: column;
  }
  .sws-hero__actions .sws-btn { width: 100%; }

  .sws-cta {
    padding: var(--sws-space-10) var(--sws-space-6);
    border-radius: var(--sws-border-radius-xl);
  }

  .sws-footer__grid { grid-template-columns: 1fr; }
  .sws-footer__bottom { flex-direction: column; text-align: center; }

  .sws-section-header { margin-bottom: var(--sws-space-10); }

  /* Scroll animations — reduce motion distance */
  .animate-on-scroll { transform: translateY(20px); }
}

/* ── Max-width 640px (sm down) ── */
@media (max-width: 640px) {
  :root {
    --sws-text-5xl: 2rem;
    --sws-text-4xl: 1.75rem;
    --sws-text-3xl: 1.35rem;
  }

  .sws-card { padding: var(--sws-space-6); }
  .sws-card--lg { padding: var(--sws-space-8); }

  .sws-pricing__card { padding: var(--sws-space-8); }

  .sws-stats { grid-template-columns: 1fr 1fr; gap: var(--sws-space-4); }
  .sws-stat { padding: var(--sws-space-6) var(--sws-space-4); }

  .sws-toast {
    left: var(--sws-space-4);
    right: var(--sws-space-4);
    min-width: unset;
    bottom: var(--sws-space-4);
  }

  .sws-tabs {
    width: 100%;
    overflow-x: auto;
  }
}

/* ── Reduced motion preference ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .animate-on-scroll { opacity: 1; transform: none; }
  .animate-child { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}


/* ────────────────────────────────────────────────────────────
  29. PRINT STYLES
   ──────────────────────────────────────────────────────────── */
@media print {
  body {
    background: #fff;
    color: #000;
  }
  .sws-nav,
  .sws-footer,
  .sws-cta,
  .sws-toast { display: none !important; }
  .sws-card,
  .sws-feature,
  .sws-testimonial {
    border: 1px solid #ccc;
    background: #fff;
    color: #000;
    box-shadow: none;
  }
  .text-gradient,
  .text-gradient-accent {
    -webkit-text-fill-color: #000;
    background: none;
  }
}
