:root {
 --bg-dark: #0a192f;
 --bg-light-dark: #112240;
 --bg-lightest-dark: #233554;
 --text-primary: #ccd6f6;
 --text-secondary: #8892b0;
 --accent-color: #64ffda;
 --accent-dark: #52d2b8;
 --bg-light: #f8f9fa;
 --text-dark-primary: #212529;
 --text-dark-secondary: #495057;

 --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
 --font-mono: 'Fira Code', monospace;

 --radius-sm: 4px;
 --radius-md: 8px;
 --radius-lg: 16px;

 --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
 --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.15);
 --shadow-lg: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
 
 --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

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

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

body {
 font-family: var(--font-main);
 line-height: 1.6;
 color: var(--text-dark-primary);
 background: var(--bg-light);
 -webkit-font-smoothing: antialiased;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
 font-family: var(--font-main);
 font-weight: 700;
 line-height: 1.2;
 color: var(--text-dark-primary);
 margin-bottom: 1rem;
}
h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

p {
 color: var(--text-dark-secondary);
 margin-bottom: 1rem;
 max-width: 65ch;
}
a { color: var(--accent-color); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-dark); }
ul { list-style-position: inside; }

/* Header & Nav */
.header {
 position: fixed;
 top: 0;
 left: 0;
 right: 0;
 z-index: 1000;
 background: rgba(10, 25, 47, 0.85);
 backdrop-filter: blur(10px);
 -webkit-backdrop-filter: blur(10px);
 height: 80px;
 transition: var(--transition);
 box-shadow: none;
}
.header.scrolled { box-shadow: var(--shadow-lg); height: 70px; }
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-logo {
 font-family: var(--font-mono);
 color: var(--accent-color);
 font-size: 1.5rem;
 font-weight: 600;
}
.nav-links { display: flex; list-style: none; gap: 32px; align-items: center; }
.nav-links a { color: var(--text-primary); font-family: var(--font-mono); font-size: 0.9rem; padding: 8px 0; position: relative; }
.nav-links a::before {
 content: "» ";
 position: absolute;
 left: -20px;
 color: var(--accent-color);
 opacity: 0;
 transition: var(--transition);
}
.nav-links a:hover::before, .nav-links a.active::before { opacity: 1; left: -15px; }
.nav-links a:hover, .nav-links a.active { color: var(--accent-color); }

.nav-toggle {
 display: none;
 background: none;
 border: none;
 cursor: pointer;
 z-index: 1001;
}
.nav-toggle span { display: block; width: 25px; height: 2px; background: var(--accent-color); margin: 5px 0; transition: var(--transition); }

/* Main Content & Sections */
main { padding-top: 80px; }
.section { padding: 80px 0; }
.section.bg-light { background: #f0f4f8; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 48px; }
.section-label, .badge {
 display: inline-block;
 background: rgba(100, 255, 218, 0.1);
 color: var(--accent-color);
 padding: 6px 16px;
 border-radius: 20px;
 font-size: 0.9rem;
 font-weight: 600;
 margin-bottom: 16px;
 font-family: var(--font-mono);
 border: 1px solid var(--accent-color);
}
.section-title { font-weight: 700; color: var(--text-dark-primary); }
.section-subtitle { font-size: 1.1rem; color: var(--text-dark-secondary); max-width: 60ch; margin: 0 auto; }
.centered { text-align: center; }

/* Buttons */
.btn {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 gap: 8px;
 padding: 14px 28px;
 font-size: 1rem;
 font-weight: 600;
 border-radius: var(--radius-sm);
 cursor: pointer;
 transition: var(--transition);
 border: 1px solid var(--accent-color);
 font-family: var(--font-mono);
}
.btn-primary { background: var(--accent-color); color: var(--bg-dark); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-secondary { background: transparent; color: var(--accent-color); }
.btn-secondary:hover { background: rgba(100, 255, 218, 0.1); }
.btn.btn-large { padding: 18px 36px; font-size: 1.1rem; }
.btn-sm { font-size: 0.8rem; padding: 8px 16px; }

/* Hero Section */
.page-hero { display: flex; align-items: center; min-height: calc(100vh - 80px); padding: 60px 0; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; }
.hero-copy h1 { color: var(--text-dark-primary); font-weight: 800; font-size: clamp(2.5rem, 5vw, 4rem); }
.hero-copy p { font-size: 1.1rem; max-width: 50ch; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; }

/* Code Mockup */
.code-block-mockup {
 background: var(--bg-light-dark);
 border-radius: var(--radius-md);
 padding: 1.5rem;
 box-shadow: var(--shadow-lg);
 border: 1px solid var(--bg-lightest-dark);
}
.code-header { display: flex; align-items: center; margin-bottom: 1rem; }
.code-header .dot { height: 12px; width: 12px; border-radius: 50%; margin-right: 8px; }
.code-header .red { background: #ff5f56; }
.code-header .yellow { background: #ffbd2e; }
.code-header .green { background: #27c93f; }
.code-title { color: var(--text-secondary); font-family: var(--font-mono); font-size: 0.8rem; margin-left: auto; }
.code-block-mockup pre { margin: 0; background: transparent !important; }
.code-block-mockup code {
 font-family: var(--font-mono);
 font-size: 0.85rem;
 line-height: 1.7;
 color: var(--text-primary);
}
.code-keyword { color: #c792ea; }
.code-class { color: #ffcb6b; }
.code-prop { color: #82aaff; }
.code-comment { color: #637777; font-style: italic; }
.code-method { color: #f78c6c; }
.code-constructor { color: #89ddff; font-style: italic;}

/* Media Object */
.media-object { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.media-object.reversed .media-visual { order: 2; }
.media-copy h3 { font-size: 1.75rem; margin-bottom: 1.5rem; }
.media-copy ul { padding-left: 20px; list-style-type: none; }
.media-copy ul li { position: relative; padding-left: 25px; margin-bottom: 10px; }
.media-copy ul li::before {
 content: '';
 position: absolute;
 left: 0;
 color: var(--accent-color);
 font-weight: bold;
}
.feature-image { border-radius: var(--radius-md); box-shadow: var(--shadow-md); width: 100%; height: auto; object-fit: cover; }

/* Capability Cards */
.capability-card {
 background: white;
 padding: 2rem;
 border-radius: var(--radius-md);
 box-shadow: var(--shadow-sm);
 transition: var(--transition);
 border: 1px solid #e9ecef;
}
.capability-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.capability-card .card-icon {
 margin-bottom: 1rem;
 color: var(--accent-color);
 background: rgba(100, 255, 218, 0.1);
 width: 50px;
 height: 50px;
 border-radius: 50%;
 display: flex;
 align-items: center;
 justify-content: center;
}
.capability-card .card-icon svg { width: 24px; height: 24px; }
.capability-card h3 { font-size: 1.2rem; }
.capability-card p { font-size: 0.95rem; }

/* Stats Highlight */
.stats-highlight .stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.stat-item {
 background: white;
 padding: 2rem;
 border-radius: var(--radius-md);
 text-align: center;
 box-shadow: var(--shadow-sm);
 transition: var(--transition);
}
.stat-item:hover { transform: translateY(-5px); }
.stat-icon {
 width: 40px; height: 40px;
 color: var(--accent-color);
 margin: 0 auto 1rem;
}
.stat-title { font-size: 1.25rem; }
.stat-text { font-size: 0.95rem; }

/* Team Section */
.team-section { background-color: var(--bg-light); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 50px; }
.team-member {
 background: white;
 border-radius: var(--radius-md);
 text-align: center;
 padding: 2rem;
 box-shadow: var(--shadow-sm);
 transition: var(--transition);
}
.team-member:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.team-photo {
 width: 120px;
 height: 120px;
 border-radius: 50%;
 object-fit: cover;
 margin: 0 auto 1.5rem;
 border: 4px solid var(--accent-color);
}
.team-member h3 { font-size: 1.25rem; }
.team-member .team-role {
 color: var(--accent-color);
 font-family: var(--font-mono);
 font-size: 0.9rem;
 margin-bottom: 1rem;
}
.team-social img { height: 20px; opacity: 0.7; }

/* Cards Grid */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
 background: white;
 border-radius: var(--radius-md);
 box-shadow: var(--shadow-sm);
 transition: var(--transition);
 display: flex;
 flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.card-image { width: 100%; height: 200px; object-fit: cover; border-radius: var(--radius-md) var(--radius-md) 0 0; }
.card-body { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.card-title { font-size: 1.2rem; margin-bottom: 0.5rem; }
.card-text { font-size: 0.95rem; flex-grow: 1; }

/* Timeline */
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::after {
 content: '';
 position: absolute;
 width: 3px;
 background-color: var(--accent-color);
 top: 0;
 bottom: 0;
 left: 30px;
 margin-left: -1.5px;
}
.timeline-step { padding: 10px 40px 30px 80px; position: relative; }
.timeline-number {
 position: absolute;
 left: 0;
 top: 10px;
 width: 60px;
 height: 60px;
 background-color: white;
 border: 3px solid var(--accent-color);
 border-radius: 50%;
 display: flex;
 align-items: center;
 justify-content: center;
 font-size: 1.5rem;
 font-weight: bold;
 font-family: var(--font-mono);
 color: var(--bg-dark);
 z-index: 1;
}
.timeline-content h3 { font-size: 1.25rem; }

/* Footer */
.footer {
 background: var(--bg-dark);
 color: var(--text-secondary);
 padding: 80px 0 30px;
 margin-top: 80px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { color: var(--accent-color); font-family: var(--font-mono); font-size: 1.5rem; display: block; margin-bottom: 1rem; }
.footer-description { color: var(--text-secondary); font-size: 0.9rem; }
.footer-social { display: flex; gap: 16px; margin-top: 20px; }
.footer-social a { color: var(--text-secondary); }
.footer-social a:hover { color: var(--accent-color); }
.footer-social svg { width: 24px; height: 24px; }
.footer-heading {
 color: var(--text-primary);
 font-size: 1rem;
 font-family: var(--font-main);
 margin-bottom: 1.5rem;
 font-weight: 600;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a, .footer-contact-item, .footer-contact-item a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-links a:hover, .footer-contact-item a:hover { color: var(--accent-color); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.footer-contact-item svg { width: 18px; height: 18px; color: var(--accent-color); margin-top: 4px; flex-shrink: 0; }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid var(--bg-lightest-dark); }
.footer-copyright { font-size: 0.8rem; color: var(--text-secondary); font-family: var(--font-mono); }

/* Contact Page */
.contact-container { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-heading { font-size: 1.7rem; margin-bottom: 0.5rem; }
.contact-form-wrapper p, .contact-info-wrapper p { margin-bottom: 2rem; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.form-grid .full-width { grid-column: 1 / -1; }
.form-label { display: block; font-weight: 500; margin-bottom: 8px; font-size: 0.9rem; }
.form-control {
 width: 100%;
 padding: 14px 18px;
 font-size: 1rem;
 border: 1px solid #ced4da;
 border-radius: var(--radius-sm);
 transition: var(--transition);
 background: #fdfdff;
 color: var(--text-dark-primary);
}
.form-control:focus {
 outline: none;
 border-color: var(--accent-color);
 box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.25);
}
textarea.form-control { resize: vertical; min-height: 140px; }
.checkbox-group { display: flex; align-items: center; gap: 10px; }
.checkbox-group label { margin-bottom: 0; font-size: 0.9rem; }
.checkbox-group input { width: 1.25em; height: 1.25em; }
.contact-info-list .contact-info-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.contact-icon { color: var(--accent-color); }
.contact-icon svg { width: 24px; height: 24px; }
.contact-info-item strong { display: block; font-weight: 600; margin-bottom: 4px; }
.contact-info-item p { margin: 0; }
.map-container { width: 100%; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-md); }
.map-container iframe { width: 100%; height: 450px; border: none; }

/* Legal & Cookie Pages */
.page-header-section { background: var(--bg-light); padding: 60px 0; }
.legal-content .container { max-width: 800px; }
.legal-content h2 { margin-top: 2.5rem; border-bottom: 2px solid var(--accent-color); padding-bottom: 0.5rem; }
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content ul { margin-bottom: 1rem; padding-left: 2rem; }
.cookie-table { width: 100%; border-collapse: collapse; margin-top: 2rem; }
.cookie-table th, .cookie-table td { border: 1px solid #ddd; padding: 12px; text-align: left; }
.cookie-table th { background-color: var(--bg-light); font-weight: 600; }

/* Cookie Banner */
#cookie-banner {
 position: fixed;
 bottom: 0;
 left: 0;
 right: 0;
 background: var(--bg-light-dark);
 color: var(--text-primary);
 padding: 1.5rem;
 display: none;
 align-items: center;
 justify-content: space-between;
 gap: 1rem;
 z-index: 2000;
 box-shadow: 0 -5px 15px rgba(0,0,0,0.2);
}
#cookie-banner p { margin: 0; font-size: 0.9rem; }
#cookie-banner a { color: var(--accent-color); text-decoration: underline; }
.cookie-buttons { display: flex; gap: 12px; flex-shrink: 0; }

/* Form Validation & Spinner */
.input-error { border-color: #dc3545 !important; }
.field-error { color: #dc3545; font-size: 0.85rem; margin-top: 5px; }
.spinner {
 display: inline-block;
 width: 16px;
 height: 16px;
 border: 2px solid var(--bg-dark);
 border-radius: 50%;
 border-top-color: transparent;
 animation: spin 0.8s linear infinite;
 margin-right: 8px;
 vertical-align: middle;
}
button[disabled] { opacity: 0.7; cursor: not-allowed; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 992px) {
 .hero-inner, .media-object, .contact-container, .footer-grid { grid-template-columns: 1fr; }
 .media-object.reversed .media-visual { order: 0; }
 .cards-grid { grid-template-columns: repeat(2, 1fr); }
 .stats-highlight .stats-grid { grid-template-columns: 1fr; }
 .footer-grid { text-align: center; }
 .footer-col { margin: 0 auto; max-width: 350px;}
 .footer-social { justify-content: center; }
 .footer-contact-item { justify-content: center; text-align: left; }

}

@media (max-width: 768px) {
 .nav-toggle { display: block; }
 .nav-links {
 position: fixed;
 top: 0;
 right: 0;
 width: min(75vw, 400px);
 height: 100vh;
 background: var(--bg-light-dark);
 flex-direction: column;
 justify-content: center;
 gap: 32px;
 transform: translateX(100%);
 transition: var(--transition);
 box-shadow: -10px 0px 30px -15px rgba(2, 12, 27, 0.7);
 padding: 2rem;
 }
 .nav-links.active { transform: translateX(0); }
 .nav-links a { font-size: 1.1rem; }
 .cards-grid { grid-template-columns: 1fr; } 
 .hero-copy { text-align: center; }
 .hero-actions { justify-content: center; }
 #cookie-banner { flex-direction: column; text-align: center; }
}