/**
 * VeriFile Marketing Site Stylesheet
 *
 * Dark theme CSS for public-facing marketing pages
 * No Bootstrap - custom CSS only
 *
 * Table of Contents:
 * 1. CSS Variables & Root
 * 2. Reset & Base Styles
 * 3. Typography
 * 4. Layout & Container
 * 5. Navbar
 * 6. Mobile Menu
 * 7. Hero Section
 * 8. Section Styles
 * 9. Cards
 * 10. Buttons
 * 11. Forms
 * 12. Pricing Table
 * 13. Testimonials
 * 14. Stats/Metrics
 * 15. Footer
 * 16. Utility Classes
 * 17. Animations
 * 18. Media Queries
 */

/* ========================================
   1. CSS Variables & Root
   ======================================== */

:root {
    /* Background Colors */
    --bg-darkest: #0a0a0f;
    --bg-dark: #101726;
    --bg-card: #1a1f2e;
    --bg-card-hover: #212738;
    --bg-input: #151b28;

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-inverse: #0a0a0f;

    /* Accent Colors */
    --accent-blue: #58a6ff;
    --accent-blue-hover: #79b8ff;
    --accent-blue-dark: #1e4a7a;
    --accent-green: #22c55e;
    --accent-green-hover: #4ade80;
    --accent-warning: #f59e0b;
    --accent-error: #ef4444;
    --accent-purple: #a855f7;

    /* Border Colors */
    --border-color: #2a3345;
    --border-light: #3a4355;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #58a6ff 0%, #22c55e 100%);
    --gradient-hero: linear-gradient(180deg, rgba(88, 166, 255, 0.1) 0%, transparent 50%);
    --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    --gradient-text: linear-gradient(135deg, #58a6ff 0%, #22c55e 50%, #a855f7 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 40px rgba(88, 166, 255, 0.15);
    --shadow-glow-green: 0 0 40px rgba(34, 197, 94, 0.15);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Monaco, monospace;

    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    --text-7xl: 4.5rem;

    /* Line Heights */
    --leading-none: 1;
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    /* Z-Index Scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-tooltip: 600;

    /* Navbar Height */
    --navbar-height: 72px;

    /* Container Max Width */
    --container-max: 1200px;
    --container-narrow: 800px;
}


/* ========================================
   2. Reset & Base Styles
   ======================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--text-secondary);
    background-color: var(--bg-darkest);
    min-height: 100vh;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: none;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

ul,
ol {
    list-style: none;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-blue);
    color: var(--text-primary);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    z-index: var(--z-tooltip);
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: var(--space-md);
}


/* ========================================
   3. Typography
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: var(--leading-tight);
    margin-bottom: var(--space-md);
}

h1 {
    font-size: var(--text-5xl);
    font-weight: 800;
    letter-spacing: -0.02em;
}

h2 {
    font-size: var(--text-4xl);
    letter-spacing: -0.01em;
}

h3 {
    font-size: var(--text-2xl);
}

h4 {
    font-size: var(--text-xl);
}

h5 {
    font-size: var(--text-lg);
}

h6 {
    font-size: var(--text-base);
}

p {
    margin-bottom: var(--space-md);
}

p:last-child {
    margin-bottom: 0;
}

.lead {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

.small {
    font-size: var(--text-sm);
}

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

.text-highlight {
    color: var(--accent-blue);
}

mark,
.mark {
    background: rgba(88, 166, 255, 0.2);
    color: var(--accent-blue);
    padding: 0.1em 0.3em;
    border-radius: var(--radius-sm);
}

code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: var(--bg-card);
    padding: 0.2em 0.4em;
    border-radius: var(--radius-sm);
    color: var(--accent-blue);
}


/* ========================================
   4. Layout & Container
   ======================================== */

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

.container-narrow {
    max-width: var(--container-narrow);
}

.section {
    padding: var(--space-4xl) 0;
}

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

.section-lg {
    padding: calc(var(--space-4xl) * 1.5) 0;
}

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

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
}

.section-header .overline {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-blue);
    margin-bottom: var(--space-md);
}

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

.section-header p {
    color: var(--text-secondary);
    font-size: var(--text-lg);
}

.grid {
    display: grid;
    gap: var(--space-xl);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

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


/* ========================================
   5. Navbar
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    z-index: var(--z-fixed);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    border-bottom-color: var(--border-color);
    box-shadow: var(--shadow-lg);
}

.navbar.hidden {
    transform: translateY(-100%);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-primary);
    font-weight: 700;
    font-size: var(--text-xl);
    transition: opacity var(--transition-fast);
}

.navbar-brand:hover {
    color: var(--text-primary);
    opacity: 0.9;
}

.brand-icon {
    flex-shrink: 0;
}

.brand-text {
    letter-spacing: -0.01em;
}

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

.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: 500;
    padding: var(--space-sm) 0;
    transition: color var(--transition-fast);
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: width var(--transition-base);
}

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

.nav-badge {
    font-size: var(--text-xs);
    font-weight: 600;
    background: var(--gradient-primary);
    color: var(--text-inverse);
    padding: 2px 6px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.navbar-spacer {
    height: var(--navbar-height);
}


/* ========================================
   6. Mobile Menu
   ======================================== */

.navbar-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    gap: 5px;
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.navbar-toggle:hover {
    background: var(--bg-card);
}

.hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: all var(--transition-fast);
}

.navbar-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-darkest);
    padding: var(--space-xl);
    transform: translateX(100%);
    transition: transform var(--transition-base);
    overflow-y: auto;
    z-index: var(--z-fixed);
}

.mobile-menu.active {
    transform: translateX(0);
}

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

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: var(--text-lg);
    font-weight: 500;
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border-color);
    transition: color var(--transition-fast);
}

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

.mobile-menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: var(--space-md) 0;
}


/* ========================================
   7. Hero Section
   ======================================== */

.hero {
    position: relative;
    padding: 2.4rem 0 calc(var(--space-4xl) * 1.5);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: var(--gradient-hero);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(88, 166, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero h1 {
    font-size: var(--text-6xl);
    margin-bottom: var(--space-lg);
}

.hero .lead {
    max-width: 700px;
    margin: 0 auto var(--space-2xl);
}

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

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

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    display: block;
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--text-primary);
    line-height: var(--leading-none);
}

.hero-stat-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

.hero-image {
    position: relative;
    margin-top: var(--space-4xl);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    border: 1px solid var(--border-color);
}

.hero-image img {
    width: 100%;
}


/* ========================================
   8. Section Styles
   ======================================== */

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

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.process-step {
    position: relative;
    text-align: center;
    z-index: 1;
}

.process-step-number {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--accent-blue);
    transition: all var(--transition-base);
}

.process-step:hover .process-step-number {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: var(--text-inverse);
    transform: scale(1.1);
}

.process-step h4 {
    margin-bottom: var(--space-sm);
}

.process-step p {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.cta-section {
    background: linear-gradient(135deg, #2d4a5e 0%, #1e3a2f 100%);
    position: relative;
    overflow: hidden;
    padding: 2.1rem 0;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

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

.cta-section h2 {
    color: var(--text-inverse);
}

.cta-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--text-lg);
}


/* ========================================
   9. Cards
   ======================================== */

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

.card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-glass {
    background: rgba(26, 31, 46, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Feature Card */
.feature-card {
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(88, 166, 255, 0.1);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
    color: var(--accent-blue);
}

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

.feature-card h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
}

.feature-card p {
    color: var(--text-muted);
    font-size: var(--text-sm);
}

/* Pricing Card */
.pricing-card {
    position: relative;
    text-align: center;
    padding: var(--space-2xl);
}

.pricing-card.featured {
    background: linear-gradient(180deg, var(--bg-card) 0%, rgba(88, 166, 255, 0.1) 100%);
    border-color: var(--accent-blue);
    transform: scale(1.05);
}

.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--gradient-primary);
    color: var(--text-inverse);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
}

.pricing-name {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

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

.pricing-amount {
    font-size: var(--text-5xl);
    font-weight: 800;
    color: var(--text-primary);
    line-height: var(--leading-none);
}

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

.pricing-description {
    color: var(--text-muted);
    font-size: var(--text-sm);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--border-color);
}

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

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

.pricing-features li::before {
    content: '';
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2322c55e'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.pricing-features li.disabled {
    color: var(--text-muted);
}

.pricing-features li.disabled::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2364748b'%3E%3Cpath d='M19 13H5v-2h14v2z'/%3E%3C/svg%3E");
}


/* ========================================
   10. Buttons
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 12px 24px;
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1;
    text-align: center;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--accent-blue);
    color: var(--text-inverse);
    border-color: var(--accent-blue);
}

.btn-primary:hover:not(:disabled) {
    background: var(--accent-blue-hover);
    border-color: var(--accent-blue-hover);
    color: var(--text-inverse);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    color: var(--text-primary);
}

.btn-outline {
    background: transparent;
    color: var(--accent-blue);
    border-color: var(--accent-blue);
}

.btn-outline:hover:not(:disabled) {
    background: var(--accent-blue);
    color: var(--text-inverse);
}

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

.btn-ghost:hover:not(:disabled) {
    background: var(--bg-card);
    color: var(--text-primary);
}

.btn-success {
    background: var(--accent-green);
    color: var(--text-inverse);
    border-color: var(--accent-green);
}

.btn-success:hover:not(:disabled) {
    background: var(--accent-green-hover);
    border-color: var(--accent-green-hover);
}

.btn-white {
    background: var(--text-primary);
    color: var(--text-inverse);
    border-color: var(--text-primary);
}

.btn-white:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-inverse);
}

.btn-lg {
    padding: 16px 32px;
    font-size: var(--text-base);
    border-radius: var(--radius-lg);
}

.btn-sm {
    padding: 8px 16px;
    font-size: var(--text-xs);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-md);
}


/* ========================================
   11. Forms
   ======================================== */

.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.form-label-optional {
    color: var(--text-muted);
    font-weight: 400;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: var(--text-base);
    color: var(--text-primary);
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
    border-color: var(--border-light);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.15);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: var(--accent-error);
}

.form-input.error:focus,
.form-select.error:focus,
.form-textarea.error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

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

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2394a3b8'%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 24px;
    padding-right: 44px;
}

.form-help {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

.form-error {
    font-size: var(--text-sm);
    color: var(--accent-error);
    margin-top: var(--space-xs);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    cursor: pointer;
}

.form-checkbox input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--accent-blue);
    cursor: pointer;
}

.form-checkbox-label {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

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

/* Auth Form Styles */
.auth-container {
    min-height: calc(100vh - var(--navbar-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
}

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

.auth-header h1 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-sm);
}

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

.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin: var(--space-xl) 0;
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-footer {
    text-align: center;
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-color);
    font-size: var(--text-sm);
    color: var(--text-muted);
}


/* ========================================
   12. Pricing Table
   ======================================== */

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

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-3xl);
}

.pricing-toggle-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.pricing-toggle-label.active {
    color: var(--text-primary);
}

.pricing-toggle-switch {
    position: relative;
    width: 56px;
    height: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.pricing-toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: var(--accent-blue);
    border-radius: 50%;
    transition: transform var(--transition-fast);
}

.pricing-toggle-switch.active::after {
    transform: translateX(28px);
}

.pricing-save-badge {
    background: rgba(34, 197, 94, 0.1);
    color: var(--accent-green);
    font-size: var(--text-xs);
    font-weight: 600;
    padding: 4px 8px;
    border-radius: var(--radius-full);
}


/* ========================================
   13. Testimonials
   ======================================== */

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

.testimonial-card {
    padding: var(--space-xl);
}

.testimonial-rating {
    display: flex;
    gap: 2px;
    margin-bottom: var(--space-md);
    color: var(--accent-warning);
}

.testimonial-content {
    font-size: var(--text-base);
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: var(--space-lg);
}

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

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-inverse);
}

.testimonial-info h5 {
    font-size: var(--text-sm);
    margin-bottom: 2px;
}

.testimonial-info p {
    font-size: var(--text-xs);
    color: var(--text-muted);
}


/* ========================================
   14. Stats/Metrics
   ======================================== */

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

.stat-card {
    text-align: center;
    padding: var(--space-xl);
}

.stat-value {
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--text-primary);
    line-height: var(--leading-none);
    margin-bottom: var(--space-sm);
}

.stat-value .text-gradient {
    font-size: inherit;
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.stat-change {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--text-xs);
    font-weight: 600;
    margin-top: var(--space-sm);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.stat-change.positive {
    background: rgba(34, 197, 94, 0.1);
    color: var(--accent-green);
}

.stat-change.negative {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-error);
}


/* ========================================
   15. Footer
   ======================================== */

.footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-color);
}

/* Newsletter Section */
.footer-newsletter {
    padding: var(--space-3xl) 0;
    border-bottom: 1px solid var(--border-color);
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2xl);
}

.newsletter-text h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-xs);
}

.newsletter-text p {
    color: var(--text-muted);
    margin: 0;
}

.newsletter-form {
    flex-shrink: 0;
}

.newsletter-input-group {
    display: flex;
    gap: var(--space-sm);
}

.newsletter-input {
    width: 280px;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--text-sm);
}

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

.newsletter-input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.newsletter-disclaimer {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: var(--space-sm);
    margin-bottom: 0;
}

/* Footer Main */
.footer-main {
    padding: var(--space-3xl) 0;
}

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

.footer-brand-col {
    padding-right: var(--space-xl);
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-primary);
    font-weight: 700;
    font-size: var(--text-lg);
    margin-bottom: var(--space-md);
}

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

.footer-tagline {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-lg);
}

.social-links {
    display: flex;
    gap: var(--space-sm);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: var(--text-primary);
}

.footer-links-col h4 {
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-lg);
}

.footer-links-col ul li {
    margin-bottom: var(--space-sm);
}

.footer-links-col a {
    font-size: var(--text-sm);
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.footer-links-col a:hover {
    color: var(--text-primary);
}

/* Footer Bottom */
.footer-bottom {
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--border-color);
}

.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.copyright {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin: 0;
}

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

.footer-bottom-links a {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.footer-bottom-links a:hover {
    color: var(--text-primary);
}

.footer-bottom-links .separator {
    color: var(--border-color);
}

.footer-status {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin: 0;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-operational {
    background: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
}

.status-degraded {
    background: var(--accent-warning);
    box-shadow: 0 0 8px var(--accent-warning);
}

.status-down {
    background: var(--accent-error);
    box-shadow: 0 0 8px var(--accent-error);
}


/* ========================================
   16. Utility Classes
   ======================================== */

/* Text Alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Text Colors */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-blue { color: var(--accent-blue); }
.text-green { color: var(--accent-green); }
.text-warning { color: var(--accent-warning); }
.text-error { color: var(--accent-error); }

/* Font Weights */
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Margins */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }
.mt-5 { margin-top: var(--space-xl); }
.mt-6 { margin-top: var(--space-2xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }
.mb-5 { margin-bottom: var(--space-xl); }
.mb-6 { margin-bottom: var(--space-2xl); }

.my-0 { margin-top: 0; margin-bottom: 0; }
.my-4 { margin-top: var(--space-lg); margin-bottom: var(--space-lg); }
.my-6 { margin-top: var(--space-2xl); margin-bottom: var(--space-2xl); }

.mx-auto { margin-left: auto; margin-right: auto; }

/* Paddings */
.p-0 { padding: 0; }
.p-4 { padding: var(--space-lg); }
.p-6 { padding: var(--space-2xl); }

.py-4 { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
.py-6 { padding-top: var(--space-2xl); padding-bottom: var(--space-2xl); }

.px-4 { padding-left: var(--space-lg); padding-right: var(--space-lg); }
.px-6 { padding-left: var(--space-2xl); padding-right: var(--space-2xl); }

/* Display */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }
.d-grid { display: grid; }

/* Flexbox */
.flex-wrap { flex-wrap: wrap; }
.flex-column { flex-direction: column; }
.align-items-center { align-items: center; }
.align-items-start { align-items: flex-start; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.gap-2 { gap: var(--space-sm); }
.gap-3 { gap: var(--space-md); }
.gap-4 { gap: var(--space-lg); }
.gap-5 { gap: var(--space-xl); }

/* Width & Height */
.w-100 { width: 100%; }
.h-100 { height: 100%; }
.max-w-narrow { max-width: var(--container-narrow); }

/* Border */
.border { border: 1px solid var(--border-color); }
.border-top { border-top: 1px solid var(--border-color); }
.border-bottom { border-bottom: 1px solid var(--border-color); }
.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }

/* Background */
.bg-dark { background-color: var(--bg-dark); }
.bg-card { background-color: var(--bg-card); }

/* Visibility */
.visible { visibility: visible; }
.invisible { visibility: hidden; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }


/* ========================================
   17. Animations
   ======================================== */

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

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Fade-in on scroll */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Animation utilities */
.animate-fadeIn {
    animation: fadeIn 0.6s ease forwards;
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Animation delays */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

/* Hover transitions */
.hover-lift {
    transition: transform var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-4px);
}

.hover-scale {
    transition: transform var(--transition-base);
}

.hover-scale:hover {
    transform: scale(1.05);
}


/* ========================================
   18. Media Queries
   ======================================== */

/* Large screens (1200px and below) */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 2fr repeat(2, 1fr);
    }

    .footer-links-col:nth-child(4),
    .footer-links-col:nth-child(5) {
        grid-column: span 1;
    }
}

/* Medium screens (992px and below) */
@media (max-width: 992px) {
    :root {
        --text-6xl: 3rem;
        --text-5xl: 2.5rem;
        --text-4xl: 2rem;
    }

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

    .pricing-card.featured {
        transform: none;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-steps::before {
        display: none;
    }

    .hero-stats {
        gap: var(--space-2xl);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-brand-col {
        grid-column: span 2;
        padding-right: 0;
        padding-bottom: var(--space-xl);
        border-bottom: 1px solid var(--border-color);
        margin-bottom: var(--space-lg);
    }
}

/* Tablets (768px and below) */
@media (max-width: 768px) {
    .navbar-links,
    .navbar-actions {
        display: none;
    }

    .navbar-toggle {
        display: flex;
    }

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

    .hero h1 {
        font-size: var(--text-4xl);
    }

    .hero .lead {
        font-size: var(--text-base);
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--space-xl);
    }

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

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

    .features-grid,
    .pricing-grid,
    .testimonials-grid,
    .stats-grid,
    .process-steps {
        grid-template-columns: 1fr;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-input-group {
        flex-direction: column;
    }

    .newsletter-input {
        width: 100%;
    }

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

    .footer-brand-col {
        grid-column: span 1;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-links-col {
        text-align: center;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Mobile (576px and below) */
@media (max-width: 576px) {
    :root {
        --text-6xl: 2.5rem;
        --text-5xl: 2rem;
        --text-4xl: 1.75rem;
        --text-3xl: 1.5rem;
    }

    .container {
        padding: 0 var(--space-md);
    }

    .hero h1 {
        font-size: var(--text-3xl);
    }

    .card {
        padding: var(--space-lg);
    }

    .pricing-card {
        padding: var(--space-lg);
    }

    .auth-card {
        padding: var(--space-lg);
    }

    .btn-lg {
        padding: 14px 24px;
    }
}

/* Extra small (400px and below) */
@media (max-width: 400px) {
    .hero-badge {
        font-size: var(--text-xs);
        padding: var(--space-xs) var(--space-sm);
    }

    .hero-stat-value {
        font-size: var(--text-2xl);
    }

    .stat-value {
        font-size: var(--text-3xl);
    }
}

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

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

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --border-color: #ffffff;
        --text-secondary: #ffffff;
        --text-muted: #cccccc;
    }

    .btn-primary {
        border-width: 2px;
    }

    .card {
        border-width: 2px;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer-newsletter,
    .btn,
    .social-links {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .card {
        border: 1px solid #ccc;
        break-inside: avoid;
    }

    a {
        color: black;
        text-decoration: underline;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}
