/* 
   Gear Sync Pro - Marketing Site Stylesheet
   Design Language: Sleek Automotive-Tech Dark Theme
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --color-bg: #090d16;
    --color-bg-darker: #05070c;
    --color-card-bg: rgba(17, 24, 39, 0.7);
    --color-card-border: rgba(255, 255, 255, 0.08);
    --color-text-primary: #f8fafc;
    --color-text-secondary: #94a3b8;
    --color-text-muted: #64748b;
    
    /* Neon Accents */
    --color-primary: #06b6d4;      /* Electric Cyan */
    --color-secondary: #6366f1;    /* Vibrant Indigo */
    --color-accent: #f59e0b;       /* Warm Amber */
    --color-success: #10b981;      /* Emerald Green */
    --color-danger: #ef4444;       /* Ruby Red */

    /* Gradients */
    --grad-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    --grad-accent: linear-gradient(135deg, var(--color-accent) 0%, #d97706 100%);
    --grad-card: linear-gradient(135deg, rgba(20, 30, 48, 0.4) 0%, rgba(36, 59, 85, 0.2) 100%);
    --grad-dark: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-darker) 100%);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Shadows */
    --shadow-neon: 0 0 25px rgba(6, 182, 212, 0.25);
    --shadow-neon-hover: 0 0 35px rgba(6, 182, 212, 0.45);
    --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.4);
    
    /* Transition */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Layout Constants */
    --header-height: 80px;
    --border-radius: 16px;
    --border-radius-sm: 8px;
}

/* Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    background-color: var(--color-bg);
    background-image: var(--grad-dark);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-darker);
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

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

.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-title span {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    color: var(--color-text-secondary);
    text-align: center;
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 60px auto;
}

/* Header & Glassmorphic Navigation */
.header {
    height: var(--header-height);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(9, 13, 22, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-card-border);
    transition: var(--transition);
}

.header.scrolled {
    height: 70px;
    background: rgba(5, 7, 12, 0.9);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo img {
    width: 54px;
    height: 54px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.4));
    -webkit-text-fill-color: initial;
}

/* Application Brand Components */
.brand-header-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    white-space: nowrap;
}

.brand-logo {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brand-logo svg.logo-inline {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.4));
}

.brand-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 19px;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#logo-sync-arrows,
#logo-sync-arrows-footer {
    transform-origin: 50px 50px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--grad-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-bg-darker);
    font-weight: bold;
    box-shadow: var(--shadow-neon);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Interactive Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background: var(--grad-primary);
    color: var(--color-bg-darker);
    box-shadow: var(--shadow-neon);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-neon-hover);
}

.btn-outline {
    background: transparent;
    color: var(--color-text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Hero Section */
.hero {
    padding: 160px 0 100px 0;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}
.hero .container {
    max-width: 1700px;
    width: 95%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 2.4fr;
    gap: 30px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero-content h1 span {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid var(--color-card-border);
    padding-top: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Image Mockup wrapper */
.hero-mockup {
    width: 100%;
    max-width: 100%; /* Restored to expand to the full layout width */
    position: relative;
    border-radius: var(--border-radius);
    background: #0d131f;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 50px rgba(6, 182, 212, 0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.mockup-header {
    height: 38px;
    background: #141b27;
    display: flex;
    align-items: center;
    padding: 0 16px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mockup-buttons {
    display: flex;
    gap: 8px;
    z-index: 2;
}

.mockup-btn {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.mockup-btn.close { background: #ef4444; }
.mockup-btn.minimize { background: #f59e0b; }
.mockup-btn.maximize { background: #10b981; }

.mockup-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    font-weight: 600;
    font-family: var(--font-heading);
}

.hero-mockup img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
}
/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--color-card-bg);
    background-image: var(--grad-card);
    border: 1px solid var(--color-card-border);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--grad-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 1.5rem;
}

.feature-card:nth-child(3n+1) .feature-icon {
    background: rgba(6, 182, 212, 0.1);
    color: var(--color-primary);
}

.feature-card:nth-child(3n+2) .feature-icon {
    background: rgba(99, 102, 241, 0.1);
    color: var(--color-secondary);
}

.feature-card:nth-child(3n) .feature-icon {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-accent);
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.feature-card ul {
    list-style: none;
    margin-top: 16px;
    padding-left: 0;
}

.feature-card li {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
    position: relative;
    padding-left: 18px;
    line-height: 1.4;
}

.feature-card li::before {
    content: "✓";
    color: var(--color-primary);
    position: absolute;
    left: 0;
    font-weight: 800;
}

/* Interactive Simulator Widget */
.simulator-container {
    background: var(--color-card-bg);
    background-image: var(--grad-card);
    border: 1px solid var(--color-card-border);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-card);
}

.sim-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-card-border);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.sim-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sim-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.sim-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
}

.sim-platform-card {
    background: rgba(10, 15, 28, 0.8);
    border: 1px solid var(--color-card-border);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.sim-platform-card.active-state {
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.1);
}

.sim-platform-logo {
    font-size: 2.25rem;
    margin-bottom: 12px;
    display: inline-block;
}

.sim-platform-title {
    font-weight: 700;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.sim-platform-status {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.status-highlight {
    color: var(--color-primary);
    font-weight: bold;
}

.sim-flow-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.flow-button {
    background: var(--grad-primary);
    border: none;
    color: var(--color-bg-darker);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: var(--shadow-neon);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.flow-button:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-neon-hover);
}

.flow-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.flow-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 700;
    text-transform: uppercase;
}

/* Logging console for simulation */
.sim-console {
    background: #05070c;
    border: 1px solid var(--color-card-border);
    border-radius: 8px;
    padding: 16px;
    font-family: monospace;
    font-size: 0.85rem;
    color: #38bdf8;
    margin-top: 30px;
    height: 120px;
    overflow-y: auto;
}

.console-line {
    margin-bottom: 6px;
    opacity: 0.9;
    animation: consoleFadeIn 0.3s ease-out forwards;
}

@keyframes consoleFadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 0.9; transform: translateY(0); }
}

/* Integrations Section */
.integrations-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
}

.integration-logo-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-card-border);
    padding: 24px 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    transition: var(--transition);
    min-width: 180px;
}

.integration-logo-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.integration-logo-card svg {
    width: 24px;
    height: 24px;
}

/* Google Cloud Deploy Guide Section */
.gcp-card {
    background: var(--color-card-bg);
    background-image: var(--grad-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
    padding: 40px;
    margin-top: 40px;
}

.gcp-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.gcp-logo-icon {
    width: 48px;
    height: 48px;
    background: #ffffff;
    border-radius: 10px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gcp-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.gcp-tabs-nav {
    display: flex;
    gap: 12px;
    border-bottom: 1px solid var(--color-card-border);
    padding-bottom: 12px;
    margin-bottom: 24px;
}

.gcp-tab-btn {
    background: transparent;
    border: none;
    color: var(--color-text-secondary);
    padding: 8px 16px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
    border-radius: 6px;
}

.gcp-tab-btn.active {
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-primary);
}

.gcp-tab-content {
    display: none;
}

.gcp-tab-content.active {
    display: block;
}

.code-block-wrapper {
    position: relative;
    background: var(--color-bg-darker);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
}

.code-block-wrapper pre {
    overflow-x: auto;
    font-family: monospace;
    font-size: 0.85rem;
    color: #e2e8f0;
}

.copy-code-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-secondary);
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: var(--transition);
}

.copy-code-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-primary);
}

/* Call to Action Banner */
.cta-banner {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(99, 102, 241, 0.15) 100%);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: var(--border-radius);
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner h2 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-banner p {
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto 30px auto;
    font-size: 1.1rem;
}

/* Footer styling */
.footer {
    background: var(--color-bg-darker);
    border-top: 1px solid var(--color-card-border);
    padding: 60px 0 30px 0;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    margin-top: 16px;
    max-width: 300px;
    color: var(--color-text-secondary);
}

.footer-col h4 {
    color: var(--color-text-primary);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .sim-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .sim-flow-arrow {
        transform: rotate(90deg);
        padding: 20px 0;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    .nav-menu {
        display: none; /* In a full design we'd add a hamburger menu, for marketing it fits simply */
    }
    .section-title {
        font-size: 2.2rem;
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Legal Pages Styling */
.legal-container {
    max-width: 800px;
    margin: 140px auto 80px auto;
    padding: 50px 40px;
    background: var(--color-card-bg);
    background-image: var(--grad-card);
    border: 1px solid var(--color-card-border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
}

.legal-container h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.legal-date {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    border-bottom: 1px solid var(--color-card-border);
    padding-bottom: 20px;
}

.legal-body {
    font-family: var(--font-body);
    line-height: 1.8;
    color: var(--color-text-secondary);
}

.legal-body h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-text-primary);
    margin-top: 35px;
    margin-bottom: 15px;
}

.legal-body p {
    margin-bottom: 20px;
}

.legal-body ul {
    margin-bottom: 25px;
    padding-left: 20px;
}

.legal-body li {
    margin-bottom: 10px;
    list-style-type: disc;
}
