/**
 * Home Page Styles
 * Specific styles for the landing page
 */

.hero-content {
    position: relative;
    z-index: 3;
    color: white;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: var(--font-weight-extrabold);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* Talk to Arya Button - Deep red variant to match logo alternate color */
.arya-btn {
    -webkit-tap-highlight-color: transparent;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 20px 40px;
    border: 0;
    border-radius: 44px;
    cursor: pointer;
    user-select: none;
    font: 600 18px/1 "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--theme-text-inverse);
    letter-spacing: 0.4px;
    /* Use the alternate magenta brand color for this CTA (with a fallback to danger) */
    background:
        radial-gradient(120% 180% at 70% 20%, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 60%),
        linear-gradient(180deg, var(--theme-alternate-magenta, var(--theme-danger)) 0%, var(--theme-alternate-magenta, var(--theme-danger)) 100%);
    box-shadow:
        0 16px 44px rgba(var(--theme-alternate-magenta-rgb, 239, 68, 68), 0.20),
        0 2px 6px rgba(0, 0, 0, 0.25),
        inset 0 2px 6px rgba(255, 255, 255, 0.06),
        inset 0 -8px 18px rgba(0, 0, 0, 0.45);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    isolation: isolate;
    overflow: hidden;
}

.arya-btn::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    z-index: -1;
    /* Subtle glowing ring using the danger color */
    background: conic-gradient(
        from 0deg,
        rgba(255,255,255,0.02) 0deg,
        rgba(255,255,255,0.02) 40deg,
        rgba(255,255,255,0.02) 90deg,
        rgba(255,255,255,0.02) 140deg,
        rgba(255,255,255,0.02) 200deg,
        rgba(255,255,255,0.02) 360deg
    );
    filter: blur(2px) brightness(0.9) saturate(120%);
    opacity: 0.7;
    transition: opacity 0.18s ease;
}

.arya-btn::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 45%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 1;
}

.arya-btn span {
    position: relative;
    z-index: 2;
}

.arya-btn:hover {
    transform: translateY(2px) scale(0.992);
    box-shadow:
        0 12px 34px rgba(var(--theme-alternate-magenta-rgb, 239, 68, 68), 0.22),
        0 2px 6px rgba(0, 0, 0, 0.28),
        inset 0 6px 18px rgba(0, 0, 0, 0.55),
        inset 0 -2px 5px rgba(255, 255, 255, 0.04);
}

.arya-btn:hover::before {
    opacity: 0.95;
}

.arya-btn:active {
    transform: translateY(6px) scale(0.98);
    box-shadow:
        0 6px 18px rgba(var(--theme-alternate-magenta-rgb, 239, 68, 68), 0.34),
        inset 0 10px 22px rgba(0, 0, 0, 0.72),
        inset 0 -1px 3px rgba(255, 255, 255, 0.03);
}

/* Sheen animation effect */
@keyframes sheen {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    20% {
        opacity: 0.5;
    }
    100% {
        transform: translateX(200%);
        opacity: 0;
    }
}

.arya-btn i {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0) 20%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 80%,
        transparent 100%
    );
    z-index: 2;
    opacity: 0;
}

.arya-btn:hover i {
    animation: sheen 0.8s ease-out;
}

@media (prefers-reduced-motion: reduce) {
    .arya-btn,
    .arya-btn::before,
    .arya-btn i {
        transition: none !important;
        animation: none !important;
    }
}

.hero-image {
    position: relative;
    z-index: 2;
    margin-top: var(--spacing-xl);
}

.hero-image img {
    max-width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Floating themed toast used for small contextual hints (near CTA) */
/* toast removed per user request */

/* Stats Bar */
.stats-bar {
    background: var(--theme-bg-primary);
    padding: var(--spacing-xl) 0;
    margin-top: -40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 3;
    overflow: hidden; /* Contain hover wave animation */
    --wave-width: 380px;
    --wave-height: 150%;
    --wave-bottom-offset: -35%;
    --wave-right-offset: -220px;
    --wave-color-start: rgba(var(--theme-alternate-magenta-rgb), 0.28);
    --wave-color-end: rgba(var(--theme-primary-rgb), 0.12);
    --wave-start-translate: 90%;
    --wave-mid-translate: -320%;
    --wave-end-translate: -380%;
    --wave-duration: 3.2s;
    --wave-easing: cubic-bezier(0.6, 0, 0.4, 1);
    --wave-blur-start: 16px;
    --wave-blur-mid: 12px;
    --wave-blur-end: 18px;
    --wave-opacity-start: 1;
    --wave-opacity-mid: 1;
    --wave-opacity-end: 0;
    --wave-overlay-z-index: 1;
}

.stats-bar > * {
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
    padding: var(--spacing-sm);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: var(--font-weight-extrabold);
    background: var(--theme-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.stat-label {
    color: var(--theme-text-secondary);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

/* Sections */
.voice-widget-section {
    padding: 96px 0;
    background: var(--theme-bg-secondary);
}

.voice-widget-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 1.2rem;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: var(--radius-round);
    background: rgba(var(--theme-primary-rgb), 0.12);
    color: var(--theme-primary);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-sm);
}

.voice-widget-title {
    font-size: clamp(2.05rem, 3.1vw, 2.85rem);
    font-weight: var(--font-weight-semibold);
    letter-spacing: -0.01em;
    color: var(--theme-text-primary);
    margin-bottom: var(--spacing-sm);
}

.voice-widget-subtitle {
    color: var(--theme-text-secondary);
    font-size: 1.05rem;
    margin-bottom: var(--spacing-md);
}

.voice-widget-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--spacing-lg);
    display: grid;
    gap: var(--spacing-sm);
}

.voice-widget-benefits li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    color: var(--theme-text-secondary);
    line-height: 1.6;
}

.voice-widget-benefits i {
    color: var(--theme-success);
    margin-top: 0.25rem;
}

.voice-widget-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.voice-widget-card {
    background: var(--theme-bg-primary);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--theme-border);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    isolation: isolate;
    --wave-width: 360px;
    --wave-height: 170%;
    --wave-bottom-offset: -42%;
    --wave-right-offset: -250px;
    --wave-color-start: rgba(var(--theme-alternate-magenta-rgb), 0.22);
    --wave-color-end: rgba(var(--theme-primary-rgb), 0.12);
    --wave-start-translate: 80%;
    --wave-mid-translate: -320%;
    --wave-end-translate: -420%;
    --wave-duration: 3.2s;
    --wave-easing: cubic-bezier(0.6, 0, 0.4, 1);
    --wave-overlay-z-index: 1;
}

.voice-widget-card > * {
    position: relative;
    z-index: 2;
}

.voice-widget-preview {
    display: flex;
    justify-content: center;
}

.voice-widget-browser {
    width: 100%;
    max-width: 420px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--theme-border);
    background: var(--theme-bg-secondary);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.voice-widget-browser-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1rem;
    background: var(--theme-bg-primary);
    border-bottom: 1px solid var(--theme-border);
    font-size: 0.85rem;
    color: var(--theme-text-muted);
}

.voice-widget-browser-bar .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.voice-widget-browser-bar .dot-red {
    background: rgba(var(--theme-danger-rgb), 0.8);
}

.voice-widget-browser-bar .dot-yellow {
    background: rgba(var(--theme-warning-rgb), 0.8);
}

.voice-widget-browser-bar .dot-green {
    background: rgba(var(--theme-success-rgb), 0.8);
}

.voice-widget-url {
    margin-left: auto;
    font-weight: var(--font-weight-medium);
}

.voice-widget-browser-body {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.voice-widget-body-content h3 {
    font-size: 1.35rem;
    font-weight: var(--font-weight-semibold);
    color: var(--theme-text-primary);
    margin-bottom: var(--spacing-xs);
}

.voice-widget-body-content p {
    margin: 0;
    color: var(--theme-text-secondary);
    line-height: 1.7;
}

.voice-widget-button {
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.85rem 1.4rem;
    border-radius: var(--radius-full);
    background: var(--theme-gradient-primary);
    color: var(--theme-text-inverse);
    font-weight: var(--font-weight-semibold);
    box-shadow: 0 16px 32px rgba(var(--theme-primary-rgb), 0.25);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
}

.voice-widget-snippet {
    background: rgba(var(--theme-primary-rgb), 0.08);
    border: 1px solid rgba(var(--theme-primary-rgb), 0.15);
    border-radius: var(--radius-xl);
    padding: var(--spacing-md);
}

.voice-widget-snippet pre {
    margin: 0 0 var(--spacing-xs);
    background: var(--theme-bg-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-sm) var(--spacing-md);
    overflow-x: auto;
    font-size: 0.9rem;
}

.voice-widget-snippet code {
    color: var(--theme-text-primary);
    font-family: "Fira Code", "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.snippet-label {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: var(--font-weight-semibold);
    color: var(--theme-primary);
    margin-bottom: var(--spacing-xs);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.snippet-help {
    margin: 0;
    font-size: 0.85rem;
    color: var(--theme-text-muted);
}


.intelligent-layer-section {
    position: relative;
    padding: 84px 0;
    background: var(--theme-bg-primary);
    overflow: hidden;
}

.intelligent-layer-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(110% 110% at 88% 4%, rgba(var(--theme-primary-rgb), 0.1), transparent 60%);
    pointer-events: none;
}

.intelligent-layer-compact {
    position: relative;
    background: var(--theme-bg-secondary);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--theme-border);
    padding: clamp(2.4rem, 5vw, 3.2rem);
    box-shadow: var(--shadow-lg);
    display: grid;
    gap: var(--spacing-lg);
    overflow: hidden;
}

.intelligent-layer-compact::after {
    content: '';
    position: absolute;
    inset: -35% -8% auto;
    height: 240px;
    background: radial-gradient(48% 48% at 80% 18%, rgba(var(--theme-primary-rgb), 0.18), transparent 72%);
    pointer-events: none;
    opacity: 0.65;
}

.intelligent-layer-compact > * {
    position: relative;
    z-index: 1;
}

.intelligent-layer-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 1.05rem;
    border-radius: var(--radius-round);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: var(--font-weight-semibold);
    background: rgba(var(--theme-primary-rgb), 0.12);
    color: var(--theme-primary);
}

.intelligent-layer-title {
    margin: 0;
    font-size: clamp(1.85rem, 2.6vw, 2.4rem);
    font-weight: var(--font-weight-extrabold);
    color: var(--theme-text-primary);
    letter-spacing: -0.01em;
}


.intelligent-layer-copy {
    row-gap: var(--spacing-lg);
}

.intelligent-layer-copy p {
    margin: 0;
    color: var(--theme-text-secondary);
    line-height: 1.75;
    font-size: 1.05rem;
}

.intelligent-layer-channel-pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.channel-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-full);
    background: rgba(var(--theme-primary-rgb), 0.12);
    color: var(--theme-primary);
    font-size: 0.85rem;
    font-weight: var(--font-weight-medium);
}

.call-routing-section {
    padding: 72px 0;
    background: var(--theme-bg-primary);
}

.call-routing-shell {
    background: var(--theme-bg-secondary);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--theme-border);
    padding: var(--spacing-xl);
    display: grid;
    gap: var(--spacing-lg);
}

.call-routing-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 1rem;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-radius: var(--radius-round);
    background: rgba(var(--theme-primary-rgb), 0.12);
    color: var(--theme-primary);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-sm);
}

.call-routing-title {
    font-size: clamp(1.6rem, 2.4vw, 2.1rem);
    font-weight: var(--font-weight-semibold);
    color: var(--theme-text-primary);
    margin-bottom: var(--spacing-xs);
}

.call-routing-copy {
    color: var(--theme-text-secondary);
    margin-bottom: var(--spacing-sm);
    max-width: 540px;
}

.call-routing-note {
    font-size: 0.85rem;
    color: var(--theme-text-muted);
}

.call-routing-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--spacing-md);
}

.call-routing-highlight {
    background: var(--theme-bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--spacing-md);
    border: 1px solid var(--theme-border);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.call-routing-highlight-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-round);
    background: rgba(var(--theme-primary-rgb), 0.12);
    color: var(--theme-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.call-routing-highlight h4 {
    font-size: 1rem;
    margin: 0;
    color: var(--theme-text-primary);
    font-weight: var(--font-weight-semibold);
}

.call-routing-highlight p {
    margin: 0;
    color: var(--theme-text-secondary);
    line-height: 1.5;
}

.call-routing-cta {
    display: inline-flex;
    gap: var(--spacing-sm);
}

.features-section,
.pricing-section {
    padding: 100px 0;
    background: var(--theme-bg-secondary);
}

.pricing-section {
    padding-top: 120px; /* Extra space for "Most Popular" badge */
}

.how-it-works,
.testimonials-section {
    padding: 100px 0;
    background: var(--theme-bg-primary);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    position: relative;
    z-index: 2; /* Ensure section title is above card badges */
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: var(--font-weight-extrabold);
    margin-bottom: var(--spacing-sm);
}

.section-title p {
    font-size: 1.1rem;
    color: var(--theme-text-secondary);
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: var(--theme-gradient-primary);
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: var(--font-weight-extrabold);
    margin-bottom: var(--spacing-sm);
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.cta-section .btn-outline-custom {
    border-color: white;
    color: white;
    background: transparent;
}

.cta-section .btn-outline-custom:hover {
    background: white;
    color: var(--theme-primary);
}

.cta-section .btn-primary-custom {
    background: white;
    color: var(--theme-primary);
}

.cta-section .btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.trust-indicators {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    opacity: 0.9;
}

.trust-item i {
    font-size: 1.5rem;
}

/* Mid-section card variants (page-specific) */

.card-mid {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    background: var(--theme-bg-primary);
    color: var(--theme-text-primary);
}

.card-mid > * { position: relative; z-index: 1; }

.card-mid__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    margin-bottom: 1rem;
}

/* Purple-leaning card: keep white/background, add purple shadow and bottom-right accent */
.card-mid--purple {
    box-shadow:
        0 28px 72px rgba(var(--theme-primary-rgb), 0.24),
        0 12px 32px rgba(var(--theme-primary-rgb), 0.18),
        0 2px 12px rgba(var(--theme-primary-rgb), 0.15);
}
.card-mid--purple::after {
    content: '';
    position: absolute;
    right: -8%;
    bottom: -12%;
    width: 60%;
    height: 60%;
    background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.14), rgba(var(--theme-primary-rgb), 0.06));
    transform: rotate(18deg);
    border-radius: 24px;
    z-index: 0;
    pointer-events: none;
}

/* Magenta-leaning card: white background, magenta shadow and bottom-right accent */
.card-mid--magenta {
    box-shadow:
        0 28px 72px rgba(var(--theme-alternate-magenta-rgb), 0.25),
        0 12px 32px rgba(var(--theme-alternate-magenta-rgb), 0.18),
        0 2px 12px rgba(var(--theme-alternate-magenta-rgb), 0.14);
}
.card-mid--magenta::after {
    content: '';
    position: absolute;
    right: -8%;
    bottom: -12%;
    width: 60%;
    height: 60%;
    background: linear-gradient(135deg, rgba(var(--theme-alternate-magenta-rgb), 0.18), rgba(var(--theme-alternate-magenta-rgb), 0.07));
    transform: rotate(18deg);
    border-radius: 24px;
    z-index: 0;
    pointer-events: none;
}

.card-mid:hover { transform: translateY(-6px); }

.card-mid--purple:hover {
    box-shadow:
        0 34px 86px rgba(var(--theme-primary-rgb), 0.26),
        0 16px 42px rgba(var(--theme-primary-rgb), 0.2),
        0 4px 14px rgba(var(--theme-primary-rgb), 0.18);
}

.card-mid--magenta:hover {
    box-shadow:
        0 34px 86px rgba(var(--theme-alternate-magenta-rgb), 0.28),
        0 16px 42px rgba(var(--theme-alternate-magenta-rgb), 0.2),
        0 4px 14px rgba(var(--theme-alternate-magenta-rgb), 0.16);
}


/* Responsive */
@media (max-width: 992px) {
    .voice-widget-section {
        padding: 80px 0;
    }

    .voice-widget-card {
        padding: var(--spacing-md);
    }

    .intelligent-layer-section {
        padding: 72px 0;
    }

    .intelligent-layer-compact {
        padding: var(--spacing-xl);
    }

    .call-routing-section {
        padding: 64px 0;
    }

    .call-routing-shell {
        padding: var(--spacing-lg);
    }

    .call-routing-highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }

    .voice-widget-section {
        padding: 72px 0;
    }

    .voice-widget-title {
        font-size: 2.2rem;
    }

    .voice-widget-browser-body {
        padding: var(--spacing-md);
        gap: var(--spacing-md);
    }

    .voice-widget-button {
        align-self: stretch;
        justify-content: center;
    }

    .voice-widget-actions {
        width: 100%;
        justify-content: center;
    }

    .intelligent-layer-compact {
        padding: var(--spacing-lg);
    }

    .intelligent-layer-title {
        font-size: 1.9rem;
        text-align: center;
    }



    .intelligent-layer-channel-pills {
        justify-content: center;
    }

    .call-routing-section {
        padding: 56px 0;
    }

    .call-routing-shell {
        padding: var(--spacing-md);
    }

    .call-routing-cta {
        width: 100%;
        justify-content: center;
    }

    .call-routing-highlights {
        grid-template-columns: 1fr;
    }
}
