/* ========================================
   Clevver — Professional Document Management
   Clean, Trustworthy, Professional Design
   ======================================== */

/* CSS Variables */
:root {
    /* Colors - Brand Blues & Warm Accents */
    --color-primary: #184389;
    --color-primary-dark: #0f2d66;
    --color-primary-light: #1f56a8;
    
    /* Brand Gradient */
    --brand-gradient: linear-gradient(90deg, #009BDF 10%, #184389 50%, #E2195B 90%);
    
    --color-accent: #d4a574;
    --color-accent-dark: #c49464;
    --color-accent-light: #e4b584;
    
    --color-bg: #ffffff;
    --color-bg-alt: #f8f9fa;
    --color-bg-card: #ffffff;
    --color-border: #e5e7eb;
    --color-border-light: #f3f4f6;
    
    --color-text-primary: #1f2937;
    --color-text-secondary: #6b7280;
    --color-text-muted: #9ca3af;
    
    --color-success: #059669;
    --color-success-bg: #d1fae5;
    
    /* Typography */
    --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

/* ========================================
   Dark Mode
   ======================================== */

[data-theme="dark"] {
    --color-primary: #4db8e8;
    --color-primary-dark: #2a8cc4;
    --color-primary-light: #7dd4f5;

    --color-accent: #d4a574;
    --color-accent-dark: #c49464;
    --color-accent-light: #e4b584;

    --color-bg: #0f1923;
    --color-bg-alt: #162231;
    --color-bg-card: #1a2a3d;
    --color-border: #2d3f52;
    --color-border-light: #243447;

    --color-text-primary: #e5e7eb;
    --color-text-secondary: #9ca3af;
    --color-text-muted: #6b7280;

    --color-success: #34d399;
    --color-success-bg: rgba(52, 211, 153, 0.1);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .nav {
    background: rgba(15, 25, 35, 0.95);
}

[data-theme="dark"] .security-feature-icon,
[data-theme="dark"] .security-card,
[data-theme="dark"] .testimonial-card {
    background: var(--color-bg-card);
}

[data-theme="dark"] .logo-img {
    filter: brightness(1.8) saturate(0.9);
}

[data-theme="dark"] .cta {
    background: #162231;
}

[data-theme="dark"] .cta-title {
    color: var(--color-text-primary);
}

[data-theme="dark"] .cta-subtitle {
    color: var(--color-text-secondary);
}

[data-theme="dark"] .cta-input {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-border);
    color: var(--color-text-primary);
}

[data-theme="dark"] .cta-input::placeholder {
    color: var(--color-text-muted);
}

[data-theme="dark"] .cta-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-primary);
}

[data-theme="dark"] .cta-note {
    color: var(--color-text-muted);
}

[data-theme="dark"] .doc-dots span:nth-child(1) { background: #ef4444; }
[data-theme="dark"] .doc-dots span:nth-child(2) { background: #eab308; }
[data-theme="dark"] .doc-dots span:nth-child(3) { background: #22c55e; }

[data-theme="dark"] .footer-contact a:hover,
[data-theme="dark"] .footer-column a:hover,
[data-theme="dark"] .nav-links a:hover,
[data-theme="dark"] .btn-ghost:hover {
    color: var(--color-accent);
}

[data-theme="dark"] .security-card-header {
    background: #184389;
}

[data-theme="dark"] .doc-badge {
    background: #184389;
}

[data-theme="dark"] .author-avatar {
    background: #184389;
}

[data-theme="dark"] .mobile-menu {
    background: var(--color-bg);
    border-color: var(--color-border);
}

/* Dark mode toggle button */
.dark-mode-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    color: var(--color-text-secondary);
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.dark-mode-toggle:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: var(--color-bg-alt);
}

.dark-mode-toggle svg {
    width: 18px;
    height: 18px;
}

.dark-mode-toggle .icon-sun { display: none; }
.dark-mode-toggle .icon-moon { display: block; }

[data-theme="dark"] .dark-mode-toggle .icon-sun { display: block; }
[data-theme="dark"] .dark-mode-toggle .icon-moon { display: none; }

/* Smooth theme transition */
body,
.nav,
.solution-card,
.compliance-card,
.pricing-card,
.document-preview,
.security-card,
.testimonial-card,
.footer,
.cta {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


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

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

ul {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ========================================
   Typography
   ======================================== */

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    line-height: 1.6;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-header .section-subtitle {
    margin: 0 auto;
    text-align: center;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 0.625rem 1.5rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-accent);
    color: white;
}

.btn-primary:hover {
    background: var(--color-accent-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-secondary);
}

.btn-ghost:hover {
    color: var(--color-primary);
    background: var(--color-bg-alt);
}

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

.btn-outline:hover {
    border-color: var(--color-primary);
    background: var(--color-bg-alt);
}

.btn-large {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* ========================================
   Navigation
   ======================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border-light);
    transition: all var(--transition-base);
}

.nav.scrolled {
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-img {
    height: 36px;
    width: auto;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: var(--color-primary);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    transition: all var(--transition-base);
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-lg);
    box-shadow: var(--shadow-lg);
}

.mobile-menu.active {
    display: block;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.mobile-nav-links a {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-text-primary);
}

.mobile-nav-cta {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    padding: calc(72px + var(--space-xl)) 0 var(--space-3xl);
    background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.5rem 1rem;
    background: var(--color-success-bg);
    border: 1px solid rgba(5, 150, 105, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-success);
    margin-bottom: var(--space-lg);
}

.hero-badge svg {
    width: 16px;
    height: 16px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
}

.hero-subtitle {
    font-size: clamp(1.0625rem, 2vw, 1.25rem);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.7;
    max-width: 540px;
}

.hero-subtitle:last-of-type {
    margin-bottom: var(--space-xl);
}

.hero-subtitle--bold {
    font-weight: 600;
    color: var(--color-primary);
}

.hero-industries {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: var(--space-lg);
    max-width: 540px;
    color: var(--color-text-secondary);
    font-size: clamp(1.0625rem, 2vw, 1.25rem);
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.hero-trust {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.trust-item svg {
    width: 18px;
    height: 18px;
    color: var(--color-success);
}

/* Hero Document Preview */
.hero-visual {
    display: flex;
    justify-content: center;
}

.document-preview {
    width: 100%;
    max-width: 420px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.doc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
}

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

.doc-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-border);
}

.doc-dots span:nth-child(1) { background: #ef4444; }
.doc-dots span:nth-child(2) { background: #eab308; }
.doc-dots span:nth-child(3) { background: #22c55e; }

.doc-badge {
    padding: 0.25rem 0.75rem;
    background: var(--color-primary);
    color: white;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
}

.doc-content {
    padding: var(--space-xl);
}

.doc-line {
    height: 10px;
    background: var(--color-border-light);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-sm);
}

.doc-line--header {
    height: 16px;
    width: 60%;
    background: var(--color-border);
    margin-bottom: var(--space-md);
}

.doc-line--short {
    width: 40%;
}

.doc-signature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border-light);
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.doc-signature svg {
    width: 60px;
    height: 24px;
}

.doc-security {
    padding: var(--space-md);
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
}

.security-indicator {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xs);
}

.shield-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-success-bg);
    border-radius: var(--radius-md);
    color: var(--color-success);
}

.shield-icon svg {
    width: 18px;
    height: 18px;
}

.security-text {
    display: flex;
    flex-direction: column;
}

.security-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-success);
}

.security-sub {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.audit-trail {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    padding-left: 44px;
}

/* ========================================
   Trust Bar
   ======================================== */

.trust-bar {
    padding: var(--space-xl) 0;
    border-top: none;
    border-bottom: 1px solid var(--color-border);
    position: relative;
}

.trust-bar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--brand-gradient);
    opacity: 0.4;
}

.trust-label {
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.trust-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3xl);
    flex-wrap: wrap;
}

.trust-logo {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    opacity: 0.8;
}

/* ========================================
   Solutions Section
   ======================================== */

.solutions {
    padding: var(--space-3xl) 0;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.solution-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-base);
}

.solution-card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.solution-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    color: var(--color-primary);
    position: relative;
    overflow: hidden;
}

.solution-icon::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--brand-gradient);
}

.solution-icon svg {
    width: 24px;
    height: 24px;
}

.solution-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

.solution-desc {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ========================================
   Security Section
   ======================================== */

.security {
    padding: var(--space-3xl) 0;
    background: var(--color-bg-alt);
}

.security-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.security-desc {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.security-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.security-feature {
    display: flex;
    gap: var(--space-md);
}

.security-feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-primary);
    flex-shrink: 0;
}

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

.security-feature-text h4 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.security-feature-text p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Security Card */
.security-visual {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-xl);
}

.security-visual-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-xl);
}

.security-features-right {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.security-card {
    width: 100%;
    max-width: 420px;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.security-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--color-primary);
    color: white;
    font-weight: 600;
}

.security-card-header svg {
    width: 20px;
    height: 20px;
}

.security-status-list {
    padding: var(--space-md);
    border-bottom: 1px solid var(--color-border);
}

.security-status-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.625rem 0;
}

.status-check {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.status-check.checked {
    background: var(--color-success-bg);
    color: var(--color-success);
}

.status-check svg {
    width: 14px;
    height: 14px;
}

.security-status-item span {
    font-size: 0.9375rem;
    color: var(--color-text-primary);
}

.security-score {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--color-bg-alt);
}

.score-circle {
    position: relative;
    width: 60px;
    height: 60px;
}

.score-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.score-bg {
    fill: none;
    stroke: var(--color-border);
    stroke-width: 3;
}

.score-fill {
    fill: none;
    stroke: var(--color-success);
    stroke-width: 3;
    stroke-linecap: round;
}

.score-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-success);
}

.score-label {
    display: flex;
    flex-direction: column;
}

.score-label span {
    font-weight: 600;
    color: var(--color-primary);
}

.score-label small {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

/* ========================================
   Compliance Section
   ======================================== */

.compliance {
    padding: var(--space-3xl) 0;
}

.compliance-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.compliance-header .section-subtitle {
    margin: 0 auto;
}

.compliance-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.compliance-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-base);
}

.compliance-card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
}

.compliance-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
}

.compliance-card h3 {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.compliance-card > p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.compliance-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.compliance-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.compliance-list li::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ========================================
   Testimonials Section
   ======================================== */

.testimonials {
    padding: var(--space-3xl) 0;
    background: var(--color-bg-alt);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.testimonial-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-base);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
}

.testimonial-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: var(--space-md);
    color: #fbbf24;
}

.testimonial-stars svg {
    width: 18px;
    height: 18px;
}

.testimonial-text {
    font-size: 1rem;
    color: var(--color-text-primary);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.author-avatar {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 50%;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--color-primary);
}

.author-title {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* ========================================
   Pricing Section
   ======================================== */

.pricing {
    padding: var(--space-3xl) 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.pricing-card {
    position: relative;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-base);
}

.pricing-card:hover {
    border-color: var(--color-border);
    box-shadow: var(--shadow-md);
}

.pricing-card.popular {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.375rem 1rem;
    background: var(--color-accent);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.pricing-header {
    margin-bottom: var(--space-lg);
}

.pricing-name {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: var(--space-sm);
}

.pricing-price .currency {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.pricing-price .amount {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
}

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

.pricing-price .custom {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-primary);
}

.pricing-desc {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
}

.pricing-features {
    margin-bottom: var(--space-xl);
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.625rem 0;
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
}

.pricing-features li svg {
    width: 18px;
    height: 18px;
    color: var(--color-success);
    flex-shrink: 0;
}

.pricing-note {
    text-align: center;
    font-size: 0.9375rem;
    color: var(--color-text-muted);
}

/* 10-Year Cost Comparison */
.cost-comparison {
    margin-top: var(--space-3xl);
    padding-top: var(--space-3xl);
    border-top: 1px solid var(--color-border);
}

.cost-comparison .section-header {
    margin-bottom: var(--space-xl);
}


.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.comparison-col {
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 1px solid var(--color-border);
    background: var(--color-bg);
}

.comparison-col--legacy {
    background: var(--color-bg-alt);
}

.comparison-col--clevver {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 1px var(--color-accent);
}

.comparison-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
}

.comparison-col--legacy .comparison-label {
    background: var(--color-text-muted);
    color: #fff;
}

.comparison-col--clevver .comparison-label {
    background: var(--color-accent);
    color: #fff;
}

.comparison-heading {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.comparison-desc {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.comparison-breakdown {
    margin-bottom: var(--space-lg);
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
}

.breakdown-row:last-child {
    border-bottom: none;
}

.breakdown-label {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
}

.breakdown-value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text);
}

.breakdown-row--total {
    border-bottom: none;
    padding-top: var(--space-md);
    margin-top: var(--space-xs);
    border-top: 2px solid var(--color-border);
}

.breakdown-row--total .breakdown-label {
    font-weight: 600;
    color: var(--color-text);
}

.breakdown-row--total .breakdown-value {
    font-size: 1.25rem;
}

.comparison-col--legacy .breakdown-row--total .breakdown-value {
    color: var(--color-error, #dc3545);
}

.comparison-col--clevver .breakdown-row--total .breakdown-value {
    color: #009BDF;
}

.comparison-note {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    font-style: italic;
}

.comparison-savings {
    text-align: center;
    padding: var(--space-lg);
    background: rgba(0, 155, 223, 0.1);
    border-radius: var(--radius-lg);
}

.savings-amount {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #009BDF;
    margin-bottom: var(--space-xs);
}

.savings-desc {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
}

/* ========================================
   CTA Section
   ======================================== */

.cta {
    padding: var(--space-3xl) 0;
    background: var(--color-primary);
}

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

.cta-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 600;
    color: white;
    margin-bottom: var(--space-md);
}

.cta-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

.cta-form {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.cta-input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all var(--transition-fast);
}

.cta-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.cta-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.cta .btn-primary {
    background: var(--color-accent);
}

.cta .btn-primary:hover {
    background: var(--color-accent-light);
}

.cta-note {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   Footer
   ======================================== */

.footer {
    padding: var(--space-3xl) 0 var(--space-xl);
    border-top: 2px solid transparent;
    border-image: var(--brand-gradient) 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.footer-brand .logo {
    margin-bottom: var(--space-md);
}

.footer-tagline {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-contact a {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

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

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.footer-column h4 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
    color: var(--color-primary);
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-column a {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

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

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

.footer-badges {
    display: flex;
    gap: var(--space-sm);
}

.footer-badges .badge {
    padding: 0.25rem 0.75rem;
    background: var(--color-success-bg);
    border-radius: var(--radius-sm);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-success);
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
        text-align: center;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-industries {
        margin-left: auto;
        margin-right: auto;
        text-align: left;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-trust {
        justify-content: center;
    }
    
    .hero-visual {
        order: 1;
    }
    
    .document-preview {
        max-width: 360px;
    }
    
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .security-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .security-visual {
        order: 1;
    }

    .security-card {
        order: 1;
        align-self: center;
    }

    .security-features-right {
        order: -1;
    }

    .security-grid {
        gap: var(--space-lg);
    }

    .security-visual-inner {
        gap: var(--space-lg);
        align-items: stretch;
    }
    
    .compliance-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.popular {
        transform: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links,
    .nav-cta {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding: calc(72px + var(--space-md)) 0 var(--space-2xl);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .solutions-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-form {
        flex-direction: column;
    }
    
    .footer-links {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .trust-logos {
        gap: var(--space-lg);
    }
    
    .trust-logo {
        font-size: 1rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Animations
   ======================================== */

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

.hero-content > * {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.3s; }
.hero-content > *:nth-child(4) { animation-delay: 0.4s; }
.hero-content > *:nth-child(5) { animation-delay: 0.5s; }

/* Screen-reader only — visually hidden, crawlable by bots */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
