/* ========================================
   Egir Landing Page Styles
   ======================================== */

/* CSS Variables */
:root {
    /* Colors */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #0f172a;
    --accent: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);

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

    /* Spacing */
    --section-padding: 6rem 0;
    --container-padding: 1.5rem;

    /* Borders */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* Focus states for accessibility */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--gray-900);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.btn-secondary {
    background: var(--white);
    color: var(--gray-700);
    border: 2px solid var(--gray-200);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

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

.btn-white:hover {
    background: var(--gray-50);
    transform: translateY(-2px);
}

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

.btn-full {
    width: 100%;
}

/* Badges */
.badge, .section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 9999px;
    background: var(--primary);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    color: var(--primary);
}

/* Gradient Text */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-100);
    padding: 1rem 0;
}

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

.logo img {
    height: 48px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--gray-600);
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    transition: all 0.3s;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

/* Decorative background elements */
.hero::before {
    content: "";
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-content .badge {
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
}

.mockup {
    width: 100%;
    max-width: 500px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    animation: float 6s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

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

.mockup-header {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.mockup-content {
    display: flex;
    min-height: 300px;
}

.mockup-sidebar {
    width: 180px;
    padding: 1rem;
    background: var(--gray-50);
    border-right: 1px solid var(--gray-200);
}

.menu-item {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.25rem;
}

.menu-item.active {
    background: var(--primary);
    color: var(--white);
}

.mockup-main {
    flex: 1;
    padding: 1.5rem;
}

.card-preview {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.card-header-preview {
    padding: 1rem;
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-900);
    border-bottom: 1px solid var(--gray-200);
}

.card-stats-preview {
    display: flex;
    gap: 1rem;
    padding: 1rem;
}

.mini-stat {
    flex: 1;
    text-align: center;
}

.mini-stat span {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
}

.mini-stat strong {
    font-size: 0.875rem;
    color: var(--gray-900);
}

.mini-stat.good strong {
    color: var(--accent);
}

/* ========================================
   Problem Section
   ======================================== */
.problem {
    padding: var(--section-padding);
    background: var(--white);
}

.problem h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.problem-card {
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-100);
    transition: all 0.3s ease;
}

.problem-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.problem-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--white);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    color: var(--danger);
    transition: all 0.3s ease;
}

.problem-card:hover .problem-icon {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

.problem-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.problem-card p {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* ========================================
   Solution / Features Section
   ======================================== */
.solution {
    padding: var(--section-padding);
    background: var(--gray-50);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.section-header .section-badge {
    margin-bottom: 1rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--gray-600);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.feature-card.highlight {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
}

.feature-card.highlight h3,
.feature-card.highlight p,
.feature-card.highlight li {
    color: var(--white);
}

.feature-card.highlight .feature-icon {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--gray-100);
    border-radius: var(--radius-xl);
    margin-bottom: 1.5rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: rotate(-5deg) scale(1.1);
}

.feature-card h3 {
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

.feature-card.highlight .feature-list li::before {
    background: var(--white);
}

/* ========================================
   Calculator Section
   ======================================== */
.calculator-section {
    padding: var(--section-padding);
    background: var(--white);
}

.calculator-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 2.5rem;
    background: var(--gray-50);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--gray-200);
}

.calculator-input {
    margin-bottom: 2rem;
}

.calculator-input label {
    display: block;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.slider-container {
    position: relative;
    padding: 1rem 0;
}

#ca-slider {
    width: 100%;
    height: 8px;
    border-radius: 9999px;
    background: var(--gray-200);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

#ca-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s;
}

#ca-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

#ca-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-md);
}

.slider-value {
    text-align: center;
    margin-top: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: 0.5rem;
}

.calculator-results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.result-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.result-card.total {
    background: var(--gradient-primary);
    border: none;
    padding: 1.5rem;
}

.result-card.total .result-content {
    width: 100%;
    text-align: center;
}

.result-card.total .result-label,
.result-card.total .result-sublabel {
    color: rgba(255, 255, 255, 0.9);
}

.result-card.total .result-value {
    color: var(--white);
    font-size: 1.5rem;
}

.result-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    flex-shrink: 0;
}

.result-card.gain .result-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
}

.result-card.time .result-icon {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
}

.result-card.cost .result-icon {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.result-content {
    flex: 1;
}

.result-label {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
}

.result-value {
    display: block;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
}

.result-value.highlight {
    color: var(--accent);
}

.result-sublabel {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-top: 0.25rem;
}

.roi-message {
    text-align: center;
    padding: 1rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: var(--radius-lg);
    color: var(--accent);
    font-size: 1.125rem;
}

.calculator-cta {
    text-align: center;
}

.cta-note {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.calculator-details {
    max-width: 700px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.calculator-details h4 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--gray-700);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.detail-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.detail-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 600;
    flex-shrink: 0;
}

.detail-item strong {
    display: block;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.detail-item p {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* ========================================
   Pricing Section
   ======================================== */
.pricing {
    padding: var(--section-padding);
    background: var(--gray-50);
}

.pricing-card {
    max-width: 400px;
    margin: 0 auto;
    padding: 2.5rem;
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    text-align: center;
    position: relative;
    border: 2px solid var(--primary);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1.5rem;
    background: var(--gradient-primary);
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 9999px;
}

.pricing-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-200);
}

.price-old {
    font-size: 1.25rem;
    color: var(--gray-400);
    text-decoration: line-through;
    margin-bottom: 0.5rem;
}

.price-current {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.price-amount {
    font-size: 4rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1;
}

.price-currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-700);
}

.price-period {
    font-size: 1.25rem;
    color: var(--gray-500);
}

.price-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--accent);
    font-weight: 500;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: var(--gray-700);
}

.pricing-features svg {
    color: var(--accent);
    flex-shrink: 0;
}

.pricing-cta-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* ========================================
   Final CTA Section
   ======================================== */
.final-cta {
    padding: var(--section-padding);
    background: var(--gradient-dark);
    text-align: center;
}

.final-cta h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.final-cta p {
    color: var(--gray-400);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 2.5rem 0 1.5rem;
    background: var(--gray-900);
    color: var(--gray-400);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-brand img {
    height: 36px !important;
    max-height: 36px !important;
    width: auto;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    font-size: 0.875rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    color: var(--white);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.footer-column a {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-400);
    padding: 0.25rem 0;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 1rem;
    border-top: 1px solid var(--gray-800);
    text-align: center;
    font-size: 0.75rem;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: none;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 2rem;
    }

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

    .features-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        justify-items: center;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 4rem 0;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--white);
        padding: 1rem;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        padding-top: 6rem;
    }

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

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .mockup-sidebar {
        display: none;
    }

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

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

    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .calculator-container {
        padding: 1.5rem;
    }

    .result-card {
        flex-direction: column;
        text-align: center;
    }

    .pricing-card {
        padding: 1.5rem;
    }

    .price-amount {
        font-size: 3rem;
    }
}
