:root {
 --primary-color: #2563eb;
 --primary-dark: #1d4ed8;
 --secondary-color: #f3f4f6;
 --accent-color: #4f46e5;
 --text-dark: #111827;
 --text-light: #4b5563;
 --text-muted: #6b7280;
 --bg-light: #f9fafb;
 --bg-white: #ffffff;
 --border-color: #e5e7eb;

 --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
 
 --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
 --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
 --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

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

 --transition: all 0.3s ease-in-out;
}

/* --- BASE & TYPOGRAPHY --- */
*, *::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-light);
 background-color: var(--bg-white);
 -webkit-font-smoothing: antialiased;
 -moz-osx-font-smoothing: grayscale;
}

.container {
 max-width: 1200px;
 margin-left: auto;
 margin-right: auto;
 padding-left: 1rem;
 padding-right: 1rem;
}

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

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

p { margin-bottom: 1rem; }
a { color: var(--primary-color); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.section { padding: 80px 0; }
.bg-light { background-color: var(--bg-light); }
.text-center { text-align: center; }

/* --- HEADER & NAVIGATION --- */
.header {
 width: 100%;
 position: fixed;
 top: 0;
 left: 0;
 z-index: 1000;
 background-color: rgba(255, 255, 255, 0.9);
 backdrop-filter: blur(10px);
 box-shadow: var(--shadow-sm);
 transition: var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-md); }
.nav {
 display: flex;
 justify-content: space-between;
 align-items: center;
 height: 70px;
}
.nav-logo { font-size: 1.5rem; font-weight: 700; color: var(--text-dark); }
.nav-menu { display: flex; }
.nav-list { display: flex; align-items: center; gap: 2rem; }
.nav-link { font-weight: 500; color: var(--text-light); position: relative; padding: 0.5rem 0; }
.nav-link::after {
 content: '';
 position: absolute;
 bottom: 0;
 left: 0;
 width: 0;
 height: 2px;
 background-color: var(--primary-color);
 transition: width 0.3s;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link:hover, .nav-link.active { color: var(--text-dark); }
.nav-btn { display: none; }
.nav-toggle { display: none; cursor: pointer; }
.nav-toggle span { display: block; width: 25px; height: 2px; background-color: var(--text-dark); margin: 5px; transition: var(--transition); }

@media screen and (min-width: 768px) {
 .nav-btn { display: inline-flex; }
}

@media screen and (max-width: 767px) {
 .nav-toggle { display: block; }
 .nav-menu {
 position: fixed;
 top: 70px;
 left: -100%;
 width: 100%;
 height: calc(100vh - 70px);
 background-color: var(--bg-white);
 flex-direction: column;
 padding: 2rem;
 transition: left 0.4s;
 }
 .nav-menu.active { left: 0; }
 .nav-list { flex-direction: column; gap: 1.5rem; }
 .nav-link { font-size: 1.2rem; }
 .nav-btn { display: none;}
}

/* --- BUTTONS --- */
.btn {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 padding: 0.75rem 1.5rem;
 font-weight: 600;
 border-radius: var(--radius-md);
 border: 2px solid transparent;
 cursor: pointer;
 transition: var(--transition);
 font-size: 1rem;
}
.btn-primary { background-color: var(--primary-color); color: white; }
.btn-primary:hover { background-color: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary { background-color: transparent; color: var(--primary-color); border-color: var(--primary-color); }
.btn-secondary:hover { background-color: var(--primary-color); color: white; }
.btn-white { background-color: white; color: var(--primary-color); }
.btn-white:hover { background-color: var(--bg-light); transform: translateY(-2px);}
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }
.btn-full { width: 100%; }

/* --- HERO (SAAS) --- */
.hero-saas { padding-top: 150px; padding-bottom: 80px; overflow: hidden; }
.hero-saas-container { display: grid; grid-template-columns: 1fr; align-items: center; gap: 2rem; }
@media (min-width: 992px) { .hero-saas-container { grid-template-columns: 1fr 1.2fr; gap: 4rem; } }
.hero-saas-content h1 { line-height: 1.1; }
.hero-saas-content p { font-size: 1.1rem; max-width: 550px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0; }
.hero-subtext { font-size: 0.9rem; color: var(--text-muted); }

.hero-saas-visual { position: relative; }
.browser-mockup {
 border: 1px solid var(--border-color);
 border-radius: var(--radius-lg);
 box-shadow: var(--shadow-lg);
 background-color: white;
}
.browser-header {
 height: 40px;
 background-color: var(--bg-light);
 border-bottom: 1px solid var(--border-color);
 display: flex;
 align-items: center;
 padding: 0 1rem;
 border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.dots { display: flex; gap: 0.5rem; }
.dots span { width: 12px; height: 12px; border-radius: 50%; background-color: #ddd; }
.dots span:nth-child(1) { background-color: #fca5a5; }
.dots span:nth-child(2) { background-color: #fde047; }
.dots span:nth-child(3) { background-color: #86efac; }
.address-bar {
 background-color: white;
 margin: 0 auto;
 width: 60%;
 height: 24px;
 border-radius: var(--radius-sm);
 font-size: 0.8rem;
 color: var(--text-muted);
 text-align: center;
 line-height: 24px;
}
.mockup-content {
 width: 100%;
 height: auto;
 object-fit: cover;
 max-height: 450px;
 border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.floating-ui {
 position: absolute;
 background: white;
 padding: 0.75rem 1rem;
 border-radius: var(--radius-md);
 box-shadow: var(--shadow-lg);
 display: flex;
 align-items: center;
 gap: 0.5rem;
 font-weight: 500;
 color: var(--text-dark);
}
.floating-ui svg { width: 20px; height: 20px; color: var(--primary-color); }
.ui-1 { top: 20%; left: -10%; }
.ui-2 { bottom: 15%; right: -15%; }

/* --- SECTION HEADER --- */
.section-header { text-align: center; max-width: 700px; margin: 0 auto 50px; }
.badge { display: inline-block; background-color: var(--primary-color); color: white; padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600; margin-bottom: 1rem; }
.subtitle { font-size: 1.25rem; color: var(--text-light); }

/* --- GRIDS --- */
.grid-2 { display: grid; gap: 2rem; }
.grid-3 { display: grid; gap: 2rem; }
.grid-4 { display: grid; gap: 1.5rem; }
@media (min-width: 576px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* --- PARTNERS --- */
.partners-section { padding: 40px 0; background-color: var(--bg-light); }
.partners-title { text-align: center; font-weight: 500; margin-bottom: 2rem; color: var(--text-muted); }
.partners-logos { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 3rem; }
.partners-logos img { max-height: 30px; object-fit: contain; filter: grayscale(100%); opacity: 0.6; transition: var(--transition); }
.partners-logos img:hover { filter: grayscale(0); opacity: 1; }

/* --- FEATURES --- */
.feature-card { text-align: center; padding: 2rem 1.5rem; border-radius: var(--radius-lg); transition: var(--transition); }
.feature-card:hover { background-color: white; box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.feature-icon {
 width: 60px;
 height: 60px;
 background-color: var(--bg-light);
 border-radius: var(--radius-lg);
 display: inline-flex;
 justify-content: center;
 align-items: center;
 margin-bottom: 1.5rem;
}
.feature-icon svg { width: 30px; height: 30px; color: var(--primary-color); }

/* --- CASE STUDY/TESTIMONIAL --- */
.case-study-card {
 background-color: white;
 border-radius: var(--radius-lg);
 box-shadow: var(--shadow-lg);
 display: grid;
 overflow: hidden;
}
@media (min-width: 992px) { .case-study-card { grid-template-columns: 1fr 1fr; } }
.case-study-visual { position: relative; }
.case-study-visual img { width: 100%; height: 100%; object-fit: cover; }
.case-study-logo {
 position: absolute;
 bottom: 1.5rem;
 left: 1.5rem;
 background-color: white;
 padding: 0.5rem 1rem;
 border-radius: var(--radius-md);
}
.case-study-logo img { max-height: 30px; }
.case-study-content { padding: 3rem; }
.case-study-content blockquote {
 font-size: 1.25rem;
 font-style: italic;
 color: var(--text-dark);
 border-left: 3px solid var(--primary-color);
 padding-left: 1.5rem;
 margin-bottom: 2rem;
}
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.author-photo { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.author-name { font-weight: 600; color: var(--text-dark); margin: 0; }
.author-title { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* --- PRICING --- */
.pricing-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: flex-start; }
@media(min-width: 992px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); }}
.pricing-card {
 border: 1px solid var(--border-color);
 padding: 2.5rem 2rem;
 border-radius: var(--radius-lg);
 text-align: center;
}
.pricing-card.popular {
 border-color: var(--primary-color);
 border-width: 2px;
 transform: scale(1.05);
 position: relative;
}
.popular-badge {
 position: absolute;
 top: -15px;
 left: 50%;
 transform: translateX(-50%);
 background-color: var(--primary-color);
 color: white;
 padding: 0.25rem 1rem;
 border-radius: 999px;
 font-size: 0.8rem;
 font-weight: 600;
}
.pricing-price { font-size: 3rem; font-weight: 700; color: var(--text-dark); }
.price-period { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.pricing-desc { margin-bottom: 2rem; }
.pricing-features { list-style: none; margin: 2rem 0; text-align: left; }
.pricing-features li { margin-bottom: 1rem; display: flex; align-items: center; }
.pricing-features li::before {
 content: '';
 color: var(--primary-color);
 font-weight: bold;
 margin-right: 0.75rem;
}

/* --- CTA SECTION --- */
.cta-section {
 background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
 color: white;
 padding: 80px 0;
 margin-top: 80px;
}
.cta-container { text-align: center; }
.cta-container h2 { color: white; }
.cta-container p { max-width: 600px; margin: 0 auto 2rem auto; opacity: 0.9; }

/* --- PAGE HEADER --- */
.page-header {
 background-color: var(--bg-light);
 text-align: center;
 padding: 120px 0 60px;
}

/* --- MEDIA OBJECT --- */
.media-object, .media-object-reverse { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 768px) { .media-object { grid-template-columns: 1fr 1fr; } .media-object-reverse { grid-template-columns: 1fr 1fr; } .media-object-reverse .media-copy { grid-column: 2; grid-row: 1; } }
.media-visual img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.media-copy ul { list-style: none; margin-top: 1.5rem; }
.media-copy ul li { display: flex; margin-bottom: 1rem; }
.media-copy ul li::before { content: ''; color: var(--primary-color); font-weight: bold; margin-right: 0.75rem; }

/* --- TEAM SECTION --- */
.team-card { text-align: center; }
.team-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; border: 4px solid white; box-shadow: var(--shadow-md); }
.team-role { font-weight: 500; color: var(--primary-color); margin-bottom: 0.5rem; }
.team-bio { font-size: 0.9rem; }
.value-card { background: white; padding: 2rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

/* --- SERVICES PAGE --- */
.services-detailed-grid .card { display: flex; flex-direction: column; }
.card-img-top {
 height: 220px;
 object-fit: cover;
 border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.card-body { padding: 2rem; flex-grow: 1; display: flex; flex-direction: column; }
.card-title { margin-top: 0; }
.card-text { flex-grow: 1; }
.card-link { align-self: flex-start; }

/* --- TIMELINE --- */
.timeline { position: relative; max-width: 800px; margin: auto; }
.timeline::after {
 content: '';
 position: absolute;
 width: 3px;
 background-color: var(--border-color);
 top: 0;
 bottom: 0;
 left: 50%;
 margin-left: -1.5px;
}
.timeline-item { padding: 10px 40px; position: relative; width: 50%; }
.timeline-item:nth-child(odd) { left: 50%; }
.timeline-item:nth-child(even) { left: 0; text-align: right; }
.timeline-content { padding: 20px 30px; background-color: white; position: relative; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.timeline-step {
 position: absolute;
 width: 50px;
 height: 50px;
 line-height: 50px;
 font-size: 1.5rem;
 font-weight: bold;
 color: white;
 background-color: var(--primary-color);
 border: 4px solid var(--bg-light);
 top: 32px;
 border-radius: 50%;
 z-index: 1;
 text-align: center;
}
.timeline-item:nth-child(odd) .timeline-step { left: -25px; }
.timeline-item:nth-child(even) .timeline-step { right: -25px; }
@media (max-width: 768px) {
 .timeline::after { left: 25px; }
 .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
 .timeline-item:nth-child(even) { left: 0; text-align: left; }
 .timeline-item:nth-child(odd) { left: 0; }
 .timeline-step { left: 0; }
 .timeline-item:nth-child(even) .timeline-step, .timeline-item:nth-child(odd) .timeline-step { right: auto; left: 0px; }
}

/* --- BLOG PAGE --- */
.card-meta { color: var(--primary-color); font-weight: 600; margin-bottom: 0.5rem; font-size: 0.9rem; }
.subscribe-container { text-align: center; max-width: 600px; }
.subscribe-form { display: flex; gap: 1rem; margin-top: 1.5rem; }
.subscribe-form input { flex-grow: 1; padding: 0.75rem 1rem; border: 1px solid var(--border-color); border-radius: var(--radius-md); }
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 3rem; }
.pagination-link { padding: 0.5rem 1rem; border: 1px solid var(--border-color); border-radius: var(--radius-md); }
.pagination-link.active, .pagination-link:hover { background-color: var(--primary-color); color: white; border-color: var(--primary-color); }

/* --- CONTACT --- */
.contact-layout { display: grid; gap: 3rem; }
@media(min-width: 992px) { .contact-layout { grid-template-columns: 2fr 1fr; } }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 500; margin-bottom: 0.5rem; color: var(--text-dark); }
.contact-form input, .contact-form textarea {
 width: 100%;
 padding: 0.75rem 1rem;
 border: 1px solid var(--border-color);
 border-radius: var(--radius-md);
 background-color: var(--bg-white);
 font-family: var(--font-main);
 font-size: 1rem;
}
.contact-form input:focus, .contact-form textarea:focus {
 outline: none;
 border-color: var(--primary-color);
 box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}
.contact-info-block { margin-bottom: 2rem; }
.contact-details-list li { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; }
.contact-details-list svg { width: 24px; height: 24px; color: var(--primary-color); flex-shrink: 0; margin-top: 2px;}
.map-section { height: 450px; width: 100%; }

/* --- FOOTER --- */
.footer {
 background-color: var(--text-dark);
 color: var(--text-muted);
 padding: 60px 0 30px;
 margin-top: 80px;
}
.footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-bottom: 3rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); gap: 2.5rem; } }
.footer-logo { font-size: 1.5rem; font-weight: 700; color: white; display: inline-block; margin-bottom: 1rem; }
.footer-description { font-size: 0.9rem; }
.footer-heading { color: white; font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 1.5rem; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a, .footer-contact-info p, .footer-contact-info a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover, .footer-contact-info a:hover { color: white; }
.footer-social { display: flex; gap: 1rem; margin-top: 1.5rem; }
.footer-social a { color: var(--text-muted); }
.footer-social a:hover { color: white; }
.footer-social svg { width: 24px; height: 24px; }
.footer-bottom { border-top: 1px solid #374151; padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: 0.9rem; }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: var(--text-muted); }
.footer-legal a:hover { color: white; }

/* --- LEGAL PAGES --- */
.legal-content h2 { margin-top: 2rem; margin-bottom: 1rem; }
.legal-content ul { list-style: disc; padding-left: 2rem; margin-bottom: 1rem; }
.cookie-table {
 width: 100%;
 border-collapse: collapse;
 margin-top: 2rem;
}
.cookie-table th, .cookie-table td {
 border: 1px solid var(--border-color);
 padding: 0.75rem;
 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-color: var(--text-dark);
 color: white;
 padding: 1.5rem;
 display: none;
 align-items: center;
 justify-content: center;
 gap: 2rem;
 flex-wrap: wrap;
 z-index: 2000;
}
#cookie-banner p { margin: 0; }
#cookie-banner a { color: #9ca3af; text-decoration: underline; }
.cookie-buttons { display: flex; gap: 1rem; }
@media (max-width: 768px) { #cookie-banner { flex-direction: column; text-align: center; gap: 1rem; } }