:root {
    --bg-deep: #1a1a2e;
    --bg-card: #252545;
    --primary: #4a89dc;
    --accent: #00d4ff;
    --text-main: #ffffff;
    --text-muted: #b0b0d1;
    --success: #00f2a6;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

.section-padding {
    padding: 100px 0;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

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

.btn-outline:hover {
    background: rgba(74, 137, 220, 0.1);
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -1px;
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

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

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 70% 30%, rgba(74, 137, 220, 0.15), transparent),
                radial-gradient(circle at 10% 80%, rgba(0, 212, 255, 0.1), transparent);
    padding-top: 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.badge-hero {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--accent);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #b0b0d1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

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

/* Chat Mockup Styles */
.mockup-chat {
    background: #1e1e35;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    overflow: hidden;
    position: relative;
}

.mockup-chat::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.mockup-header {
    padding: 20px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 12px;
}

.mockup-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
}

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

.mockup-status {
    font-size: 0.8rem;
    color: var(--success);
}

.mockup-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 300px;
}

.msg {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.95rem;
    max-width: 85%;
    line-height: 1.5;
}

.user-msg {
    background: var(--primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.ai-msg {
    background: rgba(255,255,255,0.08);
    color: #fff;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.delayed-msg {
    opacity: 0;
    overflow: hidden;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
}

.typing-indicator-container {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
}

.typing-indicator {
    display: flex;
    gap: 4px;
}

.typing-indicator span {
    width: 6px; height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typing 1s infinite alternate;
}

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

@keyframes typing {
    0% { transform: translateY(0); opacity: 0.5; }
    100% { transform: translateY(-4px); opacity: 1; }
}

/* Multi-step Chat Animation (24s loop) */
.seq-1 { animation: seq-1-loop 24s infinite; }
.seq-2 { animation: seq-2-loop 24s infinite; }
.seq-3 { animation: seq-3-loop 24s infinite; }
.seq-4 { animation: seq-4-loop 24s infinite; }
.seq-5 { animation: seq-5-loop 24s infinite; }
.seq-6 { animation: seq-6-loop 24s infinite; }

@keyframes seq-1-loop {
    0%, 90% { max-height: 200px; opacity: 1; padding: 12px 16px; margin: 0; transform: translateY(0); }
    95%, 100% { max-height: 0; opacity: 0; padding: 0; margin: 0; transform: translateY(10px); }
}

@keyframes seq-2-loop {
    0%, 5% { max-height: 0; opacity: 0; padding: 0; margin: 0; }
    7%, 12% { max-height: 50px; opacity: 1; padding: 12px 16px; margin: 0; }
    14%, 100% { max-height: 0; opacity: 0; padding: 0; margin: 0; }
}

@keyframes seq-3-loop {
    0%, 12% { max-height: 0; opacity: 0; padding: 0; margin: 0; transform: translateY(10px); }
    14%, 90% { max-height: 300px; opacity: 1; padding: 12px 16px; margin: 0; transform: translateY(0); }
    95%, 100% { max-height: 0; opacity: 0; padding: 0; margin: 0; transform: translateY(10px); }
}

@keyframes seq-4-loop {
    0%, 28% { max-height: 0; opacity: 0; padding: 0; margin: 0; transform: translateY(10px); }
    30%, 90% { max-height: 200px; opacity: 1; padding: 12px 16px; margin: 0; transform: translateY(0); }
    95%, 100% { max-height: 0; opacity: 0; padding: 0; margin: 0; transform: translateY(10px); }
}

@keyframes seq-5-loop {
    0%, 31% { max-height: 0; opacity: 0; padding: 0; margin: 0; }
    33%, 40% { max-height: 50px; opacity: 1; padding: 12px 16px; margin: 0; }
    42%, 100% { max-height: 0; opacity: 0; padding: 0; margin: 0; }
}

@keyframes seq-6-loop {
    0%, 40% { max-height: 0; opacity: 0; padding: 0; margin: 0; transform: translateY(10px); }
    42%, 90% { max-height: 300px; opacity: 1; padding: 12px 16px; margin: 0; transform: translateY(0); }
    95%, 100% { max-height: 0; opacity: 0; padding: 0; margin: 0; transform: translateY(10px); }
}

/* Integrations Strip */
.integrations-strip {
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: rgba(0,0,0,0.2);
    padding: 30px 0;
}

.integrations-title {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.integrations-logos {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    align-items: center;
}

.logo-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #fff;
    font-size: 1.1rem;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.logo-item:hover {
    opacity: 1;
}

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

.card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.hover-glow:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.15);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(74, 137, 220, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

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

.steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    gap: 2rem;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 250px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-num {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-weight: 800;
    font-size: 1.2rem;
}

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

.feature-item h4 {
    margin: 1rem 0 0.5rem;
    color: var(--accent);
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

.pricing-card {
    background: var(--bg-card);
    padding: 3rem 2rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
    z-index: 2;
}

.badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.price-val {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 1rem 0;
}

.price-val span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.setup-fee {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.setup-fee del {
    opacity: 0.6;
    margin-right: 5px;
}

.setup-fee span {
    color: var(--success);
    font-weight: 700;
}

.pricing-list {
    list-style: none;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.pricing-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.pricing-list li svg, .pricing-list li i {
    color: var(--success);
    flex-shrink: 0;
}

.why-us {
    background: rgba(74, 137, 220, 0.05);
    border-radius: 40px;
    padding: 4rem;
}

.faq-item {
    background: var(--bg-card);
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

footer {
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

/* Floating particles animation */
.particles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px; height: 4px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.15;
    animation: float-up linear infinite;
}

@keyframes float-up {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 0.15; }
    90% { opacity: 0.15; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* Hero glow animation */
.hero-glow {
    position: absolute;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74,137,220,0.08) 0%, transparent 70%);
    animation: pulse-glow 4s ease-in-out infinite;
    top: -200px; right: -200px;
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
}

/* Counter / Highlight Section */
.counter-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0 0;
    text-align: left;
}

.counter-item {
    background: rgba(37, 37, 69, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.25rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.counter-item:hover {
    transform: translateY(-5px);
    background: rgba(37, 37, 69, 0.9);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.counter-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(74, 137, 220, 0.2), rgba(0, 212, 255, 0.2));
    color: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.counter-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.counter-label {
    color: var(--text-muted);
    margin-top: 0.25rem;
    font-size: 0.85rem;
    font-weight: 500;
}

@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
    .hero-content { margin: 0 auto; }
    .hero-btns { justify-content: center; }
    .mockup-chat { max-width: 500px; margin: 0 auto; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .pricing-card.featured { transform: scale(1); }
    .hero h1 { font-size: 2.5rem; }
    .why-us { padding: 2rem; }
}
