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

:root {
    --bordeaux: #722F37;
    --black: #1A1A1A;
    --dark-background: #222222;
    --light-gray: #f4f4f4;
    --medium-gray: #e0e0e0;
    --white: #FFFFFF;
    --text-primary: #333333;
    --text-secondary: #555555;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

header {
    text-align: center;
    padding: 20px 0;
    background-color: var(--white);
    border-bottom: 1px solid var(--medium-gray);
    position: relative;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    text-align: left;
}

h1 {
    font-size: 2.5rem;
    color: var(--bordeaux);
    margin-bottom: 5px;
    font-weight: 600;
    animation: fadeInDown 0.8s ease-out forwards;
}

.tagline {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 300;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    animation-fill-mode: backwards;
}

.hero {
    text-align: center;
    padding: 80px 20px;
    background-color: var(--bordeaux);
    color: var(--white);
    margin: 0;
    border-radius: 0;
    opacity: 0;
    animation: fadeIn 1.2s ease-out 0.5s forwards;
}

.hero h2 {
    font-size: 2.8rem;
    color: var(--white);
    margin-bottom: 15px;
    font-weight: 600;
}

.hero p {
    font-size: 1.1rem;
    color: var(--light-gray);
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

main > section:not(.hero) {
    padding: 70px 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFadeIn 0.7s ease-out forwards;
}

.subscribe {
    text-align: center;
    background-color: var(--light-gray);
    color: var(--text-primary);
    padding: 70px 20px;
    margin: 0;
    border-radius: 0;
}

.subscribe h2 {
    color: var(--bordeaux);
    margin-bottom: 15px;
    font-size: 2rem;
    font-weight: 600;
}

.subscribe p {
    color: var(--text-secondary);
    margin-bottom: 35px;
    font-size: 1.05rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

#subscribe-form {
    max-width: 480px;
    margin: 30px auto;
    display: flex;
    gap: 10px;
}

input[type="email"] {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid var(--medium-gray);
    border-radius: 6px;
    font-size: 1rem;
    background-color: var(--white);
    color: var(--text-primary);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="email"]::placeholder {
    color: #999;
    opacity: 1;
}

input[type="email"]:focus {
    border-color: var(--bordeaux);
    box-shadow: 0 0 0 3px rgba(114, 47, 55, 0.1);
    outline: none;
}

button[type="submit"] {
    padding: 14px 30px;
    background-color: var(--bordeaux);
    color: var(--white);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button[type="submit"]:hover {
    background-color: #5a252c;
    transform: translateY(-2px);
}

#message {
    margin-top: 20px;
    font-weight: 500;
    color: var(--text-primary);
}

#message.success {
    color: green;
}

#message.error {
    color: red;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 70px 20px;
    background-color: var(--white);
}

.feature {
    text-align: left;
    padding: 30px;
    background-color: var(--light-gray);
    border-radius: 8px;
    border: none;
    box-shadow: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    background-color: #e9e9e9;
}

.feature h3 {
    color: var(--bordeaux);
    margin-bottom: 10px;
    font-size: 1.25rem;
    font-weight: 600;
}

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

footer {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--dark-background);
    color: var(--light-gray);
    opacity: 1;
    font-size: 0.9rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUpFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    .hero h2 {
        font-size: 2.2rem;
    }
    .subscribe h2 {
        font-size: 1.7rem;
    }
    .feature {
        text-align: center;
    }
    #subscribe-form {
        flex-direction: column;
    }
    button[type="submit"] {
        width: 100%;
    }
    .phone-mockup {
        min-height: 380px;
    }
    .chat-header {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    h1 {
        font-size: 1.8rem;
    }
    .tagline {
        font-size: 0.9rem;
    }
    .hero h2 {
        font-size: 1.9rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .subscribe h2, .demo-content h2, .contact-us h2 {
        font-size: 1.6rem;
    }
    .subscribe p, .demo-content .demo-intro, .contact-us p {
        font-size: 0.95rem;
    }
    .feature h3 {
        font-size: 1.1rem;
    }
    .feature p {
        font-size: 0.85rem;
    }
    .lang-btn {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
    .phone-mockup {
        aspect-ratio: unset;
        height: 370px;
        max-width: 100%;
    }
    .chat-bubble {
        font-size: 0.75rem;
    }
    .chat-input-area input, .chat-input-area .send-btn {
        font-size: 0.75rem;
        padding: 6px 8px;
    }
}

/* Chatbot Demo Section */
.demo-section {
    background-color: var(--white);
    text-align: center;
}

.demo-content h2 {
    color: var(--bordeaux);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.demo-content .demo-intro {
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 1.05rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.phone-mockup {
    width: 300px; /* Max width for larger screens */
    max-width: 90%; /* Ensure it scales down on smaller screens */
    height: auto; /* Let aspect ratio or content define height */
    min-height: 380px; /* Further reduced min-height */
    aspect-ratio: 9 / 19; /* Adjusted aspect ratio for modern iPhones (e.g., ~19.5/9) */
    background-color: #1c1c1e; /* Dark gray, common for iPhone bodies */
    border-radius: 40px; /* More pronounced rounded corners for iPhone look */
    padding: 10px; /* Thinner bezels */
    box-shadow: 0 12px 35px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.1); /* Refined shadow and subtle edge highlight */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.phone-screen {
    background-color: var(--white); /* Screen background */
    flex-grow: 1;
    border-radius: 30px; /* Inner screen rounded corners, slightly less than body */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative; /* For notch positioning */
}

/* Notch / Dynamic Island */
.notch-area {
    position: absolute;
    top: 0px; /* Align with the very top of the screen */
    left: 50%;
    transform: translateX(-50%);
    width: 45%; /* Width of the dynamic island area */
    height: 28px; /* Height of the dynamic island */
    z-index: 10; /* Ensure it's above other screen content */
    padding-top: 4px; /* Space for the island within the notch area background, if any */
}

.dynamic-island {
    width: 100%;
    height: 100%;
    background-color: var(--black); /* Island is black */
    border-radius: 18px; /* Rounded corners for the island */
    margin: 0 auto; /* Center it if notch-area is wider */
}

.chat-header {
    background-color: var(--bordeaux);
    color: var(--white);
    padding: 10px 15px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    position: relative; /* To ensure it respects z-index if needed, and for spacing */
    z-index: 1; /* Below notch */
    padding-top: 35px; /* Push content below notch area, adjust as needed */
}

.chat-area {
    flex-grow: 1;
    padding: 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-bubble {
    max-width: 80%; /* Allow slightly wider bubbles if space is tight */
    padding: 8px 12px; /* Slightly reduced padding */
    border-radius: 15px; /* Slightly smaller radius */
    line-height: 1.4;
    font-size: 0.8rem; /* Slightly smaller font in chat */
}

.chat-bubble p {
    margin: 0;
}

.chat-bubble.user {
    background-color: var(--medium-gray);
    color: var(--text-primary);
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.chat-bubble.bot {
    background-color: var(--bordeaux);
    color: var(--white);
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.chat-bubble.bot.loading {
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.chat-bubble.bot.loading span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.7);
    animation: botTyping 1.2s infinite ease-in-out;
}

.chat-bubble.bot.loading span:nth-child(2) {
    animation-delay: 0.2s;
}

.chat-bubble.bot.loading span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes botTyping {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}

.chat-input-area {
    display: flex;
    padding: 10px;
    border-top: 1px solid var(--medium-gray);
    background-color: #f9f9f9;
}

.chat-input-area input {
    flex-grow: 1;
    min-width: 0;
    border: none;
    padding: 8px 10px; /* Reduced padding */
    border-radius: 18px; /* Adjusted radius */
    background-color: var(--white);
    font-size: 0.8rem; /* Smaller font */
    margin-right: 8px;
    outline: none;
    border: 1px solid var(--medium-gray);
}

.chat-input-area .send-btn {
    background-color: var(--bordeaux);
    color: var(--white);
    border: none;
    border-radius: 18px; /* Adjusted radius */
    padding: 0 10px; /* Reduced padding */
    font-size: 0.75rem; /* Smaller font */
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}

.chat-input-area .send-btn:hover {
    background-color: #5a252c;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 8px;
}

.lang-btn {
    background-color: transparent;
    border: 1px solid var(--medium-gray);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.lang-btn:hover {
    background-color: var(--light-gray);
    border-color: var(--bordeaux);
    color: var(--bordeaux);
}

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

/* Contact Us Section */
.contact-us {
    background-color: var(--light-gray); /* Or var(--white) for a different feel */
    padding: 60px 20px;
    text-align: center;
    opacity: 0; /* For animation */
    transform: translateY(30px);
    animation: slideUpFadeIn 0.7s ease-out forwards;
    animation-delay: 0.8s; /* Stagger after features */
}

.contact-us h2 {
    color: var(--bordeaux);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.contact-us p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 1.05rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.email-link {
    display: inline-block;
    background-color: var(--bordeaux);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.email-link:hover {
    background-color: #5a252c; /* Darker bordeaux */
    transform: translateY(-2px);
} 