/* RakuWP — Clean Bold
   Light theme, red accent, confident typography
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400&family=Nunito+Sans:opsz,wght@6..12,300;6..12,400;6..12,500;6..12,600;6..12,700&display=swap');

/* ============================================
   Variables
   ============================================ */
:root {
    --white: #ffffff;
    --bg: #ffffff;
    --bg-alt: #fafafa;
    --bg-subtle: #f5f5f5;
    --bg-card: #ffffff;

    --border: #ebebeb;
    --border-hover: #d4d4d4;

    --text: #171717;
    --text-secondary: #525252;
    --text-muted: #737373;
    --text-dim: #a3a3a3;

    /* Red accent */
    --red: #e23744;
    --red-hover: #c72f3b;
    --red-light: #fde8ea;
    --red-glow: rgba(226, 55, 68, 0.12);

    /* Semantic */
    --green: #16a34a;
    --green-bg: #dcfce7;
    --error: #dc2626;
    --error-bg: #fef2f2;
    --warning: #ca8a04;
    --warning-bg: #fefce8;

    /* Fonts */
    --font-display: 'Archivo', sans-serif;
    --font-body: 'Nunito Sans', sans-serif;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.75rem;
    --text-5xl: 3.5rem;
    --text-6xl: 4.5rem;

    --sp-1: 0.25rem;
    --sp-2: 0.5rem;
    --sp-3: 0.75rem;
    --sp-4: 1rem;
    --sp-5: 1.25rem;
    --sp-6: 1.5rem;
    --sp-8: 2rem;
    --sp-10: 2.5rem;
    --sp-12: 3rem;
    --sp-16: 4rem;
    --sp-20: 5rem;
    --sp-24: 6rem;
    --sp-32: 8rem;

    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 14px;
    --r-xl: 18px;
    --r-2xl: 24px;
    --r-full: 9999px;

    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.07);
    --shadow-lg: 0 8px 28px rgba(0,0,0,0.08);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.1);

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --duration: 0.25s;
    --duration-slow: 0.5s;
}

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

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

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.65;
    color: var(--text-secondary);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a {
    color: var(--red);
    text-decoration: none;
    transition: color var(--duration) var(--ease);
}
a:hover { color: var(--red-hover); }

h1, h2, h3, h4, h5, h6 {
    color: var(--text);
    line-height: 1.15;
    font-family: var(--font-display);
}

::selection {
    background: var(--red-light);
    color: var(--text);
}

/* ============================================
   Layout
   ============================================ */
.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 var(--sp-6);
}

.main-content { flex: 1; }

.section { padding: var(--sp-24) 0; }
.section-alt { background: var(--bg-alt); }

.section-header {
    text-align: center;
    margin-bottom: var(--sp-16);
}

.section-header h2 {
    font-size: var(--text-4xl);
    font-weight: 900;
    letter-spacing: -0.035em;
    margin-bottom: var(--sp-3);
}

.section-header p {
    font-size: var(--text-lg);
    color: var(--text-muted);
    max-width: 460px;
    margin: 0 auto;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.94); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger .feature-card,
.reveal-stagger .pricing-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.reveal-stagger.visible .feature-card,
.reveal-stagger.visible .pricing-card {
    opacity: 1;
    transform: translateY(0);
}
.reveal-stagger.visible .feature-card:nth-child(1),
.reveal-stagger.visible .pricing-card:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.visible .feature-card:nth-child(2),
.reveal-stagger.visible .pricing-card:nth-child(2) { transition-delay: 0.07s; }
.reveal-stagger.visible .feature-card:nth-child(3),
.reveal-stagger.visible .pricing-card:nth-child(3) { transition-delay: 0.14s; }
.reveal-stagger.visible .feature-card:nth-child(4),
.reveal-stagger.visible .pricing-card:nth-child(4) { transition-delay: 0.21s; }
.reveal-stagger.visible .feature-card:nth-child(5) { transition-delay: 0.28s; }
.reveal-stagger.visible .feature-card:nth-child(6) { transition-delay: 0.35s; }
.reveal-stagger.visible .feature-card:nth-child(7) { transition-delay: 0.42s; }
.reveal-stagger.visible .feature-card:nth-child(8) { transition-delay: 0.49s; }
.reveal-stagger.visible .feature-card:nth-child(9) { transition-delay: 0.56s; }

/* ============================================
   Header
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--duration) var(--ease);
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

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

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}

.logo-mark {
    width: 30px;
    height: 30px;
    background: var(--red);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-mark::after {
    content: 'R';
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 15px;
    color: var(--white);
    letter-spacing: -0.02em;
}

.logo-text {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 900;
    color: var(--text);
    letter-spacing: -0.04em;
}

.logo-text span {
    color: var(--red);
}

/* Nav */
.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--sp-1);
}

.nav-link {
    color: var(--text-muted);
    font-weight: 600;
    font-size: var(--text-sm);
    padding: 6px 12px;
    border-radius: var(--r-md);
    transition: all var(--duration) var(--ease);
}
.nav-link:hover {
    color: var(--text);
    background: var(--bg-subtle);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--r-md);
}
.nav-toggle:hover { background: var(--bg-subtle); }

.hamburger {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
    position: relative;
    border-radius: 2px;
    transition: background var(--duration) var(--ease);
}
.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--text);
    left: 0;
    border-radius: 2px;
    transition: transform var(--duration) var(--ease);
}
.hamburger::before { top: -6px; }
.hamburger::after { bottom: -6px; }
.nav-toggle.active .hamburger { background: transparent; }
.nav-toggle.active .hamburger::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle.active .hamburger::after { transform: translateY(-6px) rotate(-45deg); }

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    padding: 9px 18px;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 700;
    border-radius: var(--r-md);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}
.btn-primary:hover {
    background: var(--red-hover);
    border-color: var(--red-hover);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px var(--red-glow);
}

.btn-outline {
    background: var(--white);
    border-color: var(--border);
    color: var(--text);
}
.btn-outline:hover {
    background: var(--bg-subtle);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.btn-ghost {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 9px 10px;
}
.btn-ghost:hover {
    color: var(--text);
    background: var(--bg-subtle);
}

.btn-lg {
    padding: 13px 28px;
    font-size: var(--text-base);
    border-radius: var(--r-lg);
}

.btn-block { width: 100%; }
.btn:active { transform: translateY(0) scale(0.97); }

/* ============================================
   Hero
   ============================================ */
.hero {
    position: relative;
    padding: var(--sp-32) 0;
    background: var(--bg-alt);
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 72px 72px;
    opacity: 0.5;
    mask-image: radial-gradient(ellipse 55% 55% at 50% 45%, black 10%, transparent 65%);
    -webkit-mask-image: radial-gradient(ellipse 55% 55% at 50% 45%, black 10%, transparent 65%);
    pointer-events: none;
}

/* Red glow */
.hero::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    left: 50%;
    top: 30%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(226, 55, 68, 0.06) 0%, transparent 65%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    max-width: 740px;
    margin: 0 auto;
    text-align: center;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: 5px 14px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: var(--sp-8);
    box-shadow: var(--shadow-xs);
    animation: fadeUp 0.6s var(--ease) both;
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
}

.hero-title {
    font-size: var(--text-6xl);
    font-weight: 900;
    line-height: 1.02;
    color: var(--text);
    margin-bottom: var(--sp-6);
    letter-spacing: -0.045em;
    animation: fadeUp 0.6s var(--ease) 0.08s both;
}

.hero-title .accent {
    color: var(--red);
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: var(--sp-10);
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeUp 0.6s var(--ease) 0.16s both;
}

.hero-actions {
    display: flex;
    gap: var(--sp-3);
    justify-content: center;
    margin-bottom: var(--sp-5);
    animation: fadeUp 0.6s var(--ease) 0.24s both;
}

.hero-note {
    font-size: var(--text-sm);
    color: var(--text-dim);
    animation: fadeUp 0.6s var(--ease) 0.32s both;
}

/* ============================================
   Features
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-5);
}

.feature-card {
    background: var(--bg-card);
    padding: var(--sp-8);
    border-radius: var(--r-xl);
    border: 1px solid var(--border);
    transition: all var(--duration) var(--ease);
}

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

.feature-icon {
    width: 42px;
    height: 42px;
    background: var(--red-light);
    border-radius: var(--r-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--sp-5);
    color: var(--red);
    transition: all var(--duration) var(--ease);
}

.feature-card:hover .feature-icon {
    background: var(--red);
    color: var(--white);
    transform: scale(1.05);
}

.feature-card h3 {
    font-size: var(--text-base);
    font-weight: 800;
    margin-bottom: var(--sp-2);
    letter-spacing: -0.02em;
}

.feature-card p {
    color: var(--text-muted);
    font-size: var(--text-sm);
    line-height: 1.65;
}

/* ============================================
   Pricing
   ============================================ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-5);
    align-items: start;
}

.pricing-card {
    background: var(--bg-card);
    padding: var(--sp-8);
    border-radius: var(--r-xl);
    border: 1.5px solid var(--border);
    position: relative;
    transition: all var(--duration) var(--ease);
}
.pricing-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
}

.pricing-featured {
    border-color: var(--red);
    box-shadow: var(--shadow-md);
}
.pricing-featured:hover {
    border-color: var(--red);
    box-shadow: var(--shadow-xl), 0 0 0 1px var(--red-glow);
}

.pricing-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--red);
    color: var(--white);
    padding: 3px 14px;
    border-radius: var(--r-full);
    font-size: var(--text-xs);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.pricing-name {
    font-size: var(--text-xs);
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--sp-3);
}

.pricing-price {
    margin-bottom: var(--sp-5);
    padding-bottom: var(--sp-5);
    border-bottom: 1px solid var(--border);
}

.price-amount {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 900;
    color: var(--text);
    letter-spacing: -0.04em;
}

.price-period {
    color: var(--text-dim);
    font-size: var(--text-sm);
}

.pricing-description {
    color: var(--text-muted);
    font-size: var(--text-sm);
    margin-bottom: var(--sp-6);
    line-height: 1.55;
}

.pricing-features {
    list-style: none;
    margin-bottom: var(--sp-8);
}
.pricing-features li {
    padding: 5px 0;
    color: var(--text-secondary);
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    gap: var(--sp-3);
}
.pricing-features li::before {
    content: '';
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--red-light);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23e23744' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

/* ============================================
   CTA
   ============================================ */
.cta {
    background: var(--text);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(226, 55, 68, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.cta-content {
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-size: var(--text-4xl);
    color: var(--white);
    font-weight: 900;
    letter-spacing: -0.035em;
    margin-bottom: var(--sp-4);
}

.cta p {
    color: #a3a3a3;
    font-size: var(--text-lg);
    margin-bottom: var(--sp-8);
}

.cta .btn-primary {
    background: var(--white);
    color: var(--text);
    border-color: var(--white);
}
.cta .btn-primary:hover {
    background: var(--bg-subtle);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: var(--text);
    color: #737373;
    padding: var(--sp-16) 0 var(--sp-8);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--sp-12);
    margin-bottom: var(--sp-12);
}

.footer-brand .logo-mark {
    background: var(--red);
}
.footer-brand .logo-text {
    color: var(--white);
}

.footer-description {
    margin-top: var(--sp-4);
    font-size: var(--text-sm);
    line-height: 1.7;
    color: #525252;
    max-width: 260px;
}

.footer-links h4 {
    color: #d4d4d4;
    font-family: var(--font-display);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 800;
    margin-bottom: var(--sp-5);
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: var(--sp-2); }
.footer-links a {
    color: #525252;
    font-size: var(--text-sm);
    transition: color var(--duration) var(--ease);
}
.footer-links a:hover { color: var(--white); }

.footer-bottom {
    border-top: 1px solid #262626;
    padding-top: var(--sp-8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-sm);
    color: #525252;
}

/* ============================================
   Auth
   ============================================ */
.auth-page { background: var(--bg-alt); }

.auth-page .main-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    padding: var(--sp-8) 0;
}

.auth-section { width: 100%; }

.auth-card {
    max-width: 440px;
    margin: 0 auto;
    background: var(--white);
    padding: var(--sp-10);
    border-radius: var(--r-2xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
    animation: scaleIn 0.45s var(--ease) both;
}

.auth-header {
    text-align: center;
    margin-bottom: var(--sp-8);
}
.auth-header h1 {
    font-size: var(--text-3xl);
    font-weight: 900;
    letter-spacing: -0.035em;
    margin-bottom: var(--sp-2);
}
.auth-header p {
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.auth-footer {
    text-align: center;
    margin-top: var(--sp-6);
    padding-top: var(--sp-6);
    border-top: 1px solid var(--border);
}
.auth-footer p {
    color: var(--text-muted);
    font-size: var(--text-sm);
}
.auth-footer a { font-weight: 700; }

/* ============================================
   Forms
   ============================================ */
.form-group { margin-bottom: var(--sp-5); }
.form-group label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--sp-2);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px var(--sp-4);
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--text);
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--r-lg);
    transition: all var(--duration) var(--ease);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px var(--red-glow);
}

.form-group input.has-error {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-error {
    display: block;
    color: var(--error);
    font-size: var(--text-xs);
    margin-top: var(--sp-1);
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--sp-5);
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-4);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-2);
    cursor: pointer;
    font-size: var(--text-sm);
    color: var(--text-muted);
}
.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--red);
    cursor: pointer;
}

.form-link {
    font-size: var(--text-sm);
    color: var(--red);
    font-weight: 600;
}
.form-link:hover { color: var(--red-hover); }

/* ============================================
   Alerts
   ============================================ */
.alert {
    padding: var(--sp-4) var(--sp-5);
    border-radius: var(--r-lg);
    margin-bottom: var(--sp-5);
    font-size: var(--text-sm);
    font-weight: 600;
    animation: slideDown 0.4s var(--ease) both;
}
.alert-success { background: var(--green-bg); color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background: var(--error-bg); color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: var(--warning-bg); color: #854d0e; border: 1px solid #fef08a; }

/* ============================================
   404
   ============================================ */
.error-page {
    text-align: center;
    padding: var(--sp-32) 0;
}

.error-content {
    max-width: 420px;
    margin: 0 auto;
}

.error-code {
    font-size: 10rem;
    font-weight: 900;
    line-height: 1;
    color: var(--red-light);
    margin-bottom: var(--sp-4);
    letter-spacing: -0.06em;
}

.error-content h2 {
    font-size: var(--text-3xl);
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: var(--sp-3);
}

.error-content p {
    color: var(--text-muted);
    margin-bottom: var(--sp-8);
}

.error-actions {
    display: flex;
    gap: var(--sp-3);
    justify-content: center;
}

/* ============================================
   Content pages
   ============================================ */
.content-body {
    max-width: 660px;
    margin: 0 auto;
}
.content-body h3 {
    font-size: var(--text-xl);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: var(--sp-3);
    margin-top: var(--sp-10);
}
.content-body h3:first-child { margin-top: 0; }
.content-body p {
    line-height: 1.8;
    margin-bottom: var(--sp-4);
    color: var(--text-secondary);
}
.content-body a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.content-empty {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
}
.content-empty p {
    color: var(--text-muted);
    font-size: var(--text-lg);
    margin-bottom: var(--sp-8);
}

.changelog-entry {
    padding: var(--sp-8);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    margin-bottom: var(--sp-6);
}
.changelog-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--sp-5);
}
.changelog-entry-header h3 { margin: 0; }
.changelog-entry-header span { font-size: var(--text-sm); color: var(--text-dim); }

.changelog-list { list-style: none; padding: 0; }
.changelog-list li {
    padding: 5px 0;
    color: var(--text-secondary);
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    gap: var(--sp-3);
}
.changelog-tag {
    background: var(--red-light);
    color: var(--red);
    font-size: var(--text-xs);
    font-weight: 800;
    padding: 2px 8px;
    border-radius: var(--r-full);
    flex-shrink: 0;
}

/* ============================================
   Loading
   ============================================ */
.loading {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
}
.loading::after {
    content: '';
    width: 14px;
    height: 14px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    :root {
        --text-6xl: 3.25rem;
        --text-4xl: 2.25rem;
    }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-8); }
}

@media (max-width: 768px) {
    :root {
        --text-6xl: 2.5rem;
        --text-4xl: 1.75rem;
        --text-3xl: 1.5rem;
    }

    .section { padding: var(--sp-16) 0; }
    .hero { padding: var(--sp-20) 0; }

    .nav-menu, .nav-actions { display: none; }
    .nav-menu.active, .nav-actions.active { display: flex; }
    .nav-toggle { display: block; }
    .navbar { flex-wrap: wrap; }

    .nav-menu.active {
        flex-direction: column;
        width: 100%;
        order: 10;
        padding: var(--sp-4) 0;
        gap: 0;
        border-top: 1px solid var(--border);
        animation: slideDown 0.25s var(--ease) both;
    }
    .nav-menu.active .nav-link { padding: var(--sp-3) var(--sp-2); width: 100%; }
    .nav-actions.active { width: 100%; order: 11; padding-bottom: var(--sp-4); gap: var(--sp-2); }
    .nav-actions.active .btn { flex: 1; }

    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions .btn { width: 100%; max-width: 260px; }

    .features-grid, .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .footer-grid { grid-template-columns: 1fr; gap: var(--sp-8); }
    .footer-bottom { flex-direction: column; gap: var(--sp-2); text-align: center; }
    .form-row-2 { grid-template-columns: 1fr; }
    .error-code { font-size: 6rem; }
    .error-actions { flex-direction: column; }
}
