/* ================================================================
   JunKey Official Website - Design System (Red & White)
   ================================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors — Red & White */
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-tertiary: #f4f4f6;
    --bg-card: #ffffff;
    --bg-card-hover: #fff5f6;
    --bg-overlay: rgba(255, 255, 255, 0.85);

    --text-primary: #2b2b33;
    --text-secondary: #55565e;
    --text-muted: #8a8b94;
    --text-dim: #b4b5bd;

    --accent-red: #E60023;
    --accent-red-dark: #c5001f;
    --accent-red-soft: #ff4d6a;
    --accent-green: #1aae5c;
    --accent-orange: #f59e0b;

    --border: #ececf0;
    --border-hover: #dcdce2;
    --border-accent: rgba(230, 0, 35, 0.28);

    --gradient-primary: linear-gradient(135deg, #E60023 0%, #ff4d6a 100%);
    --gradient-secondary: linear-gradient(135deg, #ff4d6a 0%, #ff8a5c 100%);
    --gradient-warm: linear-gradient(135deg, #E60023 0%, #ff7a45 100%);
    --gradient-text: linear-gradient(135deg, #E60023 0%, #ff4d6a 100%);

    --glow-red: 0 0 40px rgba(230, 0, 35, 0.12);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow-sm: 0 2px 8px rgba(30, 20, 25, 0.06);
    --shadow-md: 0 8px 24px rgba(30, 20, 25, 0.09);
    --shadow-lg: 0 16px 48px rgba(30, 20, 25, 0.14);

    --container-max: 1200px;
    --nav-height: 70px;

    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    --font-mono: "SF Mono", "Fira Code", "Cascadia Code", Menlo, monospace;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#app {
    position: relative;
    min-height: 100vh;
}

/* ---------- Particle Background ---------- */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(230, 0, 35, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(255, 77, 106, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(230, 0, 35, 0.03) 0%, transparent 50%);
}

/* ---------- Container ---------- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
}

.brand-logo {
    width: 36px;
    height: 36px;
}

.brand-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-text {
    font-size: 22px;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    cursor: pointer;
}

.nav-links a:hover {
    color: var(--accent-red);
    background: #fdeef0;
}

.nav-login {
    background: var(--gradient-primary) !important;
    color: white !important;
    font-weight: 600 !important;
}

.nav-login:hover {
    opacity: 0.9;
    background: var(--gradient-primary) !important;
    color: white !important;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--nav-height) 24px 80px;
    overflow: hidden;
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(230, 0, 35, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(230, 0, 35, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.35;
    animation: float 12s ease-in-out infinite;
}

.orb1 {
    width: 400px;
    height: 400px;
    background: #ffb3c0;
    top: 10%;
    left: -10%;
}

.orb2 {
    width: 500px;
    height: 500px;
    background: #ffd0d8;
    bottom: 0;
    right: -15%;
    animation-delay: -4s;
}

.orb3 {
    width: 300px;
    height: 300px;
    background: #ffe3e8;
    top: 40%;
    left: 40%;
    animation-delay: -8s;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: #fff;
    border: 1px solid var(--border-accent);
    border-radius: 100px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-red);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(230, 0, 35, 0.35); }
    50% { box-shadow: 0 0 0 6px rgba(230, 0, 35, 0); }
}

.hero-title {
    font-size: clamp(40px, 7vw, 76px);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -2px;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.hero-title .hl {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 19px);
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.hero-stat-num {
    font-size: 32px;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-stat-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

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

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-dim);
    cursor: pointer;
    animation: bounce 2s ease-in-out infinite;
    z-index: 2;
}

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

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: inherit;
    white-space: nowrap;
}

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

.btn-sm {
    padding: 8px 18px;
    font-size: 14px;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 16px rgba(230, 0, 35, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(230, 0, 35, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-hover);
}

.btn-outline:hover {
    background: #fdeef0;
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.btn-download {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    width: 100%;
    margin-top: 16px;
}

.btn-download:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
}

.btn-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---------- Sections ---------- */
.section {
    padding: 120px 0;
    position: relative;
    z-index: 1;
}

.section-alt {
    background: var(--bg-secondary);
}

.section-dark {
    background: var(--bg-tertiary);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(230, 0, 35, 0.07);
    border: 1px solid rgba(230, 0, 35, 0.16);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-red);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-tag-light {
    background: rgba(230, 0, 35, 0.07);
    border-color: rgba(230, 0, 35, 0.16);
}

.section-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-title-light {
    color: var(--text-primary);
}

.section-desc {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-desc-light {
    color: var(--text-secondary);
}

/* ---------- Features ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    transition: all 0.3s ease;
    opacity: 0;
    animation: cardFadeIn 0.6s ease forwards;
    animation-delay: var(--delay, 0s);
    box-shadow: var(--shadow-sm);
}

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

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tag {
    padding: 4px 12px;
    background: rgba(230, 0, 35, 0.06);
    border: 1px solid rgba(230, 0, 35, 0.14);
    border-radius: 100px;
    font-size: 12px;
    color: var(--accent-red);
}

/* ---------- How It Works ---------- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

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

.step-num {
    width: 48px;
    height: 48px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.step-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---------- Modes (Employees) ---------- */
.modes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 24px;
}

.mode-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.mode-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.mode-card.active {
    border-color: var(--accent-red);
    box-shadow: var(--glow-red);
}

.mode-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.mode-card-icon {
    font-size: 32px;
}

.mode-card-title {
    font-size: 20px;
    font-weight: 700;
}

.mode-card-desc {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.mode-card-details {
    border-top: 1px solid var(--border);
    padding-top: 16px;
    display: grid;
    gap: 8px;
}

.mode-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.mode-detail-label {
    color: var(--text-muted);
}

.mode-detail-value {
    color: var(--accent-red);
    font-weight: 500;
    text-align: right;
}

/* ---------- Download ---------- */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.download-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.download-platform-icon {
    margin-bottom: 16px;
}

.download-platform-icon svg {
    width: 48px;
    height: 48px;
}

.download-platform-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}

.download-req {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.download-meta {
    display: flex;
    gap: 12px;
    justify-content: center;
    font-size: 13px;
    margin-bottom: 4px;
}

.download-version {
    color: var(--accent-red);
    font-weight: 600;
}

.download-size {
    color: var(--text-muted);
}

.download-note {
    text-align: center;
    margin-top: 40px;
    color: var(--text-muted);
    font-size: 14px;
}

/* ---------- Docs ---------- */
.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.doc-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.doc-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
    transform: translateY(-2px);
}

.doc-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.doc-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.doc-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.doc-arrow {
    position: absolute;
    top: 28px;
    right: 28px;
    color: var(--text-dim);
    transition: all 0.2s ease;
}

.doc-card:hover .doc-arrow {
    color: var(--accent-red);
    transform: translateX(4px);
}

/* ---------- Footer ---------- */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 64px 0 32px;
    position: relative;
    z-index: 1;
}

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

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

.footer-logo {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
}

.footer-name {
    font-size: 20px;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-tagline {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.footer-copy {
    font-size: 13px;
    color: var(--text-dim);
}

.footer-col h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    padding: 6px 0;
    transition: color 0.2s ease;
    cursor: pointer;
}

.footer-col a:hover {
    color: var(--accent-red);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
    color: var(--text-dim);
    font-size: 13px;
}

/* ---------- Modal / Auth ---------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(43, 43, 51, 0.45);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px 36px;
    max-width: 420px;
    width: 100%;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.modal-close:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.auth-logo {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
}

.auth-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-title {
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 6px;
}

.modal-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.auth-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    padding: 4px;
    margin-bottom: 24px;
}

.auth-tabs button {
    flex: 1;
    padding: 10px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.auth-tabs button.active {
    background: var(--gradient-primary);
    color: white;
}

.auth-form, .form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(230, 0, 35, 0.1);
}

.form-group input::placeholder {
    color: var(--text-dim);
}

.auth-error {
    color: var(--accent-red);
    font-size: 14px;
    margin-bottom: 12px;
    text-align: center;
}

.auth-success {
    margin-top: 20px;
    padding: 20px;
    background: rgba(26, 174, 92, 0.08);
    border: 1px solid rgba(26, 174, 92, 0.2);
    border-radius: var(--radius-md);
}

.auth-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.auth-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.auth-username {
    font-weight: 700;
}

.auth-role {
    font-size: 13px;
    color: var(--text-muted);
}

.auth-note {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ---------- Toast ---------- */
.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    z-index: 3000;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.toast-success {
    background: rgba(26, 174, 92, 0.12);
    border: 1px solid rgba(26, 174, 92, 0.3);
    color: var(--accent-green);
}

.toast-error {
    background: rgba(230, 0, 35, 0.1);
    border: 1px solid rgba(230, 0, 35, 0.3);
    color: var(--accent-red);
}

.toast-info {
    background: rgba(230, 0, 35, 0.08);
    border: 1px solid rgba(230, 0, 35, 0.25);
    color: var(--accent-red);
}

/* ---------- Transitions ---------- */
.modal-enter-active, .modal-leave-active {
    transition: opacity 0.3s ease;
}

.modal-enter-active .modal-card,
.modal-leave-active .modal-card {
    transition: transform 0.3s ease;
}

.modal-enter-from, .modal-leave-to {
    opacity: 0;
}

.modal-enter-from .modal-card {
    transform: scale(0.95) translateY(10px);
}

.modal-leave-to .modal-card {
    transform: scale(0.95);
}

.toast-enter-active, .toast-leave-active {
    transition: all 0.3s ease;
}

.toast-enter-from, .toast-leave-to {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
}

/* ---------- Responsive ---------- */
@media (max-width: 968px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(20px);
        padding: 20px;
        gap: 4px;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open {
        transform: translateY(0);
    }

    .nav-links a {
        width: 100%;
        padding: 14px 20px;
    }

    .nav-login {
        margin-top: 8px;
        text-align: center;
    }

    .menu-toggle {
        display: flex;
    }

    .section {
        padding: 80px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

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

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

    .hero-stats {
        gap: 16px;
    }

    .hero-stat-num {
        font-size: 24px;
    }

    .hero-stat-sep {
        height: 30px;
    }

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

    .download-card {
        padding: 24px 16px;
    }

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

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 12px;
    }

    .hero-stat-sep {
        width: 40px;
        height: 1px;
    }

    .features-grid, .modes-grid, .download-grid, .steps-grid {
        grid-template-columns: 1fr;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
    }
}
