/* ============================================
   VATA One-Pager Styles
   Consolidated from: home.css, business.css, 
   financial-model.css, finanse.css, mapa.css, model.css
   ============================================ */

/* ============================================
   Global Reset & Variables
   ============================================ */

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

:root {
    /* Colors from home.css */
    --navy: #1a2b4a;
    --dark-navy: #0f1a2e;
    --teal: #00bfa5;
    --light-teal: #4dd0c4;
    --gray: #6b7280;
    --light-gray: #f3f4f6;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #00bfa5 0%, #0099cc 100%);
    
    /* Colors from business.css */
    --bg:#f7faf9;
    --card:#ffffff;
    --text:#1f2937;
    --muted:#6b7280;
    --brand:#047857;
    --node1:#d1fae5;
    --node2:#dbeafe;
    --node3:#fef3c7;
    --node4:#e0e7ff;
    --ring:#e5e7eb;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

html, body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji";
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--navy);
    overflow-x: hidden;
}

/* ============================================
   Scrollbar Customization
   ============================================ */

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

/* ============================================
   Navigation
   ============================================ */

nav {
    position: fixed;
    width: 100%;
    background: rgba(26, 43, 74, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    font-size: 2rem;
    font-weight: bold;
    color: var(--white);
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    position: relative;
}

.logo-arrow {
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 35px solid var(--teal);
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(0deg);
}

.logo-dot {
    width: 8px;
    height: 8px;
    background: var(--white);
    border-radius: 50%;
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.cta-button {
    background: var(--teal);
    color: var(--white);
    padding: 0.75rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 191, 165, 0.3);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--dark-navy) 0%, var(--navy) 100%);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: -20%;
    width: 70%;
    height: 100%;
    opacity: 0.1;
    background: url("data:image/svg+xml,%3Csvg width='800' height='800' viewBox='0 0 800 800' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='%2300bfa5' stroke-width='1' fill='none'%3E%3Ccircle cx='400' cy='400' r='200'/%3E%3Ccircle cx='400' cy='400' r='250'/%3E%3Ccircle cx='400' cy='400' r='300'/%3E%3Ccircle cx='400' cy='400' r='350'/%3E%3C/g%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    z-index: 1;
    position: relative;
}

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

.hero-text h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-text h1 .highlight {
    color: var(--teal);
}

.hero-text p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--teal);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    padding: 1rem 2.5rem;
    border: 2px solid var(--white);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 191, 165, 0.4);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--navy);
}

.hero-visual {
    position: relative;
}

.device-monitor {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(0, 191, 165, 0.3);
}

.monitor-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.status-indicator {
    width: 12px;
    height: 12px;
    background: var(--teal);
    border-radius: 50%;
    margin-right: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 191, 165, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 191, 165, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 191, 165, 0);
    }
}

.monitor-title {
    color: var(--white);
    font-weight: 600;
}

.device-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.device-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.device-name {
    color: var(--white);
    font-size: 0.9rem;
}

.device-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.energy-bar {
    width: 100px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.energy-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 3px;
    transition: width 2s ease;
}

/* ============================================
   Shared Container & Section Styles
   ============================================ */

.container, .wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.wrap {
    max-width: 1100px;
    margin-inline: auto;
    padding: 28px 16px;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--navy);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #475569;
    text-align: center;
    max-width: 48rem;
    margin: 0 auto 2.5rem auto;
}

/* ============================================
   Features Section
   ============================================ */

.features {
    padding: 5rem 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* ============================================
   Technology Section
   ============================================ */

.technology {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
}

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

.tech-visual {
    position: relative;
}

.nilm-diagram {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.diagram-header {
    text-align: center;
    color: var(--navy);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.signal-wave {
    height: 100px;
    background: linear-gradient(90deg, 
        transparent, 
        transparent 45%, 
        var(--teal) 45%, 
        var(--teal) 55%, 
        transparent 55%, 
        transparent);
    background-size: 50px 100%;
    animation: wave 2s linear infinite;
    margin-bottom: 1.5rem;
    border-radius: 10px;
}

@keyframes wave {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 50px 0;
    }
}

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

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--teal);
}

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

/* ============================================
   Business Model Section
   ============================================ */

.business-model {
    padding: 5rem 0;
    background: var(--white);
}

.card {
    background: var(--card);
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(2, 6, 23, .06);
    padding: 22px;
    border: 1px solid var(--ring);
}

/* Flow layout (from business.html) */
.flow {
    display: grid;
    grid-template-columns: 1fr 40px 1fr 40px 1fr 40px 1fr;
    gap: 14px;
    align-items: center;
    overflow-x: auto;
}

.node {
    --accent: var(--node1);
    background: var(--accent);
    border-radius: 16px;
    padding: 16px 14px;
    min-width: 230px;
    border: 1px solid rgba(0, 0, 0, .05);
}

.node .emoji {
    font-size: 26px;
    display: inline-block;
    margin-right: 8px;
}

.node h3 {
    margin: 2px 0 6px;
    font-size: 16px;
}

.node p {
    margin: 2px 0;
    font-size: 13px;
    color: var(--muted);
}

.node .rev {
    color: #065f46;
    font-weight: 600;
    font-size: 12px;
}

.arrow {
    text-align: center;
    font-size: 28px;
    color: #9ca3af;
}

.n1 { --accent: var(--node1); }
.n2 { --accent: var(--node2); }
.n3 { --accent: var(--node3); }
.n4 { --accent: var(--node4); }

.foot {
    margin-top: 16px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

/* Flow steps (from model.html) */
.flow-step {
    position: relative;
    padding: 1rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    text-align: center;
}

.flow-arrow {
    font-size: 2rem;
    color: #9ca3af;
    margin: 0.5rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.revenue-streams {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.revenue-card {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--navy) 0%, var(--dark-navy) 100%);
    border-radius: 15px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.revenue-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 191, 165, 0.1) 0%, transparent 70%);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.revenue-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--teal);
    margin-bottom: 0.5rem;
}

.revenue-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.revenue-desc {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ============================================
   Financial Sections (Dashboard & Analysis)
   ============================================ */

.chart-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    height: 300px;
    max-height: 350px;
}

@media (min-width: 768px) {
    .chart-container {
        height: 350px;
    }
}

.kpi-card {
    background-color: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Currency toggle (from financial-model.html) */
.currency-toggle-bg {
    background-color: #38a169;
    transition: background-color 0.3s ease-in-out;
}

.currency-toggle-bg:after {
    content: 'EUR';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 4rem;
    height: 2.25rem;
    background-color: white;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #1a202c;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

input:checked + .currency-toggle-bg {
    background-color: #2563eb;
}

input:checked + .currency-toggle-bg:after {
    content: 'PLN';
    transform: translateX(calc(8rem - 100% - 8px));
}

/* ============================================
   Competition Map Section
   ============================================ */

.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    background-image: linear-gradient(to right, #60a5fa, #3b82f6);
}

.quadrant {
    position: relative;
    border: 1px dashed #cbd5e1;
}

.quadrant-label {
    position: absolute;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.dot-label {
    font-size: 0.8rem;
    margin-left: 14px;
    white-space: nowrap;
}

/* ============================================
   Team Section
   ============================================ */

.team {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-member {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.member-photo {
    width: 100px;
    height: 100px;
    background: var(--gradient);
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white);
    font-weight: bold;
}

.member-name {
    font-size: 1.2rem;
    color: var(--navy);
    margin-bottom: 0.25rem;
}

.member-role {
    color: var(--teal);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.member-bio {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--navy) 0%, var(--dark-navy) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 191, 165, 0.1) 0%, transparent 50%);
    transform: translate(-50%, -50%);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   Footer
   ============================================ */

footer {
    background: var(--dark-navy);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--teal);
}

.footer-brand p {
    opacity: 0.8;
    line-height: 1.6;
}

.footer-links h4 {
    margin-bottom: 1rem;
    color: var(--teal);
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    line-height: 2;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    text-align: center;
    opacity: 0.6;
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    body {
        background-color: #ffffff !important;
        color: #000000 !important;
        font-family: 'Inter', sans-serif;
        padding: 1rem;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    nav, .download-button-container {
        display: none !important;
    }
    
    .bg-white, .bg-gray-50 {
        background-color: #ffffff !important;
        border: 1px solid #e2e8f0;
        box-shadow: none !important;
    }
    
    h1, h2, h3, h4 {
        color: #000000 !important;
    }
    
    .text-gradient {
        background-image: none !important;
        color: #000000 !important;
        border-bottom: 2px solid #000;
    }
    
    .quadrant, .dot {
        border-color: #999 !important;
        background-color: #ccc !important;
    }
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 820px) {
    .flow {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .arrow {
        transform: rotate(90deg);
    }
    
    .node {
        min-width: unset;
    }
}

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

    .hero-grid,
    .tech-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

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

    .revenue-streams {
        grid-template-columns: 1fr;
    }
    
    .business-model .container > div:nth-child(2) {
        grid-template-columns: 1fr !important;
    }
}
