/* Variables & Reset - Aligned with Mini Program + Enhanced Design System */
@font-face {
    font-family: "Quicksand";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("assets/fonts/quicksand-400.ttf") format("truetype");
}

@font-face {
    font-family: "Quicksand";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("assets/fonts/quicksand-500.ttf") format("truetype");
}

@font-face {
    font-family: "Quicksand";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("assets/fonts/quicksand-700.ttf") format("truetype");
}

:root {
    --primary-blue: #2563eb;
    --secondary-blue: #22d3ee;
    --accent-yellow: #FFD700; 
    --accent-green: #22c55e;
    --bg-soft: #f0f7ff;      
    --text-dark: #1e293b;     
    --text-light: #64748b;    
    --white: #ffffff;
    /* Enhanced Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 25px -5px rgba(37, 99, 235, 0.1);
    --shadow-lg: 0 20px 50px -12px rgba(37, 99, 235, 0.2);
    --radius-lg: 32px;
}

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

body {
    font-family: Quicksand, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-soft);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

h1, h2, h3 {
    line-height: 1.2;
}

/* Navigation Bar */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 20px 0;
}

.nav-container {
    display: flex;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 1.25rem;
}

.nav-brand:hover {
    opacity: 0.85;
}

.nav-logo {
    flex-shrink: 0;
    border-radius: 8px;
}

.nav-title {
    white-space: nowrap;
}

/* Focus styles for accessibility */
a:focus-visible,
.btn:focus-visible {
    outline: 3px solid var(--secondary-blue);
    outline-offset: 2px;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* Base animation class */
.animate-fade-in {
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Stagger delays via CSS (no inline styles needed) */
.animate-fade-in:nth-child(1) { animation-delay: 0.1s; }
.animate-fade-in:nth-child(2) { animation-delay: 0.15s; }
.animate-fade-in:nth-child(3) { animation-delay: 0.2s; }
.animate-fade-in:nth-child(4) { animation-delay: 0.25s; }
.animate-fade-in:nth-child(5) { animation-delay: 0.3s; }
.animate-fade-in:nth-child(6) { animation-delay: 0.35s; }
.animate-fade-in:nth-child(7) { animation-delay: 0.4s; }
.animate-fade-in:nth-child(8) { animation-delay: 0.5s; }
.animate-fade-in:nth-child(9) { animation-delay: 0.6s; }

.animate-float {
    animation: float 5s ease-in-out infinite;
}

/* Respect reduced-motion preference for accessibility */
@media (prefers-reduced-motion: reduce) {
    .animate-fade-in,
    .animate-float {
        animation: none;
        opacity: 1;
    }
    .carousel-track {
        transition: none;
    }
}

/* Hero Section */
.hero {
    padding: 140px 0 100px;
    background: radial-gradient(ellipse at top right, #dce9ff 0%, #c8ddf5 40%, #e8f1fc 75%, #ffffff 100%);
    position: relative;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 84px;
}

.hero-text {
    flex: 1;
    max-width: 520px;
}

.hero-text h1 {
    font-size: 4.1rem;
    background: linear-gradient(to right, #1e3a8a, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
    line-height: 1.08;
}

.hero-copy {
    display: grid;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-intro {
    font-size: 1.6rem;
    font-weight: 700;
    color: #475569;
    line-height: 1.35;
}

.hero-description {
    max-width: 16em;
    font-size: 1.32rem;
    color: #475569;
    line-height: 1.7;
    letter-spacing: 0.01em;
}

/* hero-visual-row handles layout, animate-float moved to mockup-container */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.mockup-container {
    width: 320px;
    height: 640px;
    background: #fff;
    border-radius: 50px;
    border: 12px solid #334155;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.hero-visual-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mockup-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Carousel */
.carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    touch-action: pan-y;
    user-select: none;
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 20px;
    line-height: 1;
    color: var(--primary-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.carousel-btn:hover {
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.carousel-btn--prev {
    left: 8px;
}

.carousel-btn--next {
    right: 8px;
}

.carousel-dots {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    z-index: 2;
}

.qr-caption {
    text-align: center;
    margin-top: 15px;
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

@media (max-width: 480px) {
    .qr-caption {
        font-size: 0.9rem;
        margin-top: 10px;
    }
}

/* Hero QR Code */
.hero-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 8px;
}

.hero-qr img {
    width: 180px;
    height: 180px;
    border-radius: 25px;
}

/* Comparison Section */
.comparison {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    color: var(--text-dark);
    margin-bottom: 60px;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.comparison-card {
    padding: 50px;
    border-radius: 32px;
    position: relative;
}

.comparison-card h3 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.comparison-card ul {
    list-style: none;
}

.comparison-card li {
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.traditional {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
}

.smart {
    background: var(--white);
    border: 4px solid var(--primary-blue);
    box-shadow: var(--shadow-lg);
}

.smart-badge {
    position: absolute;
    top: 22px;
    right: 22px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #14532d;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(34, 197, 94, 0.35);
    box-shadow: 0 10px 24px rgba(34, 197, 94, 0.18);
    font-weight: 700;
    font-size: 0.95rem;
}

.smart-badge::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #16a34a;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
}

/* Features Section */
.features {
    padding: 120px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.feature-card {
    background: var(--white);
    border-radius: 32px;
    padding: 20px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: center;
    gap: 20px;
    min-height: 320px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
}

.feature-card:hover,
.feature-card:focus-within {
    transform: translateY(-15px);
    box-shadow: var(--shadow-lg);
}

.feature-media {
    position: relative;
    width: 100%;
    padding: 4px;
    border-radius: 24px;
    overflow: hidden;
    background:
        linear-gradient(145deg, #64748b 0%, #435266 24%, #253244 58%, #5f6f82 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(15, 23, 42, 0.45),
        inset 1px 0 0 rgba(255, 255, 255, 0.14),
        inset -1px 0 0 rgba(15, 23, 42, 0.2),
        0 16px 32px rgba(37, 99, 235, 0.16);
}

.feature-image {
    width: calc(100% + 2px);
    height: auto;
    aspect-ratio: 369 / 800;
    object-fit: contain;
    object-position: center top;
    border-radius: 22px;
    display: block;
    margin: -1px;
    background: #ffffff;
}

.feature-copy {
    text-align: left;
    padding: 2px 6px 2px 0;
}

.feature-card h3 {
    font-size: 1.35rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.96rem;
    line-height: 1.7;
}

/* GEO / FAQ */
.geo-section,
.faq-section {
    padding: 110px 0 0;
}

.seo-support {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.geo-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 28px;
}

.geo-summary-card,
.geo-rules-card,
.faq-item {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 32px;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

.geo-summary-card,
.geo-rules-card {
    padding: 36px;
}

.geo-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-blue);
    font-size: 0.95rem;
    font-weight: 700;
}

.geo-summary-card h2,
.geo-rules-card h3 {
    font-size: 2rem;
    margin-bottom: 18px;
    color: var(--text-dark);
}

.geo-summary-card p,
.geo-rule-item p,
.faq-item p {
    color: var(--text-light);
    font-size: 1.04rem;
    line-height: 1.8;
}

.geo-points {
    margin-top: 24px;
    padding-left: 20px;
}

.geo-points li {
    margin-bottom: 12px;
    color: var(--text-dark);
    font-weight: 600;
}

.geo-rule-list {
    display: grid;
    gap: 18px;
}

.geo-rule-item {
    padding: 20px 22px;
    background: #f8fbff;
    border-radius: 24px;
}

.geo-rule-item h4,
.faq-item h3 {
    margin-bottom: 10px;
    color: var(--text-dark);
    font-size: 1.2rem;
}

.faq-title {
    margin-bottom: 28px;
}

.faq-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.faq-item {
    padding: 28px;
}

/* Footer/CTA */
.cta-footer {
    margin-top: 72px;
    padding: 120px 0;
    background-color: var(--primary-blue);
    color: var(--white);
    text-align: center;
}

.cta-footer h2 {
    font-size: 3rem;
    margin-bottom: 16px;
}

.cta-footer p {
    font-size: 1.3rem;
    margin-bottom: 48px;
    opacity: 0.9;
}

.qr-container {
    display: inline-block;
    background: white;
    padding: 24px;
    border-radius: 32px;
    box-shadow: var(--shadow-lg);
}

.qr-container img {
    width: 180px;
    height: 180px;
}

.copyright {
    margin-top: 40px;
    font-size: 14px;
    opacity: 0.7;
}

.llm-link-wrap {
    margin: 18px 0 0;
}

.llm-link {
    display: inline-block;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    text-underline-offset: 4px;
}

.llm-link:hover {
    color: rgba(255, 255, 255, 0.88);
}

/* Responsive */
@media (max-width: 992px) {
    .navbar {
        padding: 16px 0;
    }
    .nav-title {
        font-size: 1.1rem;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-text {
        max-width: 100%;
    }
    .hero-text h1 {
        font-size: 3rem;
    }
    .hero-copy {
        justify-items: center;
    }
    .hero-description {
        max-width: 22em;
    }
    .hero-visual {
        width: 100%;
        margin-top: 40px;
        flex-direction: column;
        gap: 22px;
    }
    .mockup-container {
        width: 280px;
        height: 560px;
    }
    .carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
    .carousel-btn--prev {
        left: 6px;
    }
    .carousel-btn--next {
        right: 6px;
    }
    .hero-qr img {
        width: 150px;
        height: 150px;
    }
    .hero-qr {
        margin-left: 0;
    }
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    .smart-badge {
        position: static;
        margin-bottom: 20px;
        width: fit-content;
    }
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
    .feature-card {
        grid-template-columns: 1fr;
        gap: 18px;
        min-height: 0;
        padding: 16px;
    }
    .feature-copy {
        text-align: center;
        padding: 0 8px 8px;
    }
    .geo-layout,
    .faq-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .comparison {
        padding: 72px 0 0;
    }
    .features {
        padding: 72px 0 0;
    }
    .faq-section {
        padding: 56px 0 0;
    }
    .cta-footer {
        margin-top: 48px;
        padding: 84px 0;
    }
    .section-title {
        margin-bottom: 36px;
    }
    .hero-text h1 {
        font-size: 2.5rem;
    }
    .hero-intro {
        font-size: 1.35rem;
    }
    .hero-description {
        font-size: 1.16rem;
        max-width: 100%;
    }
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .feature-card {
        gap: 16px;
        justify-items: center;
    }
    .feature-media {
        width: min(100%, 236px);
        padding: 3px;
        border-radius: 24px;
    }
    .feature-image {
        width: calc(100% + 2px);
        max-height: 477px;
        object-fit: contain;
        object-position: center top;
        border-radius: 22px;
        margin: -1px;
    }
    .geo-summary-card,
    .geo-rules-card,
    .faq-item {
        padding: 24px;
    }
    .geo-summary-card h2,
    .geo-rules-card h3 {
        font-size: 1.6rem;
    }
}

/* Extra-small screens */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .hero {
        padding: 80px 0 44px;
    }
    .hero-text h1 {
        font-size: 2rem;
    }
    .hero-intro {
        font-size: 1.15rem;
    }
    .hero-description {
        font-size: 1rem;
        line-height: 1.75;
    }
    .section-title {
        font-size: 2rem;
        margin-bottom: 28px;
    }
    .cta-footer h2 {
        font-size: 2rem;
    }
    .comparison {
        padding: 56px 0 0;
    }
    .features {
        padding: 56px 0 0;
    }
    .faq-section {
        padding: 40px 0 0;
    }
    .faq-item {
        padding: 20px;
    }
    .feature-media {
        width: min(100%, 208px);
        padding: 3px;
        border-radius: 24px;
    }
    .feature-image {
        width: calc(100% + 2px);
        border-radius: 22px;
        margin: -1px;
    }
    .feature-card {
        border-radius: 24px;
        padding: 14px;
    }
    .cta-footer {
        margin-top: 36px;
        padding: 72px 0;
    }
    .llm-link {
        font-size: 0.78rem;
    }
    .carousel-btn {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
    .carousel-dots {
        bottom: 8px;
        gap: 6px;
    }
    .carousel-dot {
        width: 8px;
        height: 8px;
    }
}
