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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h2 {
    color: #6366f1;
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #6366f1;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: white;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="rgba(255,255,255,0.1)"/><stop offset="100%" stop-color="rgba(255,255,255,0)"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 6rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    line-height: 1.7;
    max-width: 600px;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn-primary, .btn-secondary {
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: white;
    color: #6366f1;
}

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

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #6366f1;
}

/* Phone Mockup */
.phone-mockup {
    position: relative;
    width: 380px;
    height: 760px;
    background: #1a1a1a;
    border-radius: 50px;
    padding: 10px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    margin: 0 auto;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.3s ease;
}

.phone-mockup:hover {
    transform: perspective(1000px) rotateY(-2deg) rotateX(2deg) scale(1.05);
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 40px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.phone-mockup:hover .phone-screen {
    transform: scale(1.02);
}

/* Features Section */
.features {
    padding: 8rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #1e293b;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.section-subtitle {
    font-size: 1.3rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

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

.feature-card {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.feature-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.feature-card p {
    color: #64748b;
    line-height: 1.7;
    font-size: 1.1rem;
}

/* Screenshots Section */
.screenshots {
    padding: 8rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    position: relative;
}

.screenshots .section-subtitle {
    text-align: center;
    font-size: 1.3rem;
    color: #64748b;
    margin-bottom: 5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.screenshot-item {
    text-align: center;
}

.phone-mockup-small {
    position: relative;
    width: 250px;
    height: 500px;
    background: #1a1a1a;
    border-radius: 35px;
    padding: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    margin: 0 auto 2rem;
    transition: all 0.3s ease;
    transform: perspective(1000px) rotateY(-2deg);
}

.phone-mockup-small:hover {
    transform: perspective(1000px) rotateY(0deg) translateY(-15px) scale(1.05);
}

.phone-screen-small {
    width: 100%;
    height: 100%;
    border-radius: 27px;
    object-fit: cover;
}

.screenshot-item h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e293b;
}

.screenshot-item p {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Download Section */
.download {
    padding: 8rem 0;
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.download::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="b" cx="50%" cy="50%"><stop offset="0%" stop-color="rgba(255,255,255,0.05)"/><stop offset="100%" stop-color="rgba(255,255,255,0)"/></radialGradient></defs><circle cx="300" cy="200" r="200" fill="url(%23b)"/><circle cx="700" cy="400" r="150" fill="url(%23b)"/><circle cx="200" cy="600" r="180" fill="url(%23b)"/></svg>');
    opacity: 0.4;
}

.download-content {
    position: relative;
    z-index: 2;
}

.download-content h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.download-content p {
    font-size: 1.4rem;
    margin-bottom: 4rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.download-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-app-store {
    background: white;
    border: none;
    border-radius: 12px;
    padding: 0.5rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-app-store:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-app-store img {
    width: 180px;
    height: 60px;
    display: block;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo h3 {
    color: #6366f1;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-logo p {
    color: #94a3b8;
}

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

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    color: #94a3b8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 2rem;
        margin-bottom: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .phone-mockup {
        width: 300px;
        height: 600px;
        transform: none;
    }
    
    .screenshots-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 2rem;
    }
    
    .phone-mockup-small {
        width: 200px;
        height: 400px;
        transform: none;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .download-content h2 {
        font-size: 2.5rem;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card, .screenshot-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Hover Effects */
.phone-mockup, .phone-mockup-small {
    transition: all 0.3s ease;
}

.phone-mockup:hover, .phone-mockup-small:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

/* Chatbot Styles */
.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    font-family: 'Inter', sans-serif;
}

.chatbot-container * {
    box-sizing: border-box;
}

/* Reset any conflicting styles */
.chatbot-container h3,
.chatbot-container button,
.chatbot-container input,
.chatbot-container div {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* Force chatbot styling */
#chatbot-container {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 10000 !important;
    display: block !important;
    visibility: visible !important;
}

#chatbot-window {
    width: 380px !important;
    height: 550px !important;
    background: white !important;
    border-radius: 25px !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25) !important;
    display: none !important;
    flex-direction: column !important;
    overflow: hidden !important;
    border: 1px solid #e2e8f0 !important;
    position: relative !important;
}

#chatbot-window.show {
    display: flex !important;
}

.chatbot-toggle {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.4);
    transition: all 0.3s ease;
    color: white;
    position: relative;
    border: 3px solid white;
    visibility: visible !important;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.6);
}

.chatbot-toggle::before {
    content: '';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: #ef4444;
    border-radius: 50%;
    border: 3px solid white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.chatbot-toggle svg {
    width: 28px;
    height: 28px;
}

.chatbot-window {
    width: 380px;
    height: 550px;
    background: white;
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    position: relative;
    animation: slideUp 0.3s ease-out;
}

.chatbot-window.show {
    display: flex !important;
}

.chatbot-window:not(.show) {
    display: none !important;
}

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

.chatbot-header {
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    color: white !important;
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    border-radius: 25px 25px 0 0;
}

.chatbot-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.chatbot-header h3 {
    margin: 0 !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    position: relative;
    z-index: 2;
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    color: white !important;
}

.chatbot-header h3::before {
    content: '💬';
    font-size: 1.1rem;
}

.chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.chatbot-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.chatbot-messages {
    flex: 1;
    padding: 1.2rem;
    overflow-y: auto;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
    position: relative;
}

.chatbot-messages::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(99, 102, 241, 0.05)"/></pattern></defs><rect width="60" height="60" fill="url(%23dots)"/></svg>');
    opacity: 0.5;
    pointer-events: none;
}

.chatbot-message {
    margin-bottom: 1.2rem;
    display: flex;
    position: relative;
    z-index: 2;
}

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

.chatbot-message.bot {
    justify-content: flex-start;
}

.chatbot-message-content {
    max-width: 85%;
    padding: 0.9rem 1.2rem;
    border-radius: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    word-wrap: break-word;
}

.chatbot-message.user .chatbot-message-content {
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    color: white !important;
    border-bottom-right-radius: 6px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.chatbot-message.bot .chatbot-message-content {
    background: white;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-bottom-left-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
}

.chatbot-message.bot .chatbot-message-content::before {
    content: '🤖';
    position: absolute;
    left: -35px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    background: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid #e5e7eb;
}

.chatbot-input-container {
    padding: 1.2rem;
    background: white;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 0.8rem;
    position: relative;
    z-index: 2;
}

.chatbot-input-container input {
    flex: 1;
    padding: 0.9rem 1.2rem;
    border: 2px solid #e5e7eb;
    border-radius: 30px;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.chatbot-input-container input:focus {
    border-color: #6366f1;
    background: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

.chatbot-input-container input::placeholder {
    color: #9ca3af;
    font-style: italic;
}

.chatbot-input-container button {
    padding: 0.9rem 1.8rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    color: white !important;
    border: none;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
}

.chatbot-input-container button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.chatbot-input-container button:hover::before {
    left: 100%;
}

.chatbot-input-container button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* Typing Indicator */
.typing-indicator {
    color: #9ca3af;
    font-style: italic;
    animation: typing 1.5s infinite;
}

@keyframes typing {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0.3;
    }
}

/* Mobile Responsive for Chatbot */
@media (max-width: 768px) {
    .chatbot-container {
        bottom: 15px;
        right: 15px;
    }
    
    .chatbot-window {
        width: 350px;
        height: 500px;
    }
    
    .chatbot-toggle {
        width: 65px;
        height: 65px;
    }
    
    .chatbot-toggle svg {
        width: 26px;
        height: 26px;
    }
}

@media (max-width: 480px) {
    .chatbot-window {
        width: calc(100vw - 30px);
        height: 450px;
        right: 15px;
        left: 15px;
    }
    
    .chatbot-toggle {
        width: 60px;
        height: 60px;
    }
    
    .chatbot-message.bot .chatbot-message-content::before {
        display: none;
    }
}

/* === Screenshots: uniform sizing & alignment (overrides) === */
.screenshots .screenshots-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:2.25rem;
  align-items:start;           /* keep captions aligned */
  justify-items:center;
}

/* Consistent phone frame (no fixed height) */
.phone-mockup-small{
  width:240px;                 /* change this one number to scale all */
  aspect-ratio:9 / 19.5;       /* makes every card the same height */
  height:auto;                 /* override previous fixed height */
  border-radius:36px;
  padding:10px;
  background:#0b0f19;
  box-shadow:0 20px 50px rgba(2,6,23,.18), 0 6px 18px rgba(2,6,23,.12);
  overflow:hidden;
  display:flex;
  transform: none;             /* remove tilt so heights match perfectly */
}

.phone-mockup-small:hover{
  transform: translateY(-8px) scale(1.03);
}

/* Screenshot image fills the frame cleanly */
.phone-screen-small{
  width:100%;
  height:100%;
  object-fit:cover;            /* prevents odd gaps / stretching */
  border-radius:28px;
  background:#fff;
}

/* Tidy captions + consistent max width */
.screenshot-item{
  text-align:center;
  max-width:260px;
}

.screenshot-item h4{ margin-top:.9rem; font-weight:600; }
.screenshot-item p{ color:#6b7280; font-size:.95rem; line-height:1.4; }

/* Responsive columns for smaller screens */
@media (max-width:1024px){
  .screenshots .screenshots-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:640px){
  .screenshots .screenshots-grid{ grid-template-columns:1fr; }
  .phone-mockup-small{ width:200px; }  /* slightly smaller on phones */
}

