:root {
    --primary-color: #E31837;
    --secondary-color: #FF1744;
    --text-color: #2D3436;
    --light-text: #636E72;
    --background: #FFFFFF;
    --light-background: #FFEBEE;
    --border-color: #FFCDD2;
    --accent-color: #D50000;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.5;
}

/* Header and Navigation */
header {
    background: var(--background);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
    transition: transform 0.2s ease;
}

.logo a:hover img {
    transform: scale(1.05);
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
}

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

.nav-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.language-selector {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
}

.lang-btn {
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    background: transparent;
    color: var(--text-color);
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    background: var(--light-background);
}

.lang-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 1000;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px 0;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

.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(7px, -7px);
}

@media (max-width: 768px) {
    nav {
        justify-content: space-between;
        align-items: center;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-content {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        padding: 5rem 2rem 2rem;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-content.active {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 1.5rem;
    }

    .language-selector {
        width: 100%;
        margin: 0;
        padding-top: 1rem;
        border-top: 1px solid var(--border-color);
    }

    .lang-btn {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }

    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }

    .nav-overlay.active {
        display: block;
    }
}

/* Buttons */
.login-btn,
.cta-btn,
.primary-btn,
.secondary-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn {
    background: var(--light-background);
    border: none;
    color: var(--text-color);
}

.cta-btn,
.primary-btn {
    background: var(--primary-color);
    border: none;
    color: white;
}

.secondary-btn {
    background: var(--light-background);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.login-btn:hover,
.cta-btn:hover,
.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
#hero {
    padding: 8rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--light-text);
    margin-bottom: 2rem;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    #hero {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 6rem 1.5rem 3rem;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .hero-image {
        order: -1;
        margin: 0 auto;
        max-width: 80%;
    }
}

@media (max-width: 480px) {
    #hero {
        padding: 5rem 1rem 2rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-image {
        max-width: 90%;
    }
}

/* SVG Color Modifications */
.feature-card img,
.hero-image img,
.flow-diagram {
    filter: hue-rotate(140deg) saturate(200%);
}

.feature-card img {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
}

/* Features Section */
#features {
    padding: 4rem 2rem;
    background: var(--light-background);
}

#features h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--background);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
    margin-bottom: 1rem;
}

/* Platforms Section */
.platforms-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.platform-section {
    background: var(--light-background);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(227, 24, 55, 0.1);
}

.platform-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.platform-list {
    list-style: none;
    padding: 0;
}

.platform-list li {
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: white;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.platform-list li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(227, 24, 55, 0.1);
}

.platform-list li.coming-soon {
    opacity: 0.7;
    position: relative;
}

.platform-list li.coming-soon::after {
    content: 'Coming Soon';
    font-size: 0.75rem;
    color: var(--primary-color);
    background: var(--light-background);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    margin-left: 1rem;
    font-weight: 500;
    border: 1px solid var(--primary-color);
}

#supported-platforms {
    padding: 4rem 2rem;
    background: white;
}

#supported-platforms h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--text-color);
}

/* How It Works Section */
.how-it-works {
    padding: 5rem 2rem;
    background-color: var(--light-background);
    text-align: center;
}

.how-it-works h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.data-flow-diagram {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.flow-diagram {
    max-width: 100%;
    height: auto;
    filter: hue-rotate(140deg) saturate(200%) drop-shadow(0 4px 6px rgba(227, 24, 55, 0.2));
    transition: all 0.3s ease;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.connection-description {
    background: var(--light-background);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(227, 24, 55, 0.1);
    margin-top: 2rem;
}

.connection-description p {
    font-size: 1.1rem;
    color: var(--light-text);
    line-height: 1.6;
}

/* Responsive Design for How It Works */
@media (max-width: 768px) {
    .data-flow-diagram {
        padding: 1rem;
    }

    .how-it-works h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .connection-description p {
        font-size: 1rem;
    }

    .data-flow {
        flex-direction: column;
        gap: 1rem;
    }

    .flow-item {
        min-width: 200px;
        width: 100%;
        max-width: 280px;
        padding: 1.5rem;
    }

    .flow-arrow {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }
}

@media (max-width: 480px) {
    .flow-item {
        min-width: 160px;
        padding: 1rem;
    }

    .device-icon,
    .platform-icon,
    .coros-icon {
        width: 40px;
        height: 40px;
    }

    .device-icon::before,
    .platform-icon::before,
    .coros-icon::before {
        font-size: 20px;
    }

    .flow-arrow {
        width: 40px;
    }

    .connection-description {
        padding: 1rem;
    }
}

/* Data Flow Diagram */
.flow-container {
    max-width: 900px;
    margin: 3rem auto;
    padding: 2rem;
}

.data-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    animation: float 6s ease-in-out infinite;
}

.flow-item {
    background: var(--light-background);
    padding: 2rem;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    min-width: 160px;
    box-shadow: 0 4px 20px rgba(227, 24, 55, 0.1);
    transition: all 0.3s ease;
}

.flow-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(227, 24, 55, 0.2);
}

.flow-item span {
    font-weight: 600;
    color: var(--primary-color);
}

.flow-arrow {
    width: 60px;
    height: 2px;
    background: var(--primary-color);
    position: relative;
    animation: pulse 2s infinite;
}

.flow-arrow::after {
    content: '';
    position: absolute;
    right: -1px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    border-top: 2px solid var(--primary-color);
    border-right: 2px solid var(--primary-color);
}

.device-icon,
.platform-icon,
.coros-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-color);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.device-icon::before {
    content: '⌚';
    font-size: 24px;
    color: white;
}

.platform-icon::before {
    content: '⚡';
    font-size: 24px;
    color: white;
}

.coros-icon::before {
    content: '🎯';
    font-size: 24px;
    color: white;
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Pricing Section */
.pricing {
    padding: 4rem 2rem;
    background: var(--light-background);
    text-align: center;
}

.pricing h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.coming-soon {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem;
    background: var(--background);
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.coming-soon-content h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.coming-soon-content p {
    color: var(--light-text);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.notify-form {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.email-input {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    width: 100%;
    max-width: 300px;
    transition: border-color 0.3s ease;
}

.email-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.notify-btn {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.notify-btn:hover {
    background: var(--secondary-color);
}

@media (max-width: 768px) {
    .notify-form {
        flex-direction: column;
        align-items: center;
    }

    .email-input {
        max-width: 100%;
    }
}

.pricing-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background: var(--background);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
    transform: scale(1.05);
    border: 2px solid var(--primary-color);
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1.5rem 0;
}

.price span {
    font-size: 1rem;
    color: var(--light-text);
}

.pricing-card ul {
    list-style: none;
    margin: 2rem 0;
}

.pricing-card li {
    margin: 0.5rem 0;
}

/* COROS Links */
.coros-link,
[data-preserve-html] a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
}

.coros-link:hover,
[data-preserve-html] a:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

/* Platform list specific styling */
.platform-list [data-preserve-html] a {
    color: inherit;
    border-bottom: none;
    padding-bottom: 0;
}

.platform-list [data-preserve-html] a:hover {
    color: var(--primary-color);
    border-bottom: none;
}

/* Privacy Policy Styles */
.privacy-policy {
    padding-top: 100px; /* Add space for fixed navigation */
    padding-bottom: 2rem;
    color: var(--text-color);
    min-height: calc(100vh - 100px); /* Ensure footer stays at bottom */
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.privacy-policy .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.privacy-policy h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.privacy-policy .last-updated {
    color: var(--secondary-text);
    margin-bottom: 2rem;
    font-style: italic;
}

.privacy-policy section {
    margin-bottom: 2rem;
}

.privacy-policy h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.privacy-policy h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 1rem;
    color: var(--text-color);
}

.privacy-policy p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.privacy-policy ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.privacy-policy li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Contact Information Styles */
.contact-email {
    margin-bottom: 1.5rem;
}

.contact-email a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-email a:hover {
    text-decoration: underline;
}

.contact-address {
    background: var(--light-background);
    padding: 1.5rem;
    border-radius: 8px;
    max-width: 300px;
}

.contact-address .address-label {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.contact-address address {
    font-style: normal;
    line-height: 1.6;
}

/* Footer */
footer {
    background: var(--text-color);
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--light-background);
    text-decoration: none;
    display: block;
    margin: 0.5rem 0;
}

.footer-section a.active {
    color: var(--primary-color);
    font-weight: 500;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--light-text);
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        display: none;
    }

    #hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 6rem;
    }

    .hero-image {
        order: -1;
    }

    .pricing-card.featured {
        transform: none;
    }
}