/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #4CAF50;
    --primary-dark: #388E3C;
    --secondary-blue: #0056B3;
    --text-dark: #212121;
    --text-light: #666666;
    --bg-light: #F5F5F5;
    --bg-white: #FFFFFF;
    --warning-yellow: #FFB300;
    --border-light: #E0E0E0;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 8px rgba(0,0,0,0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    max-height: 40px;
    overflow: hidden;
}

.logo-img {
    height: 40px;
    max-height: 40px;
    width: auto;
    display: block;
    object-fit: contain;
    max-width: 150px;
}

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

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

.cta-button {
    background: var(--primary-green);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    transition: background 0.3s;
}

.cta-button:hover {
    background: var(--primary-dark);
}

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

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    line-height: 1.2;
}

.hero-subheadline {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 800px;
}

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

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

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

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

.btn-secondary {
    background: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

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

/* Dashboard Mockup */
.hero-visual {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.dashboard-mockup {
    background: #f8f8f8;
    padding: 1.5rem;
    border-radius: 4px;
}

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

.status-card {
    background: white;
    padding: 1rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow);
}

.status-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-green);
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.status-indicator.yellow {
    background: var(--warning-yellow);
    box-shadow: 0 0 10px rgba(255, 179, 0, 0.5);
}

/* Problem Section */
.problem-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.problem-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

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

.problem-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

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

.problem-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.problem-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

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

/* Solution Section */
.solution-section {
    padding: 80px 0;
}

.solution-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.section-intro {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 3rem;
}

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

.feature {
    text-align: center;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--primary-green);
    border-radius: 50%;
    position: relative;
}

.feature-icon.green-light::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.8);
}

.feature-icon.shield::after {
    content: '🛡️';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
}

.feature-icon.network::after {
    content: '🔗';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
}

.feature h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

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

/* Architecture Section */
.architecture-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.architecture-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

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

.device-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.device-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.device-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-green);
}

.device-card ul {
    list-style: none;
    padding-left: 0;
}

.device-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.device-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: bold;
}

.architecture-benefits {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.architecture-benefits h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.benefit {
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 4px;
    text-align: center;
}

/* Interfaces Section */
.interfaces-section {
    padding: 80px 0;
}

.interfaces-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

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

.interface-card {
    text-align: center;
    padding: 2rem;
}

.interface-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.interface-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-green);
}

/* Personas Section */
.personas-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.personas-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

.persona-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

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

.persona-header h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
}

.persona-tag {
    background: var(--primary-green);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

.persona-card blockquote {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--primary-green);
    margin: 1rem 0;
    padding-left: 1rem;
    border-left: 4px solid var(--primary-green);
}

/* Integration Section */
.integration-section {
    padding: 80px 0;
}

.integration-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

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

.integration-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    border: 2px solid var(--border-light);
}

.integration-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-green);
}

.integration-card ul {
    list-style: none;
}

.integration-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.integration-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: bold;
}

/* Differentiators Section */
.differentiators-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.differentiators-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

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

.differentiator {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    position: relative;
    padding-left: 4.5rem;
}

.diff-number {
    position: absolute;
    left: 1rem;
    top: 1.5rem;
    width: 30px;
    height: 30px;
    background: var(--primary-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.differentiator h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

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

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.125rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

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

.cta-section .btn-primary:hover {
    background: var(--bg-light);
}

.cta-section .btn-secondary {
    border-color: white;
    color: white;
}

.cta-section .btn-secondary:hover {
    background: white;
    color: var(--primary-green);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-green);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    z-index: 999;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 20px;
}

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

.footer-section h4 {
    margin-bottom: 1rem;
}

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

.footer-section li {
    padding: 0.25rem 0;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 0;
    }
    
    .nav-content {
        padding: 0.5rem 0;
    }
    
    .logo {
        max-height: 30px !important;
        height: 30px !important;
    }
    
    .logo-img {
        height: 30px !important;
        max-height: 30px !important;
        width: auto !important;
        max-width: 120px !important;
        object-fit: contain !important;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero {
        padding: 80px 0 40px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subheadline {
        font-size: 1.125rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section h2 {
        font-size: 2rem;
    }
    
    .problems-grid,
    .solution-features,
    .devices-grid,
    .interfaces-grid,
    .differentiators-grid {
        grid-template-columns: 1fr;
    }
    
    .integration-options {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Language Switcher */
.language-switcher {
    margin-left: 20px;
    font-size: 14px;
}

.language-switcher a {
    color: #666;
    text-decoration: none;
    padding: 5px 8px;
    transition: color 0.3s ease;
}

.language-switcher a:hover {
    color: #2196F3;
}

.language-switcher a.active {
    color: #2196F3;
    font-weight: 600;
}

/* Mobile adjustments for language switcher */
@media (max-width: 768px) {
    .language-switcher {
        margin: 10px 0;
        text-align: center;
    }
}

/* iPhone 13 mini and smaller screens */
@media (max-width: 400px) {
    .navbar {
        padding: 0.25rem 0;
    }
    
    .nav-content {
        padding: 0.25rem 0;
    }
    
    .logo {
        max-height: 25px !important;
        height: 25px !important;
    }
    
    .logo-img {
        height: 25px !important;
        max-height: 25px !important;
        width: auto !important;
        max-width: 100px !important;
        object-fit: contain !important;
    }
    
    .hero {
        padding-top: 50px !important;
    }
}