/* ============================================
   AI Viral Title Generator - Complete Styles
   小红书风格 + 粉白配色 + 响应式
   ============================================ */

/* === CSS Variables === */
:root {
    --primary: #FF6B81;
    --primary-light: #FF8C9E;
    --primary-soft: #FFF0F3;
    --primary-dark: #E85D71;
    --bg: #FFFBFB;
    --bg-card: #FFFFFF;
    --bg-input: #FFF5F7;
    --text-primary: #2D2D2D;
    --text-secondary: #666666;
    --text-light: #999999;
    --border: #FFE0E5;
    --border-light: #FFEDF0;
    --shadow: 0 4px 20px rgba(255, 107, 129, 0.10);
    --shadow-hover: 0 8px 30px rgba(255, 107, 129, 0.18);
    --shadow-card: 0 2px 12px rgba(0,0,0,0.04);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    --max-width: 1200px;
    --header-height: 70px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* === Container === */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 251, 251, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: 0 2px 20px rgba(255, 107, 129, 0.06);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav a {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav a:hover,
.nav a.active {
    color: var(--primary);
    background: var(--primary-soft);
}

.nav .btn-primary {
    color: white;
    background: var(--primary);
    padding: 8px 20px;
    border-radius: var(--radius-lg);
    font-weight: 600;
}

.nav .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 129, 0.3);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}

.menu-toggle span {
    width: 24px;
    height: 2.5px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: white;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
    transition: var(--transition);
}

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

.lang-toggle .flag { font-size: 16px; }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    padding: calc(var(--header-height) + 60px) 0 60px;
    text-align: center;
    background: linear-gradient(180deg, var(--primary-soft) 0%, var(--bg) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 6px 16px 6px 8px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    box-shadow: var(--shadow-card);
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--primary), #FF9A9E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

/* ============================================
   GENERATOR FORM
   ============================================ */
.generator-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
    max-width: 700px;
    margin: 0 auto 40px;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.generator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #FF9A9E, var(--primary-light));
}

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

.generator-card p.subtitle {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 28px;
}

/* Form groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-group label .required {
    color: var(--primary);
}

/* Platform selector */
.platform-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.platform-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg);
    cursor: pointer;
    transition: var(--transition);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.platform-btn:hover {
    border-color: var(--primary-light);
    background: var(--primary-soft);
}

.platform-btn.active {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 600;
}

.platform-btn .platform-icon {
    font-size: 28px;
    line-height: 1;
}

.platform-btn .platform-name {
    font-size: 12px;
}

/* Input styles */
.input-wrapper {
    position: relative;
}

.input-wrapper .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--text-light);
}

input[type="text"],
textarea,
select {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 15px;
    background: var(--bg-input);
    transition: var(--transition);
    font-family: var(--font);
    color: var(--text-primary);
    outline: none;
}

input[type="text"]:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 107, 129, 0.10);
    background: white;
}

textarea {
    min-height: 60px;
    resize: vertical;
    padding-left: 16px;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-light);
}

/* Tone selector */
.tone-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.tone-btn {
    padding: 10px 8px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg);
    cursor: pointer;
    transition: var(--transition);
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
}

.tone-btn:hover {
    border-color: var(--primary-light);
    background: var(--primary-soft);
}

.tone-btn.active {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 600;
}

/* Generate button */
.btn-generate {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), #FF9A9E);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

.btn-generate:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 129, 0.35);
}

.btn-generate:active {
    transform: translateY(0);
}

.btn-generate:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Daily counter */
.daily-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-light);
}

.daily-counter .count {
    font-weight: 700;
    color: var(--primary);
}

/* API Key config */
.api-key-section {
    margin-top: 16px;
    padding: 16px;
    background: var(--primary-soft);
    border-radius: var(--radius-md);
    display: none;
}

.api-key-section.visible {
    display: block;
}

.api-key-section .toggle-link {
    color: var(--primary);
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
}

.api-key-section .toggle-link:hover {
    text-decoration: underline;
}

.api-key-input-group {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.api-key-input-group input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.api-key-input-group .btn-sm {
    padding: 10px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.api-key-input-group .btn-sm:hover {
    background: var(--primary-dark);
}

/* ============================================
   RESULTS SECTION
   ============================================ */
.results-section {
    display: none;
    max-width: 700px;
    margin: 0 auto 40px;
}

.results-section.visible {
    display: block;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.results-header h3 {
    font-size: 20px;
    font-weight: 700;
}

.results-actions {
    display: flex;
    gap: 8px;
}

.btn-outline {
    padding: 8px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    background: white;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

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

/* Title list */
.title-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.title-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.title-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-card);
    transform: translateX(4px);
}

.title-item .index-badge {
    width: 28px;
    height: 28px;
    background: var(--primary-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
}

.title-item .title-text {
    flex: 1;
    font-size: 15px;
    line-height: 1.5;
}

.title-item .copy-btn {
    opacity: 0;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: var(--transition);
    flex-shrink: 0;
}

.title-item:hover .copy-btn {
    opacity: 1;
}

.title-item .copy-btn:hover {
    background: var(--primary-soft);
}

.title-item .platform-tags {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.title-item .platform-tag {
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
}

.platform-tag.xiaohongshu { background: #FFF0F3; color: #FF6B81; }
.platform-tag.bilibili { background: #E8F4FD; color: #FB7299; }
.platform-tag.douyin { background: #F0F8FF; color: #1E90FF; }
.platform-tag.zhihu { background: #F0F7FF; color: #0066FF; }

/* Copy toast */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--text-primary);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 14px;
    opacity: 0;
    transition: var(--transition);
    z-index: 9999;
    pointer-events: none;
}

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

/* ============================================
   FEATURES / TRUST SECTION
   ============================================ */
.features {
    padding: 80px 0;
    text-align: center;
}

.features h2 {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 800;
    margin-bottom: 12px;
}

.features p.section-subtitle {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 48px;
}

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

.feature-card {
    padding: 36px 24px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-soft);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 16px;
}

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

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

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--text-primary);
    color: rgba(255,255,255,0.8);
    padding: 40px 0;
    margin-top: 60px;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

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

.footer-links a {
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-copy {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* ============================================
   LOADING SPINNER
   ============================================ */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   LOADING SKELETON
   ============================================ */
.skeleton {
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 14px;
}

.skeleton .skeleton-circle {
    width: 28px;
    height: 28px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    border-radius: 50%;
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton .skeleton-line {
    flex: 1;
    height: 16px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    border-radius: var(--radius-sm);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================
   PRICING PAGE
   ============================================ */
.pricing-page {
    padding: calc(var(--header-height) + 60px) 0 80px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 48px;
}

.pricing-header h1 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    margin-bottom: 12px;
}

.pricing-header p {
    color: var(--text-secondary);
    font-size: 18px;
}

/* Toggle */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
}

.pricing-toggle span {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
}

.pricing-toggle span.active {
    color: var(--text-primary);
    font-weight: 600;
}

.toggle-switch {
    width: 52px;
    height: 28px;
    background: var(--border);
    border-radius: 14px;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.toggle-switch.active {
    background: var(--primary);
}

.toggle-switch .toggle-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    transition: var(--transition);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.toggle-switch.active .toggle-knob {
    left: 27px;
}

.save-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    margin-left: 4px;
}

/* Pricing cards grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
}

.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: scale(1.05);
}

.pricing-card.popular .popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), #FF9A9E);
    color: white;
    padding: 6px 20px;
    border-radius: var(--radius-xl);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.pricing-card .plan-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.pricing-card .plan-price {
    margin-bottom: 24px;
}

.pricing-card .plan-price .price {
    font-size: 40px;
    font-weight: 800;
    color: var(--text-primary);
}

.pricing-card .plan-price .period {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 400;
}

.pricing-card .plan-price .original-price {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 8px;
}

.pricing-card .plan-features {
    flex: 1;
    margin-bottom: 28px;
}

.pricing-card .plan-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.pricing-card .plan-features li .check {
    color: var(--primary);
    font-weight: 700;
}

.pricing-card .plan-features li .cross {
    color: var(--text-light);
    font-size: 13px;
}

.btn-pricing {
    display: block;
    width: 100%;
    padding: 14px;
    border: 2px solid var(--primary);
    border-radius: var(--radius-md);
    background: white;
    color: var(--primary);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

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

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

.btn-pricing.primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(255, 107, 129, 0.3);
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-page {
    padding: calc(var(--header-height) + 60px) 0 80px;
}

.about-header {
    text-align: center;
    margin-bottom: 60px;
}

.about-header h1 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    margin-bottom: 12px;
}

.about-header p {
    color: var(--text-secondary);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-section {
    margin-bottom: 48px;
}

.about-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.about-section p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 12px;
}

.about-section ul {
    padding-left: 20px;
}

.about-section ul li {
    list-style: disc;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
}

/* ============================================
   LOADING OVERLAY
   ============================================ */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    z-index: 9998;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
}

.loading-overlay.visible {
    display: flex;
}

.loading-overlay .loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.loading-overlay p {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
}

/* ============================================
   PAGE TRANSITION
   ============================================ */
.page {
    display: none;
    animation: fadeIn 0.3s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .pricing-card.popular {
        transform: none;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--bg-card);
        flex-direction: column;
        padding: 16px;
        gap: 4px;
        border-bottom: 1px solid var(--border-light);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    }

    .nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav a {
        width: 100%;
        padding: 12px 16px;
    }

    .menu-toggle {
        display: flex;
    }

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

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

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

    .generator-card {
        padding: 28px 20px;
    }

    .hero {
        padding: calc(var(--header-height) + 40px) 0 40px;
    }

    .footer .container {
        flex-direction: column;
        text-align: center;
    }

    .title-item {
        padding: 14px 16px;
    }

    .title-item .platform-tags {
        display: none;
    }

    .api-key-input-group {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .generator-card {
        padding: 24px 16px;
        border-radius: var(--radius-md);
    }

    .platform-btn .platform-icon {
        font-size: 24px;
    }

    .logo {
        font-size: 17px;
    }

    .logo-icon {
        width: 30px;
        height: 30px;
        font-size: 15px;
    }

    .pricing-card {
        padding: 28px 20px;
    }
}

/* ============================================
   MISC UTILITY
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}
