/* XMAX — Apple-inspired Premium UI */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Typography - San Francisco-like stack */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Usage: var(--radius-xl) for cards, var(--radius-pill) for buttons */
  --radius-xl: 24px;
  /* Large cards */
  --radius-lg: 20px;
  /* Medium elements */
  --radius-md: 14px;
  /* Small elements */
  --radius-sm: 8px;
  /* Tiny elements */
  --radius-pill: 999px;

  /* Shadows - Soft, diffused ambient light */
  --shadow-1: 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-2: 0 12px 32px rgba(0, 0, 0, 0.08);
  /* Lifted state */
  --shadow-float: 0 20px 50px -12px rgba(0, 0, 0, 0.12);
  /* Hero floating elements */
  --shadow-inner: inset 0 1px 1px 0 rgba(255, 255, 255, 0.5);

  /* Colors - Apple-inspired System Grays & Off-Whites relative to light mode */
  --bg: #F5F5F7;
  /* Apple System Gray 6 (Base background) */
  --bg2: #FFFFFF;
  /* Secondary backgrounds */

  --surface: #FFFFFF;
  /* Card background */
  --surface-blur: rgba(255, 255, 255, 0.72);
  /* Glass material */

  --text: #1D1D1F;
  /* Almost black, softer than #000 */
  --text-secondary: #86868B;
  /* Secondary text */
  --text-tertiary: #6E6E73;

  --border: rgba(0, 0, 0, 0.06);
  /* Very subtle borders */

  /* Primary Action */
  --primary: #0071E3;
  /* Apple Blue */
  --primary-hover: #0077ED;
  --primary-text: #FFFFFF;

  /* Accents */
  --accent-blue: #0071E3;
  /* Keep for links/icons but NOT main buttons */
  --accent-indigo: #5E5CE6;
  --accent-gradient: linear-gradient(135deg, #0071E3 0%, #42A1FF 100%);

  /* Animation */
  --ease-spring: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

html[data-theme="dark"] {
  --bg: #141416;
  /* Softer charcoal black */
  --bg2: #1e1e20;
  /* Secondary dark bg */

  --surface: #1e1e20;
  --surface-blur: rgba(30, 30, 32, 0.72);

  --text: #F5F5F7;
  --text-secondary: #98989D;
  --text-tertiary: #6E6E73;

  /* In dark mode, primary button is white */
  --primary: #F5F5F7;
  --primary-hover: #e5e5e5;

  --border: rgba(255, 255, 255, 0.08);

  --shadow-1: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-2: 0 12px 32px rgba(0, 0, 0, 0.4);
  --shadow-float: 0 20px 50px -12px rgba(0, 0, 0, 0.6);
  --shadow-inner: inset 0 1px 1px 0 rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

/* Scrollbar hidden for cleaner look but functional */
::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}


a {
  color: inherit;
  text-decoration: none
}

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

/* Ensure consistent typography across the entire site */
button,
input,
textarea,
select {
  font: inherit
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.page {
  padding-bottom: 80px;
}

/* Header (pill, blurred) */
.site-header {
  position: sticky;
  top: 20px;
  z-index: 100;
  padding: 0;
  margin: 20px 0 40px;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 8px 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--surface-blur);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: transform 0.3s var(--ease-smooth);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  transition: opacity 0.2s;
}

.brand:hover {
  opacity: 0.7;
}

.brand img {
  height: 52px;
  /* Increased logo size */
  width: auto;
  transition: filter 0.3s ease;
}

html[data-theme="dark"] .brand img {
  filter: invert(1) brightness(2);
  /* Make logo white in dark mode */
}

/* Footer logo - larger than header */
.footer-brand .brand img {
  height: 80px;
}

.nav-links {
  display: flex;
  gap: 2px;
  align-items: center;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.03);
  /* Subtle track for links */
}

html[data-theme="dark"] .nav-links {
  background: rgba(255, 255, 255, 0.06);
}

.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s var(--ease-smooth);
}

.nav-links a:hover {
  color: var(--text);
  background: var(--bg2);
}

.nav-links a[aria-current="page"] {
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}


/* Mobile menu */
.nav-toggle {
  display: none
}

.desktop-only {
  display: inline-grid
}

.hamburger {
  width: 18px;
  height: 12px;
  display: block;
  background:
    linear-gradient(currentColor, currentColor) 0 0/100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 50%/100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 100%/100% 2px no-repeat;
  opacity: .92;
  border-radius: 2px;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 110
}

.mobile-menu[hidden] {
  display: none
}

.mobile-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .18);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  cursor: pointer;
  opacity: 0;
  transition: opacity .22s ease;
}

.mobile-panel {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 14px;
  border-radius: 24px;
  background: var(--pill);
  border: 1px solid var(--pillBorder);
  box-shadow: var(--shadow);
  padding: 14px;
  transform: translateY(-10px) scale(.985);
  opacity: 0;
  transition: transform .22s ease, opacity .22s ease;
}

.mobile-menu.is-open .mobile-backdrop {
  opacity: 1
}

.mobile-menu.is-open .mobile-panel {
  opacity: 1;
  transform: none
}

.mobile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 2px 10px;
}

.brand.mini {
  padding: 6px 8px
}

.brand.mini img {
  height: 22px
}

.mobile-nav {
  display: grid;
  gap: 6px;
  padding: 6px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .42);
}

html[data-theme="dark"] .mobile-nav {
  background: rgba(255, 255, 255, .04);
}

.mobile-nav a {
  padding: 12px 12px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 650;
  color: var(--text);
  transition: background .18s ease, transform .18s ease;
}

.mobile-nav a:hover {
  background: rgba(255, 255, 255, .5);
  transform: translateY(-1px);
}

html[data-theme="dark"] .mobile-nav a:hover {
  background: rgba(255, 255, 255, .06);
}

.mobile-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, .62);
}

html[data-theme="dark"] .mobile-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, .08);
}

.mobile-actions {
  display: grid;
  gap: 10px;
  padding: 12px 6px 4px;
}

.mobile-actions .btn {
  justify-content: space-between;
}

body.menu-open {
  overflow: hidden
}

@media (max-width: 640px) {
  .site-header {
    top: 10px;
    margin: 12px 0 16px
  }

  .navbar {
    padding: 8px 10px
  }

  .nav-links {
    display: none
  }

  .nav-toggle {
    display: grid
  }

  .desktop-only {
    display: none
  }

  .nav-actions {
    gap: 8px
  }

  .icon-btn {
    height: 38px;
    width: 38px
  }

  .nav-cta {
    height: 40px;
    padding: 0 14px;
    font-size: 13px
  }
}

@media (max-width: 420px) {
  .nav-cta {
    padding: 0 12px
  }
}

.icon-btn {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: rgba(0, 0, 0, 0.04);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s var(--ease-smooth);
}

html[data-theme="dark"] .icon-btn {
  background: rgba(255, 255, 255, 0.1);
}

.icon-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  /* Darker on hover */
  transform: scale(1.05);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  cursor: pointer;
  border: none;
  line-height: 1.2;
}

.btn:hover {
  transform: scale(1.03);
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background: var(--primary);
  color: var(--surface);
  /* Text color needs to contrast with button bg */
}

/* Fix text color for dark mode button (white bg -> black text) */
html[data-theme="dark"] .btn-primary {
  color: #000;
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Ensure secondary buttons like 'Login' etc match */
.btn-secondary {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text);
}

html[data-theme="dark"] .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.1);
}

.btn-wide {
  width: 100%;
}

.btn-link {
  background: transparent;
  box-shadow: none;
  color: var(--accent-blue);
  padding: 0;
  height: auto;
}

.btn-link:hover {
  background: transparent;
  box-shadow: none;
  transform: none;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

/* Typography */
/* Typography */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(0, 113, 227, 0.1);
  color: var(--accent-blue);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

html[data-theme="dark"] .kicker {
  background: rgba(0, 113, 227, 0.2);
}

.h1 {
  font-size: clamp(48px, 6vw, 76px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  background: linear-gradient(135deg, var(--text) 30%, var(--text-tertiary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Animated Hero Title */
.hero-title-animated {
  display: flex;
  flex-direction: column;
  background: none;
  -webkit-text-fill-color: unset;
}

.hero-title-animated .title-line {
  display: block;
  opacity: 0;
  transform: translateY(30px);
  animation: titleReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--delay, 0s);
  background: linear-gradient(135deg, var(--text) 30%, var(--text-tertiary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title-animated .title-line.accent {
  background: linear-gradient(135deg, #0071E3 0%, #00C7BE 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes titleReveal {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 19px;
  /* Official Apple body size usually starts around 17-21px for hero */
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.small {
  color: var(--text-tertiary);
  font-size: 13px;
  margin-top: 16px;
  font-weight: 500;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-tight {
  padding: 60px 0;
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 16px;
}

.section-sub {
  margin: 0;
  color: var(--text-secondary);
  font-size: 19px;
  line-height: 1.5;
  max-width: 600px;
}

/* Cards (Bento Style) */
.card {
  background: var(--surface);
  border: none;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-1);
  transition: all 0.4s var(--ease-spring);
  overflow: hidden;
  position: relative;
}

.card-hover:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-2);
  z-index: 10;
}

.card-pad {
  padding: 24px;
}

.grid {
  display: grid;
  gap: 24px;
}

/* Home hero */
.hero {
  padding-top: 20px;
  position: relative;
}

.hero::before {
  /* Aurora effect */
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 15% 50%, rgba(0, 113, 227, 0.08), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(94, 92, 230, 0.08), transparent 25%);
  z-index: -1;
  pointer-events: none;
}

.hero-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-cta {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 32px;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-visual .floating {
  width: 100%;
  max-width: 500px;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.15));
  animation: floaty 8s ease-in-out infinite;
}

@keyframes floaty {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-15px) rotate(1deg);
  }
}

/* Hero parallax smooth transition */
#hero-mock {
  transition: transform 0.15s ease-out;
}

/* Hero spotlight glow (dark mode) */
.hero-spotlight {
  display: none;
}

html[data-theme="dark"] .hero-spotlight {
  display: block;
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* CTA helper text */
.cta-helper {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Card shine hover effect */
.card-shine {
  position: relative;
  overflow: hidden;
}

.card-shine::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.3),
      transparent);
  transform: skewX(-25deg);
  transition: left 0.5s ease;
  pointer-events: none;
  z-index: 10;
}

.card-shine:hover::before {
  left: 150%;
}

/* Launch Promise Section */
.launch-promise {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  position: relative;
  overflow: hidden;
}

.launch-promise::before {
  content: "";
  position: absolute;
  top: 20%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.08), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.launch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.launch-content {
  max-width: 480px;
}

.launch-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.launch-stat-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-1);
  text-align: center;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}

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

.launch-stat-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.launch-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.launch-stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.launch-disclaimer {
  text-align: center;
  margin-top: 32px;
  font-size: 13px;
  color: var(--text-tertiary);
}

@media (max-width: 768px) {
  .launch-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .launch-stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .launch-stats {
    grid-template-columns: 1fr;
  }
}

/* Industry Chips */
.industry-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.industry-chip {
  display: inline-block;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Systems section */
.systems {
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
  border-top: none;
  border-bottom: none;
}

.systems-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.systems-grid-top,
.systems-grid-bottom {
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.system-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.system-card:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  z-index: 10;
  border-color: var(--accent-blue);
}

html[data-theme="dark"] .system-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.system-card p {
  max-height: 48px;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.system-card:hover p {
  max-height: 120px;
}

.system-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg2);
  color: var(--text);
  display: grid;
  place-items: center;
  margin-bottom: 4px;
  transition: all 0.3s ease;
}

.system-card:hover .system-icon {
  background: rgba(0, 113, 227, 0.1);
  color: var(--accent-blue);
}

.system-icon svg {
  width: 22px;
  height: 22px;
}

.system-card h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.system-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 768px) {

  .systems-grid-top,
  .systems-grid-bottom {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {

  .systems-grid-top,
  .systems-grid-bottom {
    grid-template-columns: 1fr;
  }
}

/* Services cards (home + services page) */
.service-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  /* Inherits .card styles */
  background: var(--surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.3s var(--ease-smooth);
}

.service-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-2);
}

.service-media {
  height: 200px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-smooth);
}

.service-card:hover .service-media img {
  transform: scale(1.05);
}

.service-body {
  padding: 24px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

html[data-theme="dark"] .tag {
  background: rgba(255, 255, 255, 0.1);
}

.service-title {
  margin: 12px 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.service-desc {
  margin: 0 0 16px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.5;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  color: var(--accent-blue);
  transition: opacity 0.2s;
}

.inline-link:hover {
  opacity: 0.7;
}

.inline-link .arrow {
  transition: transform 0.2s var(--ease-spring);
}

.inline-link:hover .arrow {
  transform: translateX(4px);
}

/* Dashboard preview (home) */
.preview {
  padding-top: 40px;
}

.preview-card {
  overflow: hidden;
  padding: 2px;
  /* Slight border effect via padding */
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));
  box-shadow: var(--shadow-2);
}

html[data-theme="dark"] .preview-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
}

html[data-theme="dark"] .preview-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
}

.preview-frame {
  border-radius: 18px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  background: var(--surface);
}

.preview-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* Home page dashboard preview */
.preview-frame.preview-half {
  max-height: 450px;
  overflow: hidden;
}

.preview-frame.preview-half img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top;
}

@media (max-width: 640px) {
  .preview-frame.preview-half {
    max-height: 280px;
  }
}

/* Testimonials */
.testimonials {
  padding-top: 60px;
}

.t-center {
  text-align: center;
}

.quote-grid {
  margin-top: 32px;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.quote {
  padding: 32px;
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-1);
}

.quote-result {
  display: inline-block;
  padding: 6px 12px;
  margin-bottom: 16px;
  border-radius: var(--radius-pill);
  background: rgba(52, 199, 89, 0.1);
  color: #34C759;
  font-size: 13px;
  font-weight: 600;
}

.quote .marks {
  font-size: 40px;
  line-height: 1;
  color: var(--accent-blue);
  opacity: 0.3;
  margin-bottom: 16px;
}

.quote p {
  margin: 0 0 24px;
  color: var(--text);
  font-size: 17px;
  /* Larger body for quotes */
  line-height: 1.5;
  font-weight: 500;
}

.person {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person b {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.person span {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
}

/* Pricing */
/* Pricing (Cards) */
.pricing-hero {
  padding-top: 32px;
  text-align: center;
}

.pricing-wrap {
  margin-top: 40px;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 24px;
}

.price-card {
  /* Inherits .card */
  padding: 32px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius-xl);
  transition: transform 0.3s var(--ease-spring);
}

.price-card:hover {
  transform: scale(1.02);
  z-index: 5;
}

.price-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}

.price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 16px 0 8px;
}

.price:empty {
  min-height: 52px;
}

.price b {
  font-size: 48px;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: var(--text);
}

.price span {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
}

.price-note {
  margin: 0 0 24px;
  color: var(--text-secondary);
  font-size: 13px;
}

/* Plan speed tagline */
.plan-speed-tag {
  display: inline-block;
  padding: 6px 12px;
  margin: 8px 0 0;
  border-radius: var(--radius-pill);
  background: rgba(0, 113, 227, 0.08);
  color: var(--accent-blue);
  font-size: 12px;
  font-weight: 600;
}

html[data-theme="dark"] .plan-speed-tag {
  background: rgba(0, 113, 227, 0.15);
}

/* Intent chips for contact form */
.intent-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.intent-chip {
  cursor: pointer;
}

.intent-chip input {
  display: none;
}

.intent-chip span {
  display: inline-block;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--bg2);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.intent-chip:hover span {
  border-color: var(--accent-blue);
}

.intent-chip input:checked+span {
  background: rgba(0, 113, 227, 0.1);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

html[data-theme="dark"] .intent-chip input:checked+span {
  background: rgba(0, 113, 227, 0.2);
}

/* Form reply note */
.form-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-tertiary);
  text-align: center;
}

.features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 12px;
  flex: 1;
  /* Push button to bottom */
}

.features li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.4;
}

.check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-blue);
  color: white;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  margin-top: 1px;
}

.check svg {
  width: 12px;
  height: 12px;
  stroke-width: 3;
}

.popular {
  position: relative;
  border: 2px solid var(--accent-blue);
  box-shadow: 0 20px 40px rgba(0, 113, 227, 0.15);
}

.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent-blue);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-blue {
  background: var(--accent-blue);
  color: white;
  width: 100%;
}

.btn-blue:hover {
  background: var(--primary-hover);
}

/* FAQ */
.faq {
  margin-top: 80px;
}

.faq h2 {
  margin: 0 0 32px;
  font-size: 32px;
  text-align: center;
}

.faq-grid {
  /* Single column for better readability on FAQ usually, or keep 2 col if preferred. Let's stick to 2 but improve card look */
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.accordion {
  background: transparent;
  /* Remove container bg to let items stand out */
  box-shadow: none;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ac-item {
  border: none;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.ac-item+.ac-item {
  border-top: none;
}

/* Remove old separator */
.ac-item:hover {
  box-shadow: var(--shadow-2);
}

.ac-btn {
  width: 100%;
  background: transparent;
  border: none;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--text);
  font-weight: 600;
  font-size: 17px;
  text-align: left;
}

.ac-btn span:last-child {
  color: var(--accent-blue);
  font-weight: 800;
  font-size: 20px;
  transition: transform 0.3s var(--ease-spring);
}

.ac-btn[aria-expanded="true"] span:last-child {
  transform: rotate(180deg);
}

.ac-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-smooth);
}

.ac-panel .inner {
  padding: 0 24px 24px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
}

/* Footer (4-col) */
.footer {
  margin-top: 80px;
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  /* Brand + 3 Links cols */
  gap: 40px;
}

.footer-brand div {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 16px;
}

.footer-col h5 {
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--accent-blue);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: span 2;
    margin-bottom: 20px;
  }
}

/* Contact */
.contact-hero {
  text-align: center;
  padding-top: 40px;
}

.contact-grid {
  margin-top: 40px;
  grid-template-columns: 1.5fr 1fr;
  align-items: start;
  gap: 32px;
}

.form {
  /* Inherits card */
  padding: 40px;
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-1);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.input,
.textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: all 0.2s var(--ease-smooth);
}

html[data-theme="dark"] .input,
html[data-theme="dark"] .textarea {
  background: rgba(255, 255, 255, 0.05);
}

.textarea {
  border-radius: 12px;
  min-height: 140px;
  resize: vertical;
}

.input:focus,
.textarea:focus {
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
  border-color: var(--accent-blue);
  background: var(--surface);
}

.contact-side {
  padding: 32px;
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-1);
}

.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.info-item:last-child {
  border-bottom: none;
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--accent-blue);
  font-size: 20px;
  flex: 0 0 auto;
}

.info-item b {
  display: block;
  margin: 0 0 4px;
  font-size: 15px;
  color: var(--text);
}

.info-item p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

/* Dashboard page */
.dash {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 22px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 98px;
  padding: 16px 14px;
  border-radius: 26px;
}

.side-links {
  display: grid;
  gap: 4px;
  margin-top: 6px;
}

.side-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 14px;
  color: var(--muted);
  font-weight: 650;
  font-size: 14px;
  transition: background .18s ease, transform .18s ease, color .18s ease;
}

.side-links a:hover {
  transform: translateY(-1px)
}

.side-links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, .58);
  border: 1px solid var(--border);
}

html[data-theme="dark"] .side-links a.active {
  background: rgba(255, 255, 255, .06);
}

.side-ic {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .55);
}

html[data-theme="dark"] .side-ic {
  background: rgba(255, 255, 255, .06)
}

.dash-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.dash-top h1 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -.02em;
}

.dash-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.select {
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .55);
  color: var(--text);
  font-weight: 650;
  font-family: inherit;
}

html[data-theme="dark"] .select {
  background: rgba(255, 255, 255, .06)
}

/* Dashboard specific */
.dash {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
}

.sidebar {
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  text-decoration: none;
}

.nav-item:hover {
  background: rgba(0, 0, 0, 0.03);
  color: var(--text);
}

.nav-item.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  /* White card active state */
  font-weight: 600;
}

.nav-item .icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

/* Dashboard Content Area */
.dash h1 {
  font-size: 24px;
  margin: 0;
}

.kpi-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 20px;
}

/* Compact KPI Card Style (Reference Design) */
.kpi-card-compact {
  background: linear-gradient(135deg, #e8f4f8 0%, #f8fbfc 100%);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: var(--shadow-1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.kpi-card-compact:nth-child(1) {
  background: linear-gradient(135deg, #e3f0ff 0%, #f5f9ff 100%);
}

.kpi-card-compact:nth-child(2) {
  background: linear-gradient(135deg, #e8f8ef 0%, #f5fcf8 100%);
}

.kpi-card-compact:nth-child(3) {
  background: linear-gradient(135deg, #fff5e8 0%, #fffbf5 100%);
}

.kpi-card-compact:nth-child(4) {
  background: linear-gradient(135deg, #f3e8ff 0%, #faf5ff 100%);
}

html[data-theme="dark"] .kpi-card-compact {
  background: var(--surface);
}

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

.kpi-compact-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.kpi-compact-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.kpi-compact-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 16px;
}

.kpi-compact-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

/* New KPI Card Style (Reference) */
.kpi-card-new {
  background: var(--surface);
  border-radius: 18px;
  padding: 20px 24px;
  box-shadow: var(--shadow-1);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 110px;
  position: relative;
}

/* Subtle gradients for cards if desired, or keep white per image */
.kpi-card-new:nth-child(1) {
  background: linear-gradient(135deg, #F0F4FF 0%, #FFFFFF 100%);
}

.kpi-card-new:nth-child(2) {
  background: linear-gradient(135deg, #F2F7FA 0%, #FFFFFF 100%);
}

.kpi-card-new:nth-child(3) {
  background: linear-gradient(135deg, #FFF8F0 0%, #FFFFFF 100%);
}

.kpi-card-new:nth-child(4) {
  background: linear-gradient(135deg, #F0FFF4 0%, #FFFFFF 100%);
}

html[data-theme="dark"] .kpi-card-new {
  background: var(--surface);
}

.kpi-text h3 {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  margin: 0 0 8px;
}

.kpi-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.kpi-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 18px;
}

.kpi-badge.blue {
  background: #D6E4FF;
  color: #0071E3;
}

.kpi-badge.blue-light {
  background: #E0EAF5;
  color: #0071E3;
}

.kpi-badge.orange {
  background: #FFE8D6;
  color: #FF9500;
}

.kpi-badge.green {
  background: #D6FFE0;
  color: #34C759;
}

html[data-theme="dark"] .kpi-badge {
  opacity: 0.8;
}

/* Line Chart SVG */
.line-chart-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Line Chart Container */
.line-chart-container {
  display: flex;
  gap: 12px;
  padding: 16px 0;
}

.chart-y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-tertiary);
  padding: 4px 0;
  min-width: 30px;
  text-align: right;
}

.chart-area {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.chart-area svg {
  width: 100%;
  height: 200px;
  border-radius: 8px;
}

.chart-x-labels {
  display: flex;
  justify-content: space-between;
  padding: 12px 0 0;
  font-size: 12px;
  color: var(--text-tertiary);
}

.chart-canvas {
  padding: 10px 0;
  position: relative;
}

.chart-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: var(--text-tertiary);
  font-size: 12px;
  padding: 0 10px;
}

.select-sm {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 12px;
  color: var(--text);
  outline: none;
}

/* Bottom Grid */
.dash-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

@media (max-width: 900px) {
  .dash-bottom {
    grid-template-columns: 1fr;
  }
}

/* Team List */
.team-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.team-row:first-of-type {
  border-top: none;
}

.team-info {
  flex: 1;
}

.team-info b {
  display: block;
  font-size: 14px;
  color: var(--text);
}

.team-info span {
  font-size: 12px;
  color: var(--text-secondary);
}

.team-stat {
  text-align: center;
  min-width: 48px;
}

.team-stat b {
  display: block;
  font-size: 14px;
  color: var(--text);
}

.team-stat span {
  display: block;
  font-size: 11px;
  color: var(--text-tertiary);
}

.avatar-sm {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  overflow: hidden;
}

.avatar-sm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Recent Activity Dots */
.dot-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 16px;
  background: var(--bg);
}

.dot-icon.blue {
  background: #D6E4FF;
  color: #0071E3;
}

.dot-icon.green {
  background: #D6FFE0;
  color: #34C759;
}

.dot-icon.orange {
  background: #FFE8D6;
  color: #FF9500;
}

@media (max-width: 1100px) {
  .dash {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  /* Hide sidebar on mobile for now */
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* KPI Card New Style */
.kpi-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-1);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform 0.2s;
}

.kpi-card:hover {
  transform: translateY(-2px);
}

.kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}

.icon-blue {
  background: rgba(0, 113, 227, 0.1);
  color: #0071E3;
}

.icon-orange {
  background: rgba(255, 149, 0, 0.1);
  color: #FF9500;
}

.icon-green {
  background: rgba(52, 199, 89, 0.1);
  color: #34C759;
}

.icon-purple {
  background: rgba(175, 82, 222, 0.1);
  color: #AF52DE;
}

.kpi-info h3 {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
}

.kpi-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 4px;
}

.kpi-trend {
  font-size: 13px;
  font-weight: 600;
  display: flex;
  gap: 6px;
  align-items: center;
}

.kpi-trend.up {
  color: #34C759;
}

.kpi-trend.down {
  color: #FF3B30;
}

.trend-label {
  color: var(--text-tertiary);
  font-weight: 400;
}

/* Dashboard Chart Card */
.chart-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-1);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.chart-header h3 {
  margin: 0;
  font-size: 18px;
  color: var(--text);
}

.chart-legend {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-secondary);
}

.chart-legend span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

.dot-1 {
  background: var(--accent-blue);
}

.dot-2 {
  background: var(--text-tertiary);
}

.chart-body {
  height: 240px;
  width: 100%;
  display: flex;
  align-items: flex-end;
}

.bar-group {
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 10px;
}

.bar-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  height: 100%;
  position: relative;
  gap: 4px;
}

.bar {
  width: 12px;
  border-radius: 6px;
  transition: height 0.6s var(--ease-spring);
}

.bar.b1 {
  background: var(--accent-blue);
  box-shadow: 0 4px 10px rgba(0, 113, 227, 0.2);
  z-index: 2;
}

.bar.b2 {
  background: rgba(0, 0, 0, 0.1);
  width: 12px;
  margin-bottom: -4px;
  /* overlap stack effect */
  height: 10px;
}

html[data-theme="dark"] .bar.b2 {
  background: rgba(255, 255, 255, 0.1);
}

.label {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-tertiary);
}

/* Hover effect on bars */
.bar-col:hover .bar.b1 {
  transform: scaleY(1.05);
  filter: brightness(1.1);
}

.kpi {
  padding: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.kpi b {
  display: block;
  font-size: 22px;
  letter-spacing: -.02em;
  margin-top: 6px;
}

.kpi span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.kpi-ic {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: rgba(90, 163, 255, .14);
}

.chart-card {
  padding: 16px
}

.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.chart-head h2 {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: -.01em
}

.chart-wrap {
  border-radius: 18px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: rgba(255, 255, 255, .35);
}

html[data-theme="dark"] .chart-wrap {
  background: rgba(255, 255, 255, .03)
}

.chart-wrap svg {
  width: 100%;
  height: 240px;
  display: block
}

.dash-bottom {
  margin-top: 14px;
  grid-template-columns: 1.1fr .9fr;
}

.list {
  padding: 16px;
}

.list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.list-head h3 {
  margin: 0;
  font-size: 14px;
  color: var(--muted)
}

.list-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.list-item b {
  display: block;
  font-size: 12px;
  font-weight: 600;
}

.list-item span {
  display: block;
  color: var(--text-tertiary);
  font-size: 11px;
  margin-top: 2px;
}

.dot {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(90, 163, 255, .14);
  border: 1px solid rgba(90, 163, 255, .18);
}

/* Rotating Text Animation */
.rotating-text {
  display: inline-block;
  font-weight: 700;
  position: relative;
  transition: color 0.3s ease;
}

/* When inside h1, make it gradient colored */
.h1 .rotating-text {
  background: linear-gradient(135deg, #0071E3 0%, #00C7BE 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rotating-text.fade-out {
  animation: fadeOut 0.3s ease forwards;
}

.rotating-text.fade-in {
  animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.table {
  padding: 16px;
}

.table-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.table-head h3 {
  margin: 0;
  font-size: 14px;
  color: var(--muted)
}

.table-row {
  display: grid;
  grid-template-columns: 1.4fr .6fr .6fr .6fr;
  gap: 8px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

.table-row b {
  color: var(--text)
}

.mini-person {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mini-person .avatar {
  width: 30px;
  height: 30px
}

/* Footer */
.footer {
  margin-top: 58px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--muted2);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer a {
  color: var(--muted2)
}

.footer a:hover {
  color: var(--text)
}

/* Reveal (scroll-in) */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
}

[data-reveal].active {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-wrap {
    grid-template-columns: 1fr;
    gap: 22px
  }

  .hero-visual {
    order: -1
  }

  .systems-grid-top {
    grid-template-columns: 1fr
  }

  .systems-grid-bottom {
    grid-template-columns: 1fr 1fr
  }

  .service-grid {
    grid-template-columns: 1fr
  }

  .quote-grid {
    grid-template-columns: 1fr
  }

  .pricing-wrap {
    grid-template-columns: 1fr
  }

  .faq-grid {
    grid-template-columns: 1fr
  }

  .contact-grid {
    grid-template-columns: 1fr
  }

  .dash {
    grid-template-columns: 1fr
  }

  .sidebar {
    position: relative;
    top: auto
  }

  .kpi-grid {
    grid-template-columns: 1fr 1fr
  }

  .dash-bottom {
    grid-template-columns: 1fr
  }
}

@media (max-width: 640px) {
  .hero-cta {
    flex-wrap: wrap
  }

  .field-row {
    grid-template-columns: 1fr
  }

  .kpi-grid {
    grid-template-columns: 1fr
  }

  .systems-grid-bottom {
    grid-template-columns: 1fr
  }
}

/* Legal Pages (Privacy, Terms) */
.legal-content {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
}

.legal-content h2 {
  color: var(--text);
  font-size: 20px;
  font-weight: 600;
  margin: 40px 0 16px;
  letter-spacing: -0.01em;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  margin: 0 0 16px;
}

.legal-content ul {
  margin: 0 0 16px;
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content a {
  color: var(--accent-blue);
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}