:root {
    /* 苹果标准浅色背景 (增加层次感) */
    --bg-color: #f5f5f7;
    /* 卡片使用纯白，浮出背景 */
    --card-bg: #ffffff;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --apple-blue: #0071e3;
    --apple-blue-hover: #0077ed;
    --apple-green: #34C759;
    --glass-bg: rgba(255, 255, 255, 0.72);
    --border-color: rgba(0, 0, 0, 0.04);
    --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #000000;
        --card-bg: #1c1c1e;
        --text-primary: #f5f5f7;
        --text-secondary: #a1a1a6;
        --glass-bg: rgba(0, 0, 0, 0.72);
        --border-color: rgba(255, 255, 255, 0.08);
    }
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 64px;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.4s ease, color 0.4s ease;
}

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

/* Global Nav */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
    background: var(--glass-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.nav-content {
    display: flex; justify-content: space-between; align-items: center;
    height: 48px; max-width: 1000px;
}

.logo { display: flex; align-items: center; gap: 8px; }
.logo-img { height: 26px; width: auto; object-fit: contain; } 
.logo span { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }

.nav-links { display: flex; gap: 32px; }
.nav-links a {
    text-decoration: none; color: var(--text-primary);
    font-size: 0.75rem; font-weight: 400; opacity: 0.8; transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 1; }

.nav-right { display: flex; align-items: center; gap: 16px; }
.lang-switch { display: flex; align-items: center; gap: 4px; }
.lang-btn {
    background: transparent; border: none; color: var(--text-secondary);
    font-size: 0.75rem; cursor: pointer; transition: color 0.2s;
}
.lang-btn:hover, .lang-btn.active { color: var(--text-primary); }
.divider { width: 1px; height: 10px; background: var(--text-secondary); opacity: 0.5; margin: 0 4px; }

.nav-btn {
    background: var(--text-primary); color: var(--bg-color);
    border-radius: 980px; padding: 4px 12px; font-size: 0.75rem; font-weight: 600; text-decoration: none;
}

/* 文字向上淡入特效 */
.slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpReveal {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.45s; }

/* ===== Scroll Progress Bar ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--apple-blue), var(--apple-green));
    z-index: 200;
    transition: width 0.05s linear;
}

/* ===== Hero Word-by-Word Reveal ===== */
.word-reveal .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px) blur(4px);
    filter: blur(4px);
    animation: wordFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes wordFadeIn {
    0% { opacity: 0; transform: translateY(20px); filter: blur(4px); }
    100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* ===== Particle Grid Background ===== */
.particle-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
}

@media (prefers-color-scheme: dark) {
    .particle-grid { opacity: 0.3; }
}

/* ===== Bento Card 3D Tilt ===== */
.bento-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.bento-card.tilt-active {
    transition: box-shadow 0.3s ease;
}

/* ===== Staggered Card Entrance ===== */
@keyframes cardSlideUp {
    0% { opacity: 0; transform: translateY(60px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes cardSlideLeft {
    0% { opacity: 0; transform: translateX(40px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes cardSlideRight {
    0% { opacity: 0; transform: translateX(-40px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* ===== CTA Button Glow + Magnetic ===== */
.cta-btn {
    position: relative;
    overflow: visible;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.cta-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 980px;
    background: linear-gradient(135deg, var(--apple-blue), var(--apple-green));
    opacity: 0;
    z-index: -1;
    filter: blur(12px);
    transition: opacity 0.4s ease;
}

.cta-btn:hover::before {
    opacity: 0.6;
}

.cta-btn:hover {
    box-shadow: 0 8px 32px rgba(0, 113, 227, 0.3);
}

.cta-btn:active {
    transform: scale(0.97) !important;
}

/* Hero download button glow */
.hero-actions .btn-primary::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 980px;
    background: linear-gradient(135deg, var(--apple-blue), var(--apple-green));
    opacity: 0;
    z-index: -1;
    filter: blur(12px);
    transition: opacity 0.4s ease;
}

.hero-actions .btn-primary {
    position: relative;
    overflow: visible;
}

.hero-actions .btn-primary:hover::before {
    opacity: 0.5;
}

/* ===== Security Icon Draw Animation ===== */
@keyframes strokeDraw {
    0% { stroke-dashoffset: 100; }
    100% { stroke-dashoffset: 0; }
}

.security-icon-large.animate svg path {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: strokeDraw 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ===== Security Features Stagger ===== */
.sec-feat {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.sec-feat.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ===== Bento Icon Hover Bounce ===== */
.bento-card:hover .bento-icon {
    animation: iconBounce 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes iconBounce {
    0% { transform: scale(1); }
    40% { transform: scale(1.2) rotate(-5deg); }
    70% { transform: scale(0.95) rotate(2deg); }
    100% { transform: scale(1) rotate(0); }
}

/* ===== Smooth Section Reveal ===== */
.section-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
.hero {
    padding-top: 120px; padding-bottom: 60px; text-align: center;
    display: flex; flex-direction: column; align-items: center;
}

.new-badge {
    color: #ff6b00; 
    font-size: 0.95rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 12px;
}

.hero-title {
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05; margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--apple-blue) 0%, #34c759 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-secondary);
    max-width: 760px;
    margin-bottom: 36px; font-weight: 400;
    letter-spacing: -0.01em; line-height: 1.4;
}

.hero-actions { display: flex; gap: 16px; align-items: center; margin-bottom: 40px; }

.btn-primary.btn-large {
    background: var(--apple-blue); color: #fff;
    padding: 12px 24px; font-size: 1rem; font-weight: 500; border-radius: 980px; text-decoration: none;
    transition: transform 0.2s;
}
.btn-primary.btn-large:hover { transform: scale(1.02); background: var(--apple-blue-hover); }

.btn-text { color: var(--apple-blue); font-size: 1rem; font-weight: 400; padding: 12px 16px; text-decoration: none; }
.btn-text:hover { text-decoration: underline; }

.security-badge { display: none; }

/* Dashboard Mockup - 略微缩小更加精致紧凑 */
.hero-visual { width: 100%; max-width: 860px; margin: 0 auto; }

.dashboard-mockup {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.06); /* 柔和阴影产生层次感 */
    overflow: hidden; display: flex; flex-direction: column; aspect-ratio: 16/10;
}
@media (prefers-color-scheme: dark) { .dashboard-mockup { box-shadow: 0 20px 60px rgba(0,0,0,0.6); } }

.mockup-header {
    height: 40px; background: rgba(0,0,0,0.01); border-bottom: 1px solid var(--border-color);
    display: flex; align-items: center; padding: 0 16px;
}
@media (prefers-color-scheme: dark) { .mockup-header { background: rgba(255,255,255,0.02); } }

.window-controls span { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 8px; }
.window-controls span:nth-child(1) { background-color: #FF5F56; }
.window-controls span:nth-child(2) { background-color: #FFBD2E; }
.window-controls span:nth-child(3) { background-color: #27C93F; }

/* Mockup Body */
.mockup-body { display: flex; flex: 1; min-height: 0; }

/* Sidebar Navigation */
.mockup-sidebar {
    width: 180px; border-right: 1px solid var(--border-color); padding: 12px 10px;
    display: flex; flex-direction: column; gap: 4px; background: rgba(0,0,0,0.015);
}
@media (prefers-color-scheme: dark) { .mockup-sidebar { background: rgba(255,255,255,0.02); } }

.sidebar-nav-item {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px; border-radius: 8px;
    font-size: 0.7rem; font-weight: 500; color: var(--text-secondary);
    cursor: default; transition: background 0.2s ease;
}

.sidebar-nav-item svg { color: var(--text-secondary); flex-shrink: 0; }

.sidebar-nav-item.active {
    background: var(--apple-blue);
    color: #fff;
}

.sidebar-nav-item.active svg { color: #fff; }

/* Main Content Area */
.mockup-content {
    flex: 1; padding: 16px 20px; display: flex; flex-direction: column; gap: 10px;
    overflow: hidden;
}

.mockup-section-title {
    font-size: 0.65rem; font-weight: 600; color: var(--text-secondary);
    text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 2px;
}

/* Server Cards */
.mockup-server-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex; flex-direction: column; gap: 8px;
    transition: box-shadow 0.2s ease;
}

@media (prefers-color-scheme: dark) {
    .mockup-server-card { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.06); }
}

.server-card-header {
    display: flex; justify-content: space-between; align-items: center;
}

.server-info { display: flex; align-items: center; gap: 8px; }

.status-dot {
    width: 8px; height: 8px; border-radius: 50%;
}

.status-dot.online { background: var(--apple-green); box-shadow: 0 0 6px var(--apple-green); }
.status-dot.offline { background: #ff3b30; box-shadow: 0 0 6px rgba(255,59,48,0.4); }

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

.server-latency {
    font-size: 0.7rem; font-weight: 600; color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

.server-latency.good { color: var(--apple-green); }
.server-latency.medium { color: #ff9f0a; }

/* Protocol Tags */
.protocol-tags { display: flex; gap: 4px; flex-wrap: wrap; }

.proto-tag {
    font-size: 0.55rem; font-weight: 600; padding: 2px 7px;
    border-radius: 4px; letter-spacing: 0.02em;
}

.proto-tag.vless { background: rgba(0, 113, 227, 0.1); color: #0071e3; }
.proto-tag.vmess { background: rgba(88, 86, 214, 0.1); color: #5856d6; }
.proto-tag.hy2 { background: rgba(255, 159, 10, 0.1); color: #ff9f0a; }
.proto-tag.tuic { background: rgba(52, 199, 89, 0.1); color: #34c759; }
.proto-tag.trojan { background: rgba(255, 59, 48, 0.1); color: #ff3b30; }
.proto-tag.ss { background: rgba(175, 82, 222, 0.1); color: #af52de; }

@media (prefers-color-scheme: dark) {
    .proto-tag.vless { background: rgba(0, 113, 227, 0.2); }
    .proto-tag.vmess { background: rgba(88, 86, 214, 0.2); }
    .proto-tag.hy2 { background: rgba(255, 159, 10, 0.2); }
    .proto-tag.tuic { background: rgba(52, 199, 89, 0.2); }
    .proto-tag.trojan { background: rgba(255, 59, 48, 0.2); }
    .proto-tag.ss { background: rgba(175, 82, 222, 0.2); }
}

/* Server Card Footer */
.server-card-footer {
    display: flex; justify-content: space-between; align-items: center;
}

.server-ip {
    font-size: 0.65rem; color: var(--text-secondary); font-family: ui-monospace, monospace;
}

.connect-btn {
    font-size: 0.6rem; font-weight: 600; padding: 4px 12px;
    border-radius: 980px; color: var(--apple-blue);
    background: rgba(0, 113, 227, 0.08);
}

.connect-btn.active {
    background: var(--apple-green); color: #fff;
}

.connect-btn.disabled {
    background: rgba(0,0,0,0.04); color: var(--text-secondary);
}

@media (prefers-color-scheme: dark) {
    .connect-btn { background: rgba(0, 113, 227, 0.15); }
    .connect-btn.disabled { background: rgba(255,255,255,0.05); }
}

@media (max-width: 768px) {
    .mockup-sidebar { display: none; }
}

/* Bento Box Grid (深度阴影，纯白悬浮卡片) */
.features { padding-top: 80px; padding-bottom: 100px; background: var(--bg-color); }

.section-title {
    text-align: center; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 600;
    letter-spacing: -0.02em; margin-bottom: 50px; line-height: 1.1; color: var(--text-primary);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.bento-card {
    background: var(--card-bg); 
    border-radius: 20px;
    padding: 32px;
    display: flex; flex-direction: column; justify-content: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0,0,0,0.02);
    position: relative; overflow: hidden;
    border: 1px solid var(--border-color);
}
.bento-card:hover { 
    transform: translateY(-4px) scale(1.01); 
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0,0,0,0.04);
}

/* ★ 图标紧贴内容上方，拒绝留白 ★ */
.bento-icon { 
    width: 48px; height: 48px; 
    display: flex; align-items: center; justify-content: center; 
    color: var(--apple-blue); 
    background: rgba(0, 113, 227, 0.08);
    border-radius: 14px;
    margin-bottom: 24px;
}
.bento-icon svg {
    width: 24px; height: 24px;
}

.bento-content { display: flex; flex-direction: column; gap: 8px; }
.bento-content h3 { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; color: var(--text-primary); }
.bento-content p { font-size: 1rem; color: var(--text-secondary); line-height: 1.5; font-weight: 400; }

@media (max-width: 1100px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .bento-grid { grid-template-columns: 1fr; gap: 16px; }
    .nav-links { display: none; }
}

/* Security Section */
.security {
    padding: 60px 24px;
    display: flex;
    justify-content: center;
}

.security-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 60px 48px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    text-align: center;
    max-width: 860px;
    width: 100%;
}

.security-icon-large {
    width: 64px;
    height: 64px;
    margin: 0 auto 32px;
    color: var(--apple-blue);
    background: rgba(0, 113, 227, 0.08);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.security-icon-large svg {
    width: 32px;
    height: 32px;
}

.security-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 40px;
    font-weight: 400;
}

.security-features {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.sec-feat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    font-weight: 500;
}

.sec-feat svg {
    width: 20px;
    height: 20px;
}



/* CTA / Download Section */
.cta-section {
    padding: 120px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-title {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.cta-desc {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 40px;
    line-height: 1.5;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
}

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

/* ===== 3 Steps Section ===== */
.steps-section {
    padding: 80px 24px 100px;
}

.steps-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.step-card {
    flex: 1;
    max-width: 280px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--apple-blue);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(0, 113, 227, 0.08);
    color: var(--apple-blue);
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.step-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.step-arrow {
    color: var(--text-secondary);
    opacity: 0.3;
    padding-top: 48px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .steps-grid {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }
    .step-arrow {
        padding-top: 0;
        transform: rotate(90deg);
    }
    .step-card { max-width: 100%; }
}

/* ===== Platform Badges ===== */
.platform-badges {
    display: flex;
    gap: 24px;
    margin-top: 24px;
}

.platform-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--card-bg);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.platform-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* ===== Footer ===== */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 60px 0 0;
    background: var(--bg-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-logo img {
    height: 28px;
    width: auto;
    border-radius: 6px;
}

.footer-logo span {
    font-weight: 600;
    font-size: 1.15rem;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 280px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.footer-col a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--apple-blue);
}

.footer-bottom-bar {
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .platform-badges {
        flex-direction: row;
        justify-content: center;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .security-card {
        padding: 40px 24px;
    }
    .security-features {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin: 0 auto;
        display: inline-flex;
    }
}

/* --- Advanced Interactions --- */
.bento-card::before, .security-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit;
    background: radial-gradient(
        800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(0, 113, 227, 0.08),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
    pointer-events: none;
}
.bento-card:hover::before, .security-card:hover::before {
    opacity: 1;
}

.bento-icon, .bento-content, .security-icon-large, .section-title, .security-desc, .security-features {
    position: relative;
    z-index: 1;
}

/* Gradient background subtle shifting */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gradient-text {
    background-size: 200% auto;
    animation: gradientShift 6s ease infinite;
}

/* Dashboard Mockup - Live Pulse Effects */
@keyframes pulseGlow {
    0%, 100% { 
        box-shadow: 0 0 12px rgba(52, 199, 89, 0.8); 
    }
    50% { 
        box-shadow: 0 0 2px rgba(52, 199, 89, 0.3); 
    }
}

.status-indicator::after {
    animation: pulseGlow 3s infinite ease-in-out;
}

.mockup-box {
    transition: background 0.3s ease;
}
.mockup-box:hover {
    background: rgba(0, 113, 227, 0.05);
}

/* ===== Hamburger + Mobile Nav ===== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    width: 32px;
    height: 32px;
}

.hamburger span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--text-primary);
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
    display: none;
    position: fixed;
    top: 48px;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 12px 24px 20px;
    gap: 4px;
    z-index: 99;
}

.mobile-nav.open { display: flex; }

.mobile-nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-link:last-child { border-bottom: none; }

.mobile-nav-cta {
    margin-top: 8px;
    text-align: center;
    background: var(--apple-blue);
    color: #fff !important;
    border-radius: 980px;
    padding: 12px 24px;
    font-weight: 600;
    border-bottom: none !important;
}

@media (max-width: 900px) {
    .hamburger { display: flex; }
    .nav-btn { display: none; }
}

/* ===== Aurora Background ===== */
.aurora-bg {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 120%;
    height: 140%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    opacity: 0.6;
}

.aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: auroraFloat 8s ease-in-out infinite alternate;
}

.aurora-blob:nth-child(1) {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 113, 227, 0.3), transparent 70%);
    top: 10%;
    left: 20%;
    animation-duration: 8s;
}

.aurora-blob:nth-child(2) {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(52, 199, 89, 0.25), transparent 70%);
    top: 30%;
    right: 15%;
    animation-duration: 10s;
    animation-delay: -3s;
}

.aurora-blob:nth-child(3) {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(0, 113, 227, 0.2), transparent 70%);
    bottom: 10%;
    left: 40%;
    animation-duration: 12s;
    animation-delay: -5s;
}

@keyframes auroraFloat {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.1); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
    100% { transform: translate(15px, -10px) scale(1.05); }
}

@media (prefers-color-scheme: dark) {
    .aurora-bg { opacity: 0.4; }
    .aurora-blob:nth-child(1) {
        background: radial-gradient(circle, rgba(0, 113, 227, 0.4), transparent 70%);
    }
    .aurora-blob:nth-child(2) {
        background: radial-gradient(circle, rgba(52, 199, 89, 0.35), transparent 70%);
    }
    .aurora-blob:nth-child(3) {
        background: radial-gradient(circle, rgba(88, 86, 214, 0.3), transparent 70%);
    }
}

/* ===== Animated Border Gradient on Bento Cards ===== */
.bento-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: conic-gradient(
        from var(--border-angle, 0deg),
        transparent 40%,
        var(--apple-blue) 50%,
        var(--apple-green) 55%,
        transparent 60%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 2;
}

.bento-card:hover::after {
    opacity: 1;
    animation: rotateBorder 3s linear infinite;
}

@keyframes rotateBorder {
    0% { --border-angle: 0deg; }
    100% { --border-angle: 360deg; }
}

@property --border-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

/* ===== Hero Mockup Parallax Float ===== */
.hero-visual {
    transition: transform 0.1s linear;
}

.dashboard-mockup {
    animation: mockupFloat 6s ease-in-out infinite;
}

@keyframes mockupFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Mockup inner elements animate on scroll */
.mockup-body .sidebar-item {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.mockup-body.animate .sidebar-item {
    opacity: 1;
    transform: translateX(0);
}

.mockup-body.animate .sidebar-item:nth-child(1) { transition-delay: 0.1s; }
.mockup-body.animate .sidebar-item:nth-child(2) { transition-delay: 0.25s; }
.mockup-body.animate .sidebar-item:nth-child(3) { transition-delay: 0.4s; }

.mockup-body .mockup-card {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
}

.mockup-body.animate .mockup-card {
    opacity: 1;
    transform: translateY(0);
}

.mockup-body .mockup-box {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.mockup-body.animate .mockup-box:nth-child(1) { opacity: 1; transform: scale(1); transition-delay: 0.5s; }
.mockup-body.animate .mockup-box:nth-child(2) { opacity: 1; transform: scale(1); transition-delay: 0.65s; }
.mockup-body.animate .mockup-box:nth-child(3) { opacity: 1; transform: scale(1); transition-delay: 0.8s; }
.mockup-body.animate .mockup-box:nth-child(4) { opacity: 1; transform: scale(1); transition-delay: 0.95s; }

/* ===== Spotlight Text Effect on Title ===== */
.hero-title {
    position: relative;
}

.hero-title .spotlight-layer {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        200px circle at var(--spotlight-x, -200px) var(--spotlight-y, -200px),
        rgba(0, 113, 227, 0.15),
        transparent 60%
    );
    pointer-events: none;
    border-radius: 12px;
    mix-blend-mode: screen;
}

@media (prefers-color-scheme: dark) {
    .hero-title .spotlight-layer {
        background: radial-gradient(
            200px circle at var(--spotlight-x, -200px) var(--spotlight-y, -200px),
            rgba(0, 113, 227, 0.3),
            transparent 60%
        );
    }
}

/* ===== Button Click Ripple ===== */
.ripple-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: inherit;
    pointer-events: none;
    z-index: 10;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: rippleExpand 0.6s ease-out forwards;
    pointer-events: none;
}

@keyframes rippleExpand {
    0% { transform: scale(0); opacity: 0.6; }
    100% { transform: scale(4); opacity: 0; }
}

/* ===== CTA Pulse Ring ===== */
.cta-section {
    position: relative;
    overflow: visible;
}

.cta-pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid var(--apple-blue);
    opacity: 0;
    pointer-events: none;
    animation: ctaPulse 3s ease-out infinite;
}

.cta-pulse-ring:nth-child(2) {
    animation-delay: 1s;
}

.cta-pulse-ring:nth-child(3) {
    animation-delay: 2s;
}

@keyframes ctaPulse {
    0% { transform: translate(-50%, -50%) scale(0.3); opacity: 0.4; }
    100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}

/* ===== Nav Link Hover Underline Animation ===== */
.nav-links a {
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 1.5px;
    background: var(--apple-blue);
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
    left: 0;
}

/* ===== Shimmer Loading for Mockup Lines ===== */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.mockup-body.animate .text-lines .line {
    background: linear-gradient(
        90deg,
        var(--text-secondary) 25%,
        rgba(0, 113, 227, 0.3) 50%,
        var(--text-secondary) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 2s ease-in-out infinite;
}

/* ===== Floating Badges / Tags ===== */
.floating-tag {
    position: absolute;
    padding: 6px 14px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 980px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    animation: tagFloat 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 5;
    white-space: nowrap;
}

.floating-tag:nth-child(1) { top: 55%; left: -2%; animation-duration: 4.5s; }
.floating-tag:nth-child(2) { top: 40%; right: -2%; animation-duration: 5s; animation-delay: -1.5s; }
.floating-tag:nth-child(3) { bottom: 8%; left: 0%; animation-duration: 5.5s; animation-delay: -3s; }
.floating-tag:nth-child(4) { bottom: 15%; right: -1%; animation-duration: 4s; animation-delay: -2s; }

@keyframes tagFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-8px) rotate(1deg); }
    50% { transform: translateY(4px) rotate(-1deg); }
    75% { transform: translateY(-4px) rotate(0.5deg); }
}

@media (max-width: 900px) {
    .floating-tag { display: none; }
    .aurora-blob { filter: blur(60px); }
    .aurora-blob:nth-child(1) { width: 300px; height: 300px; }
    .aurora-blob:nth-child(2) { width: 250px; height: 250px; }
    .aurora-blob:nth-child(3) { width: 200px; height: 200px; }
}
