/* 
   ION Landing Page - Premium SaaS Aesthetic
   Theme: Clean, Minimalist, Airy, Soft Gradients
*/

:root {
    /* Colors */
    --color-bg: #FAFAFA;
    --color-bg-secondary: #F4F4F5;
    --color-surface: #FFFFFF;

    --color-text-primary: #18181B;
    /* Zinc 900 */
    --color-text-secondary: #52525B;
    /* Zinc 600 */
    --color-text-tertiary: #A1A1AA;
    /* Zinc 400 */

    /* Brand Colors - Soft Indigo/Blue */
    --color-primary: #6366F1;
    --color-primary-dark: #4F46E5;
    --color-primary-light: #818CF8;

    /* Accents (Pastel Gradients) */
    --gradient-primary: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    --gradient-subtle: linear-gradient(135deg, #E0E7FF 0%, #FAE8FF 100%);
    --gradient-glow: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.05) 50%, transparent 70%);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.03);

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3.5rem;
    /* Hero */

    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text-secondary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-text-primary);
    font-weight: 700;
    line-height: 1.2;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: var(--font-size-base);
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-sm {
    padding: 8px 20px;
    font-size: var(--font-size-sm);
}

.btn-lg {
    padding: 16px 32px;
    font-size: var(--font-size-lg);
}

.btn-primary {
    background: var(--gradient-primary);
    /* Use gradient for premium feel */
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background-color: white;
    color: var(--color-text-primary);
    border: 1px solid #E4E4E7;
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background-color: #F8FAFC;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #D4D4D8;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(250, 250, 250, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

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

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

.brand-logo {
    height: 40px;
    width: auto;
    border-radius: 8px;
    /* Slight rounding on the logo if it's square */
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
}

.nav-link:hover {
    color: var(--color-primary);
}

.menu-toggle {
    display: none;
    /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text-primary);
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Hero Content */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #EEF2FF;
    color: var(--color-primary-dark);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 24px;
    border: 1px solid #E0E7FF;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

.hero-title {
    font-size: var(--font-size-4xl);
    /* Fallback */
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatars {
    display: flex;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -10px;
}

.avatar:first-child {
    margin-left: 0;
}

.hero-trust p {
    font-size: 0.875rem;
    color: var(--color-text-tertiary);
    font-weight: 500;
}

/* Hero Visual (Mockup) */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.visual-card {
    position: relative;
    z-index: 2;
    background: var(--color-surface);
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    padding: 20px;
    width: 100%;
    max-width: 400px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: linear-gradient(to bottom right, #ffffff, #f8fafc);
}

/* Chat Interface Mockup */
.chat-interface {
    background: #FFFFFF;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #E4E4E7;
}

.chat-header {
    background: #F4F4F5;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #E4E4E7;
}

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

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

.chat-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text-primary);
}

.chat-status {
    font-size: 0.75rem;
    color: var(--color-primary);
    font-weight: 500;
}

.chat-body {
    padding: 20px;
    background-color: #FDFCFC;
    /* Very subtle chat bg pattern placeholder */
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 340px;
}

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

.msg-user {
    align-self: flex-end;
    background-color: #DCF8C6;
    /* Whatsapp-ish User Color - but customized for premium feel */
    background-color: #E0E7FF;
    /* Actually using our brand pastel */
    color: var(--color-text-primary);
    border-bottom-right-radius: 4px;
}

.msg-bot {
    align-self: flex-start;
    background-color: white;
    border: 1px solid #E4E4E7;
    color: var(--color-text-secondary);
    border-bottom-left-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.msg-meta {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #F4F4F5;
    font-size: 0.75rem;
    color: var(--color-text-tertiary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.check-icon {
    color: #10B981;
    /* Success Green */
}

.msg-typing span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #A1A1AA;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
    margin: 0 2px;
}

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

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

@keyframes typing {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* Glow Effects */
.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.6;
}

.glow-1 {
    width: 200px;
    height: 200px;
    background: #C4B5FD;
    /* Violet */
    top: -40px;
    right: -40px;
}

.glow-2 {
    width: 250px;
    height: 250px;
    background: #A5B4FC;
    /* Indigo */
    bottom: -50px;
    left: -50px;
}

/* Stats section */
.stats-bar {
    padding: 32px 0;
    border-bottom: 1px solid #F4F4F5;
    background: white;
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.stat-item i {
    font-size: 1.5rem;
    color: var(--color-primary);
}

.stat-divider {
    width: 1px;
    height: 24px;
    background-color: #E4E4E7;
    margin-top: 4px;
    /* visual align */
}

/* Responsive */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-subtitle {
        margin: 0 auto 32px;
    }

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

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

    .hero-visual {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {

    .nav-list,
    .header-actions .btn {
        display: none;
        /* Mobile menu logic needed later */
    }

    .menu-toggle {
        display: block;
    }

    .stat-divider {
        display: none;
    }


    .stats-container {
        gap: 20px;
        flex-direction: column;
        align-items: center;
    }
}

/* Sections & Common */
.section {
    padding: 100px 0;
}

.section-alt {
    background-color: var(--color-bg-secondary);
}

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

.badge-subtle {
    display: inline-block;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background-color: #F1F5F9;
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title {
    font-size: var(--font-size-3xl);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.feature-card {
    background: white;
    padding: 32px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
    border-color: rgba(99, 102, 241, 0.1);
}

.feature-icon-wrapper {
    width: 56px;
    height: 56px;
    background: var(--gradient-subtle);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--color-primary);
    font-size: 1.75rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

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

/* How It Works (Steps) */
.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.step-card {
    flex: 1;
    background: white;
    padding: 32px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.step-number {
    font-size: 4rem;
    font-weight: 800;
    color: #F1F5F9;
    position: absolute;
    top: -10px;
    right: -10px;
    line-height: 1;
    z-index: 0;
}

.step-content {
    position: relative;
    z-index: 1;
}

.step-content h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

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

.step-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    /* Rough height align */
    color: #CBD5E1;
    font-size: 1.5rem;
}

/* Responsive adjustments for Features and Steps */
@media (max-width: 900px) {
    .steps-container {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .step-connector {
        transform: rotate(90deg);
        height: auto;
        margin: -20px 0;
    }

    .step-card {
        width: 100%;
        max-width: 500px;
    }
}

/* Use Cases Section */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.use-case-card {
    background: #F8FAFC;
    padding: 24px;
    border-radius: 16px;
    text-align: left;
    transition: background 0.2s ease;
}

.use-case-card:hover {
    background: white;
    box-shadow: var(--shadow-sm);
}

.uc-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 1.25rem;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

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

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

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    align-items: start;
}

.price-card {
    background: white;
    border-radius: 24px;
    padding: 32px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: var(--shadow-sm);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.price-card.recommended {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-card);
    transform: scale(1.05);
    z-index: 2;
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.plan-name {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

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

.plan-desc {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.plan-features {
    margin-top: auto;
    /* Push features to top, button to bottom if fixed height, or just spacing */
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.plan-features li i {
    color: var(--color-primary);
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

/* Responsive Pricing */
@media (max-width: 1000px) {
    .price-card.recommended {
        transform: scale(1);
        z-index: 1;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #E4E4E7;
}

.faq-item:first-child {
    border-top: 1px solid #E4E4E7;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 24px 0;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: var(--color-primary);
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--color-text-tertiary);
}

.faq-question.active i {
    transform: rotate(180deg);
    color: var(--color-primary);
}

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

.faq-answer p {
    padding-bottom: 24px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: var(--gradient-subtle);
}

.cta-box {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-box h2 {
    font-size: var(--font-size-3xl);
    /* fallback */
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.cta-box p {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
}

/* Footer */
.site-footer {
    background: white;
    padding: 60px 0 30px;
    border-top: 1px solid #E4E4E7;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand p {
    margin-top: 16px;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

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

.link-group h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.link-group ul li {
    margin-bottom: 12px;
}

.link-group ul li a {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.link-group ul li a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid #F4F4F5;
    text-align: center;
    color: var(--color-text-tertiary);
    font-size: 0.875rem;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links {
        gap: 40px;
        justify-content: space-between;
    }
}