/*fern-site-stylesheet*/:root {
  --header-height: 64px;
  --header-height-real: 64px;
  --mobile-header-height-real: 64px;
  --content-width: 640px;
  --sidebar-width: 288px;
  --page-width: 1408px;
  --logo-height: 60px;
  --font-body: ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  --font-heading: ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  --font-code: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

:root {
  --typography-body-font-family: var(--font-body);
  --typography-heading-font-family: var(--font-heading);
  --typography-code-font-family: var(--font-code);
}


.light, :root {
  --accent-1: #fbfefa;
  --accent-2: #f6fbf4;
  --accent-3: #e7f8e2;
  --accent-4: #d8f2cf;
  --accent-5: #c7eabb;
  --accent-6: #b2dfa4;
  --accent-7: #98cf85;
  --accent-8: #71ba57;
  --accent-9: #418326;
  --accent-10: #337514;
  --accent-11: #3d7f21;
  --accent-12: #263e1d;

  --accent-a1: #33cc0005;
  --accent-a2: #2fa3000b;
  --accent-a3: #2cc2001d;
  --accent-a4: #30ba0030;
  --accent-a5: #2db10044;
  --accent-a6: #28a6015b;
  --accent-a7: #289b017a;
  --accent-a8: #289700a8;
  --accent-a9: #206d00d9;
  --accent-a10: #226900eb;
  --accent-a11: #206c00de;
  --accent-a12: #0a2500e2;

  --accent-contrast: #fff;
  --accent-surface: #f4faf1cc;
  --accent-indicator: #418326;
  --accent-track: #418326;
}

@supports (color: color(display-p3 1 1 1)) {
  @media (color-gamut: p3) {
    .light, :root {
      --accent-1: oklch(99.3% 0.0057 138.1);
      --accent-2: oklch(98.2% 0.0107 138.1);
      --accent-3: oklch(96% 0.034 138.1);
      --accent-4: oklch(93.3% 0.0543 138.1);
      --accent-5: oklch(90% 0.0735 138.1);
      --accent-6: oklch(85.6% 0.0925 138.1);
      --accent-7: oklch(79.7% 0.1153 138.1);
      --accent-8: oklch(71.9% 0.1521 138.1);
      --accent-9: oklch(54.6% 0.1433 138.1);
      --accent-10: oklch(50% 0.1433 138.1);
      --accent-11: oklch(53.2% 0.1433 138.1);
      --accent-12: oklch(33.6% 0.0626 138.1);

      --accent-a1: color(display-p3 0.4118 0.8039 0.0196 / 0.02);
      --accent-a2: color(display-p3 0.2196 0.6118 0.0235 / 0.04);
      --accent-a3: color(display-p3 0.2235 0.7059 0.0039 / 0.106);
      --accent-a4: color(display-p3 0.2471 0.6902 0.0039 / 0.177);
      --accent-a5: color(display-p3 0.2353 0.6588 0.0039 / 0.251);
      --accent-a6: color(display-p3 0.2118 0.6196 0.0039 / 0.338);
      --accent-a7: color(display-p3 0.2118 0.5686 0.0039 / 0.451);
      --accent-a8: color(display-p3 0.2 0.5451 0 / 0.612);
      --accent-a9: color(display-p3 0.1451 0.3765 0 / 0.793);
      --accent-a10: color(display-p3 0.1451 0.3608 0 / 0.851);
      --accent-a11: color(display-p3 0.1451 0.3725 0 / 0.812);
      --accent-a12: color(display-p3 0.0471 0.1255 0 / 0.871);

      --accent-contrast: #fff;
      --accent-surface: color(display-p3 0.9608 0.9804 0.9529 / 0.8);
      --accent-indicator: oklch(54.6% 0.1433 138.1);
      --accent-track: oklch(54.6% 0.1433 138.1);
    }
  }
}


.light, :root {
  --grayscale-1: #fcfdfc;
  --grayscale-2: #f8faf8;
  --grayscale-3: #eff1ef;
  --grayscale-4: #e7e9e7;
  --grayscale-5: #dfe2df;
  --grayscale-6: #d7dad7;
  --grayscale-7: #cccfcc;
  --grayscale-8: #b9bcb8;
  --grayscale-9: #898e87;
  --grayscale-10: #7f847d;
  --grayscale-11: #60655f;
  --grayscale-12: #1d211c;

  --grayscale-a1: #00550003;
  --grayscale-a2: #00490007;
  --grayscale-a3: #00200010;
  --grayscale-a4: #00160018;
  --grayscale-a5: #00180020;
  --grayscale-a6: #00140028;
  --grayscale-a7: #000f0033;
  --grayscale-a8: #040f0047;
  --grayscale-a9: #050f0078;
  --grayscale-a10: #040e0082;
  --grayscale-a11: #020a00a0;
  --grayscale-a12: #010600e3;

  --grayscale-contrast: #000;
  --grayscale-surface: #ffffffcc;
  --grayscale-indicator: #898e87;
  --grayscale-track: #898e87;
}

@supports (color: color(display-p3 1 1 1)) {
  @media (color-gamut: p3) {
    .light, :root {
      --grayscale-1: color(display-p3 0.989 0.992 0.989);
      --grayscale-2: color(display-p3 0.974 0.98 0.973);
      --grayscale-3: color(display-p3 0.939 0.945 0.937);
      --grayscale-4: color(display-p3 0.907 0.914 0.905);
      --grayscale-5: color(display-p3 0.878 0.885 0.875);
      --grayscale-6: color(display-p3 0.846 0.855 0.843);
      --grayscale-7: color(display-p3 0.803 0.812 0.8);
      --grayscale-8: color(display-p3 0.727 0.738 0.723);
      --grayscale-9: color(display-p3 0.541 0.556 0.532);
      --grayscale-10: color(display-p3 0.5 0.515 0.491);
      --grayscale-11: color(display-p3 0.38 0.395 0.374);
      --grayscale-12: color(display-p3 0.117 0.129 0.111);

      --grayscale-a1: #00550003;
      --grayscale-a2: #00490007;
      --grayscale-a3: #00200010;
      --grayscale-a4: #00160018;
      --grayscale-a5: #00180020;
      --grayscale-a6: #00140028;
      --grayscale-a7: #000f0033;
      --grayscale-a8: #040f0047;
      --grayscale-a9: #050f0078;
      --grayscale-a10: #040e0082;
      --grayscale-a11: #020a00a0;
      --grayscale-a12: #010600e3;

      --grayscale-contrast: #000;
      --grayscale-surface: color(display-p3 1 1 1 / 80%);
      --grayscale-indicator: color(display-p3 0.541 0.556 0.532);
      --grayscale-track: color(display-p3 0.541 0.556 0.532);
    }
  }
}


.dark {
  --accent-1: #0b100a;
  --accent-2: #131911;
  --accent-3: #1d2919;
  --accent-4: #26371f;
  --accent-5: #2f4526;
  --accent-6: #39542e;
  --accent-7: #436436;
  --accent-8: #4f773f;
  --accent-9: #adff8c;
  --accent-10: #a4f582;
  --accent-11: #9ee681;
  --accent-12: #d2f9c4;

  --accent-a1: #00b80003;
  --accent-a2: #8df8120c;
  --accent-a3: #99fc581d;
  --accent-a4: #9efc632c;
  --accent-a5: #a0fc6c3b;
  --accent-a6: #a3fd744b;
  --accent-a7: #a5ff795b;
  --accent-a8: #a4fd7970;
  --accent-a9: #adff8c;
  --accent-a10: #aafe86f5;
  --accent-a11: #afff8de5;
  --accent-a12: #d7ffc9f9;

  --accent-contrast: #182613;
  --accent-surface: #19241180;
  --accent-indicator: #adff8c;
  --accent-track: #adff8c;
}

@supports (color: color(display-p3 1 1 1)) {
  @media (color-gamut: p3) {
    .dark {
      --accent-1: oklch(16.4% 0.0138 137.3);
      --accent-2: oklch(20.6% 0.0182 137.3);
      --accent-3: oklch(26.5% 0.0333 137.3);
      --accent-4: oklch(31.6% 0.0472 137.3);
      --accent-5: oklch(36.3% 0.0578 137.3);
      --accent-6: oklch(41.2% 0.0684 137.3);
      --accent-7: oklch(46.5% 0.0797 137.3);
      --accent-8: oklch(52.4% 0.094 137.3);
      --accent-9: oklch(92.2% 0.1685 137.3);
      --accent-10: oklch(89.2% 0.1685 137.3);
      --accent-11: oklch(85.4% 0.1515 137.3);
      --accent-12: oklch(94.1% 0.0801 137.3);

      --accent-a1: color(display-p3 0 0.9294 0 / 0.009);
      --accent-a2: color(display-p3 0.651 0.9961 0.1529 / 0.046);
      --accent-a3: color(display-p3 0.6745 0.9922 0.4157 / 0.113);
      --accent-a4: color(display-p3 0.7176 0.9961 0.4353 / 0.171);
      --accent-a5: color(display-p3 0.7333 0.9961 0.4863 / 0.225);
      --accent-a6: color(display-p3 0.7373 1 0.5176 / 0.287);
      --accent-a7: color(display-p3 0.7294 1 0.5333 / 0.353);
      --accent-a8: color(display-p3 0.7333 1 0.5373 / 0.432);
      --accent-a9: color(display-p3 0.7569 1 0.6039 / 0.992);
      --accent-a10: color(display-p3 0.7451 0.9961 0.5843 / 0.951);
      --accent-a11: color(display-p3 0.7647 1 0.6078 / 0.888);
      --accent-a12: color(display-p3 0.8824 1 0.8118 / 0.971);

      --accent-contrast: #182613;
      --accent-surface: color(display-p3 0.1098 0.1412 0.0706 / 0.5);
      --accent-indicator: oklch(92.2% 0.1685 137.3);
      --accent-track: oklch(92.2% 0.1685 137.3);
    }
  }
}


.dark {
  --grayscale-1: #111113;
  --grayscale-2: #18191b;
  --grayscale-3: #212225;
  --grayscale-4: #272a2d;
  --grayscale-5: #2e3135;
  --grayscale-6: #363a3f;
  --grayscale-7: #43484e;
  --grayscale-8: #5a6169;
  --grayscale-9: #696e77;
  --grayscale-10: #777b84;
  --grayscale-11: #b0b4ba;
  --grayscale-12: #edeef0;

  --grayscale-a1: #00000000;
  --grayscale-a2: #d8f4f609;
  --grayscale-a3: #ddeaf814;
  --grayscale-a4: #d3edf81d;
  --grayscale-a5: #d9edfe25;
  --grayscale-a6: #d6ebfd30;
  --grayscale-a7: #d9edff40;
  --grayscale-a8: #d9edff5d;
  --grayscale-a9: #dfebfd6d;
  --grayscale-a10: #e5edfd7b;
  --grayscale-a11: #f1f7feb5;
  --grayscale-a12: #fcfdffef;

  --grayscale-contrast: #fff;
  --grayscale-surface: rgba(0, 0, 0, 0.05);
  --grayscale-indicator: #696e77;
  --grayscale-track: #696e77;
}

@supports (color: color(display-p3 1 1 1)) {
  @media (color-gamut: p3) {
    .dark {
      --grayscale-1: color(display-p3 0.067 0.067 0.074);
      --grayscale-2: color(display-p3 0.095 0.098 0.105);
      --grayscale-3: color(display-p3 0.13 0.135 0.145);
      --grayscale-4: color(display-p3 0.156 0.163 0.176);
      --grayscale-5: color(display-p3 0.183 0.191 0.206);
      --grayscale-6: color(display-p3 0.215 0.226 0.244);
      --grayscale-7: color(display-p3 0.265 0.28 0.302);
      --grayscale-8: color(display-p3 0.357 0.381 0.409);
      --grayscale-9: color(display-p3 0.415 0.431 0.463);
      --grayscale-10: color(display-p3 0.469 0.483 0.514);
      --grayscale-11: color(display-p3 0.692 0.704 0.728);
      --grayscale-12: color(display-p3 0.93 0.933 0.94);

      --grayscale-a1: #00000000;
      --grayscale-a2: #d8f4f609;
      --grayscale-a3: #ddeaf814;
      --grayscale-a4: #d3edf81d;
      --grayscale-a5: #d9edfe25;
      --grayscale-a6: #d6ebfd30;
      --grayscale-a7: #d9edff40;
      --grayscale-a8: #d9edff5d;
      --grayscale-a9: #dfebfd6d;
      --grayscale-a10: #e5edfd7b;
      --grayscale-a11: #f1f7feb5;
      --grayscale-a12: #fcfdffef;

      --grayscale-contrast: #fff;
      --grayscale-surface: color(display-p3 0 0 0 / 5%);
      --grayscale-indicator: color(display-p3 0.415 0.431 0.463);
      --grayscale-track: color(display-p3 0.415 0.431 0.463);
    }
  }
}

.light, :root {
  color-scheme: light;
  --accent: rgba(65, 131, 38, 1);
  --background: rgba(255, 255, 255, 1);
  --border: rgba(229, 231, 235, 1);
  --sidebar-background: rgba(249, 250, 251, 1);
  --header-background: rgba(238, 238, 238, 1);
  --card-background: rgba(243, 244, 246, 1);
  --theme-color: #fff;
}

.dark {
  color-scheme: dark;
  --accent: rgba(173, 255, 140, 1);
  --background: rgba(13, 14, 17, 1);
  --border: rgba(31, 41, 55, 1);
  --sidebar-background: rgba(0, 0, 0, 1);
  --header-background: rgba(0, 0, 0, 1);
  --card-background: rgba(31, 41, 55, 1);
  --theme-color: #0d0e11;
}

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

@keyframes glow {
    0% {
        text-shadow: 0 0 20px rgba(0, 113, 235, 0);
    }
    50% {
        text-shadow: 0 0 20px rgba(0, 113, 235, 0.2);
    }
    100% {
        text-shadow: 0 0 20px rgba(0, 113, 235, 0);
    }
}

:root {
    --border-radius: 6px;
    --max-width: 1200px;
    --transition: all 0.2s ease;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.hero-section {
    padding: 4rem 2rem;
    text-align: center;
    background: var(--colors-card-background);
    margin: -2rem -2rem 4rem -2rem;
    position: relative;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--colors-text-primary);
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--colors-text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.primary-button, .secondary-button {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.primary-button {
    background: var(--colors-accent-primary);
    color: var(--colors-background);
}

.primary-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
.primary-button:focus-visible {
    opacity: 0.9;
    transform: translateY(-1px); outline: none;
}

.secondary-button {
    background: var(--colors-background);
    border: 1px solid var(--colors-border);
    color: var(--colors-text-primary);
}

.secondary-button:hover {
    border-color: var(--colors-accent-primary);
    transform: translateY(-1px);
}
.secondary-button:focus-visible {
    border-color: var(--colors-accent-primary);
    transform: translateY(-1px); outline: none;
}

.github-icon {
    width: 16px;
    height: 16px;
    filter: invert(1);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 4rem auto;
    max-width: var(--max-width);
    padding: 0 2rem;
}

.feature-card {
    padding: 1.5rem;
    background: var(--colors-card-background);
    border: 1px solid var(--colors-border);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.feature-card h3 {
    font-size: 1.125rem;
    margin: 0 0 0.5rem 0;
    color: var(--colors-text-primary);
    font-weight: 600;
}

.feature-card p {
    color: var(--colors-text-secondary);
    line-height: 1.5;
    margin: 0;
    font-size: 0.875rem;
}

.feature-card:hover {
    border-color: var(--colors-accent-primary);
    transform: translateY(-2px);
}
.feature-card:focus-visible {
    border-color: var(--colors-accent-primary);
    transform: translateY(-2px); outline: none;
}

.code-preview {
    max-width: var(--max-width);
    margin: 4rem auto;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.code-header {
    background: #2d2d2d;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #404040;
}

.code-title {
    font-size: 0.875rem;
    color: #e5e7eb;
    font-weight: 500;
}

pre {
    margin: 0;
    padding: 1.5rem !important;
    font-size: 0.875rem;
    line-height: 1.6;
    overflow-x: auto;
    background: #1e1e1e;
    color: #e5e7eb;
    font-family: 'Fira Code', 'Consolas', monospace;
}

.getting-started {
    max-width: var(--max-width);
    margin: 6rem auto;
    padding: 0 2rem;
    text-align: center;
}

.getting-started h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--colors-text-primary);
    font-weight: 700;
}

.getting-started-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.getting-started-card {
    padding: 1.5rem;
    background: var(--colors-card-background);
    border: 1px solid var(--colors-border);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--colors-text-primary);
    transition: var(--transition);
    text-align: left;
}

.getting-started-card:hover {
    border-color: var(--colors-accent-primary);
    transform: translateY(-2px);
}
.getting-started-card:focus-visible {
    border-color: var(--colors-accent-primary);
    transform: translateY(-2px); outline: none;
}

.community-section {
    background: var(--colors-card-background);
    padding: 6rem 2rem;
    margin: 4rem -2rem;
    text-align: center;
}

.community-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 3rem;
}

.community-button {
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
}

.community-button.discord {
    background: var(--colors-accent-primary);
    color: var(--colors-background);
}

.community-button.github {
    background: transparent;
    color: var(--colors-text-primary);
    border: 1px solid var(--colors-border);
}

.community-button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}
.community-button:focus-visible {
    transform: translateY(-2px);
    opacity: 0.9; outline: none;
}

@media (max-width: 1200px) {

    :root {
        --max-width: 90vw;
    }
    
    .hero-section h1 {
        font-size: 4rem;
    }

}

@media (max-width: 768px) {

    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        padding: 0 2rem;
    }
    
    .features-grid,
    .getting-started-grid {
        grid-template-columns: 1fr;
    }
    
    .community-links {
        flex-direction: column;
        align-items: stretch;
    }

}

@media (max-width: 480px) {

    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .getting-started h2 {
        font-size: 2rem;
    }

}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 113, 235, 0.05) 0%, transparent 50%);
    opacity: 0.5;
    z-index: 0;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 0.3;
    }
}

.hero-section > * {
    position: relative;
    z-index: 1;
}

.video-container {
    margin: 3rem auto;
    padding: 2rem;
    background: var(--colors-card-background);
    border-radius: var(--border-radius);
    border: 1px solid var(--colors-border);
    max-width: 640px;
}

.video-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--colors-text-primary);
    margin: 0 0 1.5rem 0;
    text-align: center;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: calc(var(--border-radius) - 2px);
    background: var(--colors-background);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.help-screenshot {
    margin-left: auto;
    margin-right: auto;
}

.help-screenshot img {
    display: block;
    width: 100%;
    height: auto;
}

.help-screenshot--wide {
    max-width: 720px;
}

.help-screenshot--medium {
    max-width: 620px;
}

.help-screenshot--modal {
    max-width: 560px;
}

.help-screenshot--compact {
    max-width: 420px;
}

.help-screenshot--members-page {
    max-width: 960px;
}

.help-screenshot--invite-modal {
    max-width: 534px;
}

.help-screenshot--role-menu {
    max-width: 541px;
}

.help-screenshot--pending-invite {
    max-width: 703px;
}

@media (max-width: 768px) {

    .help-screenshot {
        max-width: 100%;
    }

    .video-container {
        margin: 2rem -1rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

}
