/* ========================================
   ThinqPal Website — ChatGPT-Style Design
   ======================================== */

:root {
    --bg: #f0efeb;
    --text: #0d0d0d;
    --text-secondary: #6b6b6b;
    --text-muted: #9b9b9b;
    --border: #e5e5e5;
    --border-light: #f0f0f0;
    --surface: #f7f7f8;
    --accent: #6366f1;
    --accent-hover: #5558e6;
    --accent-light: #eef0ff;
    --radius: 24px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Navigation ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: rgba(240, 239, 235, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    /* No border — clean header like Claude.ai */
}

.nav-left {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 36px;
    width: auto;
    display: block;
}

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

.nav-link {
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-xs);
    transition: color var(--transition), background var(--transition);
}

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

.btn-login {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    background: transparent;
    border: none;
    border-radius: var(--radius-xs);
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition);
}

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

.btn-signup {
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    background: var(--text);
    border: none;
    border-radius: var(--radius-xs);
    cursor: pointer;
    text-decoration: none;
    transition: opacity var(--transition);
}

.btn-signup:hover {
    opacity: 0.85;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text);
}

/* ── Hero Section ── */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 120px 24px 80px;
}

.hero-content {
    text-align: center;
    max-width: 680px;
    width: 100%;
}

.hero-title {
    font-size: clamp(48px, 8vw, 72px);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.05;
    color: var(--text);
    margin-bottom: 16px;
    animation: fadeUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 48px;
    animation: fadeUp 0.8s ease-out 0.1s both;
}

/* ── Chat Input ── */
.chat-container {
    animation: fadeUp 0.8s ease-out 0.2s both;
    margin-bottom: 24px;
}

.chat-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 6px 6px 6px 20px;
    transition: border-color var(--transition), box-shadow var(--transition);
    box-shadow: var(--shadow-sm);
}

.chat-input-wrapper:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12), var(--shadow-md);
}

.chat-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: inherit;
    color: var(--text);
    background: transparent;
    padding: 12px 0;
}

.chat-input::placeholder {
    color: var(--text-muted);
}

.chat-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--text);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), transform var(--transition);
    flex-shrink: 0;
}

.chat-send:hover {
    background: var(--accent);
    transform: scale(1.05);
}

/* ── Suggestion Chips ── */
.chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    animation: fadeUp 0.8s ease-out 0.3s both;
}

.chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    color: var(--text-secondary);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.chip:hover {
    background: var(--surface);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.chip svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.chip:hover svg {
    opacity: 1;
}

/* ── Features Section ── */
.features {
    padding: 100px 24px;
    max-width: 1000px;
    margin: 0 auto;
}

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

.feature-card {
    padding: 32px;
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.feature-card:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon.purple {
    background: #eef0ff;
    color: #6366f1;
}

.feature-icon.blue {
    background: #e8f4ff;
    color: #3b82f6;
}

.feature-icon.green {
    background: #ecfdf5;
    color: #10b981;
}

.feature-icon.orange {
    background: #fff7ed;
    color: #f59e0b;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

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

/* ── Privacy Section ── */
.privacy-section {
    padding: 100px 24px;
    background: var(--surface);
}

.privacy-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.privacy-content h2 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.privacy-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
}

.privacy-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.badge-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* ── Download Section ── */
.download-section {
    padding: 100px 24px;
    text-align: center;
}

.download-section h2 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.download-section>p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.btn-download {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    color: white;
    background: var(--text);
    border: none;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: all var(--transition);
}

.btn-download:hover {
    background: var(--accent);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    color: var(--text);
    background: transparent;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: all var(--transition);
}

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

/* ── Footer ── */
.footer {
    padding: 32px 24px;
    border-top: 1px solid var(--border-light);
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-logo {
    font-weight: 700;
    font-size: 14px;
}

.footer-copy {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition);
}

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

/* ── Plans Section ── */
.plans-section {
    padding: 80px 40px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.plans-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.plans-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

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

.plan-card {
    text-align: left;
    border: 2px solid var(--text);
    border-radius: 20px;
    padding: 32px;
    transition: box-shadow var(--transition);
}

.plan-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.plan-featured {
    border-color: var(--text);
    border-width: 2px;
}

.plan-icon {
    margin-bottom: 20px;
    color: var(--text);
}

.plan-card h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.plan-tagline {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.plan-price {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 4px;
}

.plan-billing {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.4;
}

.plan-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--text);
    color: white;
    border: none;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: opacity var(--transition);
    margin-bottom: 24px;
}

.plan-btn:hover {
    opacity: 0.85;
}

.plan-includes {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-features li {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
    line-height: 1.5;
}

.plan-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--text-muted);
    font-weight: 600;
}

.plans-disclaimer {
    font-size: 13px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .plans-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto 32px;
    }

    .plans-section {
        padding: 60px 20px;
    }

    .plans-section h2 {
        font-size: 24px;
    }
}

/* ── Chat Demo Modal ── */
.chat-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fadeIn 0.2s ease-out;
}

.chat-modal.active {
    display: flex;
}

.chat-modal-content {
    width: 100%;
    max-width: 560px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 70vh;
    animation: scaleUp 0.3s ease-out;
}

.chat-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    font-weight: 600;
    font-size: 15px;
}

.chat-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px 8px;
    transition: color var(--transition);
}

.chat-modal-close:hover {
    color: var(--text);
}

.chat-modal-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 300px;
}

.chat-msg {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    animation: fadeUp 0.3s ease-out;
}

.chat-msg.user {
    align-self: flex-end;
    background: var(--text);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-msg.assistant {
    align-self: flex-start;
    background: none;
    color: var(--text);
    border-bottom-left-radius: 4px;
    padding: 4px 0;
}

.chat-msg.typing {
    align-self: flex-start;
    background: var(--surface);
    color: var(--text-muted);
}

.typing-dots {
    display: flex;
    gap: 4px;
    padding: 4px 0;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: bounce 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.16s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.32s;
}

.chat-modal-input {
    display: flex;
    gap: 8px;
    padding: 16px 20px;
    border-top: 1px solid var(--border-light);
}

.chat-modal-input input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color var(--transition);
}

.chat-modal-input input:focus {
    border-color: var(--accent);
}

.chat-modal-input button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--text);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}

.chat-modal-input button:hover {
    background: var(--accent);
}

/* ── Animations ── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {

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

    40% {
        transform: scale(1);
    }
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .nav-right {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        padding: 100px 20px 60px;
        min-height: auto;
    }

    .hero-title {
        font-size: 44px;
    }

    .hero-subtitle {
        font-size: 17px;
    }

    .chips {
        gap: 6px;
    }

    .chip {
        font-size: 12px;
        padding: 8px 12px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .privacy-content h2,
    .download-section h2 {
        font-size: 28px;
    }

    .privacy-badges {
        gap: 8px;
    }

    .badge {
        font-size: 13px;
        padding: 10px 16px;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-left {
        flex-direction: column;
        gap: 8px;
    }
}

/* ── Legal Pages (Privacy, Terms) ── */
.legal-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 120px 24px 80px;
}

.legal-page h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}

.legal-updated {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 48px;
}

.legal-page section {
    margin-bottom: 36px;
}

.legal-page h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.legal-page h3 {
    font-size: 16px;
    font-weight: 600;
    margin-top: 16px;
    margin-bottom: 8px;
}

.legal-page p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.legal-page ul {
    padding-left: 20px;
    margin-bottom: 12px;
}

.legal-page li {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.legal-page a {
    color: var(--text);
    font-weight: 500;
}

/* ── Blog Page ── */
.blog-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 120px 24px 80px;
}

.blog-page h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

.blog-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 48px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.blog-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    transition: box-shadow var(--transition), transform var(--transition);
}

.blog-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.blog-date {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.blog-card h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.blog-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.blog-tag {
    font-size: 12px;
    font-weight: 600;
    background: var(--text);
    color: white;
    padding: 4px 12px;
    border-radius: 999px;
}

/* ── Support Page ── */
.support-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 120px 24px 80px;
}

.support-page h1 {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.support-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 48px;
}

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

.support-card {
    border: 2px solid var(--text);
    border-radius: 16px;
    padding: 28px;
}

.support-icon {
    font-size: 28px;
    margin-bottom: 16px;
}

.support-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.support-card>p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    border-top: 1px solid var(--border);
    padding-top: 10px;
}

.faq-item summary {
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 0;
    list-style: none;
}

.faq-item summary::before {
    content: '+ ';
    font-weight: 600;
    color: var(--text-muted);
}

.faq-item[open] summary::before {
    content: '− ';
}

.faq-item p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
    padding: 8px 0 4px 16px;
}

.faq-item a {
    color: var(--text);
    font-weight: 500;
}

.support-contact {
    text-align: center;
    padding: 48px 0;
    border-top: 1px solid var(--border);
}

.support-contact h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.support-contact>p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.contact-options {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    border: 2px solid var(--text);
    border-radius: 16px;
    padding: 24px 40px;
    text-decoration: none;
    color: var(--text);
    transition: box-shadow var(--transition);
}

.contact-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.contact-icon {
    font-size: 24px;
}

.contact-label {
    font-size: 15px;
    font-weight: 600;
}

.contact-detail {
    font-size: 13px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .support-grid {
        grid-template-columns: 1fr;
    }

    .contact-options {
        flex-direction: column;
        align-items: center;
    }
}