/* =========================================
   INRY.io - Premium FinTech Design System
   Theme: Modern Neo-Bank / Institutional
   ========================================= */

/* === Import Fonts === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
    /* === Palette: Trust & Technology === */
    /* Primary: Deep Navy (Authority, Stability) */
    --color-primary: #0F172A;
    --color-primary-light: #1E293B;

    /* Brand: Electric Blue (Innovation) */
    --color-brand: #2563EB;
    --color-brand-dark: #1D4ED8;
    --color-brand-light: #60A5FA;
    --color-brand-subtle: #EFF6FF;

    /* Semantic */
    --color-success: #10B981;
    --color-warning: #F59E0B;
    --color-danger: #EF4444;

    /* Neutral Scale (Slate) */
    --color-text-main: #0F172A;
    /* Almost Black */
    --color-text-muted: #64748B;
    /* Slate 500 */
    --color-text-light: #94A3B8;
    /* Slate 400 */
    --color-bg-page: #FFFFFF;
    --color-bg-surface: #F8FAFC;
    /* Slate 50 */
    --color-bg-surface-2: #F1F5F9;
    /* Slate 100 */
    --color-border: #E2E8F0;
    /* Slate 200 */

    /* === Shadows (Soft & Diffused) === */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.07);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.08);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.08);
    --shadow-float: 0 25px 50px -12px rgb(37 99 235 / 0.15);
    /* Brand tinted shadow */

    /* === Typography === */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* === Metrics === */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --container-max: 1200px;
    --header-height: 80px;
}

/* === Reset & Base === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-page);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text-main);
    line-height: 1.25;
    letter-spacing: -0.02em;
    /* Tighten headings for modern look */
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* === Layout Utilities === */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
    position: relative;
}

.section-sm {
    padding: 4rem 0;
}

/* === Typography Utilities === */
.text-gradient {
    background: linear-gradient(135deg, var(--color-brand) 0%, #06B6D4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--color-text-muted);
}

/* === Header (Glassmorphism) === */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-logo img {
    height: 40px;
}

/* Ensure logo is sized correctly */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-list {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.nav-link:hover {
    color: var(--color-brand);
}

.nav-link.active {
    color: var(--color-brand);
    font-weight: 600;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-brand);
}

/* === Buttons (Pill Shaped, Modern) === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-full);
    /* Modern pill shape */
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--color-brand);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background: var(--color-brand-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 12px -1px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--color-text-main);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-bg-surface);
    border-color: var(--color-text-muted);
}

/* === Hero Section (Clean & Impactful) === */
.hero {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 6rem;
    background: radial-gradient(circle at 50% 0%, #EFF6FF 0%, #FFFFFF 60%);
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 540px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.trust-badges {
    display: flex;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-main);
}

.trust-badge svg {
    width: 18px;
    height: 18px;
    color: var(--color-success);
}

/* === Price Ticker / Dashboard (The "Tech" Visual) === */
.price-ticker {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-float);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    /* Glass feel */
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-bg-surface-2);
}

.price-item:last-child {
    border-bottom: none;
}

.price-label {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.price-value {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.price-change {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.price-change.positive {
    background: #DCFCE7;
    color: #166534;
}

.price-change.stable {
    background: #DBEAFE;
    color: #1E40AF;
}

/* === Stats Cards (Minimalist) === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-brand-light);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin: 1rem 0 0.5rem;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: var(--color-bg-surface-2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-brand);
}

/* === Feature Cards (Modern Grid) === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--color-brand);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--color-brand-subtle);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-brand);
    margin-bottom: 1.5rem;
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.feature-description {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* === Section Headers (Professional) === */
.section-header {
    margin-bottom: 4rem;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--color-bg-surface-2);
    color: var(--color-brand-dark);
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
}

/* === CTA Section === */
.cta-section {
    background: linear-gradient(135deg, #0D47A1 0%, #002171 100%);
    color: white;
    text-align: center;
    border-radius: var(--radius-xl);
    padding: var(--space-16);
    margin: var(--space-20) 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 188, 212, 0.2), transparent 50%);
}

.cta-title {
    color: white;
    margin-bottom: var(--space-6);
}

.cta-text {
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto var(--space-8);
    font-size: 1.25rem;
}

/* === Footer (Dark) === */
footer {
    background: var(--color-primary);
    color: white;
    padding: 5rem 0 2rem;
}

footer h4 {
    color: white;
    opacity: 0.9;
}

footer a {
    color: #94A3B8;
}

footer a:hover {
    color: white;
}

/* === Mobile === */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .trust-badges {
        justify-content: center;
    }

    .price-ticker {
        max-width: 500px;
        margin: 0 auto;
    }

    .stats-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        display: none;
    }

    /* Add slide-out logic later or keep simple */
    .nav-toggle {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
    }
}

@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
}