/* ==========================================================================
   Premium Slate & Gold Design System
   ========================================================================== */

/* Theme Variables */
:root {
    /* Light Theme */
    --background: 210 20% 98%;
    --foreground: 222 47% 11%;
    --card: 0 0% 100%;
    --card-foreground: 222 47% 11%;
    --popover: 0 0% 100%;
    --popover-foreground: 222 47% 11%;
    
    /* Primary brand colors - Deep Slate Blue */
    --primary: 222 47% 11%;
    --primary-foreground: 210 40% 98%;
    
    --secondary: 210 40% 96.1%;
    --secondary-foreground: 222 47% 11%;
    
    --muted: 210 40% 96.1%;
    --muted-foreground: 215 16% 47%;
    
    --accent: 210 40% 96.1%;
    --accent-foreground: 222 47% 11%;
    
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;
    
    --border: 214 32% 91%;
    --input: 214 32% 91%;
    --ring: 222 47% 11%;
    --radius: 0.5rem;
    
    /* Semantic Colors - More muted, sophisticated */
    --color-blue: 221 83% 53%; /* Keep for links/actions */
    --color-gold: 35 90% 50%;  /* Premium accent */
    --color-success: 150 60% 35%; /* Muted green */
}

[data-theme="dark"] {
    --background: 222 47% 11%;
    --foreground: 210 40% 98%;
    --card: 217 33% 17%;
    --card-foreground: 210 40% 98%;
    --popover: 222 47% 11%;
    --popover-foreground: 210 40% 98%;
    
    --primary: 210 40% 98%;
    --primary-foreground: 222 47% 11%;
    
    --secondary: 217 33% 17.5%;
    --secondary-foreground: 210 40% 98%;
    
    --muted: 217 33% 17.5%;
    --muted-foreground: 215 20% 65%;
    
    --accent: 217 33% 17.5%;
    --accent-foreground: 210 40% 98%;
    
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 210 40% 98%;
    
    --border: 217 33% 17.5%;
    --input: 217 33% 17.5%;
    --ring: 212 26% 83%;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: hsl(var(--foreground));
    background-color: hsl(var(--background));
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s, color 0.3s;
}

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

ul {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    border-bottom: 1px solid hsl(var(--border) / 0.8);
    background-color: hsl(var(--background) / 0.85);
    backdrop-filter: blur(16px);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px; /* Slightly taller for premium feel */
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.logo-icon {
    color: hsl(var(--foreground));
}

.nav-center {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    transition: color 0.2s;
}

.nav-link:hover {
    color: hsl(var(--foreground));
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    cursor: pointer;
    color: hsl(var(--foreground));
    transition: background 0.2s, border-color 0.2s;
}

.theme-toggle:hover {
    background: hsl(var(--accent));
    border-color: hsl(var(--border));
}

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

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

@media (max-width: 768px) {
    .nav-center { display: none; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.btn-primary {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.btn-outline {
    background: transparent;
    border: 1px solid hsl(var(--border));
    color: hsl(var(--foreground));
}

.btn-outline:hover {
    background: hsl(var(--accent));
    border-color: hsl(var(--foreground));
}

.btn-ghost {
    background: transparent;
    color: hsl(var(--muted-foreground));
}

.btn-ghost:hover {
    background: hsl(var(--accent));
    color: hsl(var(--foreground));
}

.btn-block {
    width: 100%;
}

.btn-lg {
    height: 48px;
    padding: 0 28px;
    font-size: 16px;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    padding: 100px 0 120px;
    text-align: center;
}

.hero-adt {
    /* Premium dark gradient for the premium page */
    background: radial-gradient(circle at 50% 0%, hsl(var(--color-blue) / 0.08), transparent 60%);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.badge {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 14px;
    font-size: 12px;
    font-weight: 600;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    color: hsl(var(--foreground));
    border-radius: 9999px;
    margin-bottom: 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.hero h1 {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    color: hsl(var(--foreground));
}

.text-gradient {
    /* Subtle silver/gold gradient instead of purple */
    background: linear-gradient(135deg, hsl(var(--foreground)) 0%, hsl(var(--muted-foreground)) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 20px;
    color: hsl(var(--muted-foreground));
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
    padding: 100px 0;
}

.section-alt {
    background: hsl(var(--muted) / 0.5);
    border-top: 1px solid hsl(var(--border) / 0.5);
    border-bottom: 1px solid hsl(var(--border) / 0.5);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 18px;
    color: hsl(var(--muted-foreground));
}

/* ==========================================================================
   Cards Grid (Plugins)
   ========================================================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

@media (max-width: 900px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) * 1.5);
    padding: 32px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    border-color: hsl(var(--foreground) / 0.2);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.card-featured {
    border-color: hsl(var(--color-gold));
    position: relative;
    overflow: hidden;
}

.card-featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: hsl(var(--color-gold));
}

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: calc(var(--radius) * 1.2);
    background: hsl(var(--muted));
    color: hsl(var(--foreground));
    border: 1px solid hsl(var(--border));
}

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

.card-status {
    font-size: 11px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 9999px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.status-pending {
    background: hsl(35 90% 50% / 0.1);
    color: hsl(35 90% 40%);
}

.status-ready {
    background: hsl(150 60% 35% / 0.1);
    color: hsl(150 60% 30%);
}

.card-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

.card-tagline {
    font-size: 14px;
    color: hsl(var(--muted-foreground));
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 11px;
}

.card-description {
    font-size: 15px;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.card-features {
    margin-bottom: 32px;
    padding-top: 20px;
    border-top: 1px solid hsl(var(--border) / 0.6);
}

.card-features li {
    position: relative;
    padding-left: 24px;
    font-size: 14px;
    color: hsl(var(--muted-foreground));
    margin-bottom: 10px;
}

.card-features li::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 8px;
    width: 6px;
    height: 6px;
    background: hsl(var(--foreground));
    border-radius: 50%;
}

/* ==========================================================================
   Features Grid
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.feature {
    padding: 0;
}

.feature-icon {
    font-size: 28px;
    margin-bottom: 20px;
    width: 64px;
    height: 64px;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.feature h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature p {
    font-size: 15px;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
}

/* ==========================================================================
   Comparison Table
   ========================================================================== */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: hsl(var(--card));
}

.comparison-table th,
.comparison-table td {
    padding: 20px 24px;
    text-align: left;
    border-bottom: 1px solid hsl(var(--border));
    font-size: 15px;
}

.comparison-table th {
    font-weight: 600;
    color: hsl(var(--foreground));
    background: hsl(var(--muted) / 0.5);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comparison-table th.highlight {
    background: hsl(var(--primary) / 0.05);
    color: hsl(var(--primary));
}

.comparison-table td.highlight {
    color: hsl(var(--foreground));
    font-weight: 600;
    background: hsl(var(--primary) / 0.02);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

/* ==========================================================================
   CTA
   ========================================================================== */
.cta {
    text-align: center;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    margin-top: 80px;
}

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

.cta h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
    color: hsl(var(--primary-foreground));
}

.cta p {
    font-size: 18px;
    color: hsl(var(--primary-foreground) / 0.8);
    margin-bottom: 32px;
}

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

.cta .btn-primary:hover {
    background: hsl(var(--background) / 0.9);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    padding: 64px 0 32px;
    background: hsl(var(--card));
    border-top: 1px solid hsl(var(--border));
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 48px;
}

.footer-brand .logo {
    font-size: 20px;
    margin-bottom: 12px;
}

.footer-text {
    font-size: 14px;
    color: hsl(var(--muted-foreground));
    max-width: 300px;
}

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

.footer-links a {
    font-size: 14px;
    color: hsl(var(--muted-foreground));
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: hsl(var(--foreground));
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid hsl(var(--border));
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 13px;
    color: hsl(var(--muted-foreground));
}

/* ==========================================================================
   Premium / Gravity Tables Additions
   ========================================================================== */
.card-premium {
    background: linear-gradient(145deg, hsl(var(--card)), hsl(var(--background)));
    border: 1px solid hsl(var(--color-gold) / 0.3);
    position: relative;
    overflow: visible;
}

.featured-glow {
    box-shadow: 0 0 40px -10px hsl(var(--color-gold) / 0.15);
}

.featured-glow:hover {
    box-shadow: 0 0 50px -5px hsl(var(--color-gold) / 0.25);
    border-color: hsl(var(--color-gold));
}

.status-premium {
    background: linear-gradient(135deg, hsl(35 90% 50%), hsl(25 90% 45%));
    color: #fff;
    box-shadow: 0 2px 10px hsl(35 90% 50% / 0.3);
}

.btn-gold {
    background: linear-gradient(135deg, hsl(35 90% 50%), hsl(25 90% 45%));
    color: hsl(var(--background)); /* Dark text on gold */
    font-weight: 700;
    border: none;
    border-radius: var(--radius);
    padding: 0 20px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-gold:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px hsl(35 90% 50% / 0.25);
    color: hsl(var(--background));
}

.card-icon-gold {
    background: hsl(35 90% 50% / 0.1);
    color: hsl(35 90% 50%);
    border-color: hsl(35 90% 50% / 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: calc(var(--radius) * 1.2);
    border-width: 1px;
    border-style: solid;
}

/* Layout adjustments */
.card-content-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-body-row {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 900px) {
    .card-premium .card-body-row {
        flex-direction: row;
        align-items: flex-start;
        gap: 40px;
    }
    
    .card-premium .card-info {
        flex: 1;
    }
    
    .card-premium .card-features-list {
        flex: 1;
        border-left: 1px solid hsl(var(--border));
        padding-left: 40px;
    }
    
    .card-premium .card-features {
        border-top: none;
        padding-top: 0;
        margin-bottom: 0;
    }
}
