/* ==========================================================================
   JAVV Digital — Clean CSS
   Design system: dark theme, Inter font, purple gradient accents
   ========================================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; scrollbar-color: rgba(116,82,255,.5) rgba(0,0,0,.1); scrollbar-width: thin; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; font-weight: 400; line-height: 1.6; color: rgba(255,255,255,.75); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-weight: 600; line-height: 1.2; color: #fff; }

/* ---------- Custom scrollbar ---------- */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,.01); border-radius: 10px; }
::-webkit-scrollbar-thumb { background: rgba(116,82,255,.5); border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(116,82,255,.8); }

/* ---------- Variables ---------- */
:root {
  --color-bg: #100e1b;
  --color-bg-light: #1a1730;
  --color-purple: #7452ff;
  --color-purple-hover: #5e42c7;
  --color-pink: #a13e97;
  --color-white: #fff;
  --color-white-75: rgba(255,255,255,.75);
  --color-white-50: rgba(255,255,255,.5);
  --color-white-25: rgba(255,255,255,.25);
  --gradient-text: linear-gradient(90deg, #a13e97 40%, #926eff 95%);
  --gradient-hero: linear-gradient(90deg, #fff 0%, #a13e97 50%, #5e42c7 100%);
  --gradient-bg: linear-gradient(135deg, var(--color-purple), var(--color-pink));
  --container-width: 1200px;
  --section-padding: 80px 40px;
  --radius: 10px;
  --radius-lg: 20px;
  --transition: .25s ease;
}

/* ---------- Body themes ---------- */
.body-dark { background: var(--color-bg); color: var(--color-white-75); }
.body-light { background: #fff; color: #333; }
.body-light h1, .body-light h2, .body-light h3, .body-light h4 { color: #1a1a1a; }
.body-light .paragraph-light { color: #555; }
.body-light .footer-paragraph { color: #555; }

/* ---------- Layout ---------- */
.section { max-width: var(--container-width); margin: 0 auto; padding: var(--section-padding); }
.row { display: flex; gap: 40px; align-items: center; }
.col-6 { flex: 1; min-width: 0; }
.centered-content { text-align: center; max-width: 800px; margin: 0 auto; }
.centered-content > * + * { margin-top: 1em; }

/* ---------- Responsive visibility ---------- */
.desktop-only { display: block; }
.mobile-only { display: none; }

@media (max-width: 768px) {
  :root { --section-padding: 40px 20px; }
  .row { flex-direction: column; gap: 30px; }
  .col-6 { width: 100%; }
  .desktop-only { display: none; }
  .mobile-only { display: block; }
}

/* ---------- Typography ---------- */
.hero-heading { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; line-height: 1.1; margin-bottom: .5em; }
.section-heading { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 600; margin-bottom: .5em; }
.page-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; margin-bottom: .5em; }
.paragraph-light { color: var(--color-white-75); font-weight: 300; line-height: 1.7; }
.paragraph-light.small { font-size: .9em; }
.heading-caps { text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.text-accent { font-style: italic; }
.text-muted { font-size: .85em; opacity: .6; }

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

/* ---------- Gradient line ---------- */
.gradient-line { height: 2px; background: var(--gradient-text); border-radius: 2px; margin: 12px 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 12px 28px; border-radius: 50px; font-size: .9rem; font-weight: 500; transition: all var(--transition); text-align: center; }
.btn-purple { background: var(--color-purple); color: #fff; }
.btn-purple:hover { background: var(--color-purple-hover); }
.btn-outline { border: 1px solid var(--color-white-25); color: var(--color-white-75); }
.btn-outline:hover { border-color: var(--color-white-50); color: #fff; }
.btn.small { padding: 8px 20px; font-size: .8rem; }

.body-light .btn-outline { border-color: rgba(0,0,0,.2); color: #333; }
.body-light .btn-outline:hover { border-color: rgba(0,0,0,.4); }

/* ---------- Navbar ---------- */
.navbar { position: sticky; top: 0; z-index: 1000; padding: 16px 40px; background: rgba(16,14,27,.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: background var(--transition); }
.navbar-white { background: rgba(255,255,255,.9); }
.navbar-container { max-width: var(--container-width); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.navbar-brand { flex-shrink: 0; }
.navbar-logo { height: 30px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 24px; }
.nav-link { font-size: .8rem; font-weight: 500; text-transform: uppercase; letter-spacing: .03em; color: var(--color-white-75); transition: color var(--transition); padding: 8px 0; }
.nav-link:hover { color: var(--color-purple); }
.nav-link.black { color: #333; }
.nav-link.black:hover { color: var(--color-purple); }
.nav-btn { display: inline-block; padding: 10px 24px; border-radius: 50px; font-size: .8rem; font-weight: 500; border: 1px solid var(--color-white-25); color: #fff; transition: all var(--transition); }
.nav-btn:hover { background: var(--color-purple); border-color: var(--color-purple); }
.nav-btn.gradient { background: var(--gradient-bg); border-color: transparent; color: #fff; }

/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown-toggle { font-size: .8rem; font-weight: 500; text-transform: uppercase; letter-spacing: .03em; color: var(--color-white-75); transition: color var(--transition); padding: 8px 0; }
.dropdown-toggle.black { color: #333; }
.dropdown-toggle:hover { color: var(--color-purple); }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); background: rgba(17,15,28,.92); backdrop-filter: blur(12px); border-radius: var(--radius); padding: 8px 0; min-width: 200px; box-shadow: 0 10px 40px rgba(0,0,0,.3); }
.nav-dropdown:hover .dropdown-menu, .nav-dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-link { display: block; padding: 10px 20px; font-size: .8rem; text-transform: uppercase; color: #fff; transition: all var(--transition); }
.dropdown-link:hover { color: var(--color-purple); background: rgba(255,255,255,.08); }

/* Mobile menu */
.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.mobile-menu-btn span { display: block; width: 24px; height: 2px; background: #fff; transition: all var(--transition); }
.mobile-menu-btn.black span { background: #333; }

@media (max-width: 768px) {
  .navbar { padding: 12px 20px; }
  .nav-menu { display: none; position: fixed; top: 0; right: 0; width: 280px; height: 100vh; background: var(--color-bg); flex-direction: column; padding: 80px 30px 30px; gap: 16px; z-index: 999; }
  .nav-menu.open { display: flex; }
  .navbar-white .nav-menu { background: #fff; }
  .mobile-menu-btn { display: flex; z-index: 1000; }
  .dropdown-menu { position: static; transform: none; background: transparent; box-shadow: none; padding: 0 0 0 16px; }
  .nav-dropdown:hover .dropdown-menu { display: block; }
}

/* ---------- Hero ---------- */
.hero-section { padding-top: 60px; }
.hero-content { max-width: 560px; }
.hero-image-wrapper img { width: 100%; }
.hero-buttons { display: flex; gap: 16px; margin: 24px 0; flex-wrap: wrap; }
.hero-subheading { font-size: .95rem; color: var(--color-white-50); margin-top: 20px; }
.users-wrapper { display: flex; align-items: center; gap: 16px; margin: 24px 0; flex-wrap: wrap; }
.users-heading { font-size: 2.5rem; font-weight: 700; }
.users-text { font-size: .9rem; }
.users-image { width: auto; max-width: 200px; height: auto; }
@media (max-width: 768px) { .users-image { max-width: 100%; } }

/* ---------- Phone/Software section ---------- */
.phones-hero { width: 100%; max-width: 572px; }
.phones-hero.phones-hero-small { max-width: 380px; margin: 0 auto; }
.phones-hero.phones-hero-large { max-width: none; }

/* Dashboard layout — let phones overflow and appear larger */
.dashboard-row { align-items: flex-start; }
.dashboard-phones-col { flex: 0 0 55%; max-width: 55%; overflow: visible; margin-right: -80px; }
.dashboard-phones-col .phones-hero { width: 130%; max-width: none; }
@media (max-width: 768px) { 
  .dashboard-phones-col { flex: 0 0 100%; max-width: 100%; margin-right: 0; }
  .dashboard-phones-col .phones-hero { width: 100%; }
}

@media (max-width: 768px) { .phones-hero { max-width: 100%; margin: 0 auto; } .col-6 { overflow: hidden; } }
.checklist { display: flex; flex-direction: column; gap: 12px; margin: 20px 0; }
.check-item { display: flex; align-items: center; gap: 12px; color: var(--color-white-75); }
.check-icon { width: 40px; height: 40px; flex-shrink: 0; }

/* ---------- Feature cards ---------- */
.feature-grid { display: grid; gap: 24px; margin-top: 40px; }
.feature-grid.two-col { grid-template-columns: repeat(2, 1fr); }
.feature-grid.three-col { grid-template-columns: repeat(3, 1fr); }
.feature-card { background: var(--color-bg-light); border-radius: var(--radius-lg); padding: 32px; transition: transform var(--transition); }
.feature-card:hover { transform: translateY(-4px); }
.feature-card.large { padding: 48px; }
.feature-icon { margin-bottom: 16px; }
.feature-icon img { height: 80px; width: auto; }
.feature-card h4 { margin-bottom: 8px; }

@media (max-width: 768px) {
  .feature-grid.two-col, .feature-grid.three-col { grid-template-columns: 1fr; }
}

/* ---------- Service cards (homepage) ---------- */
.service-card { display: flex; gap: 16px; padding: 24px; border-radius: var(--radius-lg); background: var(--color-bg-light); margin-bottom: 16px; transition: transform var(--transition); }
.service-card:hover { transform: translateY(-2px); }
.service-card-icon { flex-shrink: 0; }
.service-card-content h3 { font-size: 1rem; margin-bottom: 4px; }

/* ---------- Process steps ---------- */
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin-top: 40px; }
.process-steps.four-col { grid-template-columns: repeat(4, 1fr); }
.step-card { background: var(--color-bg-light); border-radius: var(--radius-lg); padding: 32px; text-align: center; }
.step-number { font-size: 2rem; font-weight: 700; background: var(--gradient-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: block; margin-bottom: 12px; }
.step-card h4 { font-size: .95rem; }

@media (max-width: 768px) { .process-steps.four-col { grid-template-columns: 1fr 1fr; } }

/* ---------- Stats banner (carousel) ---------- */
.stats-banner { overflow: hidden; padding-top: 0; padding-bottom: 0; max-width: 100%; }
.carousel-track-banner { display: flex; width: max-content; animation: scroll-banner 25s linear infinite; }
.carousel-track-banner:hover { animation-play-state: paused; }
.banner-item { flex: 0 0 auto; padding: 24px 48px; text-align: center; }
.banner-value { font-size: 2rem; font-weight: 700; line-height: 1.2; }
.banner-label { font-size: 1rem; font-weight: 500; color: #fff; }
.banner-sublabel { font-size: .8rem; color: var(--color-white-50); }

.stat-highlight { text-align: center; padding: 40px 0; }
.stat-big-number { font-size: clamp(3rem, 8vw, 6rem); font-weight: 700; }

@keyframes scroll-banner { 0% { transform: translateX(0); } 100% { transform: translateX(-25%); } }

/* ---------- Case study carousel ---------- */
.carousel-wrapper { overflow: hidden; margin-top: 40px; }
.carousel-track { display: flex; animation: scroll-carousel 30s linear infinite; }
.carousel-track:hover { animation-play-state: paused; }
.carousel-item { flex: 0 0 auto; width: 324px; margin-right: 24px; }
.carousel-link { display: block; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-bg-light); transition: transform var(--transition); }
.carousel-link:hover { transform: translateY(-4px); }
.carousel-image { width: 100%; height: 200px; object-fit: cover; }
.carousel-desc { padding: 16px; }
.carousel-heading { font-size: 1rem; margin-bottom: 8px; }
.carousel-text { font-size: .85rem; color: var(--color-white-50); }

@keyframes scroll-carousel { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@media (max-width: 768px) { .carousel-track { animation: none; flex-wrap: wrap; gap: 16px; } .carousel-item { width: 100%; margin-right: 0; } .carousel-item.copy { display: none; } }

/* ---------- Blog listing ---------- */
.page-header { text-align: center; padding-bottom: 0; }
.blog-filter-wrapper { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 40px; }
.blog-filter-btn { background: transparent; color: var(--color-white-75); border: 1px solid var(--color-white-25); border-radius: 50px; padding: 8px 20px; font-family: inherit; font-size: .85rem; transition: all var(--transition); }
.blog-filter-btn:hover { border-color: var(--color-white-50); color: #fff; }
.blog-filter-btn.active { background: rgba(116,82,255,.2); border-color: var(--color-purple); color: #fff; }

.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.blog-card-link { display: block; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-bg-light); transition: transform var(--transition); }
.blog-card-link:hover { transform: translateY(-4px); }
.blog-card-image-wrapper { width: 100%; height: 260px; overflow: hidden; }
.blog-card-image { width: 100%; height: 100%; object-fit: cover; }
.blog-card-date { font-size: .8rem; color: var(--color-white-50); padding: 16px 16px 4px; }
.blog-card-title { font-size: 1.1rem; padding: 0 16px; margin-bottom: 8px; }
.blog-card-desc { font-size: .85rem; color: var(--color-white-50); padding: 0 16px; }
.blog-card-category { padding: 12px 16px 16px; }
.category-tag { font-size: .75rem; background: rgba(116,82,255,.15); color: var(--color-purple); padding: 4px 12px; border-radius: 50px; }

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

/* ---------- Blog post detail ---------- */
.blog-content-wrapper { max-width: 760px; margin: 0 auto; min-height: 60vh; }
.main-blog-image { width: 100%; border-radius: var(--radius-lg); margin-bottom: 24px; }
.blog-meta { font-size: .85rem; color: var(--color-white-50); margin-bottom: 8px; }
.rich-text-element { color: var(--color-white-75); line-height: 1.8; }
.rich-text-element h2 { font-size: 1.5rem; margin-top: 2em; margin-bottom: .5em; color: var(--color-white); }
.rich-text-element h3 { font-size: 1.2rem; margin-top: 1.5em; margin-bottom: .4em; color: var(--color-white); }
.rich-text-element p { margin-bottom: 1em; }
.rich-text-element a { color: var(--color-purple); text-decoration: underline; }
.rich-text-element ul, .rich-text-element ol { padding-left: 1.5em; margin-bottom: 1em; }
.rich-text-element li { margin-bottom: .5em; list-style: disc; }
.rich-text-element ol li { list-style: decimal; }
.rich-text-element img { border-radius: var(--radius); margin: 1em 0; }
.rich-text-element blockquote { border-left: 3px solid var(--color-purple); padding-left: 1em; margin: 1.5em 0; font-style: italic; color: var(--color-white-50); }
.rich-text-element strong { color: var(--color-white); }

/* Blog inline images */
.rich-text-element figure.blog-inline-image { float: left; max-width: 50%; margin: 0 1.5em 1em 0; }
.rich-text-element figure.blog-inline-image img { width: 100%; border-radius: var(--radius); }
@media (max-width: 768px) {
  .rich-text-element figure.blog-inline-image { float: none; max-width: 100%; margin: 1em 0; }
}

/* Blog preview (homepage/service) */
.blog-preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.blog-preview-card { display: block; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-bg-light); transition: transform var(--transition); }
.blog-preview-card:hover { transform: translateY(-4px); }
.blog-preview-image { width: 100%; height: 200px; object-fit: cover; }
.blog-preview-date { font-size: .8rem; color: var(--color-white-50); padding: 12px 16px 4px; }
.blog-preview-title { font-size: .95rem; padding: 0 16px; margin-bottom: 8px; }
.blog-preview-desc { font-size: .85rem; color: var(--color-white-50); padding: 0 16px 16px; }

@media (max-width: 768px) { .blog-preview-grid { grid-template-columns: 1fr; } }

/* ---------- Case study listing ---------- */
.cs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.cs-card-link { display: block; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-bg-light); transition: transform var(--transition); }
.cs-card-link:hover { transform: translateY(-4px); }
.cs-card-image-wrapper { overflow: hidden; }
.cs-card-image { width: 100%; height: 250px; object-fit: cover; }
.cs-card-title { font-size: 1.1rem; padding: 0 16px; margin-bottom: 8px; }
.cs-card-desc { font-size: .85rem; color: var(--color-white-50); padding: 0 16px 16px; }

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

/* ---------- Case study detail ---------- */
.cs-cover-image { width: 100%; border-radius: var(--radius-lg); }
.cs-heading { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 32px; }
.cs-body-layout { display: flex; gap: 40px; align-items: flex-start; min-height: 50vh; }
.cs-numbers-column { flex: 0 0 auto; max-width: 240px; position: sticky; top: 100px; }
.cs-numbers-column img { width: 100%; height: auto; }
.cs-text { flex: 1; min-width: 0; }

.rich-text-block h2 { font-weight: 600; font-size: 1.4em; margin-top: 1.5em; margin-bottom: .5em; background: var(--gradient-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.rich-text-block h3 { font-weight: 600; font-size: 1.15em; margin-top: 1.2em; margin-bottom: .4em; background: var(--gradient-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.rich-text-block h5 { color: #fff; font-weight: 600; }
.rich-text-block strong { color: #fff; }
.rich-text-block p, .rich-text-block li { color: var(--color-white-75); line-height: 1.7; margin-bottom: .8em; }
.rich-text-block ul { padding-left: 1.5em; }
.rich-text-block li { list-style: disc; margin-bottom: .4em; }
.rich-text-block a { color: var(--color-purple); text-decoration: underline; }
.rich-text-block img { border-radius: var(--radius); margin: 1em 0; }

@media (max-width: 768px) {
  .cs-body-layout { flex-direction: column; }
  .cs-numbers-column { max-width: 100%; position: static; }
}

/* ---------- Contact section ---------- */
.contact-section { background: var(--gradient-bg); border-radius: var(--radius-lg); text-align: center; margin-top: 40px; }
.contact-section.gradient { max-width: 100%; padding: 60px 40px; }
.contact-heading { font-size: 2rem; margin-bottom: 12px; }
.contact-paragraph { max-width: 600px; margin: 0 auto 24px; }
.newsletter-form { display: flex; gap: 8px; max-width: 400px; margin: 0 auto; }
.form-input { flex: 1; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25); border-radius: 50px; padding: 12px 20px; color: #fff; font-family: inherit; font-size: .9rem; outline: none; transition: border-color var(--transition); }
.form-input::placeholder { color: rgba(255,255,255,.5); }
.form-input:focus { border-color: #fff; }
.form-submit-btn { background: rgba(255,255,255,.2); border-radius: 50%; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; transition: background var(--transition); flex-shrink: 0; }
.form-submit-btn:hover { background: rgba(255,255,255,.3); }
.form-submit-btn img { width: 16px; height: 16px; }

/* ---------- Contact page form ---------- */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: .85rem; font-weight: 500; color: var(--color-white-75); }
.body-light .form-label { color: #555; }
.contact-form .form-input { border-radius: var(--radius); background: var(--color-bg-light); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-submit { align-self: flex-start; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-detail { display: flex; align-items: center; gap: 12px; color: var(--color-white-75); }
.contact-icon { width: 30px; height: 30px; flex-shrink: 0; }
.contact-label { font-weight: 600; color: #fff; }

/* ---------- Footer ---------- */
.footer { padding: 60px 40px 30px; max-width: var(--container-width); margin: 0 auto; }
.footer-columns { display: flex; gap: 40px; }
.footer-col { flex: 1; }
.footer-col-main { flex: 2; }
.footer-logo { height: 30px; width: auto; margin-bottom: 16px; }
.footer-paragraph { font-size: .9rem; color: var(--color-white-50); margin-bottom: 16px; }
.footer-heading { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; color: var(--color-white-50); }
.footer-link { display: block; font-size: .85rem; color: var(--color-white-75); padding: 4px 0; transition: color var(--transition); }
.footer-link:hover { color: #fff; }
.footer-contact-link { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--color-white-75); padding: 4px 0; transition: color var(--transition); }
.footer-contact-link:hover { color: #fff; }
.footer-icon { width: 24px; height: 24px; flex-shrink: 0; }
.footer-social { display: flex; gap: 16px; margin-top: 24px; padding-top: 16px; }
.social-link { opacity: .6; transition: opacity var(--transition); }
.social-link:hover { opacity: 1; }
.social-link img { width: 25px; height: 25px; }
.footer-line { height: 1px; background: var(--color-white-25); margin: 24px 0 16px; }
.footer-legal { display: flex; gap: 20px; }
.legal-link { font-size: .8rem; color: var(--color-white-50); transition: color var(--transition); }
.legal-link:hover { color: #fff; }

@media (max-width: 768px) {
  .footer { padding: 40px 20px 20px; }
  .footer-columns { flex-direction: column; gap: 30px; }
}

/* ---------- Legal pages ---------- */
.legal-content { max-width: 760px; margin: 0 auto; }
.legal-content h1 { margin-bottom: 1em; }
.legal-content h2 { font-size: 1.3rem; margin-top: 2em; margin-bottom: .5em; }
.legal-content h3 { font-size: 1.1rem; margin-top: 1.5em; margin-bottom: .5em; }
.legal-content p { margin-bottom: 1em; line-height: 1.7; }
.legal-content a { color: var(--color-purple); text-decoration: underline; }

/* ---------- Cookie popup ---------- */
.cookie-popup { position: fixed; bottom: 20px; left: 20px; right: 20px; max-width: 500px; background: var(--color-bg-light); border: 1px solid var(--color-white-25); border-radius: var(--radius-lg); padding: 24px; z-index: 10000; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.cookie-heading { font-size: 1.1rem; margin-bottom: 8px; }
.cookie-text { font-size: .85rem; color: var(--color-white-50); margin-bottom: 16px; }
.cookie-buttons { display: flex; gap: 12px; }
.cookie-btn { padding: 8px 20px; border-radius: 50px; font-size: .85rem; font-weight: 500; transition: all var(--transition); }
.cookie-accept { background: var(--color-purple); color: #fff; }
.cookie-accept:hover { background: var(--color-purple-hover); }
.cookie-decline { border: 1px solid var(--color-white-25); color: var(--color-white-75); }
.cookie-decline:hover { border-color: var(--color-white-50); color: #fff; }

/* ---------- Tags ---------- */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; justify-content: center; }
.tag { font-size: .8rem; padding: 6px 16px; border-radius: 50px; background: rgba(116,82,255,.15); color: var(--color-purple); }

/* ---------- Dashboard animations ---------- */
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-80px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(80px); } to { opacity: 1; transform: translateX(0); } }
.dashb-animate-left { animation: slideInLeft .9s cubic-bezier(.25,.46,.45,.94) both; }
.dashb-animate-right { animation: slideInRight .9s cubic-bezier(.25,.46,.45,.94) both; animation-delay: .15s; }
.dashb-section { margin: 0 40px; }
.dashb-qa { background: var(--color-bg-light); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 16px; }
.dashb-qa h3 { font-size: 1.1rem; margin-bottom: 8px; }
.dashb-feature { background: var(--color-bg-light); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 16px; }

@media (prefers-reduced-motion: reduce) { .dashb-animate-left, .dashb-animate-right { animation: none; } }

/* ---------- Video embed ---------- */
.video-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius-lg); }
.video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.video-section { max-width: 800px; margin: 0 auto; }
.video-caption { font-size: .85rem; color: var(--color-white-50); text-align: center; margin-top: 12px; }

/* ---------- Process image ---------- */
.process-image { max-width: 800px; margin: 0 auto; }

/* ---------- Content blocks ---------- */
.block-rich-text { margin-bottom: 2em; }
.block-rich-text h2 { background: var(--gradient-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.block-image { margin: 2em 0; }
.block-image img { border-radius: var(--radius); }
.block-image figcaption { font-size: .85rem; color: var(--color-white-50); margin-top: 8px; text-align: center; }
.block-image--left { float: left; max-width: 50%; margin: 0 1.5em 1em 0; }
.block-image--right { float: right; max-width: 50%; margin: 0 0 1em 1.5em; }
@media (max-width: 768px) { .block-image--left, .block-image--right { float: none; max-width: 100%; margin: 1em 0; } }

.block-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; margin: 2em 0; }
.stat-card { text-align: center; background: var(--color-bg-light); border-radius: var(--radius); padding: 24px 16px; }
.stat-value { font-size: 2rem; font-weight: 700; margin-bottom: 4px; }
.stat-label { font-size: .9rem; color: #fff; }
.stat-sublabel { font-size: .8rem; color: var(--color-white-50); }

.block-testimonial { border-left: 3px solid var(--color-purple); padding: 24px 32px; margin: 2em 0; background: var(--color-bg-light); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.testimonial-text { font-style: italic; font-size: 1.1rem; color: var(--color-white-75); margin-bottom: 12px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; font-style: normal; font-size: .9rem; color: var(--color-white-50); }
.testimonial-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }

.block-cta { text-align: center; padding: 48px 32px; margin: 2em 0; border-radius: var(--radius-lg); background: var(--color-bg-light); }
.block-cta--gradient { background: var(--gradient-bg); }
.cta-heading { font-size: 1.5rem; margin-bottom: 12px; }
.cta-text { margin-bottom: 20px; }

.block-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 2em 0; }
.gallery-item img { border-radius: var(--radius); width: 100%; height: 200px; object-fit: cover; }
.gallery-caption { font-size: .8rem; color: var(--color-white-50); margin-top: 6px; }

.block-before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 2em 0; }
.ba-side { position: relative; }
.ba-side img { border-radius: var(--radius); width: 100%; }
.ba-label { position: absolute; top: 12px; left: 12px; background: rgba(0,0,0,.6); color: #fff; padding: 4px 12px; border-radius: 50px; font-size: .8rem; }
@media (max-width: 768px) { .block-before-after { grid-template-columns: 1fr; } }

/* ---------- Offers grid (numbered steps with images) ---------- */
.offers-grid { max-width: var(--container-width); margin: 0 auto; }
.offer-item { display: flex; align-items: center; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--color-white-25); }
.offer-item:last-child { border-bottom: none; }
.offer-number-img { width: 80px; height: auto; flex-shrink: 0; }
.offer-item h3 { font-size: 1.2rem; margin: 0; }

/* ---------- Stat card sidebar (hero sections) ---------- */
.stat-card-side { background: var(--color-bg-light); border-radius: var(--radius-lg); padding: 32px; text-align: center; }
.stat-card-side .stat-big-number { font-size: 2.5rem; }
.stat-card-side h3 { font-size: 1rem; margin-bottom: 8px; }
.stat-card-image { width: 100%; max-width: 300px; margin: 16px auto; }
.col-8 { flex: 0 0 65%; max-width: 65%; }
.col-4 { flex: 0 0 32%; max-width: 32%; }
@media (max-width: 768px) { .col-8, .col-4 { flex: 0 0 100%; max-width: 100%; } }

/* ---------- Feature card images ---------- */
.feature-card-image { width: 100%; max-width: 500px; border-radius: var(--radius); margin-bottom: 16px; }
.feature-card .feature-icon { margin-bottom: 16px; }
.feature-card .feature-icon img { display: block; margin: 0 auto; }

/* ---------- Quote / source text ---------- */
.quote-text { font-size: .75rem; color: var(--color-white-25); margin-top: 8px; font-style: italic; }

/* ---------- Heading-4 subtitle ---------- */
.heading-4 { font-size: 1.1rem; font-weight: 400; color: var(--color-white-75); line-height: 1.6; margin-bottom: 16px; }

/* ---------- Styled list (bullet points) ---------- */
.styled-list { list-style: disc; padding-left: 1.5em; margin: 12px 0; color: var(--color-white-75); }
.styled-list li { margin-bottom: 8px; }

/* ---------- Scroll reveal ---------- */
.js-reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease-out, transform .6s ease-out; }
.js-reveal.js-revealed { opacity: 1; transform: translateY(0); }
.js-reveal-left { opacity: 0; transform: translateX(-80px); transition: opacity .9s cubic-bezier(.25,.46,.45,.94), transform .9s cubic-bezier(.25,.46,.45,.94); }
.js-reveal-left.js-revealed { opacity: 1; transform: translateX(0); }
.js-reveal-right { opacity: 0; transform: translateX(80px); transition: opacity .9s cubic-bezier(.25,.46,.45,.94), transform .9s cubic-bezier(.25,.46,.45,.94); }
.js-reveal-right.js-revealed { opacity: 1; transform: translateX(0); }

.js-delay-1 { transition-delay: .1s; }
.js-delay-2 { transition-delay: .2s; }
.js-delay-3 { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  .js-reveal, .js-reveal-left, .js-reveal-right { opacity: 1; transform: none; transition: none; }
}
