/* ═══════════════════════════════════════════════════════════════════
   Dealer Data Solutions — Corporate Landing Page
   ═══════════════════════════════════════════════════════════════════ */

/* ── Tokens ──────────────────────────────────────────────────────── */
:root {
    --bg:           #ffffff;
    --bg-alt:       #f7f8fa;
    --surface:      #ffffff;
    --text:         #1a1a2e;
    --text-secondary: #4a5568;
    --text-muted:   #718096;
    --navy:         #1a2744;
    --navy-light:   #2d3f5e;
    --accent:       #1e3a6d;
    --accent-hover: #15294d;
    --border:       #e2e5ea;
    --border-light: #eef0f3;
    --radius:       6px;
    --font:         'Inter', system-ui, -apple-system, sans-serif;
}

/* ── Reset ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

/* ── Container ───────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ── Subtle fade-in ──────────────────────────────────────────────── */
.feature-block, .reason, .cta-card {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.feature-block.visible, .reason.visible, .cta-card.visible {
    opacity: 1;
    transform: translateY(0);
}




/* ═══════════════════════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════════════════════ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 14px 32px;
    transition: all 0.25s ease;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.nav-scrolled {
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}
.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: var(--navy);
    border-radius: 6px;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    flex-shrink: 0;
}
.logo-text {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
    letter-spacing: -0.01em;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}
.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
    background: var(--navy) !important;
    color: #fff !important;
    padding: 8px 18px !important;
    border-radius: var(--radius) !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    transition: background 0.15s !important;
}
.nav-cta:hover {
    background: var(--accent-hover) !important;
}

/* Mobile menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.mobile-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: all 0.25s;
}
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 0 8px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 0;
}
.mobile-menu .nav-cta {
    display: inline-block;
    text-align: center;
    margin-top: 4px;
    width: fit-content;
}

@media (max-width: 640px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; }
}


/* ═══════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 13px 28px;
    font-size: 0.925rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}
.btn-primary {
    background: var(--navy);
    color: #fff;
}
.btn-primary:hover {
    background: var(--accent-hover);
}
.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--navy);
    color: var(--navy);
}


/* ═══════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════ */
.hero {
    padding: 140px 0 100px;
    border-bottom: 1px solid var(--border-light);
}
.hero .container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 64px;
    align-items: center;
}
.hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.035em;
    color: var(--navy);
    margin-bottom: 20px;
}
.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 520px;
}
.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Trust strip */
.trust-strip {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.trust-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px 20px;
    background: var(--bg-alt);
    border: 1px solid var(--border-light);
    border-radius: 8px;
}
.trust-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    line-height: 1.4;
}
.trust-item strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}
.trust-item span {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

@media (max-width: 900px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero h1 { font-size: 2.2rem; }
    .trust-strip { flex-direction: row; flex-wrap: wrap; }
    .trust-item { flex: 1; min-width: 200px; }
}
@media (max-width: 560px) {
    .hero { padding: 120px 0 60px; }
    .hero h1 { font-size: 1.85rem; }
    .trust-strip { flex-direction: column; }
}


/* ═══════════════════════════════════════════════════════════════════
   SECTION SHARED
   ═══════════════════════════════════════════════════════════════════ */
.section-header {
    max-width: 620px;
    margin-bottom: 48px;
}
.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--navy);
    margin-bottom: 12px;
}
.section-header p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
}


/* ═══════════════════════════════════════════════════════════════════
   PLATFORM / CAPABILITIES
   ═══════════════════════════════════════════════════════════════════ */
.platform {
    padding: 96px 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border-light);
}
.features-showcase {
    display: flex;
    flex-direction: column;
    gap: 100px;
    margin-top: 60px;
}
.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.feature-block.reverse {
    direction: rtl;
}
.feature-block.reverse > * {
    direction: ltr;
}
.feature-content h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.feature-content p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.feature-list li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
    padding-left: 16px;
    border-left: 2px solid var(--navy);
}
.feature-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(26, 39, 68, 0.08); border: 1px solid var(--border-light);
}
.feature-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 4/3;
    display: block;
}

@media (max-width: 900px) {
    .features-showcase { gap: 80px; }
    .feature-block { grid-template-columns: 1fr; gap: 40px; }
    .feature-block.reverse { direction: ltr; }
    .feature-image { order: -1; }
}


/* ═══════════════════════════════════════════════════════════════════
   WHY DDS
   ═══════════════════════════════════════════════════════════════════ */
.why {
    padding: 96px 0;
    border-bottom: 1px solid var(--border-light);
}
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}
.reason h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}
.reason p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

@media (max-width: 600px) {
    .reasons-grid { grid-template-columns: 1fr; gap: 32px; }
}


/* ═══════════════════════════════════════════════════════════════════
   CTA
   ═══════════════════════════════════════════════════════════════════ */
.cta-section {
    padding: 96px 0;
    background: var(--bg-alt);
}
.cta-card {
    background: var(--navy);
    color: #fff;
    padding: 64px 48px;
    border-radius: 10px;
    text-align: center;
}
.cta-card h2 {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}
.cta-card p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.72);
    max-width: 500px;
    margin: 0 auto 28px;
    line-height: 1.6;
}
.cta-card .btn-primary {
    background: #fff;
    color: var(--navy);
}
.cta-card .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
}
.cta-note {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 16px;
}
.cta-note a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.cta-note a:hover {
    color: #fff;
}


/* ═══════════════════════════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════════════════════════ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.modal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px 36px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
    transform: translateY(8px);
    transition: transform 0.2s ease;
}
.modal-overlay.open .modal {
    transform: translateY(0);
}
.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}
.modal-close:hover { color: var(--text); }
.modal h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}
.modal p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}
.modal-email {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.modal-email:hover {
    color: var(--accent-hover);
}


/* ═══════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════ */
.footer {
    padding: 32px 0;
    border-top: 1px solid var(--border);
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.875rem;
}
.footer-links {
    display: flex;
    gap: 20px;
}
.footer-links a {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color 0.15s;
}
.footer-links a:hover { color: var(--text); }
.footer-bottom {
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}
.footer-bottom p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

@media (max-width: 500px) {
    .footer-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}


/* ═══════════════════════════════════════════════════════════════════
   LEGAL PAGES (Privacy Policy, Terms of Service)
   ═══════════════════════════════════════════════════════════════════ */
.legal-page {
    padding: 160px 0 100px;
}
.legal-page h1 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}
.legal-effective {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}
.legal-notice {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 56px;
    line-height: 1.6;
}
.legal-section {
    margin-bottom: 56px;
    max-width: 760px;
}
.legal-section h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}
.legal-section h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 28px;
    margin-bottom: 12px;
}
.legal-section p {
    font-size: 0.925rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}
.legal-section ul {
    margin: 12px 0 20px 24px;
    list-style-type: disc;
}
.legal-section li {
    font-size: 0.925rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 8px;
    padding-left: 4px;
}
.legal-section a {
    color: var(--navy);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.legal-section a:hover {
    color: var(--accent-hover);
}
