/* 9Password Official Website - Modern Apple-Style Dark Theme Stylesheet */
:root {
    --bg-primary: #08090d;
    --bg-secondary: #0f1118;
    --bg-card: rgba(22, 25, 36, 0.7);
    --bg-card-hover: rgba(28, 32, 48, 0.85);
    --bg-glass: rgba(18, 20, 29, 0.75);
    
    --text-primary: #f5f6f8;
    --text-secondary: #9ea4b5;
    --text-muted: #646a7d;
    
    --accent-blue: #0a84ff;
    --accent-blue-hover: #0071e3;
    --accent-blue-glow: rgba(10, 132, 255, 0.25);
    --accent-indigo: #5e5ce6;
    --accent-green: #30d158;
    --accent-orange: #ff9f0a;
    --accent-red: #ff453a;
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.16);
    --border-accent: rgba(10, 132, 255, 0.35);
    
    --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.55);
    --shadow-glow: 0 0 40px rgba(10, 132, 255, 0.18);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
    line-height: 1.6;
    background-color: var(--bg-primary);
    position: relative;
    min-height: 100vh;
}

/* Background Ambient Lighting */
.bg-ambient {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ambient-glow-1 {
    position: absolute;
    top: -15%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 500px;
    background: radial-gradient(circle, rgba(10, 132, 255, 0.15) 0%, rgba(94, 92, 230, 0.08) 50%, transparent 70%);
    filter: blur(80px);
}

.ambient-glow-2 {
    position: absolute;
    top: 45%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(94, 92, 230, 0.1) 0%, transparent 60%);
    filter: blur(90px);
}

.ambient-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(8, 9, 13, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

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

.lang-switch {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-switch:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.1);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent-blue);
    color: #fff;
    box-shadow: 0 4px 16px rgba(10, 132, 255, 0.35);
}

.btn-primary:hover {
    background: var(--accent-blue-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(10, 132, 255, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.btn-lg {
    padding: 14px 30px;
    font-size: 1.05rem;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    padding-top: 150px;
    padding-bottom: 90px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(10, 132, 255, 0.1);
    border: 1px solid rgba(10, 132, 255, 0.28);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: #5ac8fa;
    font-weight: 600;
    margin-bottom: 24px;
    animation: fadeInDown 0.8s ease;
}

.hero-title {
    font-size: clamp(2.4rem, 5.5vw, 4.4rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.035em;
    max-width: 900px;
    margin: 0 auto 24px;
    background: linear-gradient(180deg, #ffffff 30%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto 38px;
    line-height: 1.65;
    font-weight: 400;
}

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

.hero-trust-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Phone Mockup Showcase */
.mockup-wrapper {
    margin-top: 60px;
    position: relative;
    display: flex;
    justify-content: center;
}

.mockup-phone {
    width: 330px;
    height: 680px;
    background: #000;
    border-radius: 50px;
    padding: 12px;
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.7), 0 0 0 4px #2c2f38, 0 0 60px rgba(10, 132, 255, 0.2);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #0b0d14;
    border-radius: 40px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Dynamic Island */
.phone-island {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 106px;
    height: 28px;
    background: #000;
    border-radius: 20px;
    z-index: 10;
}

/* Status Bar */
.phone-status-bar {
    height: 44px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    padding-top: 8px;
}

/* Mock App Content */
.phone-header {
    padding: 8px 18px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.phone-header-title {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.phone-add-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 600;
}

.phone-search-bar {
    margin: 0 16px 14px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 7px 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.phone-items-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.phone-item-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.item-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.item-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
}

.item-info-title {
    font-size: 0.85rem;
    font-weight: 600;
}

.item-info-user {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.item-totp-badge {
    background: rgba(10, 132, 255, 0.15);
    border: 1px solid rgba(10, 132, 255, 0.3);
    color: #64d2ff;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: 1px;
}

.phone-dock {
    height: 60px;
    background: rgba(18, 20, 29, 0.85);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: 8px;
}

.dock-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 0.65rem;
    color: var(--text-muted);
}

.dock-tab.active {
    color: var(--accent-blue);
}

/* Sections Common */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-tag {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Bento Features Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 36px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.bento-card-8 {
    grid-column: span 8;
}

.bento-card-4 {
    grid-column: span 4;
}

.bento-card-6 {
    grid-column: span 6;
}

.bento-card-12 {
    grid-column: span 12;
}

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(10, 132, 255, 0.12);
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.card-icon.indigo {
    background: rgba(94, 92, 230, 0.12);
    color: var(--accent-indigo);
}

.card-icon.green {
    background: rgba(48, 209, 88, 0.12);
    color: var(--accent-green);
}

.card-icon.orange {
    background: rgba(255, 159, 10, 0.12);
    color: var(--accent-orange);
}

.bento-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.bento-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Interactive Demo Showcase */
.demo-section {
    background: linear-gradient(180deg, transparent, rgba(15, 17, 24, 0.6) 50%, transparent);
}

.demo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: stretch;
}

.demo-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 36px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
}

.demo-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-green);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.demo-title {
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.demo-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Password Generator Widget */
.gen-display-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.gen-password-text {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
    color: #64d2ff;
    letter-spacing: 1px;
    word-break: break-all;
    padding-right: 12px;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.copy-btn:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
}

.gen-slider-row {
    margin-bottom: 20px;
}

.gen-slider-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.gen-slider {
    width: 100%;
    -webkit-appearance: none;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.15);
    outline: none;
}

.gen-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-blue);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(10, 132, 255, 0.5);
}

.gen-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.gen-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.gen-checkbox-label input {
    accent-color: var(--accent-blue);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* TOTP 2FA Widget */
.totp-preview-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.totp-digits-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.totp-digits {
    font-family: var(--font-mono);
    font-size: 2.2rem;
    font-weight: 800;
    color: #30d158;
    letter-spacing: 4px;
}

.totp-account-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.totp-timer-ring-wrap {
    position: relative;
    width: 56px;
    height: 56px;
}

.totp-timer-svg {
    transform: rotate(-90deg);
}

.totp-timer-bg {
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 4;
    fill: none;
}

.totp-timer-bar {
    stroke: #30d158;
    stroke-width: 4;
    fill: none;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear;
}

.totp-timer-seconds {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-primary);
}

/* Comparison Table */
.comparison-table-wrap {
    overflow-x: auto;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-top: 40px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.comparison-table th,
.comparison-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.95rem;
}

.comparison-table th {
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comparison-table td:nth-child(2) {
    font-weight: 700;
    color: #5ac8fa;
    background: rgba(10, 132, 255, 0.06);
    border-radius: 8px;
}

/* FAQ Accordion */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.25s ease;
}

.faq-item:hover {
    border-color: var(--border-hover);
}

.faq-question {
    padding: 22px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.faq-icon {
    font-size: 1.2rem;
    transition: transform 0.25s ease;
    color: var(--accent-blue);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 26px 22px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* CTA Footer Section */
.cta-section {
    padding: 90px 0;
    text-align: center;
    background: radial-gradient(ellipse at bottom, rgba(10, 132, 255, 0.15) 0%, transparent 70%);
}

.cta-box {
    background: linear-gradient(180deg, rgba(28, 32, 48, 0.7), rgba(18, 20, 29, 0.9));
    border: 1px solid rgba(10, 132, 255, 0.3);
    border-radius: var(--radius-xl);
    padding: 60px 30px;
    max-width: 860px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.cta-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.cta-desc {
    font-size: 1.08rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
}

/* Site Footer */
.site-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 50px 0 30px;
    background: rgba(6, 7, 10, 0.8);
    font-size: 0.88rem;
    color: var(--text-muted);
}

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

.footer-brand p {
    margin-top: 12px;
    max-width: 320px;
    line-height: 1.6;
}

.footer-col-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-subtle);
    padding-top: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Toast Message */
.toast-msg {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(255, 255, 255, 0.92);
    color: #000;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

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

/* Responsive Media Queries */
@media (max-width: 992px) {
    .bento-card-8, .bento-card-4, .bento-card-6 {
        grid-column: span 12;
    }
    .demo-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero-section {
        padding-top: 120px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
