/* ============================================
   Smart Data — DATABAU Engineer GmbH
   ============================================ */

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

:root {
    --db-blue: #009ee3;
    --db-blue-hover: #007bb0;
    --db-blue-glow: rgba(0, 158, 227, 0.15);
    --db-green: #afca05;
    --db-black: #000;
    --db-dark: #0a0a0f;
    --db-dark-2: #111118;
    --db-dark-3: #1a1a24;
    --db-white: #fff;
    --db-gray: #868e96;
    --db-gray-light: #adb5bd;
    --db-border: rgba(255,255,255,0.08);
    --db-border-light: rgba(255,255,255,0.15);
    --db-font: 'Saira', Helvetica, Arial, sans-serif;
    --section-padding: 6rem;
    --container-max: 1200px;
}

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

body {
    font-family: var(--db-font);
    font-weight: 300;
    color: var(--db-white);
    background-color: var(--db-black);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--db-blue); text-decoration: none; transition: color .25s; }
a:hover { color: var(--db-white); }

::selection { background: var(--db-blue); color: var(--db-white); }

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

/* ── Navigation ── */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--db-border);
    transition: transform .3s;
}
.nav-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    color: var(--db-white);
}
.nav-logo:hover { color: var(--db-blue); }
.nav-links {
    display: flex;
    gap: 2rem;
}
.nav-links a {
    color: var(--db-gray-light);
    font-size: 0.9rem;
    font-weight: 400;
    transition: color .25s;
}
.nav-links a:hover { color: var(--db-blue); }
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--db-white);
    transition: .3s;
}

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.8) 100%);
}
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 2rem;
    max-width: 900px;
}
.hero-tagline {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--db-blue);
    margin-bottom: 1rem;
}
.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--db-white) 0%, var(--db-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 1.25rem;
    color: var(--db-gray-light);
    margin-bottom: 2.5rem;
    font-weight: 300;
}
.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}
.hero-scroll span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid var(--db-gray);
    border-radius: 12px;
    position: relative;
}
.hero-scroll span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--db-blue);
    border-radius: 2px;
    animation: scrollDown 2s infinite;
}
@keyframes scrollDown {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all .25s;
    cursor: pointer;
    border: none;
    font-family: var(--db-font);
}
.btn-primary {
    background: var(--db-blue);
    color: var(--db-white);
}
.btn-primary:hover {
    background: var(--db-blue-hover);
    color: var(--db-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,158,227,0.3);
}
.btn-outline {
    background: transparent;
    color: var(--db-white);
    border: 1px solid var(--db-border-light);
}
.btn-outline:hover {
    border-color: var(--db-blue);
    color: var(--db-blue);
    transform: translateY(-2px);
}

/* ── Sections ── */
.section {
    padding: var(--section-padding) 0;
    background: var(--db-black);
}
.section-dark {
    background: var(--db-dark);
}
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--db-blue);
    margin-bottom: 0.75rem;
    padding: 0.375rem 1rem;
    border: 1px solid var(--db-blue);
    border-radius: 20px;
}
.section-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
}

/* ── Split Layout ── */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.split.reverse .split-text { order: 2; }
.split.reverse .split-media { order: 1; }
.split-text .lead {
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    color: var(--db-white);
}
.split-text p {
    color: var(--db-gray-light);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}
.split-media img {
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

/* ── Feature Grid ── */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}
.feature {
    padding: 1.5rem;
    background: var(--db-dark-2);
    border-radius: 10px;
    border: 1px solid var(--db-border);
}
.feature-icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}
.feature h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.feature p {
    font-size: 0.875rem;
    color: var(--db-gray);
    line-height: 1.5;
    margin: 0;
}

/* ── Map Placeholder ── */
.map-placeholder {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}
.map-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity .3s;
}
.map-placeholder:hover .map-overlay { opacity: 1; }
.map-overlay p {
    font-size: 0.9rem;
    color: var(--db-white);
    background: rgba(0,0,0,0.7);
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

/* ── Product Cards ── */
.product-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.product-card {
    display: flex;
    flex-direction: column;
    padding: 2.5rem;
    background: var(--db-dark-2);
    border: 1px solid var(--db-border);
    border-radius: 16px;
    transition: all .3s;
    color: var(--db-white);
}
.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--db-blue);
    box-shadow: 0 20px 60px rgba(0,158,227,0.15);
    color: var(--db-white);
}
.product-card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--db-blue-glow);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}
.product-card-icon svg {
    width: 28px;
    height: 28px;
    color: var(--db-blue);
}
.product-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.product-card-sub {
    font-size: 0.95rem;
    color: var(--db-blue);
    font-weight: 500;
    margin-bottom: 1rem;
}
.product-card-desc {
    font-size: 0.95rem;
    color: var(--db-gray-light);
    line-height: 1.6;
    flex: 1;
}
.product-card-link {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--db-blue);
}

/* ── Product Detail ── */
.product-detail { padding: 2rem 0; }
.product-detail-header {
    text-align: center;
    margin-bottom: 4rem;
}
.product-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.375rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}
.product-badge-ads { background: rgba(0,158,227,0.15); color: var(--db-blue); border: 1px solid var(--db-blue); }
.product-badge-sda { background: rgba(175,202,5,0.15); color: var(--db-green); border: 1px solid var(--db-green); }
.product-badge-am { background: rgba(255,107,53,0.15); color: #ff6b35; border: 1px solid #ff6b35; }
.product-detail-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.product-tagline {
    font-size: 1.15rem;
    color: var(--db-gray-light);
    max-width: 600px;
    margin: 0 auto;
}
.launch-badge {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(175,202,5,0.15);
    border: 1px solid var(--db-green);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--db-green);
}

/* ── Process Steps ── */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.process-step {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.25rem;
    background: var(--db-dark-2);
    border-radius: 10px;
    border: 1px solid var(--db-border);
    transition: border-color .25s;
}
.process-step:hover { border-color: var(--db-blue); }
.process-step-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--db-blue);
    line-height: 1;
    min-width: 40px;
}
.process-step h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
}
.process-step p {
    font-size: 0.9rem;
    color: var(--db-gray-light);
    line-height: 1.5;
    margin: 0;
}

/* ── Image Gallery ── */
.image-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.gallery-main {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.gallery-main img {
    width: 100%;
    height: auto;
    transition: transform .3s;
}
.gallery-main:hover img { transform: scale(1.02); }
.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}
.gallery-thumbs img {
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.5;
    transition: all .25s;
    border: 2px solid transparent;
}
.gallery-thumbs img:hover,
.gallery-thumbs img.active {
    opacity: 1;
    border-color: var(--db-blue);
}

/* ── AM Flow ── */
.am-flow {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 1.5rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}
.am-step {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    padding: 2rem;
    background: var(--db-dark-2);
    border: 1px solid var(--db-border);
    border-radius: 16px;
    position: relative;
}
.am-step-number {
    position: absolute;
    top: -16px;
    left: 2rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--db-blue);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
}
.am-step h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}
.am-step ul {
    list-style: none;
    padding: 0;
}
.am-step li {
    padding: 0.375rem 0;
    font-size: 0.9rem;
    color: var(--db-gray-light);
    padding-left: 1.25rem;
    position: relative;
}
.am-step li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--db-green);
    font-weight: 600;
}
.am-arrow {
    font-size: 2rem;
    color: var(--db-blue);
    align-self: center;
    font-weight: 300;
}

/* ── Video Section ── */
.video-section {
    margin: 4rem 0;
    text-align: center;
}
.video-section h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.video-section > p {
    color: var(--db-gray-light);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.video-item {
    background: var(--db-dark-2);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--db-border);
}
.video-item video {
    width: 100%;
    height: auto;
    display: block;
}
.video-item p {
    padding: 1rem;
    font-size: 0.9rem;
    color: var(--db-gray-light);
}

/* ── Comparison ── */
.comparison {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.comparison-side {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    padding: 2.5rem;
    border-radius: 16px;
}
.comparison-old {
    background: var(--db-dark-2);
    border: 1px solid var(--db-border);
}
.comparison-new {
    background: linear-gradient(135deg, rgba(0,158,227,0.1) 0%, rgba(175,202,5,0.05) 100%);
    border: 1px solid var(--db-blue);
}
.comparison-side h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}
.comparison-side ul {
    list-style: none;
    padding: 0;
}
.comparison-side li {
    padding: 0.75rem 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--db-border);
    padding-left: 1.5rem;
    position: relative;
}
.comparison-side li:last-child { border-bottom: none; }
.comparison-old li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: #e74c3c;
}
.comparison-new li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--db-green);
    font-weight: 600;
}
.comparison-vs {
    display: flex;
    align-items: center;
    justify-content: center;
}
.comparison-vs span {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--db-gray);
    padding: 1rem;
    border: 2px solid var(--db-border);
    border-radius: 50%;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Contact ── */
.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}
.contact-content .lead {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
}
.contact-content p {
    color: var(--db-gray-light);
    line-height: 1.7;
    margin-bottom: 2rem;
}
.contact-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Footer ── */
.footer {
    padding: 3rem 0 2rem;
    background: var(--db-dark);
    border-top: 1px solid var(--db-border);
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--db-gray-light);
}
.footer-links {
    display: flex;
    gap: 2rem;
}
.footer-links a {
    font-size: 0.875rem;
    color: var(--db-gray);
}
.footer-links a:hover { color: var(--db-blue); }
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--db-border);
    font-size: 0.8rem;
    color: var(--db-gray);
}

/* ── Animations ── */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .split { grid-template-columns: 1fr; gap: 2rem; }
    .split.reverse .split-text { order: 1; }
    .split.reverse .split-media { order: 2; }
    .product-cards { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
    .feature-grid { grid-template-columns: 1fr; }
    .video-grid { grid-template-columns: 1fr; }
    .am-flow { flex-direction: column; align-items: center; }
    .am-arrow { transform: rotate(90deg); }
}

@media (max-width: 768px) {
    :root { --section-padding: 4rem; }
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(0,0,0,0.95);
        padding: 1.5rem 2rem;
        gap: 1.25rem;
        border-bottom: 1px solid var(--db-border);
    }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1rem; }
    .comparison { flex-direction: column; align-items: center; }
    .comparison-vs { margin: 1rem 0; }
    .gallery-thumbs { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { flex-direction: column; text-align: center; }
}
