/* ========================================
   SecureDox Page Styles
   ======================================== */

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

.sd-hero-bg {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 50% 25%, rgba(99, 102, 241, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 40% 30% at 70% 70%, rgba(34, 211, 238, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 30% 40% at 20% 60%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.sd-hero .container {
    position: relative;
    z-index: 10;
}

.sd-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.sd-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 32px;
}

.sd-badge-shield {
    display: flex;
    align-items: center;
}

.sd-badge-shield svg {
    width: 16px;
    height: 16px;
}

.sd-hero-title {
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 24px;
}

.sd-line {
    display: block;
}

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

.sd-hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 80px;
}

/* Philosophy Section */
.sd-philosophy {
    padding: 120px 0;
    position: relative;
    background: var(--bg-dark);
}

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

.sd-phil-left .section-title {
    text-align: left;
}

.sd-phil-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sd-phil-card {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all var(--transition-smooth);
    cursor: pointer;
}

.sd-phil-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    transform: translateX(8px);
}

.sd-phil-card:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.sd-phil-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    border-radius: 10px;
    margin-bottom: 16px;
}

.sd-phil-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--text-primary);
}

.sd-phil-card h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.sd-phil-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.sd-phil-card p em {
    color: var(--accent);
    font-style: italic;
}

/* Pillars Section */
.sd-pillars {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(18, 18, 26, 1) 100%);
}

.sd-pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.sd-pillar-card {
    padding: 40px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    text-align: center;
    transition: all var(--transition-smooth);
    opacity: 0;
    transform: translateY(30px);
}

.sd-pillar-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.sd-pillar-card:hover {
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.sd-pillar-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
}

.sd-pillar-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--accent);
}

.sd-pillar-card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.sd-pillar-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Features Section */
.sd-features {
    padding: 120px 0;
    background: var(--bg-dark);
}

.sd-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.sd-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    transition: all var(--transition-smooth);
    opacity: 0;
    transform: translateY(20px);
}

.sd-feature-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.sd-feature-item:hover {
    border-color: var(--accent);
    transform: translateX(4px);
}

.sd-feature-check {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 50%;
    margin-top: 2px;
}

.sd-feature-check svg {
    width: 14px;
    height: 14px;
    stroke: #22c55e;
}

.sd-feature-item h3 {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.sd-feature-item p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Why Section */
.sd-why {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(18, 18, 26, 0.5) 50%, var(--bg-dark) 100%);
}

.sd-why-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.sd-why-content .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.sd-why-text {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.sd-why-text strong {
    color: var(--text-primary);
}

.sd-why-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sd-why-shield {
    width: 240px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: shieldPulse 4s ease-in-out infinite;
}

.sd-why-shield svg {
    width: 160px;
    height: 160px;
    filter: drop-shadow(0 0 30px rgba(99, 102, 241, 0.3));
}

@keyframes shieldPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

/* Download Section */
.sd-download {
    padding: 100px 0;
    background: var(--bg-dark);
}

.sd-download-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 56px 48px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    opacity: 0;
    transform: translateY(30px);
}

.sd-download-card.visible {
    animation: fadeInUp 0.8s ease forwards;
}

.sd-download-left .section-title {
    text-align: left;
}

.sd-download-text {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 440px;
}

.sd-download-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.sd-download-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
}

.sd-download-badge svg {
    width: 14px;
    height: 14px;
}

.sd-download-arch {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.sd-arch-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.sd-arch-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sd-arch-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 14px 20px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    min-width: 120px;
}

.sd-arch-btn:hover {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.08);
    transform: translateY(-2px);
}

.sd-arch-name {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.sd-arch-desc {
    font-size: 11px;
    color: var(--text-muted);
}

.sd-download-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 16px;
}

.sd-download-note strong {
    color: var(--accent);
}

.sd-install-warning {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 24px;
    padding: 16px 20px;
    background: rgba(234, 179, 8, 0.08);
    border: 1px solid rgba(234, 179, 8, 0.2);
    border-radius: 12px;
}

.sd-warning-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.sd-warning-icon svg {
    width: 22px;
    height: 22px;
    stroke: #eab308;
}

.sd-warning-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.sd-warning-text strong {
    color: var(--text-primary);
}

.sd-warning-text em {
    color: #eab308;
    font-style: normal;
}

/* Phone Mockup */
.sd-phone-mock {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sd-phone-frame {
    position: relative;
    width: 220px;
    height: 440px;
    background: linear-gradient(180deg, #1a1a2e 0%, #0a0a0f 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 36px;
    padding: 16px;
    box-shadow:
        0 0 40px rgba(99, 102, 241, 0.15),
        inset 0 0 20px rgba(255, 255, 255, 0.03);
}

.sd-phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background: #0a0a0f;
    border-radius: 0 0 16px 16px;
    z-index: 2;
}

.sd-phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: radial-gradient(circle at 50% 40%, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
}

.sd-phone-lock svg {
    width: 48px;
    height: 48px;
    stroke: var(--accent);
    opacity: 0.8;
}

.sd-phone-brand {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.05em;
}

.sd-phone-status {
    padding: 6px 16px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    color: #22c55e;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* iOS Note */
.sd-ios-note {
    padding: 80px 0;
    background: var(--bg-dark);
}

.sd-ios-card {
    max-width: 680px;
    margin: 0 auto;
    padding: 48px 40px;
    background: var(--bg-card);
    border: 1px solid rgba(234, 179, 8, 0.15);
    border-radius: 20px;
    text-align: center;
}

.sd-ios-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(234, 179, 8, 0.1);
    border-radius: 50%;
    margin-bottom: 20px;
}

.sd-ios-icon svg {
    width: 28px;
    height: 28px;
    stroke: #eab308;
}

.sd-ios-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.sd-ios-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 520px;
    margin: 0 auto;
}

/* Free Section */
.sd-free {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(18, 18, 26, 1) 100%);
}

.sd-free-card {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    padding: 56px 48px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
}

.sd-free-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: #22c55e;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.sd-free-badge svg {
    width: 16px;
    height: 16px;
    stroke: #22c55e;
}

.sd-free-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.sd-free-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.sd-free-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 32px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.sd-free-dot {
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.5;
}

/* Support Section */
.sd-support {
    padding: 100px 0 120px;
    background: var(--bg-dark);
}

.sd-support-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 56px;
}

.sd-support-card {
    padding: 32px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    text-align: center;
    transition: all var(--transition-smooth);
    opacity: 0;
    transform: translateY(30px);
}

.sd-support-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.sd-support-card:hover {
    border-color: var(--accent);
    transform: translateY(-6px);
}

.sd-support-number {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.sd-support-card h3 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.sd-support-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.sd-support-cta {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.sd-support-message {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
    padding: 24px;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 14px;
    font-style: italic;
}

.sd-support-footnote {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-top: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Toast Notification */
.sd-toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 16px 28px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-body);
    border-radius: 12px;
    z-index: 10000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    max-width: 420px;
    text-align: center;
    line-height: 1.5;
}

.sd-toast.sd-toast-error {
    background: #ef4444;
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.3);
}

.sd-toast.sd-toast-success {
    background: #22c55e;
    box-shadow: 0 8px 32px rgba(34, 197, 94, 0.3);
}

.sd-toast.sd-toast-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 480px) {
    .sd-toast {
        left: 16px;
        right: 16px;
        transform: translateY(20px);
        max-width: none;
    }

    .sd-toast.sd-toast-show {
        transform: translateY(0);
    }
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .sd-pillar-card,
    .sd-feature-item,
    .sd-download-card,
    .sd-support-card {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .sd-why-shield {
        animation: none;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .sd-phil-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .sd-pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sd-why-wrapper {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .sd-why-visual {
        order: -1;
    }

    .sd-download-card {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 32px;
        text-align: center;
    }

    .sd-download-left .section-title {
        text-align: center;
    }

    .sd-download-meta {
        justify-content: center;
    }

    .sd-support-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sd-hero {
        padding: 140px 20px 80px;
    }

    .sd-hero-title {
        font-size: clamp(32px, 10vw, 48px);
    }

    .sd-philosophy,
    .sd-pillars,
    .sd-features,
    .sd-why,
    .sd-download,
    .sd-free,
    .sd-support {
        padding: 80px 0;
    }

    .sd-pillars-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

    .sd-features-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

    .sd-support-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto 40px;
    }

    .sd-download-card {
        padding: 32px 24px;
    }

    .sd-free-card {
        padding: 40px 24px;
    }

    .sd-ios-card {
        padding: 40px 24px;
    }

    .sd-phone-frame {
        width: 180px;
        height: 360px;
        border-radius: 28px;
        padding: 12px;
    }

    .sd-phone-screen {
        border-radius: 18px;
    }

    .sd-phone-brand {
        font-size: 15px;
    }

    .sd-phone-lock svg {
        width: 36px;
        height: 36px;
    }

    .sd-why-shield {
        width: 180px;
        height: 180px;
    }

    .sd-why-shield svg {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .sd-hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .sd-hero-cta .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .sd-free-strip {
        gap: 8px;
        font-size: 12px;
        padding: 12px 16px;
    }
}

/* Print Styles */
@media print {
    .navbar, .progress-bar, .scroll-indicator {
        display: none !important;
    }

    .sd-hero {
        min-height: auto;
        padding: 40px 0;
    }

    body {
        background: white;
        color: black;
    }

    .footer {
        background: white;
        border-top: 1px solid #ccc;
    }

    .sd-hero-bg {
        display: none;
    }
}
