/* SterileCSV Premium Design System - Redesigned */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Professional Color Palette - Trustworthy Blues */
    --bg-base: #0a0e14;
    --bg-elevated: #0f141a;
    --bg-card: rgba(15, 20, 26, 0.7);
    --bg-card-hover: rgba(20, 28, 38, 0.9);

    /* Corporate Gradients - Professional & Trustworthy */
    --gradient-primary: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    --gradient-accent: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    --gradient-hero: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(6, 182, 212, 0.05) 50%, rgba(20, 184, 166, 0.03) 100%);
    --gradient-text: linear-gradient(135deg, #ffffff 0%, #e0f2fe 100%);
    --gradient-glow: radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.12), transparent 70%);

    /* Trustworthy Accent Colors */
    --primary: #0ea5e9;
    --primary-light: #38bdf8;
    --primary-dark: #0284c7;
    --accent: #06b6d4;
    --accent-teal: #14b8a6;
    --cyan: #22d3ee;
    --emerald: #10b981;

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #cbd5e0;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    /* Glass Effects */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-bg-hover: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(14, 165, 233, 0.3);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.3);
    --shadow-glow-primary: 0 0 50px rgba(14, 165, 233, 0.25);
    --shadow-glow-accent: 0 0 50px rgba(6, 182, 212, 0.2);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing & Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;

    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg-base);
    background-image:
        radial-gradient(circle at 15% 20%, rgba(14, 165, 233, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 85% 80%, rgba(6, 182, 212, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(20, 184, 166, 0.03) 0%, transparent 70%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(1.875rem, 3vw + 0.5rem, 3rem);
    font-weight: 700;
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 600;
}

p {
    margin: 0 0 1rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: all var(--transition-base);
}

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

ul {
    margin: 0;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

li {
    margin-bottom: 0.875rem;
    line-height: 1.75;
}

li::marker {
    color: var(--primary);
}

code {
    background: rgba(14, 165, 233, 0.1);
    color: var(--cyan);
    padding: 4px 10px;
    border-radius: 6px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Consolas', monospace;
    font-size: 0.875em;
    border: 1px solid rgba(14, 165, 233, 0.2);
    font-weight: 500;
}

/* Layout */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Header */
header {
    padding: 40px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 80px;
    backdrop-filter: blur(12px);
    animation: fadeInDown 0.6s ease-out;
}

.brand {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.02em;
    transition: transform var(--transition-base);
}

.brand:hover {
    transform: translateX(-4px);
}

.brand span {
    font-weight: 400;
    font-size: 15px;
    margin-left: 8px;
    color: var(--text-muted);
}

/* Navigation */
.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 0;
    position: relative;
    transition: color 0.2s;
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    margin-bottom: 100px;
    padding: 120px 80px;
    background: var(--bg-elevated);
    background-image: var(--gradient-hero);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--glass-border);
    animation: fadeInUp 0.8s ease-out 0.2s backwards, heroGlow 8s ease-in-out infinite;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 30% 30%, rgba(14, 165, 233, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 70% 70%, rgba(6, 182, 212, 0.08) 0%, transparent 40%);
    animation: heroFloat 20s ease-in-out infinite;
    pointer-events: none;
}

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

.hero h1 {
    position: relative;
    z-index: 1;
    margin-bottom: 28px;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 50%, #c7d2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero p {
    position: relative;
    z-index: 1;
    font-size: 1.25rem;
    max-width: 720px;
    margin: 0 auto;
    color: var(--text-secondary);
    line-height: 1.8;
    font-weight: 400;
    animation: fadeInUp 0.8s ease-out 0.5s backwards;
}

/* Grid */
.grid {
    display: grid;
    gap: 32px;
}

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

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

@media (min-width: 968px) {
    .grid-main {
        grid-template-columns: 2fr 1fr;
        gap: 48px;
    }
}

/* Cards */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 40px;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    animation: fadeInUp 0.6s ease-out backwards;
    position: relative;
    overflow: hidden;
}

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

.card:hover {
    background: var(--bg-card-hover);
    border-color: var(--glass-border-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl), var(--shadow-glow-primary);
}

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

.card.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
}

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

.card h2 {
    margin-bottom: 20px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card h3 {
    color: var(--text-primary);
    margin-bottom: 16px;
}

.card ul {
    margin-top: 20px;
}

.card li {
    transition: transform var(--transition-fast);
}

.card li:hover {
    transform: translateX(4px);
}

.card li b {
    color: var(--primary-light);
    font-weight: 600;
}

/* Pricing */
.pricing-tier {
    background: var(--glass-bg);
    backdrop-filter: blur(32px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

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

.pricing-tier::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--gradient-glow);
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: all var(--transition-slow);
}

.pricing-tier:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl), var(--shadow-glow-accent);
    background: var(--glass-bg-hover);
}

.pricing-tier:hover::before {
    opacity: 1;
}

.pricing-tier:hover::after {
    width: 300px;
    height: 300px;
    opacity: 1;
}

.pricing-tier h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.price {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--text-primary);
    margin: 20px 0;
    letter-spacing: -0.04em;
    position: relative;
    z-index: 1;
    line-height: 1;
}

.pricing-tier p {
    position: relative;
    z-index: 1;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 36px;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 24px rgba(14, 165, 233, 0.35);
    transition: all var(--transition-base);
    width: 100%;
    text-align: center;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slow);
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 36px rgba(14, 165, 233, 0.5);
    color: white;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover::after {
    opacity: 1;
}

.btn:active {
    transform: translateY(-1px);
}

.btn.disabled {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    box-shadow: none;
    cursor: not-allowed;
}

.btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--glass-border);
    box-shadow: none;
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--glass-bg-hover);
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.15);
    color: var(--text-primary);
}

/* Footer */
footer {
    margin-top: 140px;
    padding: 80px 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: all var(--transition-base);
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

.footer-links a:hover {
    color: var(--primary-light);
    transform: translateY(-2px);
}

.footer-links a:hover::after {
    width: 100%;
}

.legal-text {
    font-size: 14px;
    color: var(--text-muted);
    opacity: 0.9;
    line-height: 1.8;
}

/* Utility Classes */
.muted {
    color: var(--text-muted);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 32px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

th,
td {
    border: 1px solid var(--glass-border);
    padding: 20px;
    text-align: left;
    vertical-align: top;
    color: var(--text-secondary);
}

th {
    background: rgba(14, 165, 233, 0.1);
    color: var(--text-primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
}

td b {
    color: var(--primary-light);
    font-weight: 600;
}

tr {
    transition: all var(--transition-fast);
}

tbody tr:hover {
    background: rgba(14, 165, 233, 0.05);
    transform: scale(1.01);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroFloat {

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

    33% {
        transform: translate(30px, -30px) rotate(5deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }
}

@keyframes heroGlow {

    0%,
    100% {
        box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
    }

    50% {
        box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2), 0 0 60px rgba(14, 165, 233, 0.15);
    }
}

/* Responsive */
@media (max-width: 968px) {
    .container {
        padding: 0 24px;
    }

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

@media (max-width: 768px) {
    .hero {
        padding: 80px 40px;
        margin-bottom: 60px;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero p {
        font-size: 1.125rem;
    }

    .card {
        padding: 32px;
    }

    .pricing-tier {
        padding: 32px 24px;
    }

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

    header {
        padding: 28px 0;
        margin-bottom: 48px;
    }

    .brand {
        font-size: 24px;
    }

    .brand span {
        font-size: 13px;
    }

    footer {
        margin-top: 80px;
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 28px;
    }

    .price {
        font-size: 2.75rem;
    }

    .card {
        padding: 24px;
    }

    .container {
        padding: 0 20px;
    }
}

/* Stagger animations for cards */
.grid>*:nth-child(1) {
    animation-delay: 0.1s;
}

.grid>*:nth-child(2) {
    animation-delay: 0.2s;
}

.grid>*:nth-child(3) {
    animation-delay: 0.3s;
}

.grid>*:nth-child(4) {
    animation-delay: 0.4s;
}

.grid>*:nth-child(5) {
    animation-delay: 0.5s;
}

.grid>*:nth-child(6) {
    animation-delay: 0.6s;
}