/* Simple, professional, and responsive styling for the Simple Media Encoder site */
/* Light/Dark theme aware via prefers-color-scheme */

:root {
    --bg: #0b0c0f;
    --panel: #12151a;
    --text: #e8ebf0;
    --muted: #9aa3ad;
    --brand: #7653c6;
    /* primary brand from icon */
    --brand-hover: #8561d2;
    /* hover/secondary */
    --brand-tint: #a798d0;
    /* light tint */
    --brand-contrast: #1a1031;
    --border: #1f2530;
    --hairline: #232730;
    --radius-outer: 12px;
    --radius-inner: 8px;
    --spacing: 12px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

@media (prefers-color-scheme: light) {
    :root {
        --bg: #f8fafc;
        --panel: #ffffff;
        --text: #0b1220;
        --muted: #5b6573;
        --brand: #7653c6;
        --brand-hover: #8561d2;
        --brand-tint: #a798d0;
        --brand-contrast: #efe9ff;
        --border: #e6eaf0;
        --hairline: #e9edf3;
        --shadow: 0 8px 20px rgba(16, 24, 40, 0.08);
    }
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

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

/* Ensure smooth scrolling works on all browsers */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

@media (max-width: 820px) {
    html {
        font-size: 18px;
    }
}

@media (max-width: 430px) {
    html {
        font-size: 20px;
    }
}

@media (max-width: 375px) {
    html {
        font-size: 21px;
    }
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    background: radial-gradient(1200px 600px at 80% -100px, rgba(118, 83, 198, 0.10), transparent 40%),
        radial-gradient(900px 500px at -10% -40%, rgba(118, 83, 198, 0.08), transparent 40%),
        var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.container {
    width: min(1100px, 92%);
    margin: 0 auto;
}

@media (max-width: 720px) {
    .container {
        width: min(1100px, 94%);
    }
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--panel) 60%, transparent);
    backdrop-filter: saturate(1.2) blur(10px);
    border-bottom: 0.5px solid var(--hairline);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    text-decoration: none;
    color: inherit;
}

.brand-icon {
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.brand-name {
    letter-spacing: 0.2px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 18px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.nav a {
    color: var(--text);
    text-decoration: none;
    opacity: 0.9;
}

.nav a:hover {
    opacity: 1;
    color: var(--brand-hover);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--panel);
    color: var(--text);
    text-decoration: none;
    transition: transform 0.08s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    box-shadow: var(--shadow);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn.small {
    height: 34px;
    padding: 0 12px;
    border-radius: 8px;
}

/* Disabled buttons (pre-release state) */
.btn[aria-disabled="true"],
.btn.is-disabled {
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.65;
    filter: grayscale(12%);
}

.btn-primary {
    background: linear-gradient(180deg, var(--brand), color-mix(in srgb, var(--brand) 70%, #000 30%));
    border-color: color-mix(in srgb, var(--brand) 60%, #000 40%);
    color: #ffffff;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(180deg, var(--brand-hover), color-mix(in srgb, var(--brand-hover) 70%, #000 30%));
    border-color: color-mix(in srgb, var(--brand-hover) 60%, #000 40%);
    color: #ffffff;
}

.coming-soon {
    color: var(--muted);
    font-size: 14px;
    align-self: center;
}

.btn-ghost {
    background: transparent;
    border-color: var(--border);
}

/* Links and inputs focus styling for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--brand) 85%, white 15%);
    outline-offset: 2px;
    border-radius: 6px;
}

/* Light mode contrast tweaks */
@media (prefers-color-scheme: light) {
    .feature {
        background: #ffffff;
    }

    .section.muted {
        background: #f6f8fb;
    }

    .content-card {
        background: #fbfcfe;
    }

    /* Ensure strong contrast for primary buttons in light mode */
    .btn-primary {
        color: #ffffff;
    }
}

.hero {
    padding: 56px 0 12px;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

.hero-copy h1 {
    font-size: clamp(32px, 5vw, 44px);
    line-height: 1.08;
    margin: 0 0 8px;
}

.subtitle {
    opacity: 0.9;
    font-size: 1.05rem;
    margin-bottom: 14px;
}

.cta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 14px 0 12px;
}

.hero-points {
    margin: 8px 0 0;
    padding-left: 18px;
    color: var(--muted);
}

.hero-art {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo {
    width: min(320px, 80%);
    height: auto;
    display: block;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

/* app-card and app-icon removed to simplify hero logo presentation */
.app-card,
.app-icon {
    display: none;
}

/* Remove window-like footer UI from the app card for a cleaner presentation */

.section {
    padding: 56px 0;
}

.section.muted {
    background: color-mix(in srgb, var(--panel) 40%, var(--bg));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section h2 {
    margin: 0 0 18px;
    font-size: clamp(24px, 4vw, 34px);
}

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

.feature {
    border: 1px solid var(--border);
    background: var(--panel);
    border-radius: var(--radius-outer);
    padding: 16px 16px 12px;
    box-shadow: var(--shadow);
}

.feature h3 {
    margin: 2px 0 8px;
    font-size: 18px;
}

.feature p {
    margin: 0;
    color: var(--muted);
}

/* World-class formats layout */
.format-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.format-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-outer);
    background: var(--panel);
    padding: 16px;
    box-shadow: var(--shadow);
}

.format-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--muted);
    margin: 6px 0 6px;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand) 14%, var(--panel));
    border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--border));
    color: var(--text);
}

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

/* Mobile optimizations */
@media (max-width: 720px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 8px;
    }

    .brand-name {
        display: none;
    }

    .nav {
        gap: 12px;
        flex-wrap: nowrap;
    }

    .nav::-webkit-scrollbar {
        display: none;
    }

    .hero {
        padding: 42px 0 8px;
    }

    .hero-logo {
        width: min(70vw, 260px);
        border-radius: 0;
    }

    .cta {
        gap: 8px;
    }

    .cta .btn {
        flex: 1 1 100%;
        text-align: center;
    }

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

    .chip {
        height: 34px;
        padding: 0 14px;
        font-size: 0.95rem;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .footer-right {
        flex-wrap: wrap;
        gap: 10px;
    }

    .get-started .btn {
        flex: 1 1 100%;
        text-align: center;
    }
}

.steps {
    margin: 8px 0 0;
    padding-left: 18px;
}

.steps li {
    margin-bottom: 8px;
}

.callout {
    margin-top: 16px;
    border: 1px dashed var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    color: var(--muted);
}

.get-started {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Formats Grid - Professional */
.formats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}

.format-category {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-outer);
    padding: 32px 28px;
    position: relative;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.format-category:hover {
    border-color: var(--brand);
    box-shadow: 0 4px 16px rgba(118, 83, 198, 0.08);
}

.format-category h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 24px 0;
    text-align: center;
    letter-spacing: -0.01em;
    position: relative;
}

.format-category h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--brand), var(--brand-hover));
    border-radius: 1px;
}

.format-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.format-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-inner);
    transition: all 0.2s ease;
}

.format-item:hover {
    border-color: var(--brand);
    background: color-mix(in srgb, var(--brand) 2%, var(--bg));
}

.format-type {
    font-weight: 600;
    color: var(--brand);
    min-width: 70px;
    font-size: 15px;
    letter-spacing: 0.01em;
}

.format-formats {
    color: var(--text);
    font-size: 15px;
    text-align: right;
    font-weight: 400;
    line-height: 1.4;
}

.format-category sup {
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
}

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

    .format-category {
        padding: 24px 20px;
    }

    .format-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 16px;
    }

    .format-formats {
        text-align: left;
        width: 100%;
    }

    .format-type {
        min-width: auto;
    }
}

.site-footer {
    padding: 28px 0 40px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid var(--border);
    padding-top: 18px;
}

.footer-right {
    display: inline-flex;
    gap: 14px;
}

.footer-right a {
    color: var(--muted);
    text-decoration: none;
}

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

/* macOS-style split view mock */
.split-window {
    border: 1px solid var(--border);
    border-radius: var(--radius-outer);
    box-shadow: var(--shadow);
    background: var(--panel);
    overflow: hidden;
}

.split-header {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 28px;
    padding: 0 10px;
    border-bottom: 0.5px solid var(--hairline);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.06));
}

.window-chrome {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.traffic-light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.25);
}

.traffic-red {
    background: #ff5f57;
}

.traffic-yellow {
    background: #febc2e;
}

.traffic-green {
    background: #28c840;
}

.split-inner {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 260px;
}

.sidebar {
    border-right: 0.5px solid var(--hairline);
    padding: 10px;
}

.content {
    padding: 12px 14px;
}

.section-title {
    font-size: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--muted);
    margin: 6px 4px 8px;
}

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

.sidebar-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 32px;
    padding: 0 10px;
    border-radius: 8px;
    cursor: default;
    color: var(--text);
}

.sidebar-item:hover {
    background: color-mix(in srgb, var(--panel) 60%, var(--bg));
}

.sidebar-item.active {
    background: color-mix(in srgb, var(--brand) 18%, var(--panel));
}

.tag {
    font-size: 11px;
    color: var(--muted);
}

.pill {
    font-size: 11px;
    color: var(--text);
    background: color-mix(in srgb, var(--brand) 22%, var(--panel));
    padding: 2px 8px;
    border-radius: 999px;
}

.content-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-inner);
    padding: 12px;
    background: color-mix(in srgb, var(--panel) 70%, var(--bg));
}

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 6px;
    border-bottom: 0.5px solid var(--hairline);
}

.row:last-child {
    border-bottom: 0;
}

.key {
    color: var(--muted);
}

.val {
    color: var(--text);
    font-weight: 600;
}

.btn:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--brand) 80%, white 20%);
    outline-offset: 2px;
}

@media (max-width: 920px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero-art {
        order: -1;
    }

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

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

/* Docs typography helpers (shared by simple HTML wrappers) */
.doc-main .container {
    width: min(900px, 92%);
}

.markdown-body h1 {
    font-size: clamp(28px, 3vw, 34px);
}

.markdown-body h2 {
    font-size: clamp(22px, 2.2vw, 26px);
}

.markdown-body h3 {
    font-size: clamp(18px, 2vw, 20px);
}

.markdown-body p {
    color: var(--text);
    opacity: 0.92;
}

.markdown-body ul {
    padding-left: 20px;
}

.markdown-body li {
    margin: 6px 0;
}

.markdown-body table {
    width: 100%;
    border-collapse: collapse;
}

.markdown-body th,
.markdown-body td {
    border: 1px solid var(--border);
    padding: 8px 10px;
}

.markdown-body blockquote {
    margin: 12px 0;
    padding: 8px 12px;
    border-left: 3px solid var(--brand);
    background: color-mix(in srgb, var(--panel) 60%, var(--bg));
}

/* Technical Specifications Grid */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.spec-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.spec-card h3 {
    color: var(--brand);
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
}

.spec-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.spec-card li {
    padding: 8px 0;
    border-bottom: 1px solid var(--hairline);
    color: var(--text);
    opacity: 0.9;
}

.spec-card li:last-child {
    border-bottom: none;
}

.spec-card strong {
    color: var(--text);
    font-weight: 600;
}

/* Enhanced feature grid for new features section */
.feature-grid .feature h3 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-grid .feature h3::before {
    content: "";
    width: 24px;
    height: 24px;
    background: var(--brand);
    border-radius: 50%;
    opacity: 0.1;
}

/* Responsive adjustments for specs grid */
@media (max-width: 920px) {
    .specs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Version History Page Styles */
.version-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-outer);
    padding: 24px;
    margin: 24px 0;
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
}

.version-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.version-card.current {
    border: 2px solid var(--brand);
    background: linear-gradient(135deg, var(--panel), color-mix(in srgb, var(--brand) 5%, var(--panel)));
}

.version-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--hairline);
}

.version-header h3 {
    color: var(--brand);
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.version-date {
    background: var(--brand);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.version-content h4 {
    color: var(--text);
    margin: 16px 0 8px 0;
    font-size: 16px;
    font-weight: 600;
}

.version-content h4:first-child {
    margin-top: 0;
}

.version-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.version-content li {
    padding: 8px 0;
    border-bottom: 1px solid var(--hairline);
    color: var(--text);
    opacity: 0.9;
    position: relative;
    padding-left: 20px;
}

.version-content li:last-child {
    border-bottom: none;
}

.version-content li::before {
    content: "•";
    color: var(--brand);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.version-content strong {
    color: var(--text);
    font-weight: 600;
}

/* Responsive adjustments for version cards */
@media (max-width: 768px) {
    .version-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .version-card {
        padding: 20px;
        margin: 20px 0;
    }

    .version-content h4 {
        font-size: 15px;
    }

    .version-content li {
        font-size: 14px;
        padding: 6px 0 6px 18px;
    }
}

/* Contact Form Styles */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    margin: 40px 0;
    align-items: start;
}

.contact-form-container {
    position: sticky;
    top: 32px;
}

.contact-info h2 {
    color: var(--brand);
    margin-bottom: 16px;
}

.contact-info p {
    color: var(--text);
    opacity: 0.9;
    margin-bottom: 32px;
    line-height: 1.6;
}

.support-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.category {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-inner);
    padding: 20px;
    transition: all 0.2s ease;
}

.category:hover {
    border-color: var(--brand);
    transform: translateY(-2px);
}

.category h3 {
    color: var(--brand);
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
}

.category p {
    color: var(--text);
    opacity: 0.8;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.contact-form-container {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-outer);
    padding: 48px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--brand-hover), var(--brand-tint));
}

.contact-form h2 {
    color: var(--brand);
    margin: 0 0 32px 0;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    position: relative;
}

.form-group {
    margin-bottom: 28px;
}

.form-group label {
    display: block;
    color: var(--text);
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius-inner);
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 25%, transparent), 0 4px 16px rgba(118, 83, 198, 0.2);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
    font-family: inherit;
    line-height: 1.6;
}

.form-group select {
    cursor: pointer;
}

.contact-form .btn {
    width: 100%;
    padding: 20px 24px;
    font-size: 18px;
    font-weight: 700;
    margin-top: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--brand), var(--brand-hover));
    border: none;
    border-radius: var(--radius-inner);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(118, 83, 198, 0.3);
    position: relative;
    overflow: hidden;
}

.contact-form .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(118, 83, 198, 0.4);
    background: linear-gradient(135deg, var(--brand-hover), var(--brand));
}

.contact-form .btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(118, 83, 198, 0.3);
}

.contact-form .btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: none;
}

.success-message,
.error-message {
    text-align: center;
    padding: 32px 24px;
}

.success-message h3 {
    color: #10b981;
    margin-bottom: 16px;
}

.error-message h3 {
    color: #ef4444;
    margin-bottom: 16px;
}

.success-message p,
.error-message p {
    color: var(--text);
    opacity: 0.9;
    margin-bottom: 24px;
    line-height: 1.6;
}

.help-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.tip {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-inner);
    padding: 24px;
    text-align: center;
}

.tip h3 {
    color: var(--brand);
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
}

.tip p {
    color: var(--text);
    opacity: 0.9;
    margin: 0;
    line-height: 1.6;
}

.tip a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 500;
}

.tip a:hover {
    text-decoration: underline;
}

/* Responsive adjustments for contact form */
@media (max-width: 920px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .support-categories {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .help-tips {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-form-container {
        position: static;
    }
}

@media (max-width: 768px) {
    .contact-form-container {
        padding: 32px 24px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
        /* Prevent zoom on iOS */
    }

    .contact-form .btn {
        padding: 18px 20px;
        font-size: 16px;
    }

    .contact-form h2 {
        font-size: 24px;
    }
}

/* Enhanced animations for form elements */
.form-group input,
.form-group select,
.form-group textarea {
    animation: fadeInUp 0.6s ease-out;
}

.form-group:nth-child(1) {
    animation-delay: 0.1s;
}

.form-group:nth-child(2) {
    animation-delay: 0.2s;
}

.form-group:nth-child(3) {
    animation-delay: 0.3s;
}

.form-group:nth-child(4) {
    animation-delay: 0.4s;
}

.form-group:nth-child(5) {
    animation-delay: 0.5s;
}

.form-group:nth-child(6) {
    animation-delay: 0.6s;
}

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

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

/* Enhanced hover effects for form fields */
.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--brand-tint);
    box-shadow: 0 2px 12px rgba(118, 83, 198, 0.15);
}

/* Special styling for the message textarea */
.form-group textarea {
    background: linear-gradient(135deg, var(--bg), color-mix(in srgb, var(--panel) 30%, var(--bg)));
}

/* Enhanced select dropdown styling */
.form-group select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%237653c6' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 48px;
    appearance: none;
}

/* Help Page Styles */

.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 48px 0;
}

.help-category {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-outer);
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.help-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--brand-hover));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.help-category:hover::before {
    transform: scaleX(1);
}

.help-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(118, 83, 198, 0.15);
}

.help-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.help-category h3 {
    color: var(--text);
    margin: 0 0 16px 0;
    font-size: 20px;
    font-weight: 600;
}

.help-category p {
    color: var(--text-secondary);
    margin: 0 0 24px 0;
    line-height: 1.6;
}

.help-link {
    display: inline-block;
    color: var(--brand);
    text-decoration: none;
    font-weight: 600;
    padding: 14px 28px;
    border: 2px solid var(--brand);
    border-radius: var(--radius-inner);
    transition: all 0.3s ease;
    cursor: pointer;
    background: transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.help-link:hover {
    background: var(--brand);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--brand);
}

.help-link:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.help-quick-start {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-outer);
    padding: 32px;
    margin: 48px 0;
}

.help-quick-start h2 {
    color: var(--brand);
    margin: 0 0 24px 0;
    text-align: center;
    font-size: 28px;
}

.quick-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.step-number {
    background: var(--brand);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.step-content h4 {
    color: var(--text);
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
}

.step-content p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.help-supported-formats {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-outer);
    padding: 32px;
    margin: 48px 0;
}

.help-supported-formats h2 {
    color: var(--brand);
    margin: 0 0 24px 0;
    text-align: center;
    font-size: 28px;
}

.formats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.format-section {
    text-align: center;
    padding: 24px;
    background: var(--bg);
    border-radius: var(--radius-inner);
    border: 1px solid var(--border);
}

.format-section h4 {
    color: var(--brand);
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
}

.format-section p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.help-system-requirements {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-outer);
    padding: 32px;
    margin: 48px 0;
}

.help-system-requirements h2 {
    color: var(--brand);
    margin: 0 0 24px 0;
    text-align: center;
    font-size: 28px;
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.requirements-list li {
    background: var(--bg);
    padding: 16px 20px;
    border-radius: var(--radius-inner);
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 500;
    position: relative;
    padding-left: 40px;
}

.requirements-list li::before {
    content: '✓';
    position: absolute;
    left: 16px;
    color: var(--brand);
    font-weight: 700;
    font-size: 16px;
}

/* Help Content Page Styles */
.help-breadcrumb {
    margin: 24px 0;
}

.help-breadcrumb a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-inner);
    transition: all 0.3s ease;
}

.help-breadcrumb a:hover {
    background: var(--brand);
    color: white;
    border-color: var(--brand);
}

.help-content {
    max-width: 900px;
    margin: 0 auto;
}

.help-content h1 {
    color: var(--brand);
    margin: 0 0 20px 0;
    font-size: 42px;
    font-weight: 800;
    text-align: center;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.help-subtitle {
    color: var(--text-secondary);
    font-size: 20px;
    text-align: center;
    margin: 0 0 48px 0;
    font-weight: 500;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.help-section {
    margin: 48px 0;
    padding: 32px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-outer);
}

.help-section h2 {
    color: var(--brand);
    margin: 0 0 24px 0;
    font-size: 28px;
    font-weight: 600;
    border-bottom: 2px solid var(--border);
    padding-bottom: 16px;
}

.help-section h3 {
    color: var(--text);
    margin: 0 0 16px 0;
    font-size: 22px;
    font-weight: 600;
}

.help-section p {
    color: var(--text-secondary);
    margin: 0 0 16px 0;
    line-height: 1.7;
    font-size: 16px;
}

.help-section ul {
    color: var(--text-secondary);
    margin: 0 0 16px 0;
    padding-left: 24px;
    line-height: 1.7;
}

.help-section li {
    margin-bottom: 8px;
}

.quick-steps-detailed {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.step-detailed {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.step-number-large {
    background: var(--brand);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
}

.step-content-detailed h3 {
    color: var(--text);
    margin: 0 0 16px 0;
    font-size: 24px;
    font-weight: 600;
}

.step-content-detailed p {
    color: var(--text-secondary);
    margin: 0 0 16px 0;
    line-height: 1.7;
    font-size: 16px;
}

.tip {
    background: color-mix(in srgb, var(--brand) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--brand) 20%, transparent);
    border-radius: var(--radius-inner);
    padding: 16px;
    margin-top: 16px;
}

.tip strong {
    color: var(--brand);
}

.formats-detailed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.format-category {
    background: var(--bg);
    padding: 24px;
    border-radius: var(--radius-inner);
    border: 1px solid var(--border);
}

.format-category h3 {
    color: var(--brand);
    margin: 0 0 16px 0;
    font-size: 20px;
    font-weight: 600;
}

.format-category ul {
    margin: 0;
    padding-left: 20px;
}

.format-category li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.requirements-detailed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.requirement-item {
    background: var(--bg);
    padding: 24px;
    border-radius: var(--radius-inner);
    border: 1px solid var(--border);
}

.requirement-item h3 {
    color: var(--brand);
    margin: 0 0 16px 0;
    font-size: 20px;
    font-weight: 600;
}

.requirement-item p {
    margin: 0;
    line-height: 1.6;
}

.setup-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.setup-step {
    background: var(--bg);
    padding: 24px;
    border-radius: var(--radius-inner);
    border: 1px solid var(--border);
    text-align: center;
}

.setup-step h3 {
    color: var(--brand);
    margin: 0 0 16px 0;
    font-size: 20px;
    font-weight: 600;
}

.setup-step p {
    margin: 0;
    line-height: 1.6;
}

.next-steps {
    text-align: center;
    padding: 32px;
    background: var(--bg);
    border-radius: var(--radius-inner);
    border: 1px solid var(--border);
}

.next-steps p {
    color: var(--text);
    margin: 0 0 24px 0;
    font-size: 18px;
    font-weight: 500;
}

.next-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.next-link {
    display: inline-block;
    color: var(--brand);
    text-decoration: none;
    font-weight: 600;
    padding: 16px 24px;
    border: 2px solid var(--brand);
    border-radius: var(--radius-inner);
    transition: all 0.3s ease;
    text-align: center;
}

.next-link:hover {
    background: var(--brand);
    color: white;
    transform: translateY(-2px);
}

/* Responsive Help Styles */
@media (max-width: 768px) {
    .help-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .help-category {
        padding: 24px;
    }

    .quick-steps {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .formats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .requirements-list {
        grid-template-columns: 1fr;
    }

    .step-detailed {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .formats-detailed {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .requirements-detailed {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .setup-steps {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .next-links {
        grid-template-columns: 1fr;
    }

    .help-content h1 {
        font-size: 28px;
    }

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

    .help-section {
        padding: 24px;
        margin: 32px 0;
    }
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .header-inner {
        flex-direction: row;
        gap: 16px;
        padding: 16px;
        justify-content: space-between;
        align-items: center;
    }

    .brand {
        justify-content: flex-start;
    }

    .brand-name {
        font-size: 20px;
    }

    .brand-icon {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: 18px;
    }

    .brand-icon {
        width: 24px;
        height: 24px;
    }

    .mobile-menu {
        max-width: 100%;
    }
}

/* Expandable Content Styles */
.expandable-content {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-outer);
    margin: 24px 0;
    box-shadow: 0 4px 20px rgba(118, 83, 198, 0.1);
    overflow: hidden;
    animation: slideDown 0.3s ease-out;
    width: 100%;
    max-width: 100%;
}

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

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

.content-header {
    background: linear-gradient(135deg, var(--brand), var(--brand-hover));
    color: white;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.content-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.close-btn {
    background: none;
    border: 2px solid white;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: white;
    color: var(--brand);
    transform: scale(1.1);
}

.content-body {
    padding: 24px;
}

.content-body>p {
    color: var(--text);
    font-size: 18px;
    margin: 0 0 24px 0;
    line-height: 1.6;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.info-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-inner);
    padding: 20px;
}

.info-card h4 {
    color: var(--brand);
    margin: 0 0 16px 0;
    font-size: 20px;
    font-weight: 600;
}

.info-card ul {
    margin: 0;
    padding-left: 20px;
}

.info-card li {
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.6;
}

.content-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.expand-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    padding: 0;
    margin: 0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.expand-btn:hover {
    transform: translateY(-2px);
}

/* Responsive adjustments for expandable content */
@media (max-width: 768px) {
    .content-header {
        padding: 20px 24px;
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .content-header h2 {
        font-size: 24px;
    }

    .content-body {
        padding: 24px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .info-card {
        padding: 20px;
    }
}

/* Hamburger Menu Styles */
.hamburger {
    /* Always visible and fixed in the top-right with safe-area padding */
    position: fixed;
    top: max(10px, env(safe-area-inset-top));
    right: max(10px, env(safe-area-inset-right));
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 40px;
    background: color-mix(in srgb, var(--panel) 80%, transparent);
    backdrop-filter: saturate(1.1) blur(8px);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    padding: 8px;
    z-index: 1200;
    /* Above overlays and menus */
    transition: all 0.25s ease;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(90%, 420px);
    height: 100vh;
    background: var(--bg);
    border-left: 1px solid var(--border);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.25);
    z-index: 1100;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    padding-bottom: env(safe-area-inset-bottom);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(16px + env(safe-area-inset-top)) 24px 16px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--panel);
}

.mobile-menu-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text);
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mobile-menu-close:hover {
    background: var(--border);
    color: var(--text);
}

.mobile-menu-content {
    padding: 24px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

.mobile-menu-content a {
    display: block;
    padding: 16px 0;
    color: var(--text);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    transition: all 0.2s ease;
}

.mobile-menu-content a:last-child {
    border-bottom: none;
}

.mobile-menu-content a:hover {
    color: var(--brand);
    padding-left: 8px;
}

/* Mobile Navigation Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.42);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Alert styles */
.alert {
    padding: 12px 16px;
    margin: 16px 0;
    border-radius: 6px;
    border-left: 4px solid;
    font-size: 14px;
    line-height: 1.4;
}

.alert-info {
    background-color: #e3f2fd;
    border-left-color: #2196f3;
    color: #0d47a1;
}

.alert-warning {
    background-color: #fff3e0;
    border-left-color: #ff9800;
    color: #e65100;
}