:root {
 --primary-color: #00e5ff;
 --primary-dark: #00b8d4;
 --secondary-color: #ff4081;
 --bg-dark: #0a192f;
 --bg-light-dark: #112240;
 --text-light: #ccd6f6;
 --text-dark: #8892b0;
 --text-white: #e6f1ff;
 --border-color: #233554;
 --shadow-color: rgba(2, 12, 27, 0.7);
 --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
 --font-mono: 'Roboto Mono', monospace;
 --radius-sm: 4px;
 --radius-md: 8px;
 --radius-lg: 12px;
 --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;
 scrollbar-width: thin;
 scrollbar-color: var(--primary-color) var(--bg-dark);
}

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

img {
 max-width: 100%;
 height: auto;
 display: block;
}

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

.centered {
 text-align: center;
 display: flex;
 flex-direction: column;
 align-items: center;
}

h1, h2, h3, h4, h5, h6 {
 font-weight: 700;
 line-height: 1.2;
 color: var(--text-light);
 margin-bottom: 1rem;
}

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

a {
 color: var(--primary-color);
 text-decoration: none;
 transition: var(--transition);
}

a:hover {
 color: var(--primary-dark);
}

p {
 margin-bottom: 1rem;
 max-width: 65ch;
 color: var(--text-dark);
}

ul li {
 position: relative;
 padding-left: 20px;
 margin-bottom: 10px;
 list-style: none;
}
ul li::before {
 content: "";
 position: absolute;
 left: 0;
 color: var(--primary-color);
}

.section {
 padding: 100px 0;
}
.section.light {
 background: var(--bg-light-dark);
}

.section-inner {
 max-width: 1200px;
 margin: 0 auto;
 padding: 0 24px;
}
.section-inner.centered {
 display: flex;
 flex-direction: column;
 align-items: center;
}

.section-header {
 text-align: center;
 max-width: 700px;
 margin: 0 auto 48px;
}
.section-header.centered {
 text-align: center;
}

.section-label, .badge {
 display: inline-block;
 font-family: var(--font-mono);
 color: var(--primary-color);
 font-size: 0.9rem;
 margin-bottom: 1rem;
}
.section-title {
 color: var(--text-light);
}
.section-subtitle {
 color: var(--text-dark);
}

/* --- Header --- */
.header {
 position: fixed;
 top: 0;
 left: 0;
 right: 0;
 z-index: 1000;
 background: rgba(10, 25, 47, 0.85);
 backdrop-filter: blur(10px);
 box-shadow: 0 10px 30px -10px var(--shadow-color);
 transition: var(--transition);
}

.nav {
 height: 80px;
 display: flex;
 align-items: center;
 justify-content: space-between;
}

.nav-logo {
 font-family: var(--font-mono);
 font-size: 1.5rem;
 font-weight: 700;
 color: var(--primary-color);
}
.nav-logo:hover {
 color: var(--primary-dark);
}

.nav-links {
 display: flex;
 gap: 32px;
 list-style: none;
 font-family: var(--font-mono);
}

.nav-links a {
 color: var(--text-light);
 font-size: 0.9rem;
 position: relative;
}
.nav-links a::before {
 content: "::";
 color: var(--primary-color);
 margin-right: 5px;
 opacity: 0;
 transition: var(--transition);
}
.nav-links a:hover::before, .nav-links a.active::before {
 opacity: 1;
}

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

/* --- Buttons --- */
.cta-button, .button-outline {
 font-family: var(--font-mono);
 padding: 14px 28px;
 font-size: 1rem;
 font-weight: 600;
 border-radius: var(--radius-sm);
 cursor: pointer;
 transition: var(--transition);
 border: 1px solid var(--primary-color);
}
.cta-button {
 background: var(--primary-color);
 color: var(--bg-dark);
}
.cta-button:hover {
 background: var(--primary-dark);
 color: var(--bg-dark);
 transform: translateY(-3px);
}
.cta-button.large {
 padding: 18px 36px;
 font-size: 1.2rem;
}
.button-outline {
 background: transparent;
 color: var(--primary-color);
}
.button-outline:hover {
 background: rgba(0, 229, 255, 0.1);
 transform: translateY(-3px);
}

/* --- Hero --- */
.page-hero {
 padding: 160px 0 80px;
 min-height: 80vh;
 display: flex;
 align-items: center;
}
.hero-inner {
 display: grid;
 grid-template-columns: 3fr 2fr;
 gap: 48px;
 align-items: center;
 max-width: 1200px;
 margin: 0 auto;
 padding: 0 24px;
}
.hero-copy h1 {
 margin-bottom: 24px;
}
.hero-copy p {
 font-size: 1.1rem;
 max-width: 50ch;
 color: var(--text-dark);
 margin-bottom: 32px;
}
.hero-actions {
 display: flex;
 gap: 16px;
}
.hero-visual img {
 border-radius: var(--radius-md);
 border: 1px solid var(--border-color);
}

/* --- Media Object --- */
.media-object {
 display: grid;
 grid-template-columns: repeat(2, 1fr);
 gap: 40px;
 align-items: center;
}
.media-object.reverse .media-visual { order: -1; }
.media-visual img {
 border-radius: var(--radius-md);
 box-shadow: 0 10px 30px -15px var(--shadow-color);
}

/* --- Cards --- */
.cards-grid {
 display: grid;
 grid-template-columns: repeat(3, 1fr);
 gap: 24px;
 width: 100%;
}
.card {
 background: var(--bg-light-dark);
 border-radius: var(--radius-md);
 padding: 28px;
 box-shadow: 0 10px 30px -15px var(--shadow-color);
 border: 1px solid var(--border-color);
 transition: var(--transition);
 display: flex;
 flex-direction: column;
}
.card:hover {
 transform: translateY(-8px);
 box-shadow: 0 20px 30px -15px var(--shadow-color);
}
.card h3 {
 font-size: 1.25rem;
 color: var(--text-light);
 margin-bottom: 12px;
}
.card p {
 color: var(--text-dark);
 font-size: 0.95rem;
 flex-grow: 1;
}
.card-icon-large {
 font-size: 2.5rem;
 color: var(--primary-color);
 margin-bottom: 1rem;
 display: block;
 text-align: left;
}
.card-image-top {
 width: 100%;
 height: 200px;
 object-fit: cover;
 border-radius: var(--radius-md) var(--radius-md) 0 0;
 margin: -28px -28px 24px;
}
.card-body {
 display: flex;
 flex-direction: column;
 flex-grow: 1;
}
.card-meta {
 font-family: var(--font-mono);
 font-size: 0.8rem;
 color: var(--primary-color);
 margin-bottom: 16px;
}
.card-button {
 font-family: var(--font-mono);
 display: inline-block;
 padding: 10px 20px;
 border: 1px solid var(--primary-color);
 border-radius: var(--radius-sm);
 color: var(--primary-color);
 font-weight: 600;
 transition: var(--transition);
 align-self: flex-start;
 margin-top: auto;
}
.card-button:hover {
 background-color: rgba(0, 229, 255, 0.1);
}

/* Terminal Card Style */
.terminal-card {
 background-color: #0d1f3a;
}
.terminal-card .card-header {
 display: flex;
 align-items: center;
 gap: 10px;
 margin-bottom: 1rem;
}
.terminal-card .card-icon {
 font-family: var(--font-mono);
 color: var(--primary-color);
}
.terminal-card h3 {
 margin-bottom: 0;
}
.terminal-card .card-status {
 font-family: var(--font-mono);
 font-size: 0.8rem;
 color: var(--text-dark);
 margin-top: 1rem;
}

/* --- Code Preview --- */
.code-preview-container {
 background: #0d1f3a;
 border-radius: var(--radius-md);
 border: 1px solid var(--border-color);
 font-family: var(--font-mono);
 max-width: 800px;
 margin: 0 auto;
}
.code-header {
 padding: 12px 20px;
 background: var(--bg-light-dark);
 border-bottom: 1px solid var(--border-color);
 color: var(--text-dark);
 border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.code-body { padding: 20px; }
.code-body pre { white-space: pre-wrap; word-break: break-all; }
.code-key { color: var(--text-light); }
.code-string { color: var(--secondary-color); }
.code-value { color: #82aaff; }
.code-function { color: var(--primary-color); }

/* --- Team & Testimonials --- */
.team-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
 gap: 24px;
 width: 100%;
 max-width: 1000px;
}
.team-member {
 background: var(--bg-light-dark);
 padding: 24px;
 border-radius: var(--radius-md);
 text-align: center;
}
.team-photo {
 width: 100px;
 height: 100px;
 border-radius: 50%;
 margin: 0 auto 16px;
 border: 2px solid var(--primary-color);
}
.team-member h3 {
 font-size: 1.2rem;
 color: var(--text-light);
 margin-bottom: 4px;
}
.team-role {
 font-family: var(--font-mono);
 font-size: 0.9rem;
 color: var(--primary-color);
 margin-bottom: 0;
}
.testimonial-card blockquote {
 font-family: var(--font-main);
 color: var(--text-light);
 margin: 1rem 0;
 font-style: italic;
 border: none;
 padding: 0;
}
.testimonial-card cite {
 font-weight: bold;
 color: var(--text-white);
 display: block;
 margin-top: 1rem;
}

/* --- Footer --- */
.footer {
 background: var(--bg-light-dark);
 color: var(--text-dark);
 padding: 60px 0 30px;
 margin-top: 80px;
 border-top: 1px solid var(--border-color);
}
.footer-grid {
 display: grid;
 grid-template-columns: 2fr repeat(3, 1fr);
 gap: 40px;
 margin-bottom: 40px;
}
.footer-logo {
 font-family: var(--font-mono);
 font-size: 1.5rem;
 font-weight: 700;
 color: var(--primary-color);
 margin-bottom: 16px;
 display: block;
}
.footer-description { font-size: 0.9rem; margin-bottom: 20px; max-width: 300px; }
.footer-social { display: flex; gap: 16px; }
.footer-social a {
 color: var(--text-dark);
 transition: var(--transition);
}
.footer-social a:hover {
 color: var(--primary-color);
 transform: translateY(-3px);
}
.footer-social svg { width: 20px; height: 20px; }
.footer-heading {
 font-family: var(--font-mono);
 font-size: 1rem;
 font-weight: 600;
 color: var(--text-light);
 margin-bottom: 20px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links li:before { display: none; }
.footer-links a { font-size: 0.9rem; color: var(--text-dark); }
.footer-links a:hover { color: var(--primary-color); }
.footer-contact-item { font-size: 0.9rem; color: var(--text-dark); margin-bottom: 12px; }
.footer-contact-item a { color: var(--text-dark); }
.footer-contact-item a:hover { color: var(--primary-color); }
.footer-contact-item strong { color: var(--text-light); } 
.disclaimer-section {
 border-top: 1px solid var(--border-color);
 border-bottom: 1px solid var(--border-color);
 padding: 20px 0;
 margin: 40px 0;
}
.disclaimer-section p { font-size: 0.8rem; color: var(--text-dark); max-width: none; margin: 0; }
.footer-divider { display: none; }
.footer-bottom {
 text-align: center;
 font-family: var(--font-mono);
 font-size: 0.8rem;
 color: var(--text-dark);
}

/* --- Legal & Generic Pages --- */
.page-header-section {
 padding: 140px 0 60px;
 background: var(--bg-light-dark);
}
.page-title { margin-bottom: 1rem; }
.page-subtitle { font-size: 1.2rem; max-width: 60ch; margin: 0 auto; color: var(--text-dark); }
.legal-page { padding: 120px 0 60px; }
.legal-page .container { max-width: 800px; }
.legal-page h2 { margin: 2rem 0 1rem; color: var(--text-light); border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; }
.legal-page p, .legal-page ul { color: var(--text-dark); }
.cookie-table {
 width: 100%;
 border-collapse: collapse;
 margin: 2rem 0;
 font-size: 0.9rem;
}
.cookie-table th, .cookie-table td {
 border: 1px solid var(--border-color);
 padding: 12px;
 text-align: left;
}
.cookie-table th {
 background: var(--bg-light-dark);
 color: var(--text-light);
}

/* --- Contact Page --- */
.contact-grid {
 display: grid;
 grid-template-columns: 2fr 1fr;
 gap: 40px;
}
.contact-form-container h3, .contact-details-container h3 { margin-bottom: 8px; }
.contact-form-container p, .contact-details-container p { margin-bottom: 24px; }
.contact-details-card {
 background: var(--bg-light-dark);
 padding: 24px;
 border-radius: var(--radius-md);
}
.contact-detail-item { margin-bottom: 20px; }
.contact-detail-item h4 { font-size: 1rem; color: var(--primary-color); margin-bottom: 4px; }
.contact-detail-item p { margin: 0; }
.map-container {
 width: 100%; height: 450px; border-radius: 12px;
 overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.1);
 margin: 40px 0; border: 1px solid var(--border-color);
}
.map-container iframe { width: 100%; height: 100%; border: none; }

/* --- Forms --- */
.form-grid { display: flex; flex-direction: column; gap: 20px; }
.form-label { display: block; font-weight: 500; margin-bottom: 8px; color: var(--text-light); }
.form-control {
 width: 100%;
 padding: 14px 18px;
 font-family: var(--font-main);
 font-size: 1rem;
 border: 1px solid var(--border-color);
 border-radius: var(--radius-sm);
 transition: var(--transition);
 background: #0d1f3a;
 color: var(--text-light);
}
.form-control:focus {
 outline: none;
 border-color: var(--primary-color);
 box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.2);
}
.checkbox-group { display: flex; align-items: center; gap: 10px; }
.checkbox-group label { margin: 0; font-size: 0.9rem; color: var(--text-dark); }
.checkbox-group input { accent-color: var(--primary-color); }
.input-error { border-color: #ff4081 !important; }
.field-error { color: #ff4081; font-size: 0.85rem; margin-top: 4px; }
button[type="submit"] .spinner {
 display: inline-block; width: 16px; height: 16px;
 border: 2px solid rgba(10, 25, 47, 0.3);
 border-radius: 50%; border-top-color: var(--bg-dark);
 animation: spin 0.8s linear infinite;
 margin-right: 8px; vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Search & Pagination --- */
.search-section {
 max-width: 600px; margin: 0 auto 48px;
 display: flex; gap: 10px;
}
.search-input { flex-grow: 1; }
.search-button {
 font-family: var(--font-mono); padding: 14px 28px;
 background: var(--primary-color); color: var(--bg-dark);
 border: none; border-radius: var(--radius-sm);
 font-weight: 600; cursor: pointer; transition: var(--transition);
}
.search-button:hover { background: var(--primary-dark); }
.pagination { 
 display: flex; justify-content: center; gap: 8px; margin-top: 48px;
 font-family: var(--font-mono);
}
.pagination a {
 padding: 8px 16px; color: var(--primary-color); text-decoration: none;
 font-weight: 500; border: 1px solid var(--border-color); border-radius: var(--radius-sm);
}
.pagination a.active, .pagination a:hover {
 background: var(--primary-color); color: var(--bg-dark);
 border-color: var(--primary-color);
}

/* --- Cookie Banner --- */
.cookie-banner {
 position: fixed;
 bottom: 0;
 left: 0;
 right: 0;
 background: var(--bg-light-dark);
 color: var(--text-dark);
 padding: 16px;
 display: none;
 align-items: center;
 justify-content: space-between;
 gap: 16px;
 z-index: 2000;
 border-top: 1px solid var(--border-color);
 flex-wrap: wrap;
}
.cookie-banner p { margin: 0; font-size: 0.9rem; }
.cookie-banner a { color: var(--primary-color); }
.cookie-buttons { display: flex; gap: 10px; }
.cookie-buttons button {
 font-family: var(--font-mono);
 padding: 8px 16px;
 border-radius: var(--radius-sm);
 cursor: pointer;
 border: 1px solid var(--primary-color);
 font-weight: 600;
}
.cookie-buttons button:first-child {
 background: var(--primary-color);
 color: var(--bg-dark);
}
.cookie-buttons button:last-child {
 background: transparent;
 color: var(--primary-color);
}

/* --- Responsive --- */
@media (max-width: 992px) {
 .cards-grid { grid-template-columns: repeat(2, 1fr); }
 .footer-grid { grid-template-columns: 1fr 1fr; }
 .hero-inner { grid-template-columns: 1fr; text-align: center; }
 .hero-copy { align-items: center;}
 .hero-actions { justify-content: center; }
 .media-object, .media-object.reverse { grid-template-columns: 1fr; }
 .media-object .media-visual { order: -1; }
 .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
 body { font-size: 15px; }
 .cards-grid { grid-template-columns: 1fr; }
 .nav-toggle { display: block; }
 .nav-links {
 position: fixed;
 top: 0;
 right: -100%;
 width: min(75vw, 400px);
 height: 100vh;
 background: var(--bg-light-dark);
 flex-direction: column;
 justify-content: center;
 align-items: center;
 gap: 32px;
 transition: var(--transition);
 box-shadow: -10px 0px 30px -15px var(--shadow-color);
 }
 .nav-links.active {
 right: 0;
 }
 .nav-links li { transform: translateX(50px); opacity: 0; }
 .nav-links.active li {
 transform: translateX(0); opacity: 1;
 transition: all 0.25s cubic-bezier(0.645,0.045,0.355,1) 0.1s;
 }
 .nav-links.active li:nth-child(2) { transition-delay: 0.15s; }
 .nav-links.active li:nth-child(3) { transition-delay: 0.2s; }
 .nav-links.active li:nth-child(4) { transition-delay: 0.25s; }
}
@media (max-width: 576px) {
 .footer-grid { grid-template-columns: 1fr; }
 .footer-brand, .footer-grid div { text-align: center; }
 .footer-social { justify-content: center; }
 .search-section { flex-direction: column; }
}