/* eRX Network - Landing Page Styles */

/* CSS Variables */
:root {
    --color-primary: #0066cc;
    --color-primary-dark: #004d99;
    --color-primary-light: #3399ff;
    --color-secondary: #00c9a7;
    --color-accent: #6c5ce7;
    --color-text: #1a1a2e;
    --color-text-light: #4a4a68;
    --color-text-muted: #8888a0;
    --color-background: #ffffff;
    --color-background-alt: #f8fafc;
    --color-border: #e2e8f0;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    --font-primary: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', monospace;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.6;
    overflow-x: hidden;
}

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

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
    color: var(--color-text-light);
}

/* Layout */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
}

/* Header */
.header {
    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(--color-border);
    transition: var(--transition-normal);
}

.nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 8rem 4rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-title-line {
    display: block;
}

.hero-title-line.highlight {
    color: var(--color-primary);
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    max-width: 500px;
}

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

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    display: inline;
}

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

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

/* Hero Visual */
.hero-visual {
    animation: fadeInRight 0.8s ease-out 0.2s backwards;
}

.dashboard-preview {
    background: var(--color-background);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.dashboard-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-background-alt);
    border-bottom: 1px solid var(--color-border);
}

.dashboard-dots {
    display: flex;
    gap: 0.5rem;
}

.dashboard-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-border);
}

.dashboard-dots span:nth-child(1) { background: #ef4444; }
.dashboard-dots span:nth-child(2) { background: #f59e0b; }
.dashboard-dots span:nth-child(3) { background: #10b981; }

.dashboard-title {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.dashboard-content {
    padding: 1.5rem;
}

.dashboard-chart {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--color-background-alt);
    border-radius: var(--radius-md);
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 120px;
    gap: 0.5rem;
}

.bar {
    flex: 1;
    background: linear-gradient(to top, var(--color-primary), var(--color-primary-light));
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    height: var(--height);
    animation: growBar 1s ease-out backwards;
}

.bar:nth-child(1) { animation-delay: 0.1s; }
.bar:nth-child(2) { animation-delay: 0.2s; }
.bar:nth-child(3) { animation-delay: 0.3s; }
.bar:nth-child(4) { animation-delay: 0.4s; }
.bar:nth-child(5) { animation-delay: 0.5s; }
.bar:nth-child(6) { animation-delay: 0.6s; }
.bar:nth-child(7) { animation-delay: 0.7s; }

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

.metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: var(--color-background-alt);
    border-radius: var(--radius-md);
}

.metric-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
}

.metric-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Features Section */
.features {
    padding: 6rem 4rem;
    background: var(--color-background-alt);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    background: var(--color-background);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border: 1px solid var(--color-border);
}

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

.feature-icon {
    width: 48px;
    height: 48px;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-title {
    margin-bottom: 0.75rem;
}

.feature-description {
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* Benefits Section */
.benefits {
    padding: 6rem 4rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.benefit-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--color-background-alt);
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
}

.benefit-item:hover {
    background: var(--color-background);
    box-shadow: var(--shadow-md);
}

.benefit-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    opacity: 0.3;
    line-height: 1;
}

.benefit-text h3 {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.benefit-text p {
    font-size: 0.9375rem;
}

/* Circular Chart */
.benefits-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.circular-chart {
    position: relative;
    width: 280px;
    height: 280px;
}

.chart-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.chart-progress {
    stroke-dasharray: 0 503;
    animation: circularProgress 2s ease-out forwards;
}

.chart-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.chart-value {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
}

.chart-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* Technology Section */
.technology {
    padding: 6rem 4rem;
    background: linear-gradient(135deg, var(--color-text) 0%, #2d2d4a 100%);
    color: white;
}

.technology .section-title {
    color: white;
}

.technology .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tech-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-normal);
}

.tech-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.tech-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tech-card h3 {
    color: white;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.tech-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
}

/* Workflow Section */
.workflow {
    padding: 6rem 4rem;
    background: var(--color-background);
}

.workflow-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.workflow-step {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    text-align: center;
    padding: 1.5rem;
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.step-icon svg {
    width: 40px;
    height: 40px;
}

.workflow-step h3 {
    margin-bottom: 0.75rem;
    color: var(--color-primary);
}

.workflow-step p {
    font-size: 0.875rem;
}

.workflow-connector {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    margin-top: 56px;
    flex-shrink: 0;
}

/* Testimonial Section */
.testimonial {
    padding: 6rem 4rem;
    background: var(--color-background-alt);
}

.testimonial-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-quote {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-style: italic;
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 2rem;
    position: relative;
}

.testimonial-quote::before {
    content: '"';
    font-size: 6rem;
    color: var(--color-primary);
    opacity: 0.2;
    position: absolute;
    top: -2rem;
    left: -1rem;
    font-family: Georgia, serif;
}

.testimonial-author {
    display: flex;
    justify-content: center;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--color-text);
}

.author-title {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* Closing Section */
.closing {
    padding: 6rem 4rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: white;
    text-align: center;
}

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

.closing-title {
    color: white;
    margin-bottom: 1.5rem;
}

.closing-text {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
}

.closing-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
}

.badge-icon {
    font-size: 1.25rem;
}

.badge-text {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Footer */
.footer {
    padding: 3rem 4rem;
    background: var(--color-text);
    color: white;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: white;
}

.footer-logo .logo-icon {
    width: 32px;
    height: 32px;
}

.footer-logo span {
    font-size: 1.25rem;
    font-weight: 600;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.footer-copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes growBar {
    from {
        height: 0;
    }
    to {
        height: var(--height);
    }
}

@keyframes circularProgress {
    from {
        stroke-dasharray: 0 503;
    }
    to {
        stroke-dasharray: 377 503;
    }
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 6rem 2rem 4rem;
        gap: 3rem;
    }

    .hero-subtitle {
        margin: 0 auto 2rem;
    }

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

    .benefits {
        grid-template-columns: 1fr;
        padding: 4rem 2rem;
    }

    .benefits-visual {
        order: -1;
    }

    .workflow-connector {
        display: none;
    }

    .workflow-steps {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 1rem;
    }

    .hero {
        padding: 5rem 1.5rem 3rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .features,
    .technology,
    .workflow,
    .testimonial,
    .closing {
        padding: 4rem 1.5rem;
    }

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

    .dashboard-metrics {
        grid-template-columns: 1fr;
    }

    .closing-badges {
        flex-direction: column;
        align-items: center;
    }

    .footer {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .benefit-item {
        flex-direction: column;
        text-align: center;
    }

    .benefit-number {
        font-size: 1.5rem;
    }

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

    .workflow-step {
        min-width: 100%;
    }
}
