/* Local Geist Font Loading */
@font-face {
  font-family: 'Geist';
  src: url('../fonts/Geist[wght].woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Geist';
  src: url('../fonts/Geist-Italic[wght].woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --background: 0 0% 100%;
  --foreground: 222.2 84% 4.9%;
  --card: 0 0% 100%;
  --card-foreground: 222.2 84% 4.9%;
  --popover: 0 0% 100%;
  --popover-foreground: 222.2 84% 4.9%;
  --primary: 221.2 83.2% 53.3%;
  --primary-foreground: 210 40% 98%;
  --secondary: 210 40% 96%;
  --secondary-foreground: 222.2 84% 4.9%;
  --muted: 210 40% 96%;
  --muted-foreground: 215.4 16.3% 46.9%;
  --accent: 210 40% 96%;
  --accent-foreground: 222.2 84% 4.9%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;
  --border: 214.3 31.8% 91.4%;
  --input: 214.3 31.8% 91.4%;
  --ring: 221.2 83.2% 53.3%;
  --radius: 0.5rem;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-bottom: 2rem; text-align: center; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p {
    margin-bottom: 1rem;
    color: #64748b;
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

a {
    color: #3b82f6;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header and Navigation */
header {
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    margin-right: 2rem;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #0f172a;
    margin-bottom: 4px;
    transition: 0.3s;
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.nav-menu li {
    margin-left: 1.5rem;
}

.nav-menu a {
    font-weight: 500;
    color: #475569;
    padding: 0.5rem;
    border-radius: 4px;
    transition: color 0.3s, background-color 0.3s;
}

.nav-menu a:hover {
    color: #0f172a;
    background-color: #f8fafc;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.language-selector select {
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 0.5rem 1.5rem 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: border-color 0.3s;
}

.language-selector select:focus {
    outline: none;
    border-color: #3b82f6;
}

.contact-btn {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.contact-btn:hover {
    background-color: #2563eb;
}

/* Hero Section */
.hero {
    padding: 8rem 2rem 4rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    display: flex;
    align-items: center;
    min-height: 100vh;
}

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

.presentation {
    border-radius: 16px;
    background-color: #ffffff;
    padding: 4rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.presentation h1 {
    font-weight: 100;
}

.subtitle {
    font-size: 1.125rem;
    color: #475569;
    margin-bottom: 0.5rem;
}

.description {
    font-size: 1.25rem;
    margin-top: 1.5rem;
}

/* Ecosystem Section */
.ecosystem {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.ecosystem > h2 {
    margin-bottom: 3rem;
}

.category {
    margin-bottom: 4rem;
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

.category h3 {
    color: #3b82f6;
    font-size: 1.75rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.benefits, .modules {
    padding: 2rem;
    background-color: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.modules h4 {
    color: #1e293b;
}

/* Diagram */
.diagram {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.diagram-item {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
    transition: transform 0.3s ease;
}

.diagram-item:hover {
    transform: translateY(-5px);
}

.diagram-item h4,
.diagram-item p,
.diagram-item strong {
    color: white;
}

/* Ensure all elements on blue backgrounds have white text */
.diagram-item *,
.diagram-item p,
.diagram-item strong,
.diagram-item span {
    color: inherit;
}

/* Additional Modules */
.additional-modules {
    margin-top: 4rem;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

/* Delivery Section */
.delivery {
    padding: 4rem 2rem;
    background-color: #f1f5f9;
}

.delivery h2 {
    color: #0f172a;
}

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

.option {
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.option h3 {
    color: #1e293b;
    margin-bottom: 1rem;
}

/* Synergy Section */
.synergy {
    padding: 4rem 2rem;
    background-color: hsl(var(--secondary));
    text-align: center;
}

.synergy h2 {
    color: hsl(var(--foreground));
    margin-bottom: 1rem;
}

.synergy p {
    color: hsl(var(--muted-foreground));
    margin-bottom: 3rem;
}

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

.synergy-item {
    padding: 2rem;
    background-color: hsl(var(--card));
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    border: 1px solid hsl(var(--border));
}

.synergy-item h3 {
    color: hsl(var(--primary));
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.synergy-item ul {
    text-align: left;
    list-style-type: none;
    padding: 0;
}

.synergy-item li {
    padding: 0.5rem 0;
    border-bottom: 1px solid hsl(var(--border));
}

.synergy-item li:last-child {
    border-bottom: none;
}

.full-synergy {
    grid-column: 1 / -1;
    padding: 3rem;
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary)) 80%, hsl(var(--secondary)));
    color: hsl(var(--primary-foreground));
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.full-synergy h3 {
    color: hsl(var(--primary-foreground));
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.full-synergy p {
    color: hsl(var(--primary-foreground));
    opacity: 0.95;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.full-synergy ul {
    color: hsl(var(--primary-foreground));
}

.full-synergy li {
    margin: 0.5rem 0;
    opacity: 0.9;
}

/* Module pages specific styles */
.module-content {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.module-content h2 {
    margin-bottom: 3rem;
    color: #0f172a;
}

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

.feature-card, .analytics-card, .benefit-card, .architecture-card {
    padding: 2rem;
    background-color: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease;
}

.feature-card:hover, .analytics-card:hover, .benefit-card:hover, .architecture-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
    color: #3b82f6;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-card ul {
    list-style-type: square;
}

.architecture-card {
    background-color: #ffffff;
    flex: 1;
}

.code-like {
    font-family: 'Courier New', monospace;
    background-color: #f1f5f9;
    padding: 1rem;
    border-radius: 8px;
    white-space: pre-line;
    border: 1px solid #e2e8f0;
}

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

.security-section h3 {
    color: #1e293b;
    margin-bottom: 1rem;
}

.kpi-table {
    margin-bottom: 4rem;
}

.kpi-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    margin-bottom: 0.5rem;
    border-radius: 8px;
}

.metric {
    flex: 1;
}

.value {
    font-weight: 600;
    color: #3b82f6;
}

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

.cta {
    padding: 4rem 2rem;
    background-color: #f1f5f9;
    text-align: center;
    margin-bottom: 2rem;
}

.cta h2 {
    color: #0f172a;
    margin-bottom: 2rem;
}

.cta h3 {
    margin-top: 2rem;
    color: #3b82f6;
}

/* Additional styles for product pages */
.device-specs, .device-info, .applications {
    background-color: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

.device-specs {
    padding: 2rem;
}

.device-info {
    padding: 2rem;
    text-align: center;
    background-color: #ffffff;
    border: none;
}

.device-info p {
    font-size: 1.25rem;
    color: #3b82f6;
    font-weight: 600;
}

.applications {
    padding: 2rem;
}

.applications h3 {
    color: #0f172a;
    margin-bottom: 1rem;
}

.spec-card, .sensor-card {
    padding: 2rem;
    background-color: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.spec-card:hover, .sensor-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.spec-card h3, .sensor-card h3 {
    color: #3b82f6;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

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

.application-section h3 {
    color: #1e293b;
    margin-bottom: 1rem;
}

.application-section {
    padding: 1.5rem;
    background-color: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: background-color 0.3s;
}

.application-section:hover {
    background-color: #f1f5f9;
}

/* Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.contact-card {
    padding: 2rem;
    background-color: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.contact-card h3 {
    color: #3b82f6;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-card a {
    font-size: 1.125rem;
    color: #1e293b;
    text-decoration: none;
}

.contact-card a:hover {
    color: #3b82f6;
}

.contact-form-section {
    margin-bottom: 4rem;
    padding: 3rem;
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
}

.submit-btn {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

.submit-btn:hover {
    background-color: #2563eb;
}

.additional-info {
    margin-bottom: 2rem;
}

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

.info-item {
    padding: 1.5rem;
    background-color: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.info-item h4 {
    color: #3b82f6;
    margin-bottom: 0.75rem;
}

/* Business problems and solutions */
.business-problems, .solutions {
    margin-bottom: 4rem;
}

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

.problem-item {
    padding: 2rem;
    background-color: hsl(var(--destructive));
    color: hsl(var(--destructive-foreground));
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.problem-item *,
.problem-item h3,
.problem-item .problem-description,
.problem-item p {
    color: hsl(var(--destructive-foreground));
}

.problem-item h3 {
    margin-bottom: 1rem;
    font-weight: 600;
}

.problem-description {
    opacity: 0.9;
    font-weight: 500;
}

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

.solution-item {
    padding: 2rem;
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary)) 80%, hsl(var(--secondary)));
    color: hsl(var(--primary-foreground));
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
    transition: transform 0.3s ease;
}

.solution-item:hover {
    transform: translateY(-3px);
}

.solution-item h3 {
    color: hsl(var(--primary-foreground));
    margin-bottom: 1rem;
    font-weight: 600;
}

.solution-item p {
    color: hsl(var(--primary-foreground));
    opacity: 0.95;
}

/* Legal page specific styles */
.legal-section {
    background-color: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 2rem;
    margin-bottom: 2rem;
}

.legal-section h3 {
    color: #3b82f6;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.legal-section h4 {
    color: #0f172a;
    margin: 1.5rem 0 0.75rem 0;
    font-size: 1.125rem;
}

.legal-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.legal-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.cookie-types {
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    margin: 1rem 0;
}

.cookies-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.cookies-table th,
.cookies-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.cookies-table th {
    background-color: #3b82f6;
    color: white;
    font-weight: 600;
}

.cookies-table tr:last-child td {
    border-bottom: none;
}

.cookies-table tr:nth-child(even) {
    background-color: #f8fafc;
}

.cookies-table tr:hover {
    background-color: #e2e8f0;
}

/* Footer */
footer {
    padding: 2rem;
    text-align: center;
    background-color: #0f172a;
    color: #f8fafc;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 2rem 4rem;
    box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
}

.cookie-consent.hidden {
    display: none;
}

.cookie-consent button {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-left: 1rem;
    transition: background-color 0.3s;
}

.cookie-consent button:hover {
    background-color: #1d4ed8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        position: relative;
    }

    .menu-toggle {
        display: flex;
        order: 1;
        margin-right: auto;
    }

    .logo {
        order: 2;
        margin: 0 auto;
        flex: 0 0 auto;
    }

    .nav-right {
        order: 3;
        gap: 0.5rem;
        margin-left: auto;
    }

    .nav-menu {
        order: 4;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        padding: 1rem;
        display: none;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        margin-top: 0.5rem;
        z-index: 100;
    }

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

    .nav-menu li {
        margin: 0.5rem 0;
        margin-left: 0;
    }

    .language-selector select {
        padding: 0.4rem 0.8rem 0.4rem 0.5rem;
        font-size: 0.8rem;
    }

    .contact-btn {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }

    .hero {
        padding-top: 8rem !important;
        padding-left: 1rem;
        padding-right: 1rem;
        padding-bottom: 2rem;
        min-height: auto;
    }

    .presentation {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 9rem !important;
        padding-left: 1rem;
        padding-right: 1rem;
        padding-bottom: 2rem;
    }

    .presentation {
        padding: 1.5rem;
    }
}