/* ===================================
   TheSecureNote - Homepage Premium CSS
   Refined, polished UI design
   TEST_MARKER_GITHUB_ACTIONS_2026_01_07_22_33
   =================================== */

/* ===== Typography ===== */
h1,
h2,
h3,
.pricing-amount .amount {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ===== Hero Section ===== */
.hero-section {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 160px;
    align-items: center;
    padding: var(--space-20) var(--space-8);
    max-width: 1300px;
    margin: 0 auto;
    min-height: calc(100vh - 80px);
}

.hero-content {
    max-width: 640px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--brand-primary);
    margin-bottom: var(--space-6);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--brand-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.hero-section h1 {
    font-size: clamp(2.75rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.035em;
    margin-bottom: var(--space-5);
    color: var(--text-primary);
}

.gradient-text {
    background: linear-gradient(135deg, #2563EB 0%, #1E40AF 50%, #1E3A8A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Rotating Text Animation */
.rotating-text {
    display: inline-block;
    position: relative;
    min-width: 170px;
    white-space: nowrap;
}

.rotate-word {
    display: inline;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    background: linear-gradient(135deg, #2563EB 0%, #1E40AF 50%, #1E3A8A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: absolute;
    left: 0;
}

.rotate-word.active {
    position: relative;
    opacity: 1;
    transform: translateY(0);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-8);
}

/* ===== Access Selector (Tier Tabs) ===== */
.access-selector {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 250, 251, 0.9) 100%);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 24px;
    padding: 32px;
    width: 580px;
    margin: 0;
    box-sizing: border-box;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 10px 30px -10px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.access-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-bottom: 24px;
    padding: 4px;
    background: #E2E8F0;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.access-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 12px 8px;
    background: transparent;
    border: none;
    border-radius: 10px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #64748B;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    width: 100%;
}

.access-tab::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: transparent;
    transition: all 0.3s ease;
}

.access-tab:hover {
    color: #1E293B;
}

.access-tab:hover::before {
    background: rgba(255, 255, 255, 0.5);
}

.access-tab.active {
    background: white;
    color: #0F172A;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.06),
        0 1px 2px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.access-tab.active::before {
    background: transparent;
}

.tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
    transition: color 0.3s ease;
}

.tab-icon svg {
    width: 18px;
    height: 18px;
}

.access-tab.active .tab-icon,
.access-tab:hover .tab-icon {
    color: #2563EB;
}

.tab-label {
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: -0.01em;
    white-space: nowrap;
    text-align: center;
}

.tab-badge {
    font-size: 0.5rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tab-badge.free {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.tab-badge.pro {
    background: rgba(245, 158, 11, 0.12);
    color: #D97706;
}

/* Form Styles */
.access-form {
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    /* Prevent any horizontal overflow */
}

.access-form.hidden {
    display: none;
}



.input-row {
    display: flex;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    /* Critical: Prevent horizontal overflow on all screen sizes */
}

.input-box {
    flex: 1;
    display: flex;
    align-items: stretch;
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.input-box:hover {
    border-color: #CBD5E1;
}

.input-box:focus-within {
    border-color: #2563EB;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.input-box.full {
    flex: 1;
}

.input-prefix,
.input-suffix {
    display: flex;
    align-items: center;
    padding: 0 16px;
    color: #64748B;
    font-size: 0.9375rem;
    font-family: inherit;
    white-space: nowrap;
    background: #F8FAFC;
    font-weight: 500;
    border-right: 1px solid #E2E8F0;
    letter-spacing: -0.01em;
}

.input-prefix {
    padding-right: 12px;
}

.input-suffix {
    padding-left: 12px;
    border-right: none;
    border-left: 1px solid #E2E8F0;
}

.input-box input {
    flex: 1;
    padding: 16px 16px;
    border: none;
    background: white;
    font-size: 1rem;
    font-weight: 500;
    color: #0F172A;
    min-width: 120px;
}

.input-box input:focus {
    outline: none;
}

.input-box input::placeholder {
    color: #94A3B8;
    font-weight: 400;
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: white;
    font-weight: 600;
    font-size: 15px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 14px rgba(37, 99, 235, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.submit-btn:hover:not(:disabled)::before {
    opacity: 1;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow:
        0 8px 20px rgba(37, 99, 235, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.submit-btn svg {
    transition: transform 0.3s ease;
}

.submit-btn:hover:not(:disabled) svg {
    transform: translateX(3px);
}

.form-hint {
    margin-top: 14px;
    font-size: 0.8125rem;
    color: #64748B;
    letter-spacing: -0.01em;
}

/* Subdomain suggestion */
.subdomain-suggestion {
    margin-top: 12px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #1E293B;
    letter-spacing: -0.01em;
    text-align: left;
}

.subdomain-suggestion .suggestion-value {
    color: #2563EB;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
}

.subdomain-suggestion .suggestion-value:hover {
    color: #1D4ED8;
    text-decoration: underline;
}

.subdomain-suggestion.hidden {
    display: none;
}



/* Turnstile widget: hidden by default, revealed only when user needs to verify.
   Uses max-height:0 + overflow:hidden (NOT display:none) so the Turnstile
   iframe still renders and the challenge runs in the background. */
.cf-turnstile {
    margin-top: 0;
    max-height: 0;
    overflow: hidden;
}

.cf-turnstile.show {
    max-height: 100px;
    margin-top: 8px;
}


/* ===== Hero Visual ===== */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.notebook-preview {
    width: 100%;
    max-width: 640px;
    background: var(--bg-primary);
    border-radius: 16px;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.03),
        0 12px 24px -6px rgba(0, 0, 0, 0.08),
        0 32px 64px -12px rgba(37, 99, 235, 0.15);
    overflow: hidden;
    transform: perspective(1500px) rotateY(-6deg) rotateX(3deg);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.notebook-preview:hover {
    transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);
}

.preview-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
}

.preview-dots {
    display: flex;
    gap: 5px;
}

.preview-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.preview-dots span:nth-child(1) {
    background: #FF5F57;
}

.preview-dots span:nth-child(2) {
    background: #FFBD2E;
}

.preview-dots span:nth-child(3) {
    background: #28C840;
}

.preview-url {
    flex: 1;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-family: inherit;
    background: rgba(0, 0, 0, 0.03);
    padding: 4px 12px;
    border-radius: 6px;
    margin: 0 var(--space-4);
    max-width: 300px;
}

.preview-lock {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.6875rem;
    color: #10B981;
    font-weight: 500;
}

.preview-body {
    display: flex;
    min-height: 340px;
}

.preview-sidebar {
    width: 140px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-light);
    padding: var(--space-3);
}

.preview-section {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-2);
    border-radius: var(--radius-md);
    font-size: 0.6875rem;
    color: var(--text-tertiary);
    margin-bottom: 2px;
}

.preview-section.active {
    background: var(--brand-primary);
    color: white;
}

.section-icon {
    font-size: 0.75rem;
}

.preview-add {
    margin-top: var(--space-2);
    padding: var(--space-2);
    font-size: 0.625rem;
    color: var(--text-tertiary);
    border: 1px dashed var(--border-light);
    border-radius: var(--radius-sm);
    text-align: center;
}

.preview-content {
    flex: 1;
    padding: var(--space-4);
}

.preview-line {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    margin-bottom: var(--space-2);
}

.preview-line.w40 {
    width: 40%;
}

.preview-line.w60 {
    width: 60%;
}

.preview-line.w70 {
    width: 70%;
}

.preview-line.w80 {
    width: 80%;
}

.preview-line.w90 {
    width: 90%;
}

/* ===== Social Proof ===== */
/* ===== Social Proof ===== */
.social-proof {
    padding: var(--space-4) var(--space-6) var(--space-8);
    background: transparent;
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

.proof-items {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-8);
    flex-wrap: wrap;
    background: var(--bg-primary);
    padding: var(--space-4) var(--space-8);
    border-radius: 100px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-light);
    max-width: fit-content;
    margin: 0 auto;
}

.proof-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.proof-item svg {
    color: var(--brand-primary);
    opacity: 1;
}

.proof-divider {
    width: 1px;
    height: 16px;
    background: var(--border-light);
}

/* ===== Section Headers ===== */
.section-header {
    text-align: center;
    max-width: 540px;
    margin: 0 auto var(--space-12);
}

.section-header h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-3);
    color: var(--text-primary);
}

.section-header p {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== Features Section ===== */
.features-section {
    padding: var(--space-20) var(--space-6);
    background: var(--bg-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    padding: var(--space-6);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    background: var(--bg-primary);
    transition: all 0.25s ease;
}

.feature-card:hover {
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
    color: var(--brand-primary);
}

.feature-card h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: var(--space-2);
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* ===== How It Works Section ===== */
.how-section {
    padding: var(--space-20) var(--space-6);
    background: var(--bg-secondary);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    max-width: 1100px;
    margin: 0 auto;
}

.step-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: var(--space-8);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.step-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.1);
    transform: translateY(-4px);
}

.step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(30, 64, 175, 0.1) 100%);
    border-radius: 16px;
    margin-bottom: var(--space-4);
    color: #2563EB;
}

.step-card .step-number {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #2563EB;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-3);
}

.step-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-2);
    color: var(--text-primary);
}

.step-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== Pricing Section ===== */
.pricing-section {
    padding: var(--space-20) var(--space-6);
    background: var(--bg-primary);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    position: relative;
    padding: var(--space-8);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    background: var(--bg-primary);
    text-align: center;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.pricing-card.featured {
    border: 2px solid var(--brand-primary);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: var(--space-1) var(--space-4);
    background: var(--brand-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.pricing-tier {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: var(--space-3);
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: var(--space-1);
    margin-bottom: var(--space-4);
}

.pricing-price .amount {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.pricing-price .period {
    font-size: 0.9375rem;
    color: var(--text-tertiary);
}

.pricing-url {
    font-size: 0.9375rem;
    color: var(--text-tertiary);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--border-light);
    font-family: inherit;
    letter-spacing: -0.01em;
}

.pricing-url strong {
    color: var(--text-primary);
}

.pricing-includes {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: #2563EB;
    font-weight: 600;
    margin-bottom: var(--space-4);
    padding: 8px 14px;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 20px;
}

.pricing-includes svg {
    color: #2563EB;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: var(--space-6);
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) 0;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.pricing-features li svg {
    color: #10B981;
    flex-shrink: 0;
}

.pricing-btn {
    display: block;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
}

.pricing-btn.primary {
    background: linear-gradient(135deg, var(--brand-primary) 0%, #2563EB 100%);
    color: white;
}

.pricing-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.pricing-btn.secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.pricing-btn.secondary:hover {
    background: var(--bg-tertiary);
}

/* ===== Final CTA ===== */
.final-cta {
    padding: var(--space-20) var(--space-6);
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    text-align: center;
}

.final-cta h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-3);
}

.final-cta p {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-8);
}

.final-cta .cta-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    background: white;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-lg);
    transition: all 0.2s ease;
}

.final-cta .cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

/* ===== Footer ===== */
.footer {
    padding: var(--space-16) var(--space-6) var(--space-8);
    background: var(--bg-primary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: var(--space-12);
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: var(--space-10);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    margin-bottom: var(--space-2);
}

.footer-brand p {
    font-size: 0.9375rem;
    color: var(--text-tertiary);
}

.footer-about {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 500px;
}

.footer-links {
    display: flex;
    gap: var(--space-16);
}

.footer-col h4 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
}

.footer-col a {
    display: block;
    font-size: 0.9375rem;
    color: var(--text-tertiary);
    text-decoration: none;
    margin-bottom: var(--space-2);
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--brand-primary);
}

.footer-bottom {
    max-width: 1100px;
    margin: var(--space-6) auto 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

/* ===== Responsive (Tablet) ===== */
@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        padding: var(--space-12) var(--space-6);
        min-height: auto;
        gap: var(--space-12);
    }

    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .access-selector {
        width: 100%;
        max-width: 540px;
    }

    .hero-visual {
        display: none;
    }

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

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

/* ===== Responsive (Mobile) ===== */
@media (max-width: 768px) {

    /* Navigation */
    .navbar {
        padding: var(--space-3) var(--space-4);
    }

    .navbar-links .navbar-link:not(.github-link) {
        display: none;
    }

    .navbar-logo span {
        font-size: 0.95rem;
    }

    /* Hero Section */
    .hero-section {
        padding: var(--space-8) var(--space-4);
        gap: var(--space-8);
    }

    .hero-section h1 {
        font-size: 2.25rem;
        line-height: 1.1;
    }

    .hero-section h1 br {
        display: none;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: var(--space-6);
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: var(--space-1) var(--space-3);
    }

    /* Mobile Performance: Disable heavy animations */
    .badge-dot {
        animation: none;
        /* Stop continuous pulse on mobile */
    }

    .notebook-preview {
        transform: none !important;
        /* Disable 3D perspective transforms */
        transition: none !important;
        /* Disable transitions during scroll/input */
    }

    .notebook-preview:hover {
        transform: none !important;
    }

    /* Rotating Text - Remove min-width on mobile */
    .rotating-text {
        min-width: auto !important;
        display: inline;
    }

    /* Access Selector - Override fixed width */
    .access-selector {
        padding: var(--space-5);
        border-radius: 20px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .access-tabs {
        grid-template-columns: 1fr;
        gap: 1px;
        padding: 3px;
    }

    .access-tab {
        padding: var(--space-3) var(--space-2);
        transition: none !important;
        /* Instant tab switching on mobile */
    }

    .access-tab::before {
        transition: none !important;
    }

    .access-form {
        transition: none !important;
        /* Instant form switching */
    }

    .tab-label {
        font-size: 0.875rem;
    }

    /* Form Inputs */
    .input-row {
        flex-direction: column;
        gap: var(--space-3);
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        /* Prevent horizontal overflow */
    }

    .input-box {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        /* Allow flex shrinking */
        overflow: clip;
        /* Clips to border-radius without creating scroll container */
    }

    .input-box input {
        font-size: 16px;
        /* Prevents zoom on iOS */
        padding: 14px 12px;
        min-width: 80px;
        /* Minimum usable width */
        flex: 1 1 auto;
        /* Flexible input that grows/shrinks as needed */
    }

    /* Full-width input (custom domain) should use all available space */
    .input-box.full input {
        flex: 1 1 100%;
    }

    .input-prefix,
    .input-suffix {
        font-size: 0.75rem;
        padding: 0 10px;
        min-width: 0;
        flex: 0 0 auto;
        /* Take only needed space */
        max-width: 60%;
        /* Prevent excessive width on small screens */
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .input-suffix {
        font-size: 0.75rem !important;
        padding: 0 8px !important;
        letter-spacing: -0.01em;
        white-space: nowrap;
        max-width: 55%;
        /* Slightly smaller for longer suffix text */
    }

    .input-prefix {
        font-size: 0.7rem !important;
        padding: 0 8px !important;
        letter-spacing: -0.02em;
    }

    /* Consistent form height to prevent layout shift */
    .access-form {
        min-height: 165px;
        padding-bottom: 40px;
        /* Extra space before keyboard */
    }

    /* CRITICAL: Mobile keyboard handling */
    /* Ensure input fields scroll into view when keyboard appears */
    .input-box input:focus {
        scroll-margin-top: 80px;
        scroll-margin-bottom: 150px;
    }

    /* Add scroll padding to container to prevent keyboard from covering content */
    .access-selector {
        scroll-padding-bottom: 200px;
        /* Space for keyboard */
    }

    /* Make hero section scrollable when keyboard appears */
    .hero-section {
        min-height: auto;
        /* Allow shrinking when keyboard appears */
        overflow: visible;
    }

    .submit-btn {
        padding: 14px 24px;
        font-size: 15px;
        width: 100%;
        justify-content: center;
        margin-top: var(--space-3);
        /* Extra spacing from input */
    }

    .form-hint {
        font-size: 0.75rem;
        text-align: center;
    }

    /* Social Proof - Premium Mobile Design */
    .social-proof {
        padding: var(--space-6) var(--space-4) var(--space-8);
        margin-top: -20px;
    }

    .proof-items {
        display: grid;
        grid-template-columns: 1fr;
        gap: var(--space-3);
        padding: var(--space-5);
        border-radius: 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 250, 251, 0.95) 100%);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
    }

    .proof-item {
        font-size: 0.875rem;
        font-weight: 600;
        width: 100%;
        justify-content: flex-start;
        padding: var(--space-3) var(--space-4);
        background: rgba(37, 99, 235, 0.04);
        border-radius: 12px;
        border: 1px solid rgba(37, 99, 235, 0.1);
        transition: all 0.2s ease;
    }

    .proof-item:hover {
        background: rgba(37, 99, 235, 0.08);
        border-color: rgba(37, 99, 235, 0.2);
        transform: translateX(2px);
    }

    .proof-item svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }

    .proof-divider {
        display: none;
    }

    /* Sections */
    .features-section,
    .how-section,
    .pricing-section {
        padding: var(--space-12) var(--space-4);
    }

    .section-header {
        margin-bottom: var(--space-8);
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    /* Feature Cards */
    .features-grid,
    .steps-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .feature-card {
        padding: var(--space-5);
    }

    .feature-card h3,
    .step-card h3 {
        font-size: 1rem;
    }

    .feature-card p,
    .step-card p {
        font-size: 0.875rem;
    }

    /* Step Cards */
    .step-card {
        padding: var(--space-6);
    }

    /* Pricing Cards */
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
        max-width: 100%;
    }

    .pricing-card {
        padding: var(--space-6);
    }

    .pricing-features {
        margin-bottom: var(--space-5);
    }

    .pricing-features li {
        font-size: 0.875rem;
    }

    /* Final CTA */
    .final-cta {
        padding: var(--space-12) var(--space-4);
    }

    .final-cta h2 {
        font-size: 1.75rem;
        margin-bottom: var(--space-3);
    }

    .final-cta p {
        font-size: 1rem;
        margin-bottom: var(--space-6);
    }

    .cta-btn {
        padding: var(--space-4) var(--space-6);
        font-size: 1rem;
        width: 100%;
        max-width: 320px;
    }

    /* Footer - Enhanced Mobile Design */
    .footer {
        padding: var(--space-12) var(--space-4) var(--space-8);
        background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    }

    .footer-content {
        flex-direction: column;
        gap: var(--space-10);
        align-items: center;
    }

    .footer-brand {
        text-align: center;
        max-width: 320px;
    }

    .footer-logo {
        font-size: 1.125rem;
        font-weight: 700;
        margin-bottom: var(--space-3);
    }

    .footer-about {
        font-size: 0.9375rem;
        line-height: 1.6;
        color: var(--text-secondary);
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-8);
        width: 100%;
    }

    .footer-col {
        text-align: center;
        min-width: auto;
    }

    .footer-col h4 {
        font-size: 0.8125rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-bottom: var(--space-3);
        color: var(--text-primary);
    }

    .footer-col a {
        display: block;
        font-size: 0.9375rem;
        padding: var(--space-2) 0;
        color: var(--text-secondary);
        transition: all 0.2s ease;
    }

    .footer-col a:hover {
        color: var(--brand-primary);
        transform: translateX(2px);
    }

    .footer-bottom {
        margin-top: var(--space-10);
        padding-top: var(--space-6);
        border-top: 1px solid var(--border-light);
    }

    .footer-bottom p {
        font-size: 0.875rem;
        color: var(--text-tertiary);
    }
}

/* ===== Responsive (Small Mobile) ===== */
@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .access-selector {
        padding: var(--space-4);
    }

    .navbar-logo {
        font-size: 1rem;
    }

    .navbar-logo svg {
        width: 22px;
        height: 22px;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .proof-items {
        padding: var(--space-3) var(--space-4);
    }
}

/* ===== Language Switcher ===== */
.lang-switcher {
    position: relative;
    margin-left: var(--space-4);
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + var(--space-2));
    right: 0;
    min-width: 140px;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all 0.2s ease;
    z-index: 100;
}

.lang-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    padding: var(--space-3) var(--space-4);
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.15s ease;
}

.lang-option:hover {
    background: var(--bg-secondary);
    color: var(--brand-primary);
}

.lang-option.active {
    color: var(--brand-primary);
    font-weight: 500;
}

/* Dark mode support */
[data-theme="dark"] .lang-dropdown {
    background: var(--bg-secondary);
    border-color: var(--border-medium);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Hide language switcher on mobile (in navbar) */
@media (max-width: 768px) {
    .lang-switcher {
        display: none;
    }
}