/* GroAsk — Refined Apple
   Warm whites, layered depth, polished typography.
   Quiet luxury for a developer tool. */

/* ─── Design System ─── */
:root {
    --bg: #FFFFFF;
    --bg-alt: #F8F9FB;
    --bg-glass: rgba(255, 255, 255, 0.72);
    --bg-glass-card: rgba(255, 255, 255, 0.6);

    --text: #111827;
    --text-secondary: #4B5563;
    --text-dim: #9CA3AF;

    --accent: #2563EB;
    --accent-hover: #1D4ED8;
    --accent-light: rgba(37, 99, 235, 0.08);
    --accent-glow: rgba(37, 99, 235, 0.18);

    --border: #E5E7EB;
    --border-light: #F0F1F3;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.05), 0 1px 4px rgba(0,0,0,0.03);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.07), 0 2px 8px rgba(0,0,0,0.03);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.10), 0 4px 16px rgba(0,0,0,0.04);
    --shadow-video: 0 16px 48px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
    --shadow-glow: 0 4px 24px var(--accent-glow);

    --font-display: 'Urbanist', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', Menlo, monospace;

    --max-w: 1080px;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --radius-pill: 100px;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: 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; -moz-osx-font-smoothing: grayscale; }

::selection {
    background: var(--accent);
    color: #fff;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
}

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 32px;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s var(--ease-smooth);
}
a:hover { color: var(--accent-hover); }

/* ─── Typography ─── */
h1, h2, h3 {
    font-family: var(--font-display);
    color: var(--text);
    line-height: 1.15;
}

h1 {
    font-size: clamp(2.8rem, 5.5vw, 4.2rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

h2 {
    font-size: clamp(2rem, 3.5vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    text-align: center;
}

h3 {
    font-size: 1.15em;
    font-weight: 600;
    letter-spacing: -0.02em;
}

p { color: var(--text-secondary); }
strong { color: var(--text); font-weight: 600; }

code {
    font-family: var(--font-mono);
    background: var(--bg-alt);
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 0.88em;
    color: var(--text);
}

kbd {
    display: inline-block;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1px 8px;
    font-family: var(--font-mono);
    font-size: 0.85em;
    color: var(--text);
    box-shadow: 0 1px 0 var(--border);
    vertical-align: baseline;
}

.highlight { color: var(--accent); }

/* ─── Sections ─── */
section {
    padding: 100px 0;
    position: relative;
}

section > .container > h2 {
    margin-bottom: 48px;
}

section > .container > p {
    text-align: center;
}

.section-alt {
    background: var(--bg-alt);
}

/* ─── Navbar ─── */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-glass);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--border-light);
    transition: box-shadow 0.3s var(--ease-smooth);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15em;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: opacity 0.2s;
}
.nav-brand:hover { opacity: 0.7; color: var(--text); text-decoration: none; }

.nav-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links > a {
    font-size: 0.88em;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 450;
    transition: color 0.2s;
    position: relative;
}
.nav-links > a:hover { color: var(--text); text-decoration: none; }

.lang-switch {
    display: flex;
    align-items: center;
    gap: 2px;
    background: var(--bg-alt);
    border-radius: var(--radius-pill);
    padding: 2px;
}

.lang-switch a {
    display: block;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.82em;
    color: var(--text-dim);
    text-decoration: none;
    transition: all 0.2s var(--ease-smooth);
    font-weight: 450;
}
.lang-switch a:hover { color: var(--text-secondary); }
.lang-switch a.active {
    background: var(--bg);
    color: var(--text);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

/* ─── Hero ─── */
.hero {
    padding: 80px 0 100px;
    text-align: center;
    background:
        radial-gradient(ellipse 60% 50% at 50% 40%, rgba(37, 99, 235, 0.05) 0%, transparent 100%),
        radial-gradient(ellipse 40% 60% at 30% 60%, rgba(99, 102, 241, 0.03) 0%, transparent 100%),
        var(--bg);
    overflow: hidden;
}

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

.hero-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 32px;
}

.hero h1 {
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text) 40%, #4F46E5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2em;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 28px;
}

.hero-actions {
    margin-bottom: 8px;
}

.hero-meta {
    font-size: 0.88em;
    color: var(--text-dim);
    margin-bottom: 0;
}

/* ─── Hero Video ─── */
.hero-showcase {
    max-width: 800px;
    margin: 48px auto 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-input-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-video);
    border: 1px solid var(--border-light);
}

.hero-input-wrapper .hero-input-img {
    display: block;
    width: 100%;
    border-radius: var(--radius-lg);
}

.hero-video-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-video);
    border: 1px solid var(--border-light);
}

.hero-video-wrapper::before {
    content: "";
    position: absolute;
    inset: -60px;
    background: radial-gradient(ellipse at 50% 80%, var(--accent-glow), transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-video-wrapper video,
.hero-video-wrapper .hero-dashboard-img {
    display: block;
    width: 100%;
    border-radius: var(--radius-lg);
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95em;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s var(--ease-out);
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: var(--shadow-md), 0 2px 12px var(--accent-glow);
}
.btn-primary:hover {
    background: var(--accent-hover);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg), 0 4px 20px var(--accent-glow);
}

.btn-outline {
    background: var(--bg);
    color: var(--text);
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.btn-outline:hover {
    color: var(--text);
    text-decoration: none;
    border-color: var(--text-dim);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--bg-alt);
    color: var(--text);
    border: 1.5px solid var(--border);
}
.btn-secondary:hover {
    color: var(--text);
    text-decoration: none;
    background: var(--bg);
    border-color: var(--text-dim);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn svg {
    flex-shrink: 0;
}

/* ─── Scenes ─── */
.scene {
    padding: 100px 0;
}

.scene-row {
    display: flex;
    gap: 56px;
    align-items: center;
}

.scene-row-reverse {
    flex-direction: row-reverse;
}

.scene-media,
.scene-text {
    flex: 1;
    min-width: 0;
}

.scene-media video {
    display: block;
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    transition: box-shadow 0.3s var(--ease-smooth);
}

.scene-media video:hover {
    box-shadow: var(--shadow-xl);
}

.scene-img {
    display: block;
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    transition: box-shadow 0.3s var(--ease-smooth);
}

.scene-img:hover {
    box-shadow: var(--shadow-xl);
}

.scene-text h2 {
    text-align: left;
    margin-bottom: 12px;
    white-space: nowrap;
}

.scene-desc {
    text-align: left;
    margin-bottom: 20px;
    font-size: 1.05em;
    line-height: 1.7;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-list li {
    display: flex;
    align-items: baseline;
    gap: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
    padding: 6px 0;
}

.feature-list li::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 9px;
}

/* ─── How It Works ─── */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.step-card {
    text-align: center;
    padding: 40px 28px 36px;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s var(--ease-out);
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent), #4F46E5);
    color: #fff;
    border-radius: 14px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1em;
    margin-bottom: 20px;
}

.step-card h3 {
    margin: 0 0 8px;
    font-size: 1.1em;
}

.step-card p {
    font-size: 0.9em;
    line-height: 1.6;
    margin: 0;
}

/* ─── Channels ─── */
#features {
    padding: 80px 0;
}

.channels-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-top: -32px;
    margin-bottom: 48px;
    font-size: 1.05em;
}

.channel-groups {
    display: flex;
    flex-direction: column;
    gap: 36px;
    max-width: 640px;
    margin: 0 auto;
}

.channel-group-label {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.78em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    margin-bottom: 16px;
}

.channel-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.channel-chip {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-weight: 550;
    font-size: 0.92em;
    color: var(--text);
    transition: all 0.25s var(--ease-out);
    cursor: default;
}

.channel-chip:hover {
    border-color: var(--accent);
    background: var(--accent-light);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.channel-chip-cli {
    border-color: var(--accent);
    background: var(--accent-light);
    color: var(--accent);
}

.channel-chip-more {
    background: var(--bg-alt);
    border-style: dashed;
    color: var(--text-dim);
}

.channel-chip-more:hover {
    background: var(--accent-light);
    border-style: solid;
    color: var(--accent);
}

/* ─── Social Proof ─── */
#social-proof {
    padding: 80px 0;
}

.social-proof {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.social-quote {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 32px 36px;
    border: 1px solid var(--border-light);
    margin: 0;
    width: 100%;
}

.social-quote p {
    font-size: 1.1em;
    font-style: italic;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.social-quote cite {
    font-style: normal;
    font-size: 0.88em;
    color: var(--text-dim);
    font-weight: 500;
}

.social-github {
    gap: 10px;
}

/* ─── Comparison ─── */
.compare-table-wrap {
    max-width: 720px;
    margin: 0 auto;
    overflow-x: auto;
}

.compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.compare-table th,
.compare-table td {
    padding: 16px 20px;
    text-align: left;
    font-size: 0.92em;
    line-height: 1.5;
}

.compare-table thead th {
    background: var(--bg);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border);
}

.compare-table tbody tr {
    transition: background 0.2s;
}

.compare-table tbody tr:hover {
    background: rgba(37, 99, 235, 0.02);
}

.compare-table tbody td {
    border-bottom: 1px solid var(--border-light);
    background: var(--bg);
}

.compare-table tbody tr:last-child td {
    border-bottom: none;
}

.compare-scenario {
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.compare-manual {
    color: var(--text-dim);
}

.compare-groask {
    color: var(--accent);
    font-weight: 500;
}

/* ─── CTA ─── */
.cta-section {
    padding: 100px 0;
    text-align: center;
    background:
        radial-gradient(ellipse 60% 50% at 50% 50%, rgba(37, 99, 235, 0.05) 0%, transparent 100%),
        var(--bg);
}

.cta-actions {
    margin-top: 32px;
    margin-bottom: 12px;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.05em;
}

.cta-meta {
    font-size: 0.88em;
    color: var(--text-dim);
}

/* ─── Pricing ─── */
.pricing-grid {
    max-width: 440px;
    margin: 0 auto;
}

.pricing-card {
    padding: 40px 36px;
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    transition: all 0.35s var(--ease-out);
    position: relative;
    overflow: hidden;
}

/* 顶部渐变色带 — 取代廉价双线边框 */
.pricing-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), #6366F1, var(--accent));
    background-size: 200% 100%;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl), 0 8px 32px var(--accent-glow);
}

.pricing-card h3 {
    font-family: var(--font-display);
    font-size: 1.2em;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

/* 价格区 — 独立成块，增强冲击力 */
.pricing-price-wrap {
    margin-bottom: 28px;
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
}

.pricing-price-original {
    font-family: var(--font-display);
    font-size: 1.05em;
    font-weight: 500;
    color: var(--text-dim);
    text-decoration: line-through;
    opacity: 0.6;
}

.pricing-price {
    font-family: var(--font-display);
    font-size: 2.4em;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.03em;
    line-height: 1;
}

/* badge 脉冲呼吸 — 制造紧迫感 */
.pricing-badge {
    font-size: 0.75em;
    font-weight: 600;
    color: #16a34a;
    background: #dcfce7;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
    animation: badgePulse 2.5s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.2); }
    50% { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); }
}

.pricing-card-pro {
    border-color: transparent;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.02) 0%, var(--bg) 60%);
}

.pricing-card-pro:hover {
    border-color: transparent;
}

.pricing-card-pro .pricing-price {
    background: linear-gradient(135deg, var(--accent), #4F46E5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 功能列表 — 增加间距和可读性 */
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pricing-features li {
    display: flex;
    align-items: baseline;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.92em;
    line-height: 1.5;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

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

.pricing-features li::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.82em;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: var(--accent-light);
    border-radius: 50%;
    margin-top: 1px;
}

/* CTA 按钮 — 渐变 + 光泽扫过 */
.pricing-card .btn {
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pricing-card .btn-primary {
    background: linear-gradient(135deg, var(--accent), #4F46E5);
    box-shadow: var(--shadow-md), 0 4px 16px var(--accent-glow);
}

.pricing-card .btn-primary::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: skewX(-20deg);
    animation: btnShine 3.5s ease-in-out infinite;
}

@keyframes btnShine {
    0%, 100% { left: -60%; }
    50% { left: 120%; }
}

.pricing-card .btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-hover), #4338CA);
    box-shadow: var(--shadow-lg), 0 6px 24px var(--accent-glow);
}

.pricing-note {
    font-size: 0.82em;
    color: var(--text-dim);
    text-align: center;
    margin-top: 14px;
    margin-bottom: 0;
}

/* ─── FAQ ─── */
.faq {
    padding: 100px 0;
}

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

.faq-list details {
    border-bottom: 1px solid var(--border-light);
    overflow: hidden;
}

.faq-list details:first-of-type {
    border-top: 1px solid var(--border-light);
}

.faq-list summary {
    padding: 22px 4px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.02em;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text);
    transition: color 0.2s;
    gap: 16px;
}

.faq-list summary:hover { color: var(--accent); }
.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
    content: "+";
    font-size: 1.4em;
    font-weight: 300;
    color: var(--text-dim);
    transition: all 0.3s var(--ease-smooth);
    flex-shrink: 0;
    line-height: 1;
}

.faq-list details[open] summary::after {
    content: "\2212";
    color: var(--accent);
    transform: rotate(180deg);
}

.faq-body {
    padding: 0 4px 22px;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95em;
}

.faq-body p { margin-bottom: 12px; }
.faq-body p:last-child { margin-bottom: 0; }

.faq-body ul {
    margin: 10px 0 10px 20px;
    color: var(--text-secondary);
}

.faq-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 0.9em;
}

.faq-body th,
.faq-body td {
    padding: 8px 12px;
    border: 1px solid var(--border-light);
    text-align: left;
}

.faq-body th {
    background: var(--bg-alt);
    font-weight: 600;
    color: var(--text);
}

/* ─── Contact ─── */
#contact {
    padding: 60px 0;
    text-align: center;
}

#contact h2 {
    font-size: 1.6em;
    margin-bottom: 12px;
}

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

.footer-inner {
    text-align: center;
}

.footer-links {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links .version {
    font-size: 0.82em;
    color: var(--text-dim);
    font-family: var(--font-mono);
}

.footer-links a {
    color: var(--text-dim);
    font-size: 0.85em;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-secondary); }

.footer-copy {
    font-size: 0.82em;
    color: var(--text-dim);
    margin: 0;
}

/* ─── Policy Pages ─── */
.policy-page {
    max-width: 720px;
    padding: 48px 32px 60px;
    margin: 0 auto;
}
.policy-page h1 {
    font-size: 2.4em;
    letter-spacing: -0.03em;
}
.policy-page h2 {
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-dim);
    margin-top: 40px;
    text-align: left;
}
.policy-page p { color: var(--text-secondary); }
.policy-page ul { color: var(--text-secondary); }
.policy-page .back { margin-bottom: 32px; }
.policy-page .back a {
    color: var(--text-dim);
    font-size: 0.9em;
}
.policy-page .back a:hover { color: var(--accent); }
.policy-page .footer {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}
.policy-page .highlight-box {
    background: var(--bg-alt);
    padding: 22px 24px;
    border-radius: var(--radius-sm);
    margin: 24px 0;
}

/* ─── Utility ─── */
.text-dim { color: var(--text-dim); }
.text-sm { font-size: 0.9em; }
.text-xs { font-size: 0.8em; }

/* ─── Scroll Reveal Animations ─── */
@media (prefers-reduced-motion: no-preference) {
    section {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
    }
    section.visible {
        opacity: 1;
        transform: translateY(0);
    }

    /* Stagger children within visible sections */
    section.visible .step-card,
    section.visible .pricing-card,
    section.visible .channel-chip {
        animation: fadeUp 0.5s var(--ease-out) both;
    }

    section.visible .step-card:nth-child(1),
    section.visible .pricing-card:nth-child(1),
    section.visible .channel-chip:nth-child(1) { animation-delay: 0.05s; }
    section.visible .step-card:nth-child(2),
    section.visible .pricing-card:nth-child(2),
    section.visible .channel-chip:nth-child(2) { animation-delay: 0.1s; }
    section.visible .step-card:nth-child(3),
    section.visible .channel-chip:nth-child(3) { animation-delay: 0.15s; }
    section.visible .channel-chip:nth-child(4) { animation-delay: 0.2s; }
    section.visible .channel-chip:nth-child(5) { animation-delay: 0.25s; }
    section.visible .channel-chip:nth-child(6) { animation-delay: 0.3s; }
    section.visible .channel-chip:nth-child(7) { animation-delay: 0.35s; }
    section.visible .channel-chip:nth-child(8) { animation-delay: 0.4s; }
    section.visible .channel-chip:nth-child(9) { animation-delay: 0.45s; }
    section.visible .channel-chip:nth-child(10) { animation-delay: 0.5s; }

    section.visible .compare-table tbody tr {
        animation: fadeUp 0.4s var(--ease-out) both;
    }
    section.visible .compare-table tbody tr:nth-child(1) { animation-delay: 0.05s; }
    section.visible .compare-table tbody tr:nth-child(2) { animation-delay: 0.1s; }
    section.visible .compare-table tbody tr:nth-child(3) { animation-delay: 0.15s; }
    section.visible .compare-table tbody tr:nth-child(4) { animation-delay: 0.2s; }
}

@media (prefers-reduced-motion: reduce) {
    section { opacity: 1; transform: none; }
}

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

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .container { padding: 0 20px; }

    section { padding: 72px 0; }

    .navbar-inner { height: 50px; }
    .nav-links { gap: 18px; }
    .nav-links > a { font-size: 0.82em; }
    .lang-switch a { padding: 3px 8px; font-size: 0.78em; }

    .hero { padding: 56px 0 72px; }
    .hero-icon { width: 64px; height: 64px; border-radius: 16px; margin-bottom: 24px; }
    .hero-subtitle { font-size: 1.05em; }
    .hero-showcase { margin-top: 36px; }

    .scene-row,
    .scene-row-reverse {
        flex-direction: column;
        gap: 36px;
    }

    .scene-text h2 { text-align: center; white-space: normal; }
    .scene-desc { text-align: center; }

    .steps { grid-template-columns: 1fr; gap: 16px; }
    .step-card { padding: 28px 24px; }

    .channel-grid { gap: 8px; }
    .channel-chip { padding: 8px 16px; font-size: 0.85em; }

    .pricing-grid { max-width: 100%; }

    .social-quote { padding: 24px; }
    .compare-table th,
    .compare-table td { padding: 12px 14px; font-size: 0.85em; }
    .compare-scenario { white-space: normal; }
    .cta-section { padding: 72px 0; }

    #contact { padding: 48px 0; }
}

@media (max-width: 480px) {
    .nav-links > a:not(:first-child):not(:last-child) {
        display: none;
    }
    .nav-links { gap: 12px; }

    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.6rem; }

    .hero { padding: 40px 0 56px; }
    .hero-icon { width: 56px; height: 56px; border-radius: 14px; }

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

    .compare-table-wrap { margin: 0 -20px; }
    .compare-table { border-radius: 0; }
}

/* ─── Blog Header ─── */
.blog-header {
    padding: 80px 0 40px;
    text-align: center;
    background:
        radial-gradient(ellipse 50% 60% at 50% 50%, rgba(37, 99, 235, 0.04) 0%, transparent 100%),
        var(--bg);
}

.blog-header h1 {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--text) 40%, #4F46E5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-header-desc {
    font-size: 1.1em;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto;
}

/* ─── Blog List ─── */
.blog-list-section {
    padding: 20px 0 100px;
}

.blog-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.blog-card {
    display: block;
    padding: 32px 36px;
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition: all 0.3s var(--ease-out);
    position: relative;
}

.blog-card:hover {
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border);
}

.blog-card-date {
    display: block;
    font-size: 0.82em;
    color: var(--text-dim);
    font-family: var(--font-mono);
    margin-bottom: 10px;
    letter-spacing: 0.02em;
}

.blog-card-title {
    font-family: var(--font-display);
    font-size: 1.35em;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    line-height: 1.3;
    text-align: left;
}

.blog-card-desc {
    font-size: 0.95em;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-read {
    font-family: var(--font-display);
    font-size: 0.88em;
    font-weight: 600;
    color: var(--accent);
    transition: gap 0.2s var(--ease-out);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.blog-card:hover .blog-card-read {
    gap: 8px;
}

/* ─── Blog Article ─── */
.blog-article {
    padding: 48px 0 100px;
}

.blog-article > .container {
    max-width: 720px;
}

.blog-back {
    display: inline-block;
    font-size: 0.88em;
    color: var(--text-dim);
    text-decoration: none;
    margin-bottom: 32px;
    transition: color 0.2s;
}

.blog-back:hover {
    color: var(--accent);
}

.blog-article-header {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-light);
}

.blog-article-header h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 16px;
}

.blog-article-date {
    display: block;
    font-size: 0.88em;
    color: var(--text-dim);
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
}

/* Article body — optimized reading typography */
.blog-article-body {
    font-size: 1.05em;
    line-height: 1.85;
    color: var(--text-secondary);
}

.blog-article-body h2 {
    font-family: var(--font-display);
    font-size: 1.4em;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    margin: 48px 0 16px;
    text-align: left;
}

.blog-article-body h3 {
    font-family: var(--font-display);
    font-size: 1.15em;
    font-weight: 600;
    color: var(--text);
    margin: 36px 0 12px;
}

.blog-article-body p {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.blog-article-body strong {
    color: var(--text);
    font-weight: 600;
}

.blog-article-body a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(37, 99, 235, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s;
}

.blog-article-body a:hover {
    text-decoration-color: var(--accent);
}

.blog-article-body ul,
.blog-article-body ol {
    margin: 16px 0 20px 24px;
    color: var(--text-secondary);
}

.blog-article-body li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.blog-article-body blockquote {
    border-left: 3px solid var(--accent);
    padding: 12px 20px;
    margin: 24px 0;
    background: var(--bg-alt);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-secondary);
    font-style: italic;
}

.blog-article-body code {
    font-family: var(--font-mono);
    background: var(--bg-alt);
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 0.88em;
    color: var(--text);
}

.blog-article-body pre {
    background: var(--bg-alt);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    margin: 24px 0;
    overflow-x: auto;
}

.blog-article-body pre code {
    background: none;
    padding: 0;
    font-size: 0.88em;
    line-height: 1.6;
}

.blog-article-body hr {
    border: none;
    height: 1px;
    background: var(--border-light);
    margin: 40px 0;
}

/* Active nav link */
.nav-links > a.active {
    color: var(--text);
    font-weight: 600;
}

/* ─── Blog Responsive ─── */
@media (max-width: 768px) {
    .blog-header { padding: 60px 0 28px; }
    .blog-list-section { padding: 16px 0 72px; }
    .blog-card { padding: 24px; }
    .blog-card-title { font-size: 1.2em; }
    .blog-article { padding: 36px 0 72px; }
    .blog-article-header { margin-bottom: 36px; padding-bottom: 24px; }
    .blog-article-body { font-size: 1em; }
    .blog-article-body h2 { margin-top: 36px; }
}

@media (max-width: 480px) {
    .blog-header { padding: 44px 0 20px; }
    .blog-header h1 { font-size: 1.8rem; }
    .blog-card { padding: 20px; }
    .blog-card-title { font-size: 1.1em; }
    .blog-article-header h1 { font-size: 1.6rem; }
}
