/**
 * AddonsCare UI Kit v2.0
 * =============================================================================
 * Shared design system for the landing site AND WHMCS admin panel.
 * Includes: Design tokens, base reset, typography, buttons, cards,
 *           forms, alerts, badges, nav, theme toggle, animations.
 * =============================================================================
 */

/* ============================================================================
   DESIGN TOKENS — Landing Site (light mode default)
   ============================================================================ */
:root {
    /* Brand */
    --clr-accent: #0ea5e9;
    --clr-accent-2: #6366f1;
    --clr-accent-hover: #0284c7;
    --clr-accent-soft: rgba(14, 165, 233, 0.10);
    --clr-accent-glow: rgba(14, 165, 233, 0.30);

    /* Semantic */
    --success-color: #22c55e;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;

    /* Success / Danger aliases (legacy WHMCS compat) */
    --primary-color: var(--clr-accent);
    --primary-hover: var(--clr-accent-hover);
    --secondary-color: #6c757d;

    /* Surfaces */
    --clr-bg: #f8fafc;
    --clr-bg-alt: #f1f5f9;
    --clr-surface: #ffffff;
    --clr-border: #e2e8f0;

    /* Text */
    --clr-text: #0f172a;
    --clr-text-muted: #64748b;
    --clr-text-inv: #ffffff;

    /* Hero/Footer (dark) */
    --clr-hero-start: #0f172a;
    --clr-hero-end: #1e293b;
    --clr-footer-bg: #0f172a;
    --clr-footer-text: #94a3b8;
    --clr-footer-heading: #f1f5f9;
    --clr-footer-link: #94a3b8;
    --clr-footer-link-hover: var(--clr-accent);
    --clr-footer-border: rgba(255, 255, 255, 0.08);

    /* Nav */
    --clr-nav-bg: rgba(255, 255, 255, 0.92);
    --clr-nav-border: rgba(226, 232, 240, 0.8);
    --nav-h: 72px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
    --shadow: 0 4px 16px rgba(0, 0, 0, .08), 0 1px 4px rgba(0, 0, 0, .05);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, .12), 0 4px 12px rgba(0, 0, 0, .06);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, .16), 0 8px 24px rgba(0, 0, 0, .08);

    /* Radii */
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --border-radius: var(--radius-sm);
    /* legacy alias */

    /* Typography */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-family: var(--font);
    /* legacy alias */

    /* Motion */
    --transition: 220ms cubic-bezier(.4, 0, .2, 1);

    /* Theme toggle */
    --toggle-track: #e2e8f0;
    --toggle-thumb: #ffffff;
    --toggle-track-size: 52px;
    --toggle-thumb-size: 24px;

    /* Legacy variable aliases for backward compat */
    --bg-color: var(--clr-bg);
    --text-color: var(--clr-text);
    --border-color: var(--clr-border);
    --text-primary: var(--clr-text);
    --text-secondary: var(--clr-text-muted);
    --text-muted: #94a3b8;
    --bg-primary: var(--clr-surface);
    --border-light: var(--clr-border);
    --primary-50: rgba(14, 165, 233, .05);
    --primary-100: rgba(14, 165, 233, .10);
    --primary-600: #0284c7;
    --primary-700: #0369a1;
    --secondary-50: rgba(99, 102, 241, .05);
    --secondary-100: rgba(99, 102, 241, .10);
    --secondary-200: rgba(99, 102, 241, .20);
}

/* Dark mode overrides */
[data-theme="dark"] {
    --clr-accent: #38bdf8;
    --clr-accent-hover: #7dd3fc;
    --clr-accent-soft: rgba(56, 189, 248, .12);
    --clr-accent-glow: rgba(56, 189, 248, .25);

    --clr-bg: #0d1117;
    --clr-bg-alt: #161b22;
    --clr-surface: #1c2333;
    --clr-border: rgba(255, 255, 255, .08);

    --clr-text: #f0f6fc;
    --clr-text-muted: #8b949e;

    --clr-hero-start: #020510;
    --clr-hero-end: #0d1117;
    --clr-footer-bg: #020510;
    --clr-footer-border: rgba(255, 255, 255, .06);

    --clr-nav-bg: rgba(13, 17, 23, .95);
    --clr-nav-border: rgba(255, 255, 255, .07);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .3);
    --shadow: 0 4px 16px rgba(0, 0, 0, .4);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, .5);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, .6);

    --toggle-track: #30363d;
    --toggle-thumb: #0ea5e9;

    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --bg-primary: #1c2333;
    --border-light: rgba(255, 255, 255, .08);
}

/* ============================================================================
   BASE RESET
   ============================================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background var(--transition), color var(--transition);
    min-height: 100vh;
}

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

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

ul,
ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input,
select,
textarea {
    font-family: inherit;
}

/* ============================================================================
   TYPOGRAPHY
   ============================================================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--clr-text);
}

p {
    margin: 0 0 0.75rem;
}

/* ============================================================================
   LAYOUT
   ============================================================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 24px;
}

/* ============================================================================
   BUTTONS
   ============================================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    white-space: nowrap;
    font-family: var(--font);
    line-height: 1.5;
}

.btn-primary {
    background: linear-gradient(135deg, var(--clr-accent), var(--clr-accent-2));
    color: #fff;
    box-shadow: 0 4px 14px var(--clr-accent-glow);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px var(--clr-accent-glow);
    filter: brightness(1.08);
}

.btn-secondary {
    background: var(--clr-surface);
    color: var(--clr-text);
    border: 1.5px solid var(--clr-border);
}

.btn-secondary:hover {
    border-color: var(--clr-accent);
    color: var(--clr-accent);
    background: var(--clr-accent-soft);
}

.btn-outline {
    background: transparent;
    color: var(--clr-accent);
    border: 1.5px solid var(--clr-accent);
}

.btn-outline:hover {
    background: var(--clr-accent);
    color: #fff;
    box-shadow: 0 4px 16px var(--clr-accent-glow);
    transform: translateY(-1px);
}

.btn-ghost {
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .9);
    border: 1.5px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(8px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .35);
    transform: translateY(-2px);
}

.btn-hero {
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-full);
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--clr-accent), var(--clr-accent-2));
    color: #fff;
    box-shadow: 0 8px 24px var(--clr-accent-glow);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px var(--clr-accent-glow);
    filter: brightness(1.1);
}

.btn-hero-outline {
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .9);
    border: 1.5px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(8px);
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .35);
    transform: translateY(-2px);
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--clr-accent), var(--clr-accent-2));
    color: #fff;
    border-radius: var(--radius-full);
    font-size: 1.0625rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 32px rgba(14, 165, 233, .4);
    transition: all var(--transition);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(14, 165, 233, .5);
    filter: brightness(1.1);
}

/* ============================================================================
   CARDS
   ============================================================================ */
.card {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

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

.card-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--clr-border);
    font-weight: 600;
    font-size: 1rem;
    color: var(--clr-text);
    background: var(--clr-bg-alt);
}

[data-theme="dark"] .card-header {
    background: rgba(255, 255, 255, .03);
}

.card-body {
    padding: 24px;
    flex: 1;
}

/* Platform card */
.platform-card {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    position: relative;
    overflow: hidden;
}

.platform-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--clr-accent), var(--clr-accent-2));
    opacity: 0;
    transition: opacity var(--transition);
}

.platform-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--clr-accent-soft);
}

.platform-card:hover::before {
    opacity: 1;
}

.platform-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--clr-text);
}

.platform-card p {
    font-size: .9375rem;
    color: var(--clr-text-muted);
    line-height: 1.7;
    flex: 1;
}

/* Feature card */
.feature-card {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

[data-theme="dark"] .feature-card {
    background: #161b22;
    border-color: rgba(255, 255, 255, .06);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-card h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--clr-text);
}

.feature-card p {
    font-size: .9rem;
    color: var(--clr-text-muted);
    line-height: 1.65;
}

/* Testimonial card */
.testimonial-card {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Addon / product card */
.addon-card {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

.addon-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* Value card (about page) */
.value-card {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.value-card h3 {
    font-size: 1.0625rem;
    font-weight: 700;
}

.value-card p {
    font-size: .9rem;
    color: var(--clr-text-muted);
    line-height: 1.65;
}

/* Product feature card (inner pages) */
.product-feature-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.product-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.product-feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--clr-text);
}

.product-feature-card p {
    font-size: .875rem;
    color: var(--clr-text-muted);
    line-height: 1.65;
    margin: 0;
}

/* ============================================================================
   ICONS / BADGES / PILLS
   ============================================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: var(--clr-accent-soft);
    border: 1px solid rgba(14, 165, 233, .3);
    border-radius: var(--radius-full);
    font-size: .8125rem;
    font-weight: 600;
    color: var(--clr-accent);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.platform-icon,
.feature-icon,
.value-icon,
.product-feature-icon {
    font-size: 2rem;
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    background: var(--clr-accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.platform-icon {
    width: 64px;
    height: 64px;
    font-size: 2.5rem;
}

.platform-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--clr-accent);
    text-decoration: none;
    transition: gap var(--transition), opacity var(--transition);
    margin-top: 8px;
}

.platform-link:hover {
    gap: 10px;
    opacity: .8;
}

/* ============================================================================
   FORMS
   ============================================================================ */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label,
label {
    font-size: .875rem;
    font-weight: 600;
    color: var(--clr-text);
}

.form-control {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius);
    border: 1.5px solid var(--clr-border);
    background: var(--clr-bg);
    color: var(--clr-text);
    font-family: var(--font);
    font-size: .9375rem;
    line-height: 1.5;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: var(--clr-accent);
    box-shadow: 0 0 0 3px var(--clr-accent-soft);
}

.form-control::placeholder {
    color: var(--clr-text-muted);
}

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

/* ============================================================================
   ALERTS
   ============================================================================ */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-size: .9375rem;
    margin-bottom: 16px;
}

.alert-success {
    background: rgba(34, 197, 94, .1);
    border-color: rgba(34, 197, 94, .25);
    color: #16a34a;
}

.alert-danger {
    background: rgba(239, 68, 68, .1);
    border-color: rgba(239, 68, 68, .25);
    color: #dc2626;
}

.alert-warning {
    background: rgba(245, 158, 11, .1);
    border-color: rgba(245, 158, 11, .25);
    color: #d97706;
}

.alert-info {
    background: rgba(59, 130, 246, .1);
    border-color: rgba(59, 130, 246, .25);
    color: #2563eb;
}

/* ============================================================================
   NAVIGATION
   ============================================================================ */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-h);
    background: var(--clr-nav-bg);
    border-bottom: 1px solid var(--clr-nav-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.nav-inner {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--clr-text);
    flex-shrink: 0;
    transition: opacity var(--transition);
}

.nav-logo:hover {
    opacity: .8;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--clr-accent), var(--clr-accent-2));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 4px 12px var(--clr-accent-glow);
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    list-style: none;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 500;
    color: var(--clr-text-muted);
    text-decoration: none;
    transition: color var(--transition), background var(--transition);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--clr-text);
    background: var(--clr-accent-soft);
}

.nav-link.active {
    color: var(--clr-accent);
}

/* Dropdown */
.nav-item-dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: .6rem;
    transition: transform var(--transition);
    display: inline-block;
}

.nav-item-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    min-width: 200px;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    z-index: 100;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: block;
    padding: 10px 14px;
    font-size: .875rem;
    font-weight: 500;
    color: var(--clr-text-muted);
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}

.dropdown-item:hover {
    color: var(--clr-accent);
    background: var(--clr-accent-soft);
}

.nav-client {
    margin-left: 4px;
}

/* Theme toggle */
.nav-theme-toggle {
    display: flex;
    align-items: center;
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: var(--toggle-track-size);
    height: calc(var(--toggle-thumb-size) + 8px);
    cursor: pointer;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.slider {
    position: absolute;
    inset: 0;
    background: var(--toggle-track);
    border-radius: var(--radius-full);
    transition: background var(--transition);
    display: flex;
    align-items: center;
}

.slider.round {
    border-radius: var(--radius-full);
}

.slider::after {
    content: '';
    position: absolute;
    left: 4px;
    width: var(--toggle-thumb-size);
    height: var(--toggle-thumb-size);
    border-radius: 50%;
    background: var(--toggle-thumb);
    transition: transform var(--transition), background var(--transition);
    box-shadow: var(--shadow-sm);
}

input:checked+.slider {
    background: var(--clr-accent);
}

input:checked+.slider::after {
    transform: translateX(calc(var(--toggle-track-size) - var(--toggle-thumb-size) - 8px));
}

.icon-sun,
.icon-moon {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    pointer-events: none;
    transition: opacity var(--transition);
}

.icon-sun {
    left: 5px;
}

.icon-moon {
    right: 5px;
}

input:checked+.slider .icon-sun {
    opacity: 0;
}

input:checked+.slider .icon-moon {
    opacity: 1;
}

input:not(:checked)+.slider .icon-sun {
    opacity: 1;
}

input:not(:checked)+.slider .icon-moon {
    opacity: 0;
}

/* Mobile hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    border-radius: var(--radius-sm);
    margin-left: auto;
    color: var(--clr-text);
    transition: background var(--transition);
}

.nav-toggle:hover {
    background: var(--clr-accent-soft);
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

main {
    padding-top: var(--nav-h);
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */
.hero {
    background: linear-gradient(135deg, var(--clr-hero-start) 0%, var(--clr-hero-end) 60%, #0c1a3a 100%);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 20% 30%, rgba(14, 165, 233, .15) 0%, transparent 60%), radial-gradient(ellipse 60% 50% at 80% 70%, rgba(99, 102, 241, .12) 0%, transparent 60%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--clr-accent-glow), transparent);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    letter-spacing: -.02em;
}

.hero-content p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, .65);
    max-width: 600px;
    line-height: 1.75;
}

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

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-stats {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    width: 100%;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.hero-stat .number {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.hero-stat .label {
    font-size: .8125rem;
    color: rgba(255, 255, 255, .5);
    font-weight: 500;
}

/* Page hero (inner pages) */
.page-hero {
    background: linear-gradient(135deg, var(--clr-hero-start) 0%, var(--clr-hero-end) 100%);
    padding: 72px 0 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(14, 165, 233, .12) 0%, transparent 60%);
    pointer-events: none;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: #fff;
    margin-top: 16px;
    letter-spacing: -.02em;
}

.page-hero p {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, .65);
    max-width: 560px;
    margin: 16px auto 0;
    line-height: 1.75;
}

/* ============================================================================
   SECTIONS
   ============================================================================ */
.section {
    padding: 96px 0;
    background: var(--clr-bg);
    transition: background var(--transition);
}

.section-dark {
    background: var(--clr-bg-alt);
}

.section-light {
    padding: 96px 0;
    background: var(--clr-bg-alt);
    transition: background var(--transition);
}

[data-theme="dark"] .section-dark,
[data-theme="dark"] .section-light {
    background: #161b22;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.section-header h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.2;
}

.section-header p {
    font-size: 1.0625rem;
    color: var(--clr-text-muted);
    max-width: 600px;
    line-height: 1.75;
}

/* Grids */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.addons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

/* ============================================================================
   TESTIMONIALS
   ============================================================================ */
.testimonial-stars {
    color: #f59e0b;
    font-size: 1rem;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: .9375rem;
    color: var(--clr-text-muted);
    line-height: 1.75;
    font-style: italic;
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--clr-border);
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--clr-accent), var(--clr-accent-2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8125rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.testimonial-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.testimonial-info strong {
    font-size: .9rem;
    font-weight: 600;
    color: var(--clr-text);
}

.testimonial-info span {
    font-size: .8125rem;
    color: var(--clr-text-muted);
}

/* ============================================================================
   CTA SECTION
   ============================================================================ */
.cta-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0c1a3a 100%);
    padding: 96px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 30% 40%, rgba(14, 165, 233, .12) 0%, transparent 60%), radial-gradient(ellipse 60% 50% at 70% 60%, rgba(99, 102, 241, .1) 0%, transparent 60%);
    pointer-events: none;
}

.cta-section .container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.cta-section h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -.02em;
}

.cta-section p {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, .65);
    max-width: 560px;
    line-height: 1.75;
}

/* ============================================================================
   ADDON CARD INTERNALS
   ============================================================================ */
.addon-card-img {
    font-size: 2.5rem;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--clr-accent-soft), transparent);
    border-bottom: 1px solid var(--clr-border);
}

.addon-card-body {
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.addon-card-body h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--clr-text);
}

.addon-card-body p {
    font-size: .875rem;
    color: var(--clr-text-muted);
    line-height: 1.65;
    flex: 1;
}

.addon-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--clr-accent);
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--clr-border);
}

.addon-price span {
    font-size: .8125rem;
    font-weight: 500;
    color: var(--clr-text-muted);
}

/* ============================================================================
   FOOTER
   ============================================================================ */
.site-footer {
    background: var(--clr-footer-bg);
    padding: 72px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 56px;
    border-bottom: 1px solid var(--clr-footer-border);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-brand p {
    font-size: .9rem;
    color: var(--clr-footer-text);
    line-height: 1.7;
    max-width: 280px;
}

.site-footer .nav-logo {
    color: var(--clr-footer-heading);
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-col h4 {
    font-size: .875rem;
    font-weight: 700;
    color: var(--clr-footer-heading);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    font-size: .9rem;
    color: var(--clr-footer-link);
    transition: color var(--transition);
}

.footer-col a:hover {
    color: var(--clr-footer-link-hover);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom>span {
    font-size: .875rem;
    color: var(--clr-footer-text);
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    font-size: .875rem;
    color: var(--clr-footer-text);
    transition: color var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--clr-footer-link-hover);
}

/* ============================================================================
   CONTENT PAGES (about, privacy, tos, contact)
   ============================================================================ */
.content-section {
    padding: 64px 0 80px;
    background: var(--clr-bg);
    transition: background var(--transition);
}

.content-wrapper {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.content-wrapper h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 16px;
}

.content-wrapper h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 8px;
}

.content-wrapper p {
    font-size: .95rem;
    color: var(--clr-text-muted);
    line-height: 1.8;
}

.content-wrapper ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 8px;
}

.content-wrapper ul li {
    font-size: .9375rem;
    color: var(--clr-text-muted);
    line-height: 1.7;
    padding-left: 20px;
    position: relative;
}

.content-wrapper ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--clr-accent);
    font-weight: 700;
}

.content-wrapper strong {
    color: var(--clr-text);
    font-weight: 600;
}

.content-wrapper a {
    color: var(--clr-accent);
}

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

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .875rem;
    color: rgba(255, 255, 255, .55);
    margin-bottom: 20px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, .65);
    transition: color var(--transition);
}

.breadcrumb a:hover {
    color: #fff;
}

.breadcrumb .separator {
    opacity: .4;
}

.breadcrumb .current {
    color: rgba(255, 255, 255, .85);
}

/* Contact */
.contact-info-card {
    padding: 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    border: 1px solid var(--clr-border);
    background: var(--clr-surface);
}

/* ============================================================================
   FADE-IN ANIMATION (IntersectionObserver-based)
   ============================================================================ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease, transform .6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 {
    transition-delay: .1s;
}

.stagger-2 {
    transition-delay: .2s;
}

.stagger-3 {
    transition-delay: .3s;
}

.stagger-4 {
    transition-delay: .4s;
}

.stagger-5 {
    transition-delay: .5s;
}

.stagger-6 {
    transition-delay: .6s;
}

.no-js .fade-in {
    opacity: 1;
    transform: none;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 1024px) {

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

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

    .product-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-h: 64px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        background: var(--clr-surface);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--clr-nav-border);
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        gap: 4px;
        z-index: 999;
    }

    .nav-links.open {
        display: flex;
        background: var(--clr-surface) !important;
    }

    .nav-link {
        padding: 12px 16px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-item-dropdown {
        position: static;
    }

    .dropdown-menu {
        position: static;
        transform: none !important;
        box-shadow: none;
        padding-left: 16px;
        border: none;
        background: transparent;
        display: none;
    }

    .nav-item-dropdown.open .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
    }

    .platforms-grid,
    .features-grid,
    .testimonials-grid,
    .addons-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 64px 0 48px;
    }

    .hero-stats {
        gap: 28px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .section,
    .section-light {
        padding: 64px 0;
    }

    .cta-section {
        padding: 64px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .content-section {
        padding: 48px 0 60px;
    }
}

@media (max-width: 480px) {
    .hero-stat .number {
        font-size: 1.5rem;
    }

    .btn-hero {
        padding: 12px 24px;
        font-size: .9375rem;
    }

    .container {
        padding-inline: 16px;
    }
}