/* EmbedaData Website Styles */
/* Color scheme inspired by the EmbedaData application */

:root {
    /* EmbedaData application colors */
    --embedadata-bg: #101010;        /* BG_HEX from main.rs */
    --embedadata-bg2: #3a3a3a;       /* BG2_HEX */
    --embedadata-grid1: #1d1d1d;     /* GRID1_HEX */
    --embedadata-grid2: #222222;     /* GRID2_HEX */
    --embedadata-text: #e8e8e2;      /* TEXT_HEX */
    --embedadata-text2: #999999;     /* TEXT2_HEX */
    --embedadata-selected-text: #ffffff; /* SELECTED_TEXT_HEX */
    --embedadata-selection: #345a6b; /* SELECTION_HEX */
    --embedadata-highlight: #ff8000; /* HIGHLIGHT_HEX - orange highlight */
    --embedadata-inactive: #444444;  /* INACTIVE_HEX */
    --embedadata-cancel: #992222;    /* CANCEL_HEX */

    /* Website colors (adapting app colors for web) */
    --primary-orange: #ff8000;       /* Main highlight color from app */
    --dark-slate: var(--embedadata-bg);
    --medium-gray: var(--embedadata-text2);
    --accent-black: #000000;
    --pure-white: #ffffff;
    --card-bg: var(--embedadata-grid1);
    --card-bg2: var(--embedadata-grid2);
    --border-color: var(--embedadata-inactive);
    --text-muted: var(--embedadata-text2);
    --hover-orange: #ff9533;
    --gradient-orange: linear-gradient(135deg, #ff8000, #ff9533);
    --nav-bg: var(--embedadata-bg2);
    --bg-dark: var(--embedadata-bg);
    --panel: rgba(255, 128, 0, 0.03);
    --accent: var(--primary-orange);
    --accent-2: var(--embedadata-selection);
    --card-bg-gradient: linear-gradient(135deg, rgba(255, 128, 0, 0.03), rgba(52, 90, 107, 0.02));
    --text-light: var(--embedadata-text);
    --muted-light: var(--embedadata-text2);
    --dark-panel: rgba(16, 16, 16, 0.85);
    --input-border: rgba(255, 255, 255, 0.06);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark-slate) !important;
    color: var(--text-light) !important;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 74px;
}

html {
    background: var(--dark-slate) !important;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0a0a0a 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    height: 72px;
    z-index: 9999;
    background: var(--nav-bg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
}

header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    display: block;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

nav a {
    text-decoration: none;
}

.logo-container {
    display: flex;
    align-items: center;
    padding: 4px 6px;
    background: linear-gradient(135deg, var(--card-bg), var(--card-bg2));
    border-radius: 8px;
    border: 1px solid rgba(255, 128, 0, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.logo-container:hover {
    border-color: var(--primary-orange);
    box-shadow: 0 4px 16px rgba(255, 128, 0, 0.2);
    transform: translateY(-1px);
}

.logo {
    height: 48px;
    width: auto;
    transition: filter .25s ease;
    border-radius: 6px;
    display: block;
    filter: brightness(1.1) contrast(1.1);
}

.logo:hover {
    filter: brightness(1.2) contrast(1.15);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: var(--muted-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: .35rem .6rem;
    border-radius: 6px;
}

.nav-menu a:hover {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.02);
    transform: translateY(-2px);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--primary-orange);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 5.5rem 0 7rem;
    position: relative;
    overflow: visible;
    background: var(--dark-slate);
    background-image:
        radial-gradient(circle at 25% 25%, rgba(255, 128, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(52, 90, 107, 0.1) 0%, transparent 50%);
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero .container {
    display: flex;
    justify-content: center;
}

.hero-content {
    max-width: 980px;
    text-align: center;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    background: var(--gradient-orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(255, 128, 0, 0.3);
}

.hero .subtitle {
    font-size: 1.5rem;
    color: var(--accent-2);
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero .description {
    font-size: 1.2rem;
    color: var(--medium-gray);
    margin-bottom: 3rem;
    line-height: 1.8;
}

/* Hero Icon */
.hero-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    background: linear-gradient(180deg, var(--nav-bg), var(--card-bg));
    border-radius: 22px;
    margin: 0 auto 2rem;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.62), 0 0 64px rgba(255, 128, 0, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.03);
    width: fit-content;
    min-width: 200px;
}

.hero-icon img {
    border-radius: 18px !important;
    background: transparent !important;
    border: none !important;
    height: 160px;
    width: auto;
    display: block;
    margin: 0;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 86px rgba(255, 128, 0, 0.18);
    object-fit: cover;
    transition: transform .28s ease, box-shadow .28s ease;
}

.hero-icon img:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 22px 62px rgba(0, 0, 0, 0.65), 0 0 86px rgba(255, 128, 0, 0.22);
}

/* Sound Wave Animation */
@keyframes wave {
    0%, 100% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(1.5);
    }
}

.sound-wave {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin: 0 10px;
    justify-content: center;
    align-items: flex-end;
}

.wave-bar {
    width: 3px;
    height: 20px;
    background: var(--primary-orange);
    animation: wave 1s ease-in-out infinite;
    border-radius: 6px;
}

.wave-bar:nth-child(1) { animation-delay: 0s; }
.wave-bar:nth-child(2) { animation-delay: 0.1s; }
.wave-bar:nth-child(3) { animation-delay: 0.2s; }
.wave-bar:nth-child(4) { animation-delay: 0.3s; }
.wave-bar:nth-child(5) { animation-delay: 0.4s; }

/* Buttons */
.cta-button,
.btn {
    display: inline-block;
    background: linear-gradient(90deg, var(--accent), #ff9533);
    color: #0a0a0a;
    padding: .9rem 1.25rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    transition: transform .15s ease, box-shadow .15s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(255, 128, 0, 0.12);
    margin: 0.5rem;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 50px rgba(255, 128, 0, 0.2);
}

.btn-secondary {
    background: linear-gradient(180deg, var(--nav-bg), var(--card-bg));
    color: var(--accent);
    padding: .7rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: transform .12s ease;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: linear-gradient(180deg, var(--card-bg), var(--nav-bg));
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: var(--card-bg);
}

.section-title {
    text-align: center;
    font-size: 3rem;
    color: var(--primary-orange);
    margin-bottom: 3rem;
    font-weight: 700;
}

/* Large Product Card */
.product-card-large {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    backdrop-filter: blur(6px);
    border-radius: 14px;
    padding: 3.5rem 2rem 2.75rem;
    border: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.product-card-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-orange);
}

.product-card-large .product-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    background: linear-gradient(180deg, var(--nav-bg), var(--card-bg));
    border-radius: 14px;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 0 40px rgba(255, 128, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.product-card-large .product-icon img {
    border-radius: 12px !important;
    background: transparent !important;
    border: none !important;
    height: 128px;
    width: auto;
    display: block;
    margin: 0;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), 0 0 36px rgba(255, 128, 0, 0.10);
    object-fit: cover;
    transition: transform .2s ease, box-shadow .2s ease;
}

.product-card-large .product-icon img:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5), 0 0 60px rgba(255, 128, 0, 0.18);
}

.product-card-large h3 {
    font-size: 1.8rem;
    color: var(--primary-orange);
    margin: 2rem 0 1rem 0;
    text-align: center;
}

.product-card-large p {
    color: var(--medium-gray);
    margin-bottom: 1.5rem;
    text-align: center;
    line-height: 1.7;
    font-size: 1.1rem;
}

.product-features {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.product-features li {
    padding: 0.5rem 0;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
    font-size: 1rem;
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-orange);
    font-weight: bold;
}

/* Products Section */
.products-section {
    padding: 80px 0;
    background: var(--dark-slate);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 15px;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-orange);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--accent-black);
}

.feature-item h4 {
    color: var(--primary-orange);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.feature-item p {
    color: var(--medium-gray);
    line-height: 1.6;
}

/* Testimonials */
.testimonials-section {
    padding: 80px 0;
    background: var(--card-bg);
}

.testimonial {
    background: var(--dark-slate);
    padding: 2.5rem;
    border-radius: 15px;
    margin: 2rem auto;
    max-width: 800px;
    border-left: 4px solid var(--primary-orange);
    position: relative;
}

.testimonial::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-orange);
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: serif;
}

.testimonial p {
    font-size: 1.2rem;
    color: var(--pure-white);
    margin-bottom: 1rem;
    font-style: italic;
    line-height: 1.7;
}

.testimonial-author {
    color: var(--primary-orange);
    font-weight: 600;
    text-align: right;
}

/* Footer */
footer {
    background: var(--accent-black);
    padding: 3rem 0 1rem;
    margin-top: auto;
    border-top: 2px solid var(--primary-orange);
    color: var(--muted-light);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--primary-orange);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
    color: var(--medium-gray);
    text-decoration: none;
    line-height: 1.8;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--nav-bg);
        padding: 1rem;
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .subtitle {
        font-size: 1.2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .container {
        padding: 0 15px;
    }
    
    .product-card-large .product-icon img {
        height: 92px;
    }
    
    .product-card-large {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.1rem;
    }
    
    .hero .description {
        font-size: 1rem;
    }
    
    .product-card-large .product-icon img {
        height: 80px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-orange {
    color: var(--primary-orange);
}

.text-muted {
    color: var(--text-muted);
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.py-4 {
    padding: 2rem 0;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-orange);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}