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

:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-foreground: #ffffff;
    --secondary: #f8fafc;
    --secondary-foreground: #0f172a;
    --background: #ffffff;
    --foreground: #0f172a;
    --muted: #f1f5f9;
    --muted-foreground: #64748b;
    --accent: #f1f5f9;
    --accent-foreground: #0f172a;
    --destructive: #ef4444;
    --destructive-foreground: #ffffff;
    --border: #e2e8f0;
    --input: #e2e8f0;
    --ring: #2563eb;
    --radius: 0.75rem;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.text-primary { color: var(--primary); }
.text-muted { color: var(--muted-foreground); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    font-size: 1rem;
}

.btn-lg { padding: 1rem 2rem; font-size: 1.125rem; }

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
    border-color: var(--border);
}

.btn-secondary:hover {
    background-color: var(--muted);
    border-color: var(--muted-foreground);
}

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

.btn-outline:hover {
    background-color: var(--muted);
}

/* Cards */
.card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.card-highlight {
    border: 2px solid var(--primary);
    position: relative;
}

.badge-popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Sections */
section {
    padding: 1.5rem 0;
}

.hero {
    position: relative;
    padding: 3rem 0 0 0;
    text-align: center;
    overflow: hidden;
}

.hero-image-container {
    margin-top: 1.5rem;
    border-radius: 2.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 8px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.hero-image {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    filter: brightness(0.8);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    color: white;
    text-align: left;
}

/* Glassmorphism */
.glass-widget {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.glass-widget:hover {
    transform: translateY(-5px);
}

/* Lucide Icon Alignment */
[data-lucide] {
    vertical-align: middle;
}

.check-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary);
    stroke-width: 3;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* Pricing Features */
.feature-list {
    list-style: none;
    margin: 1.5rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.check-icon {
    color: var(--primary);
    width: 1.25rem;
    height: 1.25rem;
}

/* Utilities */
.text-center { text-align: center; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 1.5rem; }
.mt-4 { margin-top: 1rem; }
.font-bold { font-weight: 700; }

/* Navbar */
nav {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    background: white;
}

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

/* Footer */
footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    background: white;
    text-align: center;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
    overflow-x: auto;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    cursor: pointer;
    border: none;
    background: none;
    border-radius: 99px;
    transition: all 0.2s;
    white-space: nowrap;
}

.tab-btn:hover {
    background: var(--muted);
    color: var(--foreground);
}

.tab-btn.active {
    background: var(--muted);
    color: var(--foreground);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

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

/* Ratio Cards */
.ratio-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ratio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.ratio-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--muted-foreground);
}

.status-badge {
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge.ugly {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-badge.bad {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-badge.good {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.ratio-value {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.ratio-desc {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

.ratio-recommended {
    font-size: 0.75rem;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.ratio-formula-box {
    background: #f8fafc;
    border-radius: 0.5rem;
    padding: 0.75rem;
    font-size: 0.6rem;
    color: var(--muted-foreground);
}

.ratio-formula {
    margin-bottom: 0.5rem;
}

.ratio-values {
    font-weight: 700;
    color: var(--primary);
}

/* Status Cards (Top Right) */
.status-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 1rem 1.5rem;
    min-width: 180px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.status-card-label {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--muted-foreground);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.status-card-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.status-card-value.negative {
    color: #ef4444;
}

.status-card-value.positive {
    color: #10b981;
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .hero { padding: 4rem 0; }
    .hero-overlay { padding: 1.5rem; text-align: center; }
}
