/* ========================================
   Oddy Medicator — Landing Page Styles
   Design follows odoo-hilfe-bot.de
   ======================================== */

:root {
    --purple: #714B67;
    --purple-dark: #5a3a52;
    --purple-light: #f0e8ed;
    --text: #1a1a2e;
    --text-light: #555;
    --gray: #f8f9fa;
    --white: #ffffff;
    --accent: #e8b4d0;
    --border: #eee;
    --radius: 14px;
    --radius-sm: 10px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ── Navigation ──────────────────────────── */

nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 32px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--purple);
    object-fit: cover;
    flex-shrink: 0;
}

.avatar-img.small {
    width: 36px;
    height: 36px;
}

.brand-name {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--purple);
}

.brand-name strong {
    font-weight: 800;
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--purple);
}

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

.lang-switcher {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.lang-btn {
    border: none;
    background: var(--white);
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.2s;
}

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

.nav-cta {
    background: var(--purple);
    color: var(--white);
    text-decoration: none;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(113, 75, 103, 0.25);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
}

/* ── Buttons ─────────────────────────────── */

.btn {
    display: inline-block;
    text-decoration: none;
    padding: 14px 30px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.btn-primary {
    background: var(--white);
    color: var(--purple);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.35);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--purple);
    border: 2px solid var(--purple);
}

.btn-outline:hover {
    background: var(--purple);
    color: var(--white);
    transform: translateY(-2px);
}

/* ── Hero ────────────────────────────────── */

.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding: 80px 60px;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d1b3d 60%, #714B67 100%);
    color: var(--white);
}

.hero-content {
    flex: 1;
    max-width: 550px;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
}

.highlight {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 32px;
}

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

.hero-stats {
    display: flex;
    gap: 40px;
}

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

.stat strong {
    font-size: 1.6rem;
    font-weight: 800;
}

.stat span {
    font-size: 0.8rem;
    opacity: 0.7;
}

.hero-oddy {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(232, 180, 208, 0.5);
    box-shadow: 0 0 60px rgba(232, 180, 208, 0.3), 0 0 120px rgba(113, 75, 103, 0.2);
    animation: oddy-float 3s ease-in-out infinite;
    object-fit: cover;
    margin-bottom: 20px;
}

@keyframes oddy-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.hero-visual {
    flex: 0 0 440px;
}

/* Chat Window */
.chat-window {
    background: #1e1e2e;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-header-info {
    display: flex;
    flex-direction: column;
}

.chat-header-name {
    font-size: 0.85rem;
    font-weight: 600;
}

.chat-header-status {
    font-size: 0.7rem;
    color: #28c840;
}

.chat-messages {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 480px;
    overflow-y: auto;
}

.chat-msg {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.chat-msg.user {
    justify-content: flex-end;
}

.msg-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    margin-top: 2px;
}

.msg-bubble {
    max-width: 280px;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.82rem;
    line-height: 1.5;
}

.chat-msg.bot .msg-bubble {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9);
}

.chat-msg.user .msg-bubble {
    background: var(--purple);
    color: var(--white);
}

.chat-msg.user .msg-avatar {
    order: 1;
}

.msg-code {
    font-family: "SF Mono", "Fira Code", monospace;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent);
}

.msg-confidence {
    font-size: 0.75rem;
    color: #28c840;
    font-weight: 600;
}

.msg-detail {
    font-size: 0.78rem;
    opacity: 0.7;
}

/* Typing animation */
.typing-dots span {
    animation: typing-blink 1.4s infinite;
    font-size: 1.4rem;
    line-height: 1;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-blink {
    0%, 60%, 100% { opacity: 0.2; }
    30% { opacity: 1; }
}

.chat-input {
    display: flex;
    gap: 8px;
    padding: 12px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.chat-input input {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 10px 16px;
    color: var(--white);
    font-size: 0.82rem;
    font-family: inherit;
    outline: none;
}

.chat-input input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.chat-send {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--purple);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Two Paths (Chat vs API) ─────────────── */

.two-paths {
    display: flex;
    align-items: stretch;
    gap: 0;
    max-width: 900px;
    margin: 48px auto 0;
}

.path-card {
    flex: 1;
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 28px;
    border: 1px solid var(--border);
    text-align: center;
}

.path-card:hover {
    box-shadow: 0 12px 32px rgba(113, 75, 103, 0.1);
}

.path-icon {
    font-size: 2.4rem;
    margin-bottom: 12px;
}

.path-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.path-card p {
    font-size: 0.88rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.path-divider {
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.path-divider span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.code-example-small {
    text-align: left;
    background: #1a1a2e;
    border-radius: 10px;
    overflow: hidden;
}

.code-example-small pre {
    padding: 14px;
    margin: 0;
    overflow-x: auto;
}

.code-example-small code {
    font-family: "SF Mono", "Fira Code", "Consolas", monospace;
    font-size: 0.72rem;
    line-height: 1.5;
    color: var(--accent);
}

/* ── Sections ────────────────────────────── */

section {
    padding: 80px 32px;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
}

.section-header h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.05rem;
}

/* ── Features ────────────────────────────── */

.features {
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    background: var(--gray);
    border-radius: var(--radius);
    padding: 28px 24px;
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(113, 75, 103, 0.1);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 14px;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* ── How it Works ────────────────────────── */

.how-it-works {
    background: var(--gray);
}

.workflow {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    max-width: 900px;
    margin: 0 auto 48px;
}

.workflow-step {
    flex: 1;
    text-align: center;
    padding: 0 24px;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--purple);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 auto 16px;
}

.workflow-step h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.workflow-step p {
    font-size: 0.85rem;
    color: var(--text-light);
}

.workflow-connector {
    width: 60px;
    height: 2px;
    background: var(--purple);
    opacity: 0.3;
    margin-top: 24px;
    flex-shrink: 0;
}

/* Code Example */
.code-example {
    max-width: 700px;
    margin: 0 auto;
    background: #1a1a2e;
    border-radius: var(--radius);
    overflow: hidden;
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dot.red { background: #ff5f57; }
.code-dot.yellow { background: #febc2e; }
.code-dot.green { background: #28c840; }

.code-title {
    margin-left: 8px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.code-example pre {
    padding: 20px;
    overflow-x: auto;
}

.code-example code {
    font-family: "SF Mono", "Fira Code", "Consolas", monospace;
    font-size: 0.8rem;
    line-height: 1.6;
    color: #e8b4d0;
}

/* ── Use Cases ───────────────────────────── */

.use-cases {
    background: var(--white);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
    max-width: 1000px;
    margin: 0 auto;
}

.use-case-card {
    text-align: center;
    padding: 32px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.use-case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(113, 75, 103, 0.08);
}

.use-case-icon {
    font-size: 2.4rem;
    margin-bottom: 16px;
}

.use-case-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.use-case-card p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ── Pricing ─────────────────────────────── */

.pricing {
    background: var(--gray);
}

.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto 48px;
}

.price-card {
    background: var(--white);
    border-radius: 16px;
    padding: 36px 32px;
    border: 2px solid var(--border);
    min-width: 280px;
    max-width: 340px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.price-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(113, 75, 103, 0.1);
}

.price-card.featured {
    border-color: var(--purple);
}

.price-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--purple);
    color: var(--white);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.price-plan {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.price-amount {
    margin-bottom: 24px;
}

.price-value {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--purple);
}

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

.price-features {
    list-style: none;
    margin-bottom: 28px;
    flex: 1;
}

.price-features li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
}

.price-features li:last-child {
    border-bottom: none;
}

.price-features li::before {
    content: "✓ ";
    color: var(--purple);
    font-weight: 700;
}

.price-card .btn {
    width: 100%;
    text-align: center;
}

/* Manufacturer CTA */
.pricing-manufacturer {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 32px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.manufacturer-info h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.manufacturer-info p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* ── FAQ ─────────────────────────────────── */

.faq {
    background: var(--white);
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 20px 0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
}

.faq-question::after {
    content: "+";
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--purple);
    transition: transform 0.3s;
}

.faq-item.open .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 200px;
    padding-bottom: 20px;
}

.faq-answer p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

.faq-answer code {
    background: var(--purple-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--purple);
}

/* ── Contact ─────────────────────────────── */

.contact {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d1b3d 60%, #714B67 100%);
    color: var(--white);
}

.contact .section-header p {
    color: rgba(255, 255, 255, 0.7);
}

.contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.8;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group select option {
    background: #1a1a2e;
    color: var(--white);
}

.contact-form .btn-primary {
    align-self: flex-start;
}

/* ── Footer ──────────────────────────────── */

footer {
    background: #0d0d1a;
    color: rgba(255, 255, 255, 0.6);
    padding: 40px 32px;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s;
}

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

.footer-copy {
    font-size: 0.75rem;
    width: 100%;
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ── Animations ──────────────────────────── */

.fade-in {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for grid items */
.features-grid .fade-in:nth-child(2) { transition-delay: 0.1s; }
.features-grid .fade-in:nth-child(3) { transition-delay: 0.2s; }
.features-grid .fade-in:nth-child(4) { transition-delay: 0.3s; }
.features-grid .fade-in:nth-child(5) { transition-delay: 0.4s; }
.features-grid .fade-in:nth-child(6) { transition-delay: 0.5s; }

/* ── Responsive ──────────────────────────── */

@media (max-width: 768px) {
    nav {
        padding: 10px 16px;
    }

    .nav-links {
        display: none;
    }

    .nav-right {
        display: none;
    }

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

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 48px 20px;
        min-height: auto;
        gap: 32px;
    }

    .hero-visual {
        flex: none;
        width: 100%;
        max-width: 380px;
    }

    .hero-oddy {
        width: 80px;
        height: 80px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .chat-messages {
        min-height: 400px;
    }

    .two-paths {
        flex-direction: column;
        gap: 0;
    }

    .path-divider {
        padding: 16px 0;
        justify-content: center;
    }

    .workflow {
        flex-direction: column;
        align-items: center;
    }

    .workflow-connector {
        width: 2px;
        height: 30px;
        margin: 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        flex-direction: column;
        align-items: center;
    }

    .price-card {
        max-width: 100%;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}
