/* ==========================================================================
   HOME PAGE - Homepage-Specific Styles
   ========================================================================== */

/* ==========================================================================
   DEMO BUTTON WRAPPER & INFO PANEL
   ========================================================================== */

.demo-btn-wrapper {
    position: relative;
    display: inline-flex;
    z-index: 1450;
}

.demo-btn-wrapper .btn {
    height: 100%;
}

/* Demo info panel - hero section only */
.demo-info-panel {
    position: absolute;
    inset: 0;
    z-index: 15;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.demo-info-panel.active {
    opacity: 1;
    z-index: 1400;
}

.demo-info-panel-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #00DB4F 0%, #00c445 50%, #00a83a 100%);
    clip-path: circle(0% at var(--origin-x, 50%) var(--origin-y, 50%));
    transition: clip-path 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.demo-info-panel-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 40%);
    pointer-events: none;
}

.demo-info-panel.active .demo-info-panel-bg {
    clip-path: circle(150% at var(--origin-x, 50%) var(--origin-y, 50%));
}

.demo-info-panel-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 4rem 8%;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease 0.2s;
}

.demo-info-panel.active .demo-info-panel-content {
    opacity: 1;
    pointer-events: auto;
}

.demo-info-main {
    transform: translateX(-20px);
    opacity: 0;
    transition: all 0.4s ease 0.25s;
}

.demo-info-panel.active .demo-info-main {
    transform: translateX(0);
    opacity: 1;
}

.demo-info-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(0, 0, 0, 0.55);
    margin-bottom: 1.25rem;
    padding: 8px 14px 8px 10px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 100px;
}

.demo-info-eyebrow svg {
    width: 18px;
    height: 18px;
    stroke: #000;
    opacity: 0.7;
}

.demo-info-panel h3 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #000;
    line-height: 1.05;
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
}

.demo-info-panel h3 span {
    display: block;
    font-size: 0.75em;
    color: rgba(0, 0, 0, 0.5);
    font-weight: 500;
    margin-top: 0.25rem;
    letter-spacing: -0.01em;
}

.demo-info-subtext {
    font-size: 1.1rem;
    color: rgba(0, 0, 0, 0.65);
    line-height: 1.7;
    max-width: 400px;
}

.demo-info-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.demo-info-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
    transform: translateX(30px);
    opacity: 0;
    transition: all 0.4s ease;
}

.demo-info-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.demo-info-panel.active .demo-info-card {
    transform: translateX(0);
    opacity: 1;
}

.demo-info-panel.active .demo-info-card:nth-child(1) { transition-delay: 0.3s; }
.demo-info-panel.active .demo-info-card:nth-child(2) { transition-delay: 0.4s; }
.demo-info-panel.active .demo-info-card:nth-child(3) { transition-delay: 0.5s; }

.demo-info-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #00DB4F 0%, #00a83a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 219, 79, 0.3);
}

.demo-info-card-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
    stroke-width: 2.5;
}

.demo-info-card-text h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.demo-info-card-text p {
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.6);
    margin: 0;
    line-height: 1.4;
}

.demo-info-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.3s ease 0.6s;
}

.demo-info-panel.active .demo-info-hint {
    opacity: 1;
}

.demo-info-hint svg {
    width: 14px;
    height: 14px;
    animation: pulseOut 2s ease-in-out infinite;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    overflow: hidden;
    padding: 160px 0 80px;
}

.hero > .container {
    position: relative;
    z-index: 1300;
}

/* Concentric Arcs SVG Background */
.hero-arcs {
    position: absolute;
    top: 50%;
    left: 30%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    pointer-events: none;
    z-index: 1;
}

.hero-arcs svg {
    width: 100%;
    height: 100%;
}

.hero-arcs .arc {
    fill: none;
    stroke-linecap: round;
}

.hero-arcs .arc-1 {
    stroke: rgba(0, 128, 255, 0.25);
    stroke-width: 3;
    stroke-dasharray: 1200 1313;
    animation: arcSpin1 30s linear infinite;
}

.hero-arcs .arc-2 {
    stroke: rgba(0, 128, 255, 0.20);
    stroke-width: 3;
    stroke-dasharray: 900 1111;
    animation: arcSpin2 40s linear infinite;
    animation-delay: -15s;
}

.hero-arcs .arc-3 {
    stroke: rgba(0, 128, 255, 0.15);
    stroke-width: 2;
    stroke-dasharray: 700 808;
    animation: arcSpin3 50s linear infinite;
    animation-delay: -30s;
}

.hero-arcs .arc-4 {
    stroke: rgba(0, 128, 255, 0.12);
    stroke-width: 2;
    stroke-dasharray: 500 505;
    animation: arcSpin4 60s linear infinite;
    animation-delay: -45s;
}

.hero-arcs .arc-5 {
    stroke: rgba(0, 219, 79, 0.1);
    stroke-width: 1.5;
    stroke-dasharray: 250 253;
    animation: arcSpin5 25s linear infinite;
    animation-delay: -10s;
}

/* Hero Grid */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

/* Demo panel active states */
.hero.demo-active > .container {
    z-index: 1500;
}

.hero.demo-active .hero-grid {
    z-index: 20;
}

.hero.demo-active .hero-badge,
.hero.demo-active .hero-content > h1,
.hero.demo-active .hero-content > p,
.hero.demo-active .hero-stats,
.hero.demo-active .hero-image,
.hero.demo-active .btn-secondary {
    opacity: 0 !important;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.hero.demo-active .demo-btn-wrapper .btn {
    background: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}

.hero.demo-active .demo-btn-wrapper .btn:hover {
    background: #1a1a1a !important;
    transform: scale(1.08);
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
    color: white;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: arcPulse 2s infinite;
}

.hero h1 {
    color: white;
    margin-bottom: 1.5rem;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--accent-green-light), var(--accent-green));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: clamp(1.1rem, 1.8vw, 1.25rem);
    opacity: 0.9;
    max-width: 500px;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: stretch;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stat {
    text-align: left;
}

.hero-stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.hero-stat-value.count-up {
    opacity: 0;
}

.hero-stat-value.count-up.animated {
    animation: countUp 0.6s ease forwards;
}

.hero-stat-label {
    font-size: 0.9rem;
    opacity: 0.7;
    font-weight: 500;
}

/* Hero Image */
.hero-image {
    position: relative;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-image-wrapper {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.hero-image img {
    border-radius: var(--radius);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4), var(--shadow-glow-blue);
    transition: var(--transition-slow);
}

.hero-image-wrapper:hover img {
    transform: scale(1.02);
}

/* ==========================================================================
   BENTO GRID - FEATURES
   ========================================================================== */

.features {
    padding: 6rem 0;
    background: var(--bg-light);
}

.bento-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto;
    gap: 1.25rem;
    grid-template-areas:
        "left right";
}

.bento-column-left {
    grid-area: left;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.bento-column-right {
    grid-area: right;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.bento-row-bottom {
    grid-area: bottom;
    display: flex;
    gap: 1.25rem;
}

.bento-row-bottom .bento-card {
    flex: 1;
}

.bento-row-inline {
    display: flex;
    gap: 1.25rem;
}

.bento-row-inline .bento-card {
    flex: 1;
}

.bento-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.15s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
    will-change: transform;
    opacity: 0;
    transform: translateY(20px);
}

.bento-card.revealed {
    animation: fadeInUp 0.6s ease forwards;
}

.bento-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-green);
    transform: translateY(-4px);
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M4 4 L4 28 L12 20 L20 28 L24 24 L16 16 L24 8 L4 4Z' fill='%23000' stroke='%23fff' stroke-width='1'/%3E%3C/svg%3E") 4 4, auto;
}

.bento-card.large {
    padding: 2rem;
}

.bento-card.medium-v {
    position: relative;
}

.bento-card.medium-v .bento-feature-list {
    padding-right: 45%;
}

.bento-card.medium-v .bento-card-image {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 42%;
}

.bento-card.medium-v .bento-card-image img {
    width: 100%;
    display: block;
}

/* Video CTA */
.video-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: var(--primary-blue);
    color: white;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
    width: fit-content;
}

.video-cta:hover {
    background: #0066cc;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 128, 255, 0.3);
}

.video-cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.video-cta-icon svg {
    width: 12px;
    height: 12px;
    margin-left: 1px;
}

/* Bento card content */
.bento-card-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 128, 255, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.bento-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

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

.bento-card-image {
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 1.5rem;
}

.bento-card-image img {
    width: 100%;
    transition: var(--transition-base);
}

.bento-card:hover .bento-card-image img {
    transform: scale(1.02);
}

/* Feature list in bento cards */
.bento-feature-list {
    list-style: none;
    margin-top: 1rem;
}

.bento-feature-list li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.bento-feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background: rgba(0, 219, 79, 0.15);
    border-radius: 4px;
}

.bento-feature-list li::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 50%;
    width: 8px;
    height: 5px;
    border: 2px solid var(--accent-green);
    border-top: none;
    border-right: none;
    transform: translateY(-60%) rotate(-45deg);
}

/* ==========================================================================
   COMPARISON SECTION
   ========================================================================== */

.comparison {
    padding: 6rem 0;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.comparison::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 128, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 128, 255, 0.1) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
    pointer-events: none;
}

.comparison .section-header h2,
.comparison .section-header p {
    color: white;
}

.comparison .section-header p {
    color: rgba(255, 255, 255, 0.7);
}

.comparison-table-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.comparison-table-header {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    color: white;
    padding: 1.5rem 0;
    font-weight: 600;
    font-size: 1rem;
    border-bottom: 1px solid rgba(0, 128, 255, 0.3);
    border-right: 1px solid rgba(0, 128, 255, 0.15);
    position: relative;
}

.comparison-table-header::before {
    content: '';
    position: absolute;
    left: 42.86%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(0, 128, 255, 0.2);
}

.comparison-table-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 128, 255, 0.6), transparent);
}

.comparison-table-header span {
    position: relative;
}

.comparison-table-header span:nth-child(3)::before {
    content: '';
    position: absolute;
    left: 0;
    top: -1.5rem;
    bottom: -1.5rem;
    width: 1px;
    background: rgba(0, 128, 255, 0.2);
}

.comparison-table-header span:nth-child(2),
.comparison-table-header span:nth-child(3) {
    text-align: center;
}

.comparison-table-header span:nth-child(3) {
    color: var(--accent-green);
    text-shadow: 0 0 20px rgba(0, 219, 79, 0.5);
}

.comparison-section-title {
    padding: 1.5rem 0 0.75rem;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 12px;
}

.comparison-section-title::before {
    content: '';
    width: 20px;
    height: 2px;
    background: var(--accent-green);
    border-radius: 1px;
}

.comparison-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-right: 1px solid rgba(0, 128, 255, 0.15);
    align-items: center;
    transition: var(--transition-base);
    position: relative;
}

.comparison-row::before,
.comparison-row::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(0, 128, 255, 0.15);
}

.comparison-row::before {
    left: 42.86%;
}

.comparison-row::after {
    left: 71.43%;
}

.comparison-row:hover {
    background: linear-gradient(90deg, transparent, rgba(0, 128, 255, 0.05), transparent);
}

.comparison-feature {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

.comparison-safe,
.comparison-fieldbase {
    text-align: center;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
}

.comparison-safe {
    color: rgba(255, 255, 255, 0.35);
    font-weight: 400;
}

.comparison-fieldbase {
    color: var(--accent-green);
    font-weight: 600;
    text-shadow: 0 0 15px rgba(0, 219, 79, 0.4);
}

.comparison-fieldbase .check {
    display: inline-block;
    margin-left: 4px;
    opacity: 0;
    transform: scale(0.5);
    transition: var(--transition-base);
}

.comparison-fieldbase .check.revealed {
    opacity: 1;
    transform: scale(1);
}

.comparison-cta {
    text-align: center;
    padding: 4rem 2rem 2rem;
    color: white;
    position: relative;
    z-index: 1;
}

.comparison-cta h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.comparison-cta p {
    opacity: 0.7;
    margin-bottom: 1.5rem;
}

.comparison-cta .btn {
    background: var(--accent-green);
    color: var(--dark);
    box-shadow: 0 0 30px rgba(0, 219, 79, 0.3);
}

.comparison-cta .btn:hover {
    box-shadow: 0 0 50px rgba(0, 219, 79, 0.5);
    transform: translateY(-2px);
}

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */

.testimonials {
    padding: 6rem 0;
    background: var(--bg-light);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.testimonial-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: var(--transition-base);
    position: relative;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-blue), var(--accent-green));
    border-radius: var(--radius) 0 0 var(--radius);
    opacity: 0;
    transition: var(--transition-base);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.testimonial-card:hover::before {
    opacity: 1;
}

.testimonial-quote {
    color: var(--primary-blue);
    opacity: 0.2;
    margin-bottom: 0.5rem;
}

.testimonial-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.testimonial-card p strong {
    color: var(--text-primary);
}

.testimonial-author {
    display: flex;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.testimonial-author strong {
    color: var(--primary-blue);
}

/* ==========================================================================
   APP DEMO SECTION
   ========================================================================== */

.app-demo {
    padding: 6rem 0;
    background: white;
}

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

.demo-content h3 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    margin-bottom: 1rem;
}

.demo-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.demo-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
}

.demo-image:hover img {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), var(--shadow-glow-blue);
}

/* ==========================================================================
   RESOURCES SECTION
   ========================================================================== */

.resources {
    padding: 6rem 0;
    background: white;
}

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

.resource-card {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition-base);
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-green);
}

.resource-card-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 128, 255, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.resource-card h3 {
    margin-bottom: 0.75rem;
}

.resource-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.resource-link {
    color: var(--primary-blue);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-base);
}

.resource-link:hover {
    gap: 0.75rem;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */

.cta {
    padding: 6rem 0;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta-arcs {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    pointer-events: none;
    opacity: 0.5;
}

.cta-inner {
    position: relative;
    z-index: 10;
    max-width: 720px;
    margin: 0 auto;
    color: white;
}

.cta h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta .btn {
    background: white;
    color: var(--primary-blue);
}

.cta .btn:hover {
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
   MOBILE ACTION BAR + BOTTOM SHEET
   ========================================================================== */

.mobile-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1400;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: none;
}

.mobile-action-bar.visible {
    transform: translateY(0);
}

.mobile-action-bar-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: var(--container-max);
    margin: 0 auto;
}

.mobile-demo-btn {
    flex: 1;
    text-align: center;
    justify-content: center;
}

.mobile-action-expand {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: rgba(0, 128, 255, 0.1);
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
}

.mobile-action-expand:active {
    background: rgba(0, 128, 255, 0.2);
    transform: scale(0.95);
}

.mobile-action-expand svg {
    transition: transform 0.3s ease;
}

.mobile-action-expand[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

/* Bottom Sheet */
.mobile-bottom-sheet {
    position: fixed;
    inset: 0;
    z-index: 1500;
    pointer-events: none;
    visibility: hidden;
    display: none;
}

.mobile-bottom-sheet.open {
    pointer-events: auto;
    visibility: visible;
}

.bottom-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
}

.mobile-bottom-sheet.open .bottom-sheet-backdrop {
    background: rgba(0, 0, 0, 0.5);
}

.bottom-sheet-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 24px 24px 0 0;
    padding: 0.75rem 1.5rem calc(2rem + env(safe-area-inset-bottom, 0px));
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-bottom-sheet.open .bottom-sheet-content {
    transform: translateY(0);
}

.bottom-sheet-handle {
    width: 40px;
    height: 4px;
    background: var(--gray-300);
    border-radius: 2px;
    margin: 0 auto 1.25rem;
}

.bottom-sheet-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.bottom-sheet-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-green);
    margin-bottom: 0.5rem;
}

.bottom-sheet-eyebrow svg {
    stroke: var(--accent-green);
}

.bottom-sheet-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.25rem;
}

.bottom-sheet-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.bottom-sheet-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.bottom-sheet-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius);
}

.bottom-sheet-card-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    background: rgba(0, 128, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bottom-sheet-card-icon svg {
    stroke: var(--primary-blue);
}

.bottom-sheet-card-text h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 2px;
}

.bottom-sheet-card-text p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

.bottom-sheet-video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    background: linear-gradient(135deg, #0a1628 0%, #0f2847 100%);
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
}

.video-placeholder-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-placeholder-icon svg {
    stroke: rgba(255, 255, 255, 0.8);
    fill: none;
}

.video-placeholder-icon svg polygon {
    fill: rgba(255, 255, 255, 0.8);
}

.bottom-sheet-video-placeholder span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.bottom-sheet-cta {
    width: 100%;
    justify-content: center;
    text-align: center;
}

/* ==========================================================================
   MOBILE TESTIMONIAL CAROUSEL
   ========================================================================== */

.testimonial-carousel {
    display: none;
    overflow: hidden;
}

.testimonial-carousel-track {
    display: flex;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    touch-action: pan-y pinch-zoom;
}

.testimonial-carousel .testimonial-card {
    flex: 0 0 100%;
    min-width: 100%;
    box-sizing: border-box;
    margin: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 1.5rem 0 0;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray-300);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: var(--transition-base);
}

.carousel-dot:hover {
    background: var(--gray-400);
}

.carousel-dot.active {
    background: var(--primary-blue);
    transform: scale(1.25);
}

/* Comparison expand button - hidden on desktop */
.comparison-expand-btn {
    display: none;
}

/* ==========================================================================
   MOBILE FEATURE STACK (Tinder-style cards)
   ========================================================================== */

.mobile-feature-stack-wrapper {
    display: none;
}

.mobile-feature-stack {
    display: none;
}

.mobile-compact-features {
    display: none;
}

/* ==========================================================================
   FLOATING TESTIMONIAL PREVIEW WIDGET
   ========================================================================== */

.testimonial-preview {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 320px;
    z-index: 1350;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.testimonial-preview.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.testimonial-preview-card {
    display: none;
    background: linear-gradient(135deg, #0a1628 0%, #0f2847 100%);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-preview-card.active {
    display: block;
    animation: testimonialFadeIn 0.4s ease;
}

.testimonial-preview-card .preview-quote {
    color: var(--accent-green);
    margin-bottom: 0.5rem;
}

.testimonial-preview-card p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 0.75rem 0;
}

.testimonial-preview-card p strong {
    color: var(--accent-green);
}

.testimonial-preview-card .preview-author {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.testimonial-preview-card .preview-author strong {
    color: white;
}

.testimonial-preview-link {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.testimonial-preview-link.visible {
    opacity: 1;
    pointer-events: auto;
}

.testimonial-preview-link.visible:hover {
    color: var(--accent-green);
}

/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-image {
        order: 2;
        max-width: 600px;
        margin: 0 auto;
    }

    .hero p {
        margin: 0 auto 2rem;
    }

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

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

    .bento-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "left left"
            "right right";
    }

    .bento-row-inline {
        flex-direction: row;
    }

    .demo-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .demo-image {
        max-width: 600px;
        margin: 0 auto;
    }

    /* App Demo section mobile adjustments */
    .demo-content .bento-feature-list {
        text-align: left;
        max-width: 400px;
        margin: 0 auto 1.5rem;
    }
}

@media (max-width: 900px) {
    .demo-info-panel-content {
        grid-template-columns: 1fr;
        padding: 3rem 6%;
        gap: 2rem;
    }

    .demo-info-cards {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .demo-info-card {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .hero-image {
        display: none;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-arcs {
        opacity: 0.3;
        top: -20%;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    /* Hide desktop bento grid, show mobile stack */
    .bento-grid {
        display: none;
    }

    .bento-row-inline {
        flex-direction: column;
    }

    /* GSAP ScrollTrigger stacking cards - pinned section with horizontal swipe */
    /* Section pins while cards animate left one-by-one */

    .mobile-feature-stack-wrapper {
        display: block;
        position: relative;
    }

    .mobile-feature-stack {
        display: block;
        padding-top: 1rem;
    }

    .mobile-stack-container {
        display: grid;
        grid-template-areas: "cards";
        align-items: start;
        min-height: 350px;
    }

    .mobile-stack-card {
        grid-area: cards;
        background: linear-gradient(165deg, #0f2847 0%, #1a3a5c 50%, #0f2847 100%);
        border-radius: 20px;
        padding: 1.5rem;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.1);
        min-height: 280px;
        will-change: transform;
    }

    .mobile-stack-card .bento-card-icon {
        display: none;
    }

    /* Stack cards with z-index - first card on top initially */
    .mobile-stack-card:nth-child(1) { z-index: 4; }
    .mobile-stack-card:nth-child(2) { z-index: 3; }
    .mobile-stack-card:nth-child(3) { z-index: 2; }
    .mobile-stack-card:nth-child(4) { z-index: 1; }

    .mobile-stack-card h3 {
        font-size: 1.35rem;
        margin-bottom: 0.5rem;
        color: white;
        font-weight: 600;
    }

    .mobile-stack-card p {
        font-size: 0.95rem;
        color: rgba(255, 255, 255, 0.75);
        margin-bottom: 1rem;
        line-height: 1.5;
    }

    .mobile-stack-card .bento-feature-list {
        font-size: 0.9rem;
    }

    .mobile-stack-card .bento-feature-list li {
        margin-bottom: 0.5rem;
        color: rgba(255, 255, 255, 0.95);
    }

    .mobile-stack-card .bento-feature-list li span {
        color: rgba(255, 255, 255, 0.95);
    }

    .mobile-stack-card .bento-feature-list svg {
        color: var(--accent-green);
        stroke: var(--accent-green);
    }

    .mobile-stack-card .bento-card-image {
        display: block;
        margin-top: 1rem;
        max-height: 150px;
        overflow: hidden;
        border-radius: var(--radius);
    }

    .mobile-stack-card .bento-card-image img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .mobile-stack-dots {
        display: none; /* Hide dots - scroll drives the animation */
    }

    .mobile-stack-dot {
        display: none;
    }

    .mobile-swipe-hint {
        display: none; /* Hide hint - it's scroll-driven now */
    }

    /* Compact features - full-width rows below the card stack */
    .mobile-compact-features {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1.5rem;
    }

    .mobile-compact-card {
        background: white;
        border-radius: 16px;
        padding: 1.25rem;
        border: 1px solid rgba(0, 0, 0, 0.06);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        display: flex;
        align-items: flex-start;
        gap: 1rem;
    }

    .mobile-compact-card .bento-card-icon {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
        margin-bottom: 0;
        background: rgba(0, 128, 255, 0.1);
        border: 1px solid rgba(0, 128, 255, 0.2);
    }

    .mobile-compact-card .bento-card-icon svg {
        width: 22px;
        height: 22px;
        color: var(--primary-blue);
        stroke: var(--primary-blue);
    }

    .mobile-compact-card-content {
        flex: 1;
    }

    .mobile-compact-card h3 {
        font-size: 1rem;
        margin-bottom: 0.25rem;
        color: var(--dark);
    }

    .mobile-compact-card p {
        font-size: 0.85rem;
        color: var(--text-secondary);
        margin: 0;
        line-height: 1.4;
        overflow: hidden;
    }

    .mobile-compact-card .bento-feature-list,
    .mobile-compact-card .bento-card-image {
        display: none;
    }

    .testimonial-grid {
        display: none;
    }

    .testimonial-carousel {
        display: block;
    }

    .mobile-action-bar {
        display: block;
    }

    .mobile-bottom-sheet {
        display: block;
    }

    .testimonial-preview {
        display: none;
    }

    .comparison::before {
        background-size: 40px 40px;
    }

    .comparison-table-header {
        position: sticky;
        top: 60px;
        z-index: 10;
        grid-template-columns: 1.2fr 1fr 1fr;
        padding: 1rem 0;
        font-size: 0.8rem;
        background: rgba(10, 22, 40, 0.98);
        backdrop-filter: blur(10px);
    }

    .comparison-row {
        grid-template-columns: 1.2fr 1fr 1fr;
        padding: 0.75rem 0;
        font-size: 0.85rem;
    }

    .comparison-row::before,
    .comparison-row::after {
        display: none;
    }

    .comparison-safe,
    .comparison-fieldbase {
        font-size: 0.75rem;
        padding: 0.4rem 0.5rem;
    }

    .comparison-section-title {
        font-size: 0.65rem;
        padding: 1rem 0 0.5rem;
    }

    .comparison-feature {
        font-size: 0.85rem;
    }

    /* Comparison collapse on mobile */
    .comparison-row:not([data-key="true"]) {
        display: none;
    }

    .comparison-section-hidden {
        display: none;
    }

    .comparison-table-wrapper.expanded .comparison-row:not([data-key="true"]) {
        display: grid;
    }

    .comparison-table-wrapper.expanded .comparison-section-hidden {
        display: block;
    }

    .comparison-expand-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding: 1rem;
        margin-top: 1rem;
        background: rgba(0, 128, 255, 0.1);
        border: 1px solid rgba(0, 128, 255, 0.3);
        border-radius: var(--radius);
        color: var(--primary-blue);
        font-size: 0.9rem;
        font-weight: 600;
        cursor: pointer;
        transition: var(--transition-base);
    }

    .comparison-expand-btn:active {
        background: rgba(0, 128, 255, 0.2);
    }

    .comparison-expand-btn svg {
        transition: transform 0.3s ease;
    }

    .comparison-expand-btn[aria-expanded="true"] svg {
        transform: rotate(180deg);
    }

    /* App Demo Section - Mobile Cleanup */
    .app-demo {
        padding: 4rem 0;
    }

    .app-demo .demo-content {
        text-align: left;
    }

    .app-demo .section-header {
        text-align: left;
        margin-bottom: 1.5rem;
    }

    .app-demo .section-header h2 {
        font-size: 1.75rem;
    }

    .app-demo .demo-content h3 {
        font-size: 1.25rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .app-demo .demo-content p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.25rem;
    }

    .app-demo .demo-content .bento-feature-list {
        text-align: left;
        max-width: none;
        margin: 0 0 1.5rem 0;
    }

    .app-demo .demo-content .bento-feature-list li {
        font-size: 0.9rem;
        padding: 6px 0;
        padding-left: 26px;
    }

    .app-demo .demo-image {
        margin-top: 2rem;
    }

    .app-demo .demo-image img {
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-stat-value {
        font-size: 2rem;
    }

    .comparison-section-title {
        font-size: 0.7rem;
        padding: 0.5rem 1rem;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .hero-arcs svg,
    .hero-image-wrapper {
        animation: none;
    }
}
