/* RAGE - Styles
 * ============================================ */

:root {
    /* Brand */
    --orange-primary: #E85A28;
    --orange-dark: #D14020;
    --orange-light: #F58D40;
    --orange-hover: #F26B3A;
    --orange-muted: rgba(232, 90, 40, 0.12);

    /* Surfaces - refined dark */
    --bg-base: #0c0c0c;
    --bg-dark: #111111;
    --bg-card: #161616;
    --bg-elevated: #1c1c1c;

    /* Text - softer contrast */
    --text-primary: #f5f5f5;
    --text-secondary: #9a9a9f;
    --text-tertiary: #6b6b70;

    /* Borders - subtler */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

    /* Semantic */
    --success: #22c55e;
    --success-muted: rgba(34, 197, 94, 0.15);
    --warning: #f59e0b;
    --warning-muted: rgba(245, 158, 11, 0.15);
    --error: #ef4444;
    --error-muted: rgba(239, 68, 68, 0.15);
    --info: #3b82f6;
    --info-muted: rgba(59, 130, 246, 0.15);
}

[data-theme="light"] {
    /* Surfaces - cleaner light */
    --bg-base: #fafafa;
    --bg-dark: #ffffff;
    --bg-card: #ffffff;
    --bg-elevated: #ffffff;

    /* Text */
    --text-primary: #1a1a1a;
    --text-secondary: #6b6b70;
    --text-tertiary: #8c8c91;

    /* Borders - subtler */
    --border-color: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);

    /* Shadows - visible in light mode */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);

    /* Semantic (slightly adjusted for light theme) */
    --success: #16a34a;
    --success-muted: rgba(22, 163, 74, 0.12);
    --warning: #d97706;
    --warning-muted: rgba(217, 119, 6, 0.12);
    --error: #dc2626;
    --error-muted: rgba(220, 38, 38, 0.12);
    --info: #2563eb;
    --info-muted: rgba(37, 99, 235, 0.12);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-feature-settings: 'cv01', 'cv02', 'ss01';
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.logo-small {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-small img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.logo-small span {
    font-size: 20px;
    font-weight: 700;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease-out;
}

.nav-links a:hover {
    color: var(--orange-primary);
}

.mobile-nav-link {
    display: none;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--orange-primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Theme Toggle */
.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.theme-toggle svg {
    width: 20px;
    height: 20px;
    fill: var(--text-primary);
}

.theme-toggle .sun-icon {
    display: block;
}

.theme-toggle .moon-icon {
    display: none;
}

[data-theme="light"] .theme-toggle .sun-icon {
    display: none;
}

[data-theme="light"] .theme-toggle .moon-icon {
    display: block;
}

/* Hero Section */
.hero {
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(
        ellipse 60% 40% at 50% 20%,
        rgba(232, 90, 40, 0.15),
        transparent 70%
    );
    pointer-events: none;
    z-index: -1;
}

[data-theme="light"] .hero::before {
    background: radial-gradient(
        ellipse 60% 40% at 50% 20%,
        rgba(232, 90, 40, 0.08),
        transparent 70%
    );
}

.app-icon-container {
    display: block;
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 40px;
}

.pulsing-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    pointer-events: none;
}

.pulsing-rings .ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid var(--orange-primary);
    border-radius: 40px;
    animation: pulse 4s ease-out infinite;
    opacity: 0;
    box-shadow: 0 0 15px var(--orange-primary);
}

.pulsing-rings .ring:nth-child(1) { animation-delay: 0s; }
.pulsing-rings .ring:nth-child(2) { animation-delay: 1.33s; }
.pulsing-rings .ring:nth-child(3) { animation-delay: 2.66s; }

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.8); opacity: 0; }
}

.hero-title {
    text-decoration: none;
}

.app-icon {
    width: 180px;
    height: 180px;
    border-radius: 40px;
    box-shadow:
        0 20px 60px rgba(232, 90, 40, 0.3),
        0 0 100px rgba(232, 90, 40, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-icon:hover {
    transform: scale(1.05);
    box-shadow:
        0 25px 80px rgba(232, 90, 40, 0.4),
        0 0 120px rgba(232, 90, 40, 0.2);
}

.hero h1 {
    font-size: 56px;
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--orange-light), var(--orange-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .hero h1 {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #1d1d1f;
    background-clip: unset;
}

.hero .tagline {
    font-size: 24px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-weight: 500;
}

.hero .description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.8;
}

/* Store Buttons */
.store-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.app-store-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--text-primary);
    color: var(--bg-dark);
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.app-store-btn.square {
    width: 72px;
    height: 72px;
    min-width: 72px;
    min-height: 72px;
    max-width: 72px;
    max-height: 72px;
    padding: 0;
    border-radius: 16px;
    flex-shrink: 0;
}

.app-store-btn:hover {
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.12);
}

.app-store-btn svg {
    width: 24px;
    height: 24px;
    fill: var(--bg-dark);
}

.app-store-btn.square svg {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
}

[data-theme="light"] .app-store-btn {
    background: #1d1d1f;
    color: #ffffff;
}

[data-theme="light"] .app-store-btn svg {
    fill: #ffffff;
}

[data-theme="light"] .app-store-btn:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.app-store-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.app-store-btn.outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    cursor: default;
}

.app-store-btn.outline:hover {
    transform: none;
    box-shadow: none;
}

.app-store-btn.outline svg {
    fill: var(--text-secondary);
}

.app-store-btn.testflight {
    background: transparent;
    border: none;
    padding: 0;
    overflow: hidden;
}

.app-store-btn.testflight img {
    display: block;
    width: 72px;
    height: 72px;
    max-width: 72px;
    max-height: 72px;
    border-radius: 16px;
}

.app-store-btn.testflight:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .app-store-btn.testflight {
    background: transparent;
}

/* Hero Platforms */
.hero-platforms {
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

/* Platforms Section */
.platforms {
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
}

.platforms h2 {
    text-align: center;
    font-size: 32px;
    letter-spacing: -0.02em;
    margin-bottom: 48px;
    font-weight: 600;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.platform-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.2s ease-out;
    box-shadow: var(--shadow-sm);
}

.platform-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.platform-card svg {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    fill: var(--text-primary);
}

.platform-card h3 {
    font-size: 16px;
    font-weight: 600;
}

/* Features Section */
.features {
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
}

.features h2 {
    text-align: center;
    font-size: 32px;
    letter-spacing: -0.02em;
    margin-bottom: 48px;
    font-weight: 600;
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 36px;
    transition: all 0.2s ease-out;
    box-shadow: var(--shadow-sm);
}

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

.feature-card .icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--orange-primary), var(--orange-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-card .icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* About Section */
.about {
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.about h2 {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.about-text {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Capabilities Section */
.capabilities {
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
}

.capabilities h2 {
    text-align: center;
    font-size: 32px;
    letter-spacing: -0.02em;
    margin-bottom: 48px;
    font-weight: 600;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.capability-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.capability-item h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--orange-primary);
}

.capability-item p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

/* Page Header (for subpages) */
.page-header {
    padding: 80px 0 48px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: 42px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: var(--text-primary);
}

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

.page-header .effective-date {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Content (for legal pages) */
.content {
    max-width: 720px;
    margin: 0 auto;
    padding: 64px 24px;
}

.content h2 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-top: 48px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.content h2:first-child,
.content h2:first-of-type {
    margin-top: 0;
}

.content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

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

.content ul {
    margin-bottom: 16px;
    padding-left: 24px;
}

.content li {
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
}

.content a {
    color: var(--orange-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.content a:hover {
    color: var(--orange-light);
}


/* Special boxes for legal pages */
.highlight-box {
    background: linear-gradient(135deg, rgba(232, 90, 40, 0.15), rgba(232, 90, 40, 0.05));
    border: 1px solid rgba(232, 90, 40, 0.3);
    padding: 24px;
    margin: 24px 0;
    border-radius: 12px;
}

.highlight-box p {
    margin-bottom: 0;
    color: var(--text-primary);
    font-weight: 500;
}

.info-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 12px;
    margin: 24px 0;
}

.info-box p {
    font-size: 15px;
}

.important-box {
    background: var(--bg-card);
    border-left: 4px solid var(--orange-primary);
    padding: 20px 24px;
    margin: 24px 0;
    border-radius: 0 12px 12px 0;
}

.important-box strong {
    color: var(--orange-primary);
}

.important-box p {
    margin-bottom: 0;
}

.disclaimer-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 12px;
    margin: 24px 0;
}

.disclaimer-box p {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.disclaimer-box ul {
    margin-top: 12px;
    margin-bottom: 12px;
}

.disclaimer-box li {
    font-size: 14px;
}

.contact-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px;
    margin-top: 32px;
}

.contact-box p {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.contact-box strong {
    color: var(--text-primary);
}

/* Cookie table */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.cookie-table th,
.cookie-table td {
    padding: 12px 16px;
    text-align: left;
    border: 1px solid var(--border-color);
}

.cookie-table th {
    background: var(--bg-card);
    color: var(--text-primary);
    font-weight: 600;
}

.cookie-table td {
    color: var(--text-secondary);
}

.cookie-table code {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 13px;
    color: var(--orange-primary);
    background: rgba(232, 90, 40, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.manage-btn {
    display: inline-block;
    background: var(--orange-primary);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: 8px;
}

.manage-btn:hover {
    background: var(--orange-hover);
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(232, 90, 40, 0.3);
}

/* Support page - Contact list */
.contact-section {
    margin-bottom: 48px;
}

.contact-section h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.contact-list {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item:hover {
    background: rgba(232, 90, 40, 0.08);
}

.contact-item .icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--orange-primary), var(--orange-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item .icon svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.contact-item-content {
    flex: 1;
    min-width: 0;
}

.contact-item h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.contact-item p {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-item .arrow {
    width: 20px;
    height: 20px;
    fill: var(--text-secondary);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.contact-item:hover .arrow {
    transform: translateX(4px);
    fill: var(--orange-primary);
}

/* FAQ Section */
.faq-section h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}

.faq-list {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

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

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    padding: 16px 20px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: rgba(232, 90, 40, 0.08);
}

.faq-question svg {
    width: 18px;
    height: 18px;
    fill: var(--text-secondary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 20px 16px;
    max-height: 500px;
}

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

.faq-answer a {
    color: var(--orange-primary);
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* Support page compact layout */
.support-page {
    padding: 32px 0 80px;
}

.support-title {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 32px;
    text-align: center;
}

.support-page .container {
    max-width: 600px;
}

.support-grid {
    display: grid;
    gap: 32px;
    margin-bottom: 32px;
}

.support-section h2 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.support-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.support-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease-out;
    box-shadow: var(--shadow-sm);
}

.support-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.contact-cards {
    display: flex;
    gap: 8px;
}

.contact-cards .support-card {
    flex: 1;
    min-width: 0;
    justify-content: center;
}

@media (max-width: 400px) {
    .contact-cards {
        flex-direction: column;
    }

    .contact-cards .support-card {
        justify-content: flex-start;
    }
}

.support-card svg {
    width: 20px;
    height: 20px;
    fill: var(--orange-primary);
    flex-shrink: 0;
}

/* Guides list - FAQ style with links */
.guides-list {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.guides-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
}

.guides-list a:last-child {
    border-bottom: none;
}

.guides-list a:hover {
    background: rgba(232, 90, 40, 0.08);
}

.guides-list a::after {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 2px solid var(--text-secondary);
    border-bottom: 2px solid var(--text-secondary);
    transform: rotate(-45deg);
    transition: all 0.2s ease;
}

.guides-list a:hover::after {
    border-color: var(--orange-primary);
    transform: translateX(3px) rotate(-45deg);
}

/* FAQ compact with details/summary */
.faq-compact {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-compact details {
    border-bottom: 1px solid var(--border-color);
}

.faq-compact details:last-child {
    border-bottom: none;
}

.faq-compact summary {
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s ease;
}

.faq-compact summary::-webkit-details-marker {
    display: none;
}

.faq-compact summary:hover {
    background: rgba(232, 90, 40, 0.08);
}

.faq-compact summary::after {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 2px solid var(--text-secondary);
    border-bottom: 2px solid var(--text-secondary);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.faq-compact details[open] summary::after {
    transform: rotate(-135deg);
}

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

.faq-compact a {
    color: var(--orange-primary);
    text-decoration: none;
}

.faq-compact a:hover {
    text-decoration: underline;
}

/* Live chat page */
.chat-notice {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.chat-notice h2 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.chat-notice p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
}

.chat-notice p:last-child {
    margin-bottom: 0;
}

.chat-notice a {
    color: var(--orange-primary);
    text-decoration: none;
}

.chat-notice a:hover {
    text-decoration: underline;
}

.scripts-info {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
}

.scripts-info h2 {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.script-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.script-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.script-item code {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 13px;
    color: var(--orange-primary);
    background: rgba(232, 90, 40, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.script-item p {
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 6px;
}

/* 404 Page */
.error-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 24px;
}

.error-content h1 {
    font-size: 120px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--orange-light), var(--orange-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.error-content h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.error-content p {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 32px;
}

.error-content a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--orange-primary);
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.error-content a:hover {
    background: var(--orange-hover);
    box-shadow: 0 8px 24px rgba(232, 90, 40, 0.25);
}

/* Footer */
footer {
    padding: 48px 0;
    border-top: 1px solid var(--border-color);
}

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

.footer-text {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 24px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease-out;
}

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

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 24px;
    left: 24px;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    z-index: 1000;
    transform: translateY(calc(100% + 48px));
    transition: transform 0.4s ease;
    box-shadow: var(--shadow-lg);
}

.cookie-consent.visible {
    transform: translateY(0);
}

.cookie-consent-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.cookie-consent-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.cookie-consent-text a {
    color: var(--orange-primary);
    text-decoration: none;
}

.cookie-consent-text a:hover {
    text-decoration: underline;
}

.cookie-options {
    display: none;
    margin-bottom: 20px;
}

.cookie-consent.expanded .cookie-options {
    display: block;
}

.cookie-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.cookie-option:last-child {
    border-bottom: none;
}

.cookie-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--orange-primary);
}

.cookie-option-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
}

.cookie-option-required {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 400;
}

.cookie-option-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.cookie-consent-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.cookie-btn-accept {
    background: var(--orange-primary);
    color: white;
}

.cookie-btn-accept:hover {
    background: var(--orange-hover);
    box-shadow: 0 6px 20px rgba(232, 90, 40, 0.3);
}

.cookie-btn-settings {
    background: var(--bg-dark);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.cookie-btn-settings:hover {
    border-color: var(--orange-primary);
}

.cookie-btn-reject {
    background: transparent;
    color: var(--text-secondary);
}

.cookie-btn-reject:hover {
    color: var(--text-primary);
}

.cookie-btn-save {
    display: none;
    background: var(--orange-primary);
    color: white;
}

.cookie-btn-save:hover {
    background: var(--orange-hover);
    box-shadow: 0 6px 20px rgba(232, 90, 40, 0.3);
}

.cookie-consent.expanded .cookie-btn-accept,
.cookie-consent.expanded .cookie-btn-settings {
    display: none;
}

.cookie-consent.expanded .cookie-btn-save {
    display: block;
}

/* Guide Pages */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 16px;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--orange-primary);
}

.breadcrumb span {
    color: var(--text-secondary);
}

.lang-switch {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.lang-switch a {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.lang-switch a:hover {
    border-color: var(--orange-primary);
    color: var(--orange-primary);
}

.lang-switch a.active {
    background: var(--orange-primary);
    border-color: var(--orange-primary);
    color: white;
}

.dns-table {
    overflow-x: auto;
    margin: 24px 0;
}

.dns-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.dns-table th,
.dns-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.dns-table th {
    background: var(--bg-card);
    font-weight: 600;
    color: var(--text-primary);
}

.dns-table td {
    color: var(--text-secondary);
}

.dns-table code {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 13px;
    color: var(--orange-primary);
    background: rgba(232, 90, 40, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.highlight-box.warning {
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.guide-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.guide-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.guide-nav a:hover {
    color: var(--orange-primary);
}

.guide-nav a svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.guide-nav .next-link {
    margin-left: auto;
}

.content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.content ol li {
    margin-bottom: 8px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Support page - Troubleshooting section */
.troubleshooting-section {
    margin-bottom: 32px;
}

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

.troubleshooting-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease-out;
    box-shadow: var(--shadow-sm);
}

.troubleshooting-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.troubleshooting-card svg {
    width: 24px;
    height: 24px;
    fill: var(--orange-primary);
}

.troubleshooting-card span {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.3;
}

/* Support page - Guide cards */
.guide-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.guide-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease-out;
    box-shadow: var(--shadow-sm);
}

.guide-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.guide-card-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: linear-gradient(135deg, var(--orange-primary), var(--orange-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guide-card-icon svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.guide-card-content {
    flex: 1;
    min-width: 0;
}

.guide-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.guide-card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }

    .hero .tagline {
        font-size: 18px;
    }

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

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

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

    .about-text {
        font-size: 16px;
    }

    .page-header h1 {
        font-size: 32px;
    }

    .content {
        padding: 40px 16px;
    }

    .content h2 {
        font-size: 20px;
    }

    .footer-links {
        gap: 10px 16px;
    }

    .nav-links {
        display: none;
    }

    .mobile-nav-link {
        display: block;
    }

    .contact-item p {
        display: none;
    }

    .contact-item h3 {
        margin: 0;
        line-height: 1;
    }

    .cookie-table {
        font-size: 14px;
    }

    .cookie-table th,
    .cookie-table td {
        padding: 8px;
    }

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

    .guide-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 540px) {
    .cookie-consent {
        left: 16px;
        right: 16px;
        max-width: none;
        bottom: 16px;
    }

    .cookie-consent-buttons {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        text-align: center;
    }
}
