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

:root {
    --primary-color: #ff6b35;
    --secondary-color: #26a69a;
    --accent-color: #00897b;
    --text-primary: #1a1a1a;
    --text-secondary: #5f5f5f;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-dark: #1e1e1e;
    --border-color: #e0e0e0;
    --success-color: #26a69a;
    --error-color: #ef5350;
    --orange: #ff6b35;
    --teal: #26a69a;
    --dark-teal: #00897b;
    --light-orange: #ff8a65;
    --light-teal: #4db6ac;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #fff5f2 0%, #e6f7f5 100%);
}

.graph-node {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--orange);
    opacity: 0.6;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.node-1 { top: 10%; left: 10%; animation-delay: 0s; }
.node-2 { top: 20%; left: 80%; animation-delay: 2s; }
.node-3 { top: 60%; left: 20%; animation-delay: 4s; }
.node-4 { top: 80%; left: 70%; animation-delay: 6s; }
.node-5 { top: 45%; left: 50%; animation-delay: 8s; }

.graph-connection {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--teal), transparent);
    opacity: 0.4;
    animation: pulse 3s infinite;
}

.connection-1 {
    width: 200px;
    top: 30%;
    left: 20%;
    transform: rotate(45deg);
}

.connection-2 {
    width: 150px;
    top: 50%;
    left: 60%;
    transform: rotate(-30deg);
}

.connection-3 {
    width: 180px;
    top: 70%;
    left: 30%;
    transform: rotate(15deg);
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.9); }
    75% { transform: translate(20px, -10px) scale(1.05); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar */
.navbar {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    box-shadow: var(--shadow);
    animation: slideDown 0.6s ease-out;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-icon {
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255, 107, 53, 0.1);
    color: var(--orange);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.gradient-text {
    background: linear-gradient(135deg, var(--orange), var(--teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 3rem;
}

/* Email Signup */
.signup-container {
    margin-bottom: 3rem;
}

.signup-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.email-input {
    flex: 1;
    min-width: 250px;
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: white;
    transition: all 0.2s ease;
}

.email-input:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(38, 166, 154, 0.1);
}

.cta-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.5rem;
    background: var(--orange);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cta-button:hover {
    background: var(--light-orange);
    transform: translateY(-1px);
}

.cta-button:active {
    transform: translateY(0);
}

.button-icon {
    transition: transform 0.3s ease;
}

.cta-button:hover .button-icon {
    transform: translateX(3px);
}

.signup-message {
    margin-top: 1rem;
    font-size: 0.875rem;
    padding: 0.75rem;
    border-radius: 8px;
    display: none;
}

.signup-message.success {
    display: block;
    color: var(--success-color);
    background: rgba(16, 185, 129, 0.1);
    animation: fadeIn 0.5s ease;
}

.signup-message.error {
    display: block;
    color: var(--error-color);
    background: rgba(239, 68, 68, 0.1);
    animation: fadeIn 0.5s ease;
}

/* Stats */
.stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 1s ease-out;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--orange), var(--teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Features Section */
.features {
    padding: 4rem 0;
    animation: fadeIn 1s ease-out;
}

.features-title {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    color: var(--text-primary);
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--orange), var(--teal));
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--teal);
}

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

.feature-icon {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--teal);
    font-weight: 600;
    background: rgba(38, 166, 154, 0.1);
    padding: 0.75rem;
    border-radius: 8px;
    display: inline-block;
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

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

/* Footer */
.footer {
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: linear-gradient(135deg, var(--orange), var(--teal));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
}

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

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

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

/* Navigation Updates */
.nav-links {
    display: flex;
    align-items: center;
}

.nav-status {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 15px;
}

/* Main Content Layout */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 2rem;
    align-items: center;
    min-height: 80vh;
}

.hero-section {
    padding: 2rem 0;
}

/* Key Points */
.key-points {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.key-point {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
}

.point-icon {
    font-size: 1rem;
    color: var(--orange);
    font-weight: 600;
}

.point-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Hosting Info */
.hosting-info {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(38, 166, 154, 0.05);
    border-radius: 12px;
    border-left: 3px solid var(--teal);
}

.hosting-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Chat Preview Label */
.chat-preview-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-align: center;
}

/* Signup Updates */
.signup-form {
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0;
}

.signup-note {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    text-align: left;
}

/* App Preview - Phone Mockup */
.app-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.phone-mockup {
    width: 320px;
    height: 640px;
    background: #1a1a1a;
    border-radius: 30px;
    padding: 20px;
    box-shadow: var(--shadow-lg), 0 0 0 8px #e0e0e0;
    position: relative;
    overflow: hidden;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #666;
    border-radius: 2px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Chat Header */
.chat-header {
    background: linear-gradient(135deg, var(--orange), var(--light-orange));
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.chat-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

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

.chat-status {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    display: flex;
    animation: slideInMessage 0.3s ease-out;
}

.message.ai {
    justify-content: flex-start;
}

.message.user {
    justify-content: flex-end;
}

.message-bubble {
    max-width: 75%;
    padding: 0.75rem 1rem;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.message.ai .message-bubble {
    background: white;
    color: var(--text-primary);
    border-bottom-left-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.message.user .message-bubble {
    background: linear-gradient(135deg, var(--teal), var(--dark-teal));
    color: white;
    border-bottom-right-radius: 6px;
}

.ai-feedback {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    margin-left: 1rem;
}

.feedback-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    background: var(--success-color);
    color: white;
    border-radius: 10px;
    font-weight: 500;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 18px;
    border-bottom-left-radius: 6px;
    width: fit-content;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--text-secondary);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingBounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

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

@keyframes phoneFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-10px) rotate(1deg);
    }
    66% {
        transform: translateY(5px) rotate(-1deg);
    }
}

/* Chat Input */
.chat-input {
    padding: 1rem;
    background: white;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.chat-input input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 0.9rem;
    background: #f8f9fa;
}

.send-button {
    width: 40px;
    height: 40px;
    background: var(--teal);
    border: none;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.send-button:hover:not(:disabled) {
    background: var(--dark-teal);
    transform: scale(1.05);
}

.send-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Features Section Updates */
.features {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #fff8f5 0%, #f0fffe 100%);
    margin: 2rem 0;
}

/* Footer Updates */
.footer {
    padding: 2rem;
    margin-top: 0;
    background: var(--bg-secondary);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--teal);
}

/* Additional Background Nodes */
.node-6 { top: 30%; left: 90%; animation-delay: 10s; }

.connection-4 {
    width: 120px;
    top: 85%;
    left: 50%;
    transform: rotate(-60deg);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .phone-mockup {
        width: 280px;
        height: 560px;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 1rem;
    }

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

    .hero-description {
        font-size: 1rem;
    }

    .key-points {
        margin: 1.5rem 0;
    }

    .features {
        padding: 3rem 1rem;
    }

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

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

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

    .navbar {
        padding: 1rem;
    }

    .nav-status {
        display: none;
    }

    .phone-mockup {
        width: 260px;
        height: 520px;
        padding: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}