:root {
    --primary-color: #ff4f5e;
    --primary-hover: #ff3647;
    --secondary-color: #5d5dff;
    --bg-light: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --container-width: 1200px;
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Noto Sans SC', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Glass Effect */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 24px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.2rem 0;
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-main);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition-base);
}

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

.btn-download {
    padding: 10px 24px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-base);
    box-shadow: 0 4px 15px rgba(255, 79, 94, 0.2);
}

.btn-download:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 79, 94, 0.3);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 180px 0 100px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.glass-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite alternate;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #ff9e7d, #ff4f5e);
    top: -100px;
    right: -100px;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #89f7fe, #66a6ff);
    bottom: 100px;
    left: -50px;
    animation-delay: -5s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #f093fb, #f5576c);
    top: 20%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 40px) scale(1.1); }
}

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

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.btn-primary {
    padding: 16px 36px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition-base);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 79, 94, 0.3);
}

.btn-secondary {
    padding: 16px 36px;
    background: white;
    color: var(--text-main);
    text-decoration: none;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1.1rem;
    border: 1px solid rgba(0,0,0,0.1);
    transition: var(--transition-base);
}

.btn-secondary:hover {
    background: #f1f5f9;
    border-color: rgba(0,0,0,0.2);
}

/* Browser Mockup */
.browser-mockup {
    background: white;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition-base);
}

.browser-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.mockup-header {
    background: #f1f5f9;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.dots {
    display: flex;
    gap: 6px;
}

.dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
}

.search-bar {
    flex-grow: 1;
    background: white;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.mockup-content {
    height: 340px;
    padding: 24px;
}

.mockup-skeleton {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skel-hero {
    height: 120px;
    background: #f1f5f9;
    border-radius: 12px;
}

.skel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.skel-grid div {
    height: 80px;
    background: #f8fafc;
    border-radius: 12px;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Feature Grid */
.section-features {
    padding: 100px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 40px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--primary-color);
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 24px;
}

.speed { background: #fff1f2; }
.privacy { background: #f0f9ff; }
.custom { background: #f5f3ff; }
.sync { background: #ecfdf5; }
.dev { background: #fff7ed; }
.security { background: #f8fafc; }

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-grow: 1;
}

.learn-more {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

/* Privacy Deep Section */
.section-privacy-deep {
    padding: 120px 0;
    background: white;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: #fce7f3;
    color: #db2777;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.section-privacy-deep h2 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 24px;
}

.feature-list {
    list-style: none;
    margin: 32px 0;
}

.feature-list li {
    margin-bottom: 16px;
    padding-left: 28px;
    position: relative;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 900;
}

.privacy-shield-demo {
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 40px;
}

.shield-orb {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, #ff9e7d, #ff4f5e);
    border-radius: 50%;
    margin-bottom: 40px;
    box-shadow: 0 0 50px rgba(255, 79, 94, 0.4);
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 50px rgba(255, 79, 94, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 80px rgba(255, 79, 94, 0.6); }
    100% { transform: scale(1); box-shadow: 0 0 50px rgba(255, 79, 94, 0.4); }
}

.shield-data {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.data-item {
    text-align: center;
}

.data-item span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.data-item strong {
    font-size: 1.1rem;
    color: var(--primary-color);
}

/* Ecosystem */
.section-ecosystem {
    padding: 100px 0;
}

.extension-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.ext-item {
    padding: 24px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.ext-icon {
    width: 50px;
    height: 50px;
    background: var(--text-main);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.ext-info h4 { margin-bottom: 4px; }
.ext-info p { font-size: 0.85rem; color: var(--text-muted); }

.center-cta { text-align: center; }

/* Mozilla Section */
.section-mozilla {
    padding: 100px 0;
}

.mozilla-card {
    padding: 80px;
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(248, 250, 252, 0.8));
    text-align: center;
}

.mozilla-content h2 { font-size: 2.5rem; margin-bottom: 24px; }
.mozilla-content p { font-size: 1.2rem; color: var(--text-muted); max-width: 800px; margin: 0 auto 48px; }

.stats-row {
    display: flex;
    justify-content: center;
    gap: 100px;
    margin-bottom: 60px;
}

.stat strong { display: block; font-size: 2.5rem; color: var(--text-main); }
.stat span { color: var(--text-muted); }

/* Footer */
.footer {
    background: #f1f5f9;
    padding: 80px 0 40px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

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

.footer-brand p { margin-top: 16px; color: var(--text-muted); }

.footer-links h5 { font-size: 1.1rem; margin-bottom: 24px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { text-decoration: none; color: var(--text-muted); transition: var(--transition-base); }
.footer-links a:hover { color: var(--primary-color); }

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(0,0,0,0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Browser Mockup UI */
.mockup-content {
    height: 340px;
    padding: 0;
    display: flex;
}

.mockup-ui {
    display: flex;
    width: 100%;
    height: 100%;
}

.mockup-sidebar {
    width: 60px;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.side-item {
    width: 30px;
    height: 30px;
    background: #e2e8f0;
    border-radius: 8px;
}

.side-item.active {
    background: var(--primary-color);
    box-shadow: 0 4px 10px rgba(255, 79, 94, 0.2);
}

.mockup-main {
    flex-grow: 1;
    padding: 20px;
    background: white;
}

.mockup-dashboard {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.dash-header h3 {
    font-size: 1rem;
    font-weight: 700;
}

.status-pill {
    font-size: 0.7rem;
    padding: 4px 10px;
    background: #ecfdf5;
    color: #10b981;
    border-radius: 50px;
    font-weight: 600;
}

.dash-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f8fafc;
    padding: 15px;
    border-radius: 12px;
}

.stat-circle {
    width: 60px;
    height: 60px;
    position: relative;
}

.circular-chart {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 100%;
}

.circle-bg {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 3.8;
}

.circle {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 3.8;
    stroke-linecap: round;
}

.percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8rem;
    font-weight: 700;
}

.stat-info p {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.stat-info strong {
    font-size: 1.2rem;
    display: block;
    line-height: 1;
}

.stat-info span {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.dash-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.toggle {
    width: 32px;
    height: 18px;
    background: #e2e8f0;
    border-radius: 20px;
    position: relative;
    transition: 0.3s;
}

.toggle::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: 0.3s;
}

.toggle.active {
    background: #10b981;
}

.toggle.active::after {
    left: 16px;
}

/* Privacy Matrix */
.privacy-matrix {
    padding: 100px 0;
}

.matrix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.matrix-card {
    padding: 30px;
    text-align: center;
}

.matrix-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.matrix-card h4 {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.matrix-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Platform Experience */
.platform-experience {
    padding: 100px 0;
    background: white;
}

.sync-demo {
    height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.device {
    padding: 15px 30px;
    background: #f1f5f9;
    border-radius: 12px;
    font-weight: 700;
}

.sync-line {
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    position: relative;
}

.sync-line::after {
    content: '⇅';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 4px;
    font-size: 1rem;
    color: var(--primary-color);
}

/* Manifesto Section */
.manifesto-section {
    padding: 100px 0;
}

.manifesto-section .container.glass {
    padding: 80px;
    text-align: center;
}

.manifesto-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.manifesto-content > p {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 50px;
    font-family: 'Georgia', serif;
    font-style: italic;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: left;
    margin-bottom: 50px;
}

.p-item strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.p-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.btn-text {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
}

@media (max-width: 992px) {
    .principles-grid { grid-template-columns: 1fr; }
}

/* Special Versions */
.special-versions {
    margin-bottom: 80px;
}

.versions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.v-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.v-card h4 {
    font-size: 1.25rem;
    color: var(--text-main);
}

.v-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    flex-grow: 1;
}

@media (max-width: 992px) {
    .versions-grid { grid-template-columns: 1fr; }
}

/* Additional Info Section */
.additional-info {
    padding: 100px 0;
    background: #f8fafc;
}

.info-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 80px;
}

.info-box {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.info-box h3 {
    margin-bottom: 24px;
    font-size: 1.5rem;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.step-num {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.changelog {
    list-style: none;
}

.changelog li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    color: var(--text-muted);
}

.changelog li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.faq-section h3 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.faq-item {
    padding: 30px;
}

.faq-item h4 {
    margin-bottom: 12px;
    color: var(--text-main);
}

.faq-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

@media (max-width: 992px) {
    .info-grid-2 { grid-template-columns: 1fr; }
    .faq-grid { grid-template-columns: 1fr; }
}

/* Animations */
.fade-in { animation: fadeIn 0.8s ease-out forwards; }
.fade-in-delay { animation: fadeIn 0.8s ease-out 0.2s forwards; opacity: 0; }
.fade-in-delay-2 { animation: fadeIn 0.8s ease-out 0.4s forwards; opacity: 0; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-content h1 { font-size: 3.5rem; }
    .hero-subtitle { margin: 0 auto 40px; }
    .hero-actions { justify-content: center; }
    .browser-mockup { transform: none; margin-top: 40px; }
    .split-layout { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .nav-links { display: none; }
    .hero-content h1 { font-size: 2.5rem; }
    .stats-row { flex-direction: column; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr; }
}
