/* ═══════════════════════════════════════════════════════════
   GoSecureShare Micro Mini — Core Enterprise Stylesheet
   Theme: Clean B2B Enterprise White (Slate / Emerald / Subtle Elevation)
   ═══════════════════════════════════════════════════════════ */

:root {
    --bg-base: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #f1f5f9;
    --bg-surface-subtle: #f8fafc;
    
    --border-color: #e2e8f0;
    --border-strong: #cbd5e1;
    --border-focus: #10b981;

    --accent: #059669;
    --accent-hover: #047857;
    --accent-light: #10b981;
    --accent-subtle: #ecfdf5;
    --accent-border: #a7f3d0;
    --accent-text: #065f46;

    --amber: #d97706;
    --amber-subtle: #fffbeb;
    --amber-border: #fde68a;
    --amber-text: #92400e;

    --red: #dc2626;
    --red-subtle: #fef2f2;
    --red-border: #fecaca;
    --red-text: #991b1b;

    --blue-subtle: #eff6ff;
    --blue-border: #bfdbfe;
    --blue-text: #1e40af;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-inverted: #ffffff;

    --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
    --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.04);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    line-height: 1.5;
    font-size: 0.875rem;
    -webkit-font-smoothing: antialiased;
}

/* ── Container ── */
.container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

/* ── Subtle Background Accent Grid ── */
.ambient-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 420px;
    background: radial-gradient(circle at 50% -20%, rgba(16, 185, 129, 0.07) 0%, rgba(248, 250, 252, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

/* ── Header ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    gap: 0.75rem;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo-img {
    height: 30px;
    width: 30px;
    border-radius: 6px;
}

.brand-title {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.brand-title .brand-accent {
    color: var(--accent);
}

.badge-mini {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
    background: var(--accent-subtle);
    color: var(--accent-text);
    border: 1px solid var(--accent-border);
    letter-spacing: 0.02em;
    margin-left: 0.25rem;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .header-nav {
        gap: 1.25rem;
    }
}

.nav-link {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.5rem;
    border-radius: 6px;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-surface-elevated);
}

.nav-link.active {
    color: var(--accent);
    font-weight: 600;
}

.hidden-mobile {
    display: none;
}

@media (min-width: 768px) {
    .hidden-mobile {
        display: inline-flex;
    }
}

.btn-enterprise-header {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--amber-subtle);
    color: var(--amber-text);
    border: 1px solid var(--amber-border);
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.btn-enterprise-header:hover {
    background: #fef3c7;
    border-color: #f59e0b;
}

.btn-enterprise-header .price-tag {
    background: #f59e0b;
    color: #ffffff;
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 0.6875rem;
}

.btn-github-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    transition: all 0.15s ease;
}

.btn-github-icon:hover {
    color: var(--text-primary);
    border-color: var(--border-strong);
    background: var(--bg-surface-elevated);
}

/* ── Main Content Area ── */
.main-content {
    flex: 1;
    position: relative;
    z-index: 1;
    padding: 2rem 0 3.5rem;
}

@media (min-width: 640px) {
    .main-content {
        padding: 2.75rem 0 4.5rem;
    }
}

/* ── Hero Section ── */
.hero-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 1.75rem;
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: var(--accent-subtle);
    border: 1px solid var(--accent-border);
    color: var(--accent-text);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.875rem;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

.hero-title {
    font-size: clamp(1.6rem, 4vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 0.625rem;
}

.hero-title .highlight {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.55;
    max-width: 580px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .hero-subtitle {
        font-size: 0.9375rem;
    }
}

/* ── Main Secret Card ── */
.secret-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .secret-card {
        padding: 1.75rem;
    }
}

.input-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.input-label {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.editor-tools {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.btn-tool {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 500;
    background: var(--bg-surface-elevated);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-tool:hover {
    color: var(--text-primary);
    border-color: var(--border-strong);
}

.textarea-wrapper {
    position: relative;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    background: var(--bg-surface);
    transition: all 0.15s ease;
}

.textarea-wrapper:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.secret-textarea {
    width: 100%;
    min-height: 140px;
    padding: 0.875rem 1rem;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    line-height: 1.55;
    resize: vertical;
}

.secret-textarea::placeholder {
    color: #94a3b8;
    font-family: var(--font-sans);
}

.textarea-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.375rem 0.875rem;
    background: var(--bg-surface-subtle);
    border-top: 1px solid var(--border-color);
    border-bottom-left-radius: 7px;
    border-bottom-right-radius: 7px;
    font-size: 0.6875rem;
    color: var(--text-muted);
}

.zk-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--accent-text);
    font-weight: 600;
}

/* ── Feature Options Grid ── */
.options-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin: 1.25rem 0 0.625rem;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .options-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.option-card {
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 0.875rem;
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    transition: all 0.15s ease;
}

.option-card.active-free {
    background: var(--accent-subtle);
    border-color: var(--accent-border);
}

.option-card.locked-enterprise {
    cursor: pointer;
    background: #ffffff;
}

.option-card.locked-enterprise:hover {
    border-color: #f59e0b;
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.option-icon-box {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.option-card.active-free .option-icon-box {
    background: var(--accent);
    color: #ffffff;
}

.option-card.locked-enterprise .option-icon-box {
    background: var(--amber-subtle);
    color: var(--amber);
    border: 1px solid var(--amber-border);
}

.option-body {
    flex: 1;
    min-width: 0;
}

.option-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 2px;
}

.option-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.option-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 9999px;
    white-space: nowrap;
}

.badge-status.active {
    background: #10b981;
    color: #ffffff;
}

.badge-status.locked {
    background: var(--amber-subtle);
    color: var(--amber-text);
    border: 1px solid var(--amber-border);
}

/* ── Primary Action Area ── */
.action-area {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .action-area {
        flex-direction: row;
        align-items: center;
    }
}

.btn-generate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--accent);
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px 0 rgba(5, 150, 105, 0.3);
    min-height: 44px;
}

.btn-generate:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 6px -1px rgba(5, 150, 105, 0.4);
}

.btn-generate:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.security-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* ── Secret Created Card (Result) ── */
.result-card {
    background: var(--bg-surface);
    border: 1px solid var(--accent-border);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: none;
}

.result-card.visible {
    display: block !important;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.875rem;
}

.result-header h3 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-primary);
}

.share-link-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    margin-bottom: 1rem;
}

.share-link-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-copy {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--accent);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    min-height: 34px;
}

.btn-copy:hover {
    background: var(--accent-hover);
}

.share-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.btn-action-subtle {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--bg-surface-elevated);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-action-subtle:hover {
    color: var(--text-primary);
    border-color: var(--border-strong);
    background: #ffffff;
}

/* ── Secret Recipient View (Reveal) ── */
.reveal-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    display: none;
}

.reveal-card.visible {
    display: block !important;
    animation: fadeIn 0.3s ease;
}

.burn-warning-box {
    background: var(--red-subtle);
    border: 1px solid var(--red-border);
    border-radius: 8px;
    padding: 0.875rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-align: left;
}

.burn-warning-box .icon {
    color: var(--red);
    font-size: 24px;
    flex-shrink: 0;
}

.burn-warning-title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--red-text);
}

.burn-warning-desc {
    font-size: 0.75rem;
    color: #b91c1c;
}

.btn-reveal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--red);
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px 0 rgba(220, 38, 38, 0.3);
    min-height: 44px;
}

.btn-reveal:hover {
    background: #b91c1c;
}

.plaintext-box {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    text-align: left;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--text-primary);
    margin-bottom: 1rem;
    max-height: 320px;
    overflow-y: auto;
}

/* ── Trust Grid / Product Features ── */
.trust-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

@media (min-width: 640px) {
    .trust-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.trust-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    text-align: left;
    box-shadow: var(--shadow-sm);
}

.trust-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--accent-subtle);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.625rem;
}

.trust-title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.trust-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* ── Enterprise Upsell Modal ── */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
    padding: 1rem;
}

.modal-backdrop.open {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.modal-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem;
    position: relative;
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.modal-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.btn-modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
}

.btn-modal-close:hover {
    color: var(--text-primary);
    background: var(--bg-surface-elevated);
}

.modal-feature-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 0 1.25rem;
}

.modal-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.78125rem;
    color: var(--text-secondary);
}

.modal-feature-item .check {
    color: var(--accent);
    font-size: 18px;
    flex-shrink: 0;
    margin-top: -1px;
}

.modal-cta-box {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    margin-top: 1rem;
}

.modal-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.modal-price-sub {
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.btn-modal-primary {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--accent);
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.15s ease;
}

.btn-modal-primary:hover {
    background: var(--accent-hover);
}

/* ── Footer ── */
.site-footer {
    border-top: 1px solid var(--border-color);
    background: #ffffff;
    padding: 2rem 0 2.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

@media (min-width: 640px) {
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-link:hover {
    color: var(--text-primary);
}
