/* Base & Reset */
:root {
    --bg-color: #000000;
    --text-main: #f5f5f7;
    --text-muted: #a1a1aa;
    --red-primary: #ff1a1a;
    --red-glow: rgba(255, 26, 26, 0.4);
    --red-glow-strong: rgba(255, 26, 26, 0.8);
    --nav-bg: rgba(0, 0, 0, 0.8);
    --card-bg: rgba(25, 25, 25, 0.6);
    --card-border: rgba(255, 255, 255, 0.1);
    --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

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

a {
    text-decoration: none;
    color: inherit;
}

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

.section-padding {
    padding: 120px 0;
}

/* Typography */
.section-title {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    background: linear-gradient(180deg, #fff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-desc {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 64px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}

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

.logo {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

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

.nav-links a {
    font-size: 14px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

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

.nav-btn-outline {
    border: 1px solid rgba(255,255,255,0.2);
    padding: 6px 16px;
    border-radius: 20px;
    transition: all 0.3s ease !important;
}

.nav-btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.4);
}

.nav-btn-primary {
    background: var(--text-main);
    color: var(--bg-color) !important;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 500;
}

.nav-btn-primary:hover {
    background: #e5e5e5;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 64px;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--red-glow) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
    animation: pulseGlow 8s infinite alternate;
}

@keyframes pulseGlow {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.4; }
    100% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.7; }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 24px;
}

.hero-title {
    font-size: 80px;
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
    background: linear-gradient(180deg, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 24px;
    color: var(--text-muted);
    margin-bottom: 48px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: center;
}

.btn-primary, .btn-secondary {
    padding: 16px 32px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--red-primary);
    color: #fff;
    box-shadow: 0 4px 14px var(--red-glow);
}

.btn-primary:hover {
    background: #e60000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--red-glow-strong);
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: var(--text-main);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.15);
}

/* Features */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 48px 32px;
    transition: transform 0.4s ease, background 0.4s ease;
    backdrop-filter: blur(20px);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(40, 40, 40, 0.8);
    border-color: rgba(255, 26, 26, 0.3);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #444, #222);
    margin-bottom: 24px;
    position: relative;
}

.card-icon.red-glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--red-primary), transparent);
    z-index: -1;
    opacity: 0.5;
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
}

/* Workflow */
.workflow {
    background: #050505;
    position: relative;
}

.workflow::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.workflow-visual {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.workflow-step {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    margin-bottom: 64px;
    position: relative;
    z-index: 2;
}

.workflow-step:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #111;
    border: 1px solid rgba(255, 26, 26, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--red-primary);
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(255, 26, 26, 0.1);
}

.step-content {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 32px;
    border-radius: 20px;
    flex-grow: 1;
}

.step-content h4 {
    font-size: 22px;
    margin-bottom: 12px;
}

.step-content p {
    color: var(--text-muted);
    font-size: 16px;
}

.workflow-line {
    position: absolute;
    left: 31px;
    width: 2px;
    height: calc(100% - 64px);
    background: linear-gradient(180deg, var(--red-primary), transparent);
    z-index: 1;
    top: 64px;
    opacity: 0.3;
}

/* Security */
.security-container {
    display: flex;
    align-items: center;
    gap: 64px;
}

.security-text {
    flex: 1;
}

.security-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.shield-container {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.shield-core {
    width: 100px;
    height: 100px;
    background: var(--red-primary);
    border-radius: 50%;
    box-shadow: 0 0 40px var(--red-glow-strong);
    z-index: 10;
}

.shield-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--red-primary);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.ring-1 {
    width: 150px; height: 150px;
    animation: ripple 3s linear infinite;
}
.ring-2 {
    width: 220px; height: 220px;
    animation: ripple 3s linear infinite 1s;
}
.ring-3 {
    width: 290px; height: 290px;
    animation: ripple 3s linear infinite 2s;
}

@keyframes ripple {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.8; border-width: 2px; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; border-width: 0px; }
}

/* CTA */
.cta {
    background: linear-gradient(180deg, #000 0%, #110000 100%);
    text-align: center;
}

.cta-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 24px;
}

.cta-desc {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.btn-large {
    font-size: 18px;
    padding: 20px 48px;
    border-radius: 40px;
}

/* Footer */
footer {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 40px 0;
    text-align: center;
    background: #000;
}

.footer-logo {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 16px;
    color: #fff;
}

.footer-copyright {
    color: #666;
    font-size: 14px;
}

/* Animations & Utility Classes */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px; right: 24px;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-main);
}

.modal-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #fff;
}

.qr-container {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin: 0 auto 24px;
    width: 240px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.qr-container img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.qr-loader {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 26, 26, 0.3);
    border-radius: 50%;
    border-top-color: var(--red-primary);
    animation: spin 1s ease-in-out infinite;
}

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

.modal-desc {
    font-size: 14px;
    color: var(--text-muted);
}


.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease;
}

.is-visible {
    opacity: 1 !important;
    transform: translate(0, 0) !important;
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

.reveal-text {
    opacity: 0;
    transform: translateY(20px);
    animation: revealTextAnim 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes revealTextAnim {
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-title { font-size: 64px; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .security-container { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-title { font-size: 48px; }
    .hero-subtitle { font-size: 18px; }
    .feature-grid { grid-template-columns: 1fr; }
    .workflow-step { flex-direction: column; gap: 16px; }
    .workflow-line { display: none; }
    .step-number { margin: 0 auto; }
    .step-content { text-align: center; width: 100%; }
}
