/* ==============================
   XMmail Landing Page
   ============================== */

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

:root {
    --bg: #ffffff;
    --bg-soft: #f8fafc;
    --bg-muted: #f1f5f9;
    --text: #0c0f1a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;
    --border: #e2e8f0;
    --accent: #2563eb;
    --accent-soft: #3b82f6;
    --accent-bg: #eff6ff;
    --accent-border: #bfdbfe;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.04);
    --shadow-medium: 0 20px 48px rgba(15, 23, 42, 0.08);
    --shadow-strong: 0 32px 72px rgba(15, 23, 42, 0.12);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background:
        radial-gradient(circle at top center, rgba(37,99,235,0.035), transparent 26%),
        linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    overflow-x: hidden;
    opacity: 0;
    animation: pageFadeIn 0.8s var(--ease) forwards;
}

body.is-ready {
    opacity: 1;
}

::selection { background: rgba(37,99,235,0.14); }

.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    z-index: 9999;
    box-shadow: 0 0 10px rgba(37,99,235,0.18);
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 14px;
    letter-spacing: 0.02em;
}

.section-tag::before {
    content: "";
    width: 20px;
    height: 1.5px;
    background: var(--accent);
    border-radius: 2px;
}

h1, h2, h3, h4 { font-weight: 700; text-wrap: balance; }
h1 { font-size: 52px; line-height: 1.08; letter-spacing: -0.04em; }
h2 { font-size: 36px; line-height: 1.15; letter-spacing: -0.03em; }
h3 { font-size: 17px; line-height: 1.3; }

p { text-wrap: pretty; }

.section-inner,
.hero-container,
.footer-inner {
    position: relative;
}

.section-inner::before {
    content: "";
    position: absolute;
    top: -44px;
    left: 40px;
    right: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(148,163,184,0.18), transparent);
    pointer-events: none;
    display: none;
}

.product .section-inner::before,
.modules .section-inner::before,
.security .section-inner::before,
.deploy .section-inner::before,
.test-section .section-inner::before,
.cta .section-inner::before {
    display: block;
}


.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}

.header.scrolled {
    background: rgba(255,255,255,0.84);
    backdrop-filter: blur(14px) saturate(160%);
    box-shadow: 0 1px 0 rgba(0,0,0,0.05), 0 10px 28px rgba(0,0,0,0.04);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 768px) {
    .header-inner { padding: 0 20px; }
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 1px;
    text-decoration: none;
    font-weight: 900;
    font-size: 20px;
    letter-spacing: -0.04em;
}

.logo-mark { color: var(--accent); }
.logo-name { color: var(--text); }

.nav { display: flex; gap: 6px; }
.nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 8px;
    transition: color 0.15s, background 0.15s, transform 0.18s;
}
.nav a:hover,
.nav a.active {
    color: var(--text);
    background: var(--bg-muted);
    transform: translateY(-1px);
}

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

.header-right { display: flex; gap: 8px; align-items: center; }

.ghost-btn {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 7px 14px;
    border-radius: 8px;
    transition: color 0.15s, background 0.15s, transform 0.18s;
}
.ghost-btn:hover { color: var(--text); background: var(--bg-muted); transform: translateY(-1px); }

.cta-btn {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 10px;
    transition: opacity 0.15s, transform 0.18s, box-shadow 0.18s;
    box-shadow: 0 8px 24px rgba(37,99,235,0.16);
}
.cta-btn:hover { opacity: 0.95; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(37,99,235,0.22); }

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

.hero {
    position: relative;
    padding: 128px 40px 96px;
    max-width: 1280px;
    margin: 0 auto;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(44px);
    pointer-events: none;
    opacity: 0.9;
}
.hero-glow-1 {
    top: -70px;
    right: 10%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(37,99,235,0.12), transparent 68%);
}
.hero-glow-2 {
    bottom: 0;
    left: -60px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(124,58,237,0.08), transparent 68%);
}

.hero-grid-bg {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(15,23,42,0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15,23,42,0.028) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at 50% 35%, black 25%, transparent 68%);
    pointer-events: none;
    opacity: 0.75;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 2;
}

@media (max-width: 1100px) {
    .hero { padding: 96px 20px 64px; }
    .hero-container { grid-template-columns: 1fr; gap: 48px; }
    .hero-visual { display: none; }
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    background: rgba(255,255,255,0.84);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    animation: fadeUp 0.8s var(--ease) both;
}

.chip-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
}

.hero-text h1 {
    font-size: 58px;
    margin-bottom: 18px;
    animation: fadeUp 0.9s var(--ease) 0.05s both;
}

@media (max-width: 768px) {
    .hero-text h1 { font-size: 40px; }
}

.hero-highlight-gradient {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 55%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 17px;
    line-height: 1.85;
    color: var(--text-secondary);
    max-width: 560px;
    margin-bottom: 30px;
    animation: fadeUp 0.9s var(--ease) 0.12s both;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    animation: fadeUp 0.9s var(--ease) 0.18s both;
}

.btn-primary,
.btn-ghost {
    position: relative;
    overflow: hidden;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 30px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
    box-shadow: 0 10px 26px rgba(37,99,235,0.18);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(37,99,235,0.24);
}

.btn-shine { display: none; }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 13px 24px;
    background: rgba(255,255,255,0.8);
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, transform 0.18s var(--ease), box-shadow 0.18s;
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    border-color: var(--accent-border);
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.btn-lg { padding: 16px 36px; font-size: 16px; border-radius: 14px; }

.hero-stats {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    animation: fadeUp 0.9s var(--ease) 0.24s both;
}

.hero-stat b {
    display: inline-block;
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
    font-variant-numeric: tabular-nums;
}

.counter-suffix {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
    margin-left: 2px;
}

.hero-stat span {
    display: block;
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: 600;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

@media (max-width: 640px) {
    .hero-stats { flex-direction: column; align-items: flex-start; gap: 16px; }
    .hero-stat-divider { width: 100%; height: 1px; }
}

.hero-visual {
    position: relative;
    animation: fadeScale 0.95s var(--ease) 0.12s both;
}

.mockup {
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: 22px;
    overflow: hidden;
    box-shadow:
        0 6px 10px rgba(0,0,0,0.03),
        0 16px 34px rgba(0,0,0,0.07),
        0 32px 70px rgba(37,99,235,0.06);
    position: relative;
    z-index: 1;
    transform-style: preserve-3d;
    will-change: transform;
    backdrop-filter: blur(16px) saturate(150%);
    transition: transform 0.18s ease-out;
}

.mockup::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.18), transparent 24%);
    pointer-events: none;
    z-index: 2;
}

.mockup-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 14px 18px;
    background: rgba(248,250,252,0.94);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 3;
}

.mockup-bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.r { background: #ff5f57; }
.dot.y { background: #ffbd2e; }
.dot.g { background: #28c840; }

.mockup-url {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-left: 10px;
    font-weight: 500;
}

.mockup-body {
    display: grid;
    grid-template-columns: 180px 200px 1fr;
    min-height: 370px;
    position: relative;
    z-index: 3;
}

.mock-col {
    padding: 14px;
    border-right: 1px solid rgba(226,232,240,0.85);
}
.mock-col:last-child { border-right: none; }

.mock-col-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.mock-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 10px;
    border-radius: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 5px;
    transition: background 0.18s, transform 0.18s;
}

.mock-row.active {
    background: rgba(37,99,235,0.10);
    color: var(--accent);
    transform: translateX(2px);
}

.mock-badge {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-tertiary);
}

.mock-mail-row {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 5px;
    transition: background 0.18s, transform 0.18s;
}

.mock-mail-row.active {
    background: rgba(37,99,235,0.10);
    transform: translateX(2px);
}

.mock-mail-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
    margin-top: 5px;
}

.mock-mail-dot.read { background: var(--border); }

.mock-mail-row strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.mock-mail-row span {
    display: block;
    font-size: 11px;
    color: var(--text-tertiary);
}

.mock-detail-block {
    background: rgba(248,250,252,0.9);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
}

.mock-detail-from, .mock-detail-time {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.mock-detail-lines {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 14px 0;
}

.mock-detail-lines span {
    height: 7px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--border) 0%, #f8fafc 45%, var(--border) 100%);
    background-size: 200% 100%;
    animation: shimmer 5.2s linear infinite;
}

.mock-detail-actions {
    display: flex;
    gap: 8px;
}

.mock-detail-actions span {
    padding: 5px 12px;
    background: rgba(255,255,255,0.94);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
}

.product,
.security,
.test-section {
    background: var(--bg-soft);
}

.product,
.modules,
.security,
.deploy,
.test-section,
.cta {
    position: relative;
    padding: 88px 0;
}

.product .section-inner {
    display: grid;
    grid-template-columns: minmax(0, 420px) 1fr;
    gap: 56px;
    align-items: start;
}

@media (max-width: 860px) {
    .product .section-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.product-body p,
.sec-lead,
.test-desc,
.cta p {
    font-size: 15px;
    line-height: 1.85;
    color: var(--text-secondary);
}

.product-body p { margin-bottom: 14px; }
.product-body p:last-child,
.cta p:last-child { margin-bottom: 0; }

.product-cards {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 860px) { .product-cards { padding: 0 20px; grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .product-cards { grid-template-columns: 1fr; } }

.p-card,
.mod,
.shield-bar,
.deploy-step,
.dp-card,
.test-card {
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(255,255,255,0.72);
    backdrop-filter: blur(12px);
}

.p-card {
    padding: 20px;
    border-radius: var(--radius-lg);
    transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s;
}

.p-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.05);
    border-color: var(--accent-border);
}

.p-card-num {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-tertiary);
    margin-bottom: 10px;
}

.p-card strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

.p-card > span { font-size: 13px; color: var(--text-secondary); }

.modules h2,
.deploy h2,
.test-section h2,
.cta h2 { margin-bottom: 40px; }
.security h2 { margin-bottom: 16px; }
.test-section h2 { margin-bottom: 8px; }
.cta h2 { margin-bottom: 14px; }

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

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

.mod {
    padding: 24px;
    border-radius: var(--radius-lg);
    transition: transform 0.26s var(--ease), box-shadow 0.26s var(--ease), border-color 0.26s;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.mod::before,
.test-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.18), transparent 30%);
    pointer-events: none;
}

.mod:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(0,0,0,0.06);
    border-color: var(--accent-border);
}

.mod-icon,
.test-card-icon {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(59,130,246,0.18));
    border: 1px solid var(--accent-border);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.mod { will-change: transform; }
.mod-icon { margin-bottom: 16px; }
.mod:hover .mod-icon,
.test-card:hover .test-card-icon {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(37,99,235,0.12);
}

.mod h3 { margin-bottom: 8px; }
.mod p {
    font-size: 14px;
    line-height: 1.78;
    color: var(--text-secondary);
    flex: 1;
    margin-bottom: 16px;
}

.mod-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mod-tags span,
.mock-detail-actions span {
    padding: 4px 10px;
    background: rgba(248,250,252,0.84);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
}

.mod:hover .mod-tags span {
    border-color: var(--accent-border);
    color: var(--accent-soft);
}

.security .section-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

@media (max-width: 900px) {
    .security .section-inner { grid-template-columns: 1fr; }
    .sec-visual { display: none; }
}

.sec-list { display: flex; flex-direction: column; gap: 18px; }
.sec-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.sec-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    margin-top: 7px;
    flex-shrink: 0;
    box-shadow: 0 0 0 5px rgba(37,99,235,0.10);
}

.sec-item strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}
.sec-item span { font-size: 13px; color: var(--text-secondary); }

.shield-stack { display: flex; flex-direction: column; gap: 10px; }
.shield-bar {
    padding: 15px 20px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s;
}

.shield-bar:hover {
    transform: translateX(6px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.04);
    border-color: var(--accent-border);
}

.shield-bar.s1 { border-left: 3px solid var(--accent); }
.shield-bar.s2 { border-left: 3px solid var(--accent-soft); }
.shield-bar.s3 { border-left: 3px solid #22c55e; }
.shield-bar.s4 { border-left: 3px solid #f59e0b; }
.shield-bar.s5 { border-left: 3px solid #ef4444; }

.deploy-row {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.deploy-step {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    flex: 1;
    min-width: 200px;
    transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.deploy-step:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.04);
}

.deploy-step-num {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    flex-shrink: 0;
}

.deploy-step strong { display: block; font-size: 15px; margin-bottom: 2px; }
.deploy-step p { font-size: 13px; color: var(--text-secondary); }

.deploy-connector {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--border), var(--accent-border), var(--border));
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .deploy-connector { display: none; }
    .deploy-row { flex-direction: column; gap: 12px; }
    .deploy-step { width: 100%; }
}

.deploy-platforms {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 768px) { .deploy-platforms { grid-template-columns: 1fr; } }

.dp-card {
    padding: 20px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s;
}

.dp-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.04);
    border-color: var(--accent-border);
}

.dp-tag {
    padding: 4px 10px;
    background: var(--accent-bg);
    color: var(--accent);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

.dp-card strong { font-size: 15px; }
.dp-card > span:last-child { font-size: 13px; color: var(--text-tertiary); }

.test-desc { margin-bottom: 32px; }

.test-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 768px) { .test-cards { grid-template-columns: 1fr; } }

.test-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease), border-color 0.24s;
    position: relative;
    overflow: hidden;
}

.test-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.06);
    border-color: var(--accent-border);
}

.test-card strong {
    display: block;
    font-size: 15px;
    margin-bottom: 2px;
}

.test-card > div > span {
    display: block;
    font-size: 13px;
    color: var(--text-tertiary);
}

.test-card-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) rotate(-35deg);
    color: var(--text-tertiary);
    transition: transform 0.22s var(--ease), color 0.15s;
}

.test-card:hover .test-card-arrow {
    transform: translateY(-50%) rotate(0deg) translateX(2px);
    color: var(--accent);
}

.cta {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 100%, rgba(37,99,235,0.07), transparent 60%);
    pointer-events: none;
}

.cta .section-inner {
    position: relative;
    z-index: 2;
    max-width: 920px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cta h2 {
    width: 100%;
    text-align: center;
    margin: 0 auto 14px;
}

.cta p {
    width: 100%;
    max-width: 760px;
    text-align: center;
    margin: 0 auto 32px;
}

.cta .btn-primary {
    align-self: center;
}


.footer {
    padding: 56px 0 28px;
    background: #0b1020;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: "";
    position: absolute;
    top: -60px;
    right: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(37,99,235,0.10), transparent 60%);
    pointer-events: none;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) { .footer-inner { padding: 0 20px; } }

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 768px) { .footer-top { grid-template-columns: 1fr; gap: 32px; } }

.footer-brand .logo { margin-bottom: 10px; }
.footer-brand .logo-mark { color: #93c5fd; }
.footer-brand .logo-name { color: #fff; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.45); }

.footer-links {
    display: flex;
    justify-content: space-between;
    gap: 32px;
}

@media (max-width: 768px) { .footer-links { flex-wrap: wrap; gap: 24px; } }

.footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 14px;
    color: rgba(255,255,255,0.9);
}

.footer-col a {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.15s, transform 0.18s;
}

.footer-col a:hover { color: rgba(255,255,255,0.8); transform: translateX(2px); }

.footer-bottom {
    padding-top: 28px;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.3);
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

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

.reveal.d1 { transition-delay: 0.04s; }
.reveal.d2 { transition-delay: 0.08s; }
.reveal.d3 { transition-delay: 0.12s; }
.reveal.d4 { transition-delay: 0.16s; }
.reveal.d5 { transition-delay: 0.20s; }
.reveal.d6 { transition-delay: 0.24s; }

@keyframes pageFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes fadeScale {
    from { opacity: 0; transform: translateY(14px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1 !important; transform: none !important; }
}



/* Premium polish */
.hero-text {
    max-width: 560px;
}

.hero-chip,
.btn-ghost,
.mockup,
.p-card,
.mod,
.shield-bar,
.deploy-step,
.dp-card,
.test-card {
    box-shadow: var(--shadow-soft);
}

.hero-chip {
    box-shadow: 0 10px 28px rgba(15,23,42,0.04);
}

.hero-text h1 {
    max-width: 10ch;
}

.hero-desc {
    max-width: 52ch;
}

.hero-stats {
    max-width: 640px;
}

.hero-stat b,
.hero-stat .counter-suffix {
    letter-spacing: -0.02em;
}

.hero-stat {
    min-width: 0;
}

.hero-visual {
    transform: translateY(6px);
}

.mockup {
    border-color: rgba(226,232,240,0.7);
}

.mockup-body {
    background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(248,250,252,0.92));
}

.mock-col-domains {
    background: linear-gradient(180deg, rgba(248,250,252,0.9), rgba(255,255,255,0.8));
}

.mock-col-mails {
    background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(248,250,252,0.84));
}

.mock-col-detail {
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,250,252,0.9));
}

.mock-row,
.mock-mail-row {
    border: 1px solid transparent;
}

.mock-row.active,
.mock-mail-row.active {
    border-color: rgba(191,219,254,0.9);
}

.product-header h2,
.modules h2,
.security h2,
.deploy h2,
.test-section h2,
.cta h2 {
    max-width: 13ch;
}

.product-body {
    max-width: 62ch;
}

.product-cards,
.modules-grid,
.deploy-platforms,
.test-cards {
    align-items: stretch;
}

.p-card,
.dp-card,
.test-card,
.mod {
    min-height: 100%;
}

.p-card strong,
.mod h3,
.dp-card strong,
.test-card strong {
    letter-spacing: -0.01em;
}

.p-card,
.mod,
.dp-card,
.test-card {
    position: relative;
}

.p-card::after,
.dp-card::after,
.test-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.18), transparent 28%);
    pointer-events: none;
    border-radius: inherit;
}

.p-card:hover,
.dp-card:hover,
.test-card:hover,
.mod:hover,
.deploy-step:hover,
.shield-bar:hover {
    box-shadow: var(--shadow-medium);
}

.product,
.modules,
.security,
.deploy,
.test-section,
.cta {
    isolation: isolate;
}

.product::before,
.modules::before,
.security::before,
.deploy::before,
.test-section::before,
.cta::before {
    z-index: 0;
}

.cta .section-inner {
    max-width: 860px;
}

.cta .btn-primary {
    box-shadow: var(--shadow-medium);
}

.footer {
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.footer-top {
    align-items: start;
}

.footer-brand {
    max-width: 320px;
}

.footer-brand p {
    line-height: 1.8;
}

.footer-col a {
    width: fit-content;
}

@media (max-width: 1100px) {
    .hero-text {
        max-width: 100%;
    }

    .hero-text h1,
    .hero-desc,
    .hero-stats,
    .product-body,
    .product-header h2,
    .modules h2,
    .security h2,
    .deploy h2,
    .test-section h2,
    .cta h2 {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .product,
    .modules,
    .security,
    .deploy,
    .test-section,
    .cta {
        padding: 72px 0;
    }

    .product-cards,
    .modules-grid,
    .deploy-platforms,
    .test-cards {
        gap: 14px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-ghost {
        width: 100%;
        justify-content: center;
    }
}
