/* ==========================================================================
   UNBRANDED MODERN TEMPLATE - CORE DESIGN SYSTEM & STYLES
   ========================================================================== */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Space+Grotesk:wght@500;600;700&display=swap');

/* --- Root Color Palette & Variables --- */
:root {
  /* Brand Theme Colors (Neutral Modern Unbranded Indigo/Violet Accent) */
  --hue-primary: 245;
  --hue-accent: 275;

  --color-primary: hsl(var(--hue-primary), 85%, 60%);
  --color-primary-hover: hsl(var(--hue-primary), 90%, 68%);
  --color-primary-alpha: hsla(var(--hue-primary), 85%, 60%, 0.12);
  --color-accent: hsl(var(--hue-accent), 85%, 62%);

  /* Light Theme Variables */
  --bg-body: hsl(220, 20%, 98%);
  --bg-surface: hsl(0, 0%, 100%);
  --bg-surface-glass: rgba(255, 255, 255, 0.75);
  --bg-surface-elevated: hsl(220, 25%, 96%);

  --text-main: hsl(222, 47%, 11%);
  --text-muted: hsl(215, 16%, 47%);
  --text-inverse: hsl(0, 0%, 100%);

  --border-light: hsl(220, 13%, 91%);
  --border-focus: hsl(var(--hue-primary), 85%, 60%);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 30px hsla(var(--hue-primary), 85%, 60%, 0.25);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Space Grotesk', var(--font-sans);

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  --container-max-width: 1240px;
}

/* --- Dark Theme Variables Override --- */
[data-theme="dark"] {
  --bg-body: hsl(224, 30%, 7%);
  --bg-surface: hsl(224, 25%, 11%);
  --bg-surface-glass: rgba(18, 22, 33, 0.75);
  --bg-surface-elevated: hsl(224, 22%, 15%);

  --text-main: hsl(210, 40%, 98%);
  --text-muted: hsl(215, 20%, 65%);

  --border-light: hsl(224, 20%, 18%);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 35px hsla(var(--hue-primary), 85%, 60%, 0.35);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
  -webkit-font-smoothing: antialiased;
}

/* Base Link & Button Styles */
a {
  color: inherit;
  text-decoration: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

ul {
  list-style: none;
}

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

/* --- Typography Utilities --- */
.h1, .h2, .h3, .h4 {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.h1 {
  font-size: clamp(2.5rem, 5vw + 1rem, 4.25rem);
  font-weight: 700;
}

.h2 {
  font-size: clamp(2rem, 3.5vw + 0.5rem, 3rem);
  font-weight: 700;
}

.h3 {
  font-size: clamp(1.25rem, 2vw + 0.5rem, 1.75rem);
  font-weight: 600;
}

.text-muted {
  color: var(--text-muted);
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--text-inverse);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background-color: var(--bg-surface-elevated);
  color: var(--text-main);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background-color: var(--border-light);
  transform: translateY(-2px);
}

.btn-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-surface-elevated);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: rotate(8deg) scale(1.05);
}

/* --- Navigation Bar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all var(--transition-smooth);
}

.navbar.scrolled {
  padding: 0.75rem 0;
  background-color: var(--bg-surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-main);
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

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

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-primary);
  transition: width var(--transition-fast);
  border-radius: var(--radius-full);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

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

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--text-main);
}

/* --- Hero Section --- */
.hero {
  padding-top: 10rem;
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, hsla(var(--hue-primary), 85%, 60%, 0.15) 0%, hsla(var(--hue-accent), 85%, 60%, 0.05) 50%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background-color: var(--color-primary-alpha);
  color: var(--color-primary);
  border: 1px solid hsla(var(--hue-primary), 85%, 60%, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  color: var(--text-muted);
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

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

.hero-mockup-container {
  margin-top: 4rem;
  position: relative;
  border-radius: var(--radius-lg);
  padding: 12px;
  background: linear-gradient(135deg, var(--border-light), transparent);
  box-shadow: var(--shadow-lg);
}

.hero-mockup {
  width: 100%;
  border-radius: calc(var(--radius-lg) - 6px);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.mockup-header {
  height: 42px;
  background-color: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  gap: 0.5rem;
}

.dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background-color: #ff5f56; }
.dot-yellow { background-color: #ffbd2e; }
.dot-green { background-color: #27c93f; }

.mockup-body {
  padding: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.mockup-card {
  background-color: var(--bg-surface-elevated);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skeleton-line {
  height: 12px;
  background: linear-gradient(90deg, var(--border-light) 25%, var(--bg-surface) 50%, var(--border-light) 75%);
  background-size: 200% 100%;
  animation: loading 2s infinite ease-in-out;
  border-radius: 4px;
}
.skeleton-line.w-40 { width: 40%; }
.skeleton-line.w-70 { width: 70%; }
.skeleton-line.w-90 { width: 90%; }

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* --- Section Styling --- */
.section {
  padding: 6rem 0;
}

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

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

/* --- Features Grid Section --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: hsla(var(--hue-primary), 85%, 60%, 0.3);
}

.feature-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background-color: var(--color-primary-alpha);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.feature-title {
  margin-bottom: 0.75rem;
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Interactive Showcase Tabs --- */
.showcase-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  color: var(--text-main);
  border-color: var(--color-primary);
}

.tab-btn.active {
  background-color: var(--color-primary);
  color: var(--text-inverse);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.tab-panel {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.tab-panel.active {
  display: block;
}

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

.panel-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.panel-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* --- Stats Counter Section --- */
.stats-section {
  background-color: var(--bg-surface);
  border-y: 1px solid var(--border-light);
  padding: 4.5rem 0;
  margin: 3rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 0.5rem;
}

/* --- Pricing Section --- */
.pricing-toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.pricing-switch {
  position: relative;
  width: 56px;
  height: 30px;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  cursor: pointer;
  padding: 3px;
}

.pricing-switch-thumb {
  width: 22px;
  height: 22px;
  background-color: var(--color-primary);
  border-radius: 50%;
  transition: transform var(--transition-fast);
}

.pricing-switch.active .pricing-switch-thumb {
  transform: translateX(26px);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.pricing-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all var(--transition-smooth);
}

.pricing-card.featured {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-price {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  margin: 1.5rem 0 0.5rem 0;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.pricing-period {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-features {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pricing-feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.pricing-feature-item svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

/* --- FAQ Section --- */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
}

.faq-icon {
  transition: transform var(--transition-fast);
  color: var(--text-muted);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  color: var(--text-muted);
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.5rem 1.5rem;
}

/* --- Contact & CTA Section --- */
.contact-card {
  background: linear-gradient(135deg, var(--bg-surface-elevated), var(--bg-surface));
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 4rem 2.5rem;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  box-shadow: var(--shadow-md);
}

.contact-form {
  display: flex;
  gap: 1rem;
  max-width: 520px;
  margin: 2rem auto 0 auto;
  flex-wrap: wrap;
}

.form-input {
  flex: 1;
  min-width: 240px;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  transition: border-color var(--transition-fast);
}

.form-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--color-primary-alpha);
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border-light);
  padding: 5rem 0 3rem 0;
  margin-top: 6rem;
  background-color: var(--bg-surface);
}

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

.footer-col-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

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

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

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

/* --- Toast Notification --- */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--color-primary);
  color: var(--text-main);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-spring);
  z-index: 2000;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-light);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-150%);
    transition: transform var(--transition-smooth);
    box-shadow: var(--shadow-md);
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .mobile-toggle {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
