:root {
    --white: #ffffff;
    --black: #000000;
    --text: #0d0d0d;
    --text-secondary: #6e6e80;
    --border: #e5e5e5;
    --surface: #f4f4f4;
    --surface-hover: #ececec;
    --header-h: 56px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    line-height: 1.5;
    background: var(--white);
    padding-bottom: calc(72px + var(--safe-bottom));
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body.nav-open,
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
}

a { color: inherit; }

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

img, video, svg {
    max-width: 100%;
    height: auto;
}

/* ——— Header ——— */
.header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
    .header {
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    height: 22px;
    width: auto;
    max-width: min(130px, 42vw);
    object-fit: contain;
    display: block;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

.menu-toggle span {
    display: block;
    height: 2px;
    width: 20px;
    background: var(--black);
    border-radius: 1px;
    transition: transform 0.2s, opacity 0.2s;
}

body.nav-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
body.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Full-screen mobile menu (must be outside header — see site.js) */
.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 240;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
    border: none;
    padding: 0;
    cursor: pointer;
}

body.nav-open .nav-backdrop {
    opacity: 1;
    visibility: visible;
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100vw;
    height: 100%;
    height: 100dvh;
    background: var(--white);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: calc(var(--header-h) + 12px) 20px max(24px, var(--safe-bottom));
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 250;
}

body.nav-open .nav {
    transform: translateX(0);
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 24px;
}

.nav-links a {
    display: block;
    padding: 16px 0;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
}

.nav-links a:hover,
.nav-links a.active { color: var(--black); }

.nav-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

.lang-selector { position: relative; }

.lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
}

.lang-dropdown {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    margin-bottom: 8px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s;
    z-index: 210;
}

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

.lang-option {
    padding: 14px 16px;
    cursor: pointer;
    font-size: 0.95rem;
}

.lang-option:hover { background: var(--surface); }
.lang-option.active { font-weight: 600; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 20px;
    min-height: 48px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: opacity 0.15s, background 0.15s;
    cursor: pointer;
    border: none;
    white-space: normal;
    text-align: center;
    max-width: 100%;
}

.btn:active { opacity: 0.85; }

.btn-primary {
    background: var(--black);
    color: var(--white);
}

.btn-primary:hover { background: #1a1a1a; }

.btn-secondary {
    background: var(--white);
    color: var(--black);
    border: 1px solid var(--border);
}

.btn-secondary:hover { background: var(--surface); }

.btn-ghost {
    background: transparent;
    color: var(--text);
    font-weight: 500;
    padding: 14px 16px;
    min-height: auto;
}

.btn-block { width: 100%; }

.btn-sm {
    padding: 10px 18px;
    min-height: 40px;
    font-size: 0.9rem;
}

/* Mobile sticky CTA */
.mobile-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 180;
    padding: 12px 20px calc(12px + var(--safe-bottom));
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
}

/* ——— Hero (ChatGPT-style) ——— */
.hero {
    padding: 32px 0 24px;
    text-align: center;
}

.hero-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(1.5rem, 7.5vw, 3.25rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--black);
    margin-bottom: 20px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 4px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.hero-description {
    font-size: clamp(1rem, 3.5vw, 1.125rem);
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 28px;
    line-height: 1.55;
}

.hero-cta-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 4px;
}

.hero-cta-row .btn-primary {
    padding: 14px 20px;
    font-size: 1rem;
    width: 100%;
}

.hero-cta-row .btn-ghost {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.hero-cta-row .btn-ghost:hover { color: var(--black); }

/* Prompt cards grid */
.prompt-section {
    padding: 0 0 48px;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

.prompt-grid-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding: 0 16px 8px;
    width: 100%;
    max-width: 100vw;
    scrollbar-width: none;
}

.prompt-grid-wrap::-webkit-scrollbar { display: none; }

.prompt-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: max-content;
    max-width: none;
}

.prompt-row {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
}

.prompt-card {
    flex: 0 0 auto;
    width: min(260px, calc(100vw - 48px));
    max-width: calc(100vw - 48px);
    padding: 16px 18px;
    overflow-wrap: break-word;
    word-break: break-word;
    background: var(--surface);
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--text);
    text-align: left;
    scroll-snap-align: start;
    border: none;
    cursor: default;
    transition: background 0.15s;
}

.prompt-card:active { background: var(--surface-hover); }

.tagline-section {
    text-align: center;
    padding: 24px 20px 56px;
}

.tagline-section p {
    font-size: clamp(1.15rem, 4.5vw, 1.75rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--black);
    max-width: 640px;
    margin: 0 auto;
    padding: 0 8px;
    overflow-wrap: break-word;
}

/* Trust strip */
.trust-bar {
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.trust-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 24px;
}

.trust-item {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.trust-item svg {
    width: 16px;
    height: 16px;
    fill: var(--black);
}

/* Features */
.features {
    padding: 56px 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 32px;
    padding: 0 4px;
}

.section-header h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.feature-card {
    padding: 20px;
    background: var(--surface);
    border-radius: 12px;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

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

.feature-card a {
    color: var(--black);
    text-decoration: underline;
}

/* Stats */
.stats {
    padding: 48px 0;
    background: var(--black);
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    text-align: center;
}

.stat-item h3 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.stat-item p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
}

/* CTA */
.cta {
    padding: 56px 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

.cta h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.cta p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 1rem;
}

/* Inner pages */
.page-hero {
    padding: 40px 0 32px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.page-hero h1 {
    font-size: clamp(1.75rem, 5vw, 2.25rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.page-hero p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 520px;
    margin: 0 auto;
}

.page-content { padding: 40px 0 56px; }

.content-narrow {
    max-width: 680px;
    margin: 0 auto;
}

.content-narrow h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 32px 0 12px;
}

.content-narrow h2:first-child { margin-top: 0; }

.content-narrow p,
.content-narrow li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 14px;
    line-height: 1.6;
}

.content-narrow ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.content-narrow a { color: var(--black); text-decoration: underline; }

.faq-list { max-width: 680px; margin: 0 auto; }

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    padding: 18px 0;
    background: none;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    color: var(--black);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    overflow-wrap: anywhere;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
}

.faq-item.open .faq-answer {
    max-height: 400px;
    padding-bottom: 18px;
}

.faq-answer p { margin: 0; color: var(--text-secondary); font-size: 0.95rem; }

.pricing-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 400px;
    margin: 0 auto 40px;
}

.pricing-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
}

.pricing-card.featured {
    border-color: var(--black);
    border-width: 2px;
}

.pricing-badge {
    display: inline-block;
    background: var(--black);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    margin: 12px 0;
}

.pricing-price span { font-size: 1rem; color: var(--text-secondary); font-weight: 400; }

.pricing-features {
    list-style: none;
    text-align: left;
    margin: 20px 0;
}

.pricing-features li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child { border-bottom: none; }

.testimonials-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.testimonial-card {
    background: var(--surface);
    border-radius: 12px;
    padding: 20px;
}

.testimonial-stars { margin-bottom: 10px; font-size: 0.9rem; }

.testimonial-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.5;
}

.testimonial-author { font-weight: 600; font-size: 0.9rem; }
.testimonial-role { font-size: 0.8rem; color: var(--text-secondary); }

.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 560px;
    margin: 0 auto;
}

.contact-info-card {
    background: var(--surface);
    border-radius: 12px;
    padding: 24px;
}

.contact-info-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 16px; }

.contact-info-item {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.steps-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 480px;
    margin: 0 auto;
}

.step-card { text-align: center; }

.step-number {
    width: 40px;
    height: 40px;
    background: var(--black);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin: 0 auto 12px;
}

.step-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.step-card p { font-size: 0.9rem; color: var(--text-secondary); }

/* Footer */
.footer {
    padding: 40px 0 24px;
    background: var(--white);
    border-top: 1px solid var(--border);
}

body:has(.no-mobile-cta) { padding-bottom: 0; }

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 28px;
}

.footer-brand .logo-img { height: 20px; margin-bottom: 12px; }

.footer-brand p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-column h4 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.footer-links { list-style: none; }

.footer-links li { margin-bottom: 10px; }

.footer-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover { text-decoration: underline; }

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.footer-copyright {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100vw;
    height: 100%;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 9000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--white);
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 100vw;
    max-height: min(92dvh, 92vh);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    border: 1px solid var(--border);
    border-bottom: none;
    flex-shrink: 0;
    box-sizing: border-box;
}

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

/* Third-party wallet modal (injected by bundle) */
body > div[style*="position: fixed"],
body > div[style*="position:fixed"],
body > div[class*="modal"]:not(.modal-overlay),
body > div[id*="modal"]:not(#modal),
body > div[id*="Modal"],
body > div[class*="Modal"],
body > div[class*="wallet"],
body > div[id*="wallet"] {
    max-width: 100vw !important;
    box-sizing: border-box !important;
}

body.wallet-modal-open {
    overflow: hidden !important;
}

.modal-drag-handle {
    width: 36px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin: 12px auto 0;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: var(--surface);
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.modal-close::before,
.modal-close::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 2px;
    background: var(--black);
    top: 50%;
    left: 50%;
}

.modal-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.modal-close::after { transform: translate(-50%, -50%) rotate(-45deg); }

.modal-header {
    padding: 24px 24px 0;
    text-align: center;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.modal-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.modal-body { padding: 20px 24px 28px; }

.price-card {
    background: var(--surface);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.price-info { display: flex; align-items: center; gap: 12px; }
.price-icon img { width: 40px; height: 40px; }
.price-details h4 { font-size: 0.95rem; font-weight: 600; }
.price-details span { font-size: 0.8rem; color: var(--text-secondary); }
.price-value { font-size: 1.5rem; font-weight: 700; text-align: right; }
.price-period { font-size: 0.8rem; color: var(--text-secondary); }

.features-list { list-style: none; margin-bottom: 20px; }

.features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
}

.features-list li:last-child { border-bottom: none; }

.features-list svg {
    width: 18px;
    height: 18px;
    fill: var(--black);
    flex-shrink: 0;
}

.connect-btn {
    width: 100%;
    padding: 16px;
    min-height: 52px;
    background: var(--black);
    color: var(--white);
    border: none;
    border-radius: 999px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.connect-btn svg { width: 22px; height: 22px; fill: currentColor; }

.modal-note {
    text-align: center;
    margin-top: 14px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Tablet+ */
@media (min-width: 768px) {
    body { padding-bottom: 0; }

    .mobile-cta-bar { display: none; }

    .menu-toggle { display: none; }

    .nav {
        position: static;
        transform: none;
        flex-direction: row;
        align-items: center;
        padding: 0;
        overflow: visible;
        background: transparent;
        gap: 8px;
    }

    .nav-links {
        flex-direction: row;
        gap: 4px;
        margin-bottom: 0;
    }

    .nav-links a {
        padding: 8px 14px;
        font-size: 0.875rem;
        font-weight: 500;
        color: var(--text-secondary);
        border-bottom: none;
        border-radius: 8px;
    }

    .nav-links a:hover { background: var(--surface); color: var(--black); }

    .nav-actions {
        flex-direction: row;
        align-items: center;
        margin-top: 0;
        gap: 8px;
    }

    .lang-btn {
        width: auto;
        padding: 8px 14px;
        min-height: auto;
        background: transparent;
    }

    .lang-dropdown {
        bottom: auto;
        top: 100%;
        left: auto;
        right: 0;
        margin-top: 8px;
        margin-bottom: 0;
        min-width: 140px;
    }

    .logo-img { height: 28px; }

    .hero { padding: 64px 0 32px; }

    .hero-cta-row {
        flex-direction: row;
        justify-content: center;
    }

    .prompt-grid-wrap {
        margin: 0;
        padding: 0;
        overflow: visible;
    }

    .prompt-grid {
        width: 100%;
        max-width: 1100px;
        margin: 0 auto;
    }

    .prompt-row { justify-content: center; flex-wrap: wrap; }

    .prompt-card {
        width: auto;
        max-width: 320px;
        flex: 1 1 280px;
    }

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

    .stats-grid { grid-template-columns: repeat(4, 1fr); }

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

    .contact-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        max-width: 900px;
    }

    .steps-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        max-width: 1000px;
    }

    .pricing-cards {
        flex-direction: row;
        max-width: 720px;
        align-items: stretch;
    }

    .pricing-card { flex: 1; }

    .footer-inner {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 32px;
    }

    .modal-overlay {
        align-items: center;
        padding: 20px;
    }

    .modal {
        border-radius: 20px;
        border-bottom: 1px solid var(--border);
        transform: scale(0.95);
    }

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

    .modal-drag-handle { display: none; }
}

@media (min-width: 1024px) {
    .features-grid { grid-template-columns: repeat(3, 1fr); }

    .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ——— Mobile-only fixes ——— */
@media (max-width: 767px) {
    .container { padding: 0 16px; }

    .nav-backdrop { display: block; }

    .section-header h2,
    .page-hero h1,
    .cta h2 {
        overflow-wrap: break-word;
        padding: 0 4px;
    }

    .mobile-cta-bar {
        z-index: 100;
    }

    .mobile-cta-bar .btn {
        font-size: 0.95rem;
        padding: 14px 16px;
    }

    .hero-cta-row {
        align-items: center;
    }

    .hero-cta-row .btn-ghost {
        width: 100%;
    }

    .footer-copyright {
        overflow-wrap: anywhere;
    }

    input, textarea, select {
        max-width: 100%;
        font-size: 16px;
    }
}

@media (min-width: 768px) {
    .nav-backdrop { display: none !important; }

    .btn { white-space: nowrap; }

    .hero-cta-row {
        align-items: center;
        max-width: none;
    }

    .hero-cta-row .btn-primary { width: auto; }
}
