:root {
    --background: #110b08;
    --surface: #110b08;
    --surface-bright: #221711;
    --surface-container-lowest: #000000;
    --surface-container-low: #1a120d;
    --surface-container: #241913;
    --surface-container-high: #31231b;
    --surface-container-highest: #3e2d24;
    --surface-variant: #493b33;
    --surface-dim: #110b08;
    --surface-tint: #ff9d42;
    --on-background: #f0e6e0;
    --on-surface: #f0e6e0;
    --on-surface-variant: #d3c5bc;
    --primary: #ff9d42;
    --on-primary: #4a2800;
    --primary-container: #6e3c00;
    --on-primary-container: #ffdcc2;
    --primary-fixed: #ffb783;
    --primary-fixed-dim: #ff9d42;
    --on-primary-fixed: #2e1500;
    --on-primary-fixed-variant: #532b00;
    --primary-dim: #ff9d42;
    --secondary: #ffb4a1;
    --on-secondary: #5e1600;
    --secondary-container: #7c2200;
    --on-secondary-container: #ffdbd0;
    --tertiary: #f3c026;
    --on-tertiary: #3e3000;
    --tertiary-container: #584400;
    --on-tertiary-container: #ffe082;
    --tertiary-fixed: #fde293;
    --tertiary-fixed-dim: #f3c026;
    --outline: #9c8f86;
    --outline-variant: #493b33;
    --inverse-surface: #f0e6e0;
    --inverse-on-surface: #332822;
    --inverse-primary: #8b4b00;
    --error: #ffb4ab;
    --on-error: #690005;
    --error-container: #93000a;
    --on-error-container: #ffdad6;

    --radius-default: 0.25rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-full: 9999px;

    --font-headline: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Manrope', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--background);
}

body {
    background-color: var(--background);
    color: var(--on-background);
    font-family: var(--font-body);
    line-height: 1.5;
}

h1,
h2,
h3,
h4,
.headline {
    font-family: var(--font-headline);
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

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

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

/* Layout Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Header & Nav */
.main-header {
    background-color: rgba(28, 25, 23, 0.95);
    backdrop-filter: blur(4px);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid #292524;
    position: sticky;
    top: 0;
    z-index: 50;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1rem 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
    font-family: var(--font-headline);
    font-weight: 500;
}

.logo {
    font-family: "Ubuntu", var(--font-headline);
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: none;
    align-items: center;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    color: #a8a29e;
    transition: all 0.2s;
    padding: 0.625rem 1.25rem;
    border-bottom: 2px solid transparent;
    border-radius: 3rem;
}

.nav-link:hover {
    color: #fdba74;
    background-color: rgba(110, 60, 0, 0.1);
    transform: scale(1.1)
}

.nav-link.active {
    color: #fb923c;
    border-bottom-color: #ea580c;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-login {
    display: none;
    color: #a8a29e;
    transition: all 0.2s;
}

@media (min-width: 1024px) {
    .btn-login {
        display: block;
    }
}

.btn-login:hover {
    color: #f97316;
}

.btn-create {
    background-color: var(--primary-fixed);
    color: #0c0a09;
    padding: 0.625rem 1.25rem;
    border-radius: 3rem;
    font-weight: 700;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.btn-create:hover {
    background-color: var(--primary-dim);
}

@media (max-width: 768px) {
    .btn-create {
        display: none;
    }
}

/* Hero Section */
.hero {
    padding-top: 4rem;
    padding-bottom: 6rem;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero {
        padding-top: 2rem;
        padding-bottom: 8rem;
    }
}

@media (min-width: 1440px) {
    .hero {
        padding-top: 0!important;
    }
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

@media (min-width: 768px) {
    .hero-container {
        flex-direction: row;
    }
}

.hero-content {
    flex: 1;
    text-align: center;
    z-index: 10;
}

@media (min-width: 768px) {
    .hero-content {
        text-align: left;
    }
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--on-surface);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.text-highlight {
    color: var(--primary-fixed);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--on-surface-variant);
    max-width: 36rem;
    margin-bottom: 2.5rem;
    line-height: 1.625;
}

@media (max-width: 768px) {
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
}

.hero-btns {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .hero-btns {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .hero-btns {
        justify-content: flex-start;
    }
}

.btn-hero-primary {
    background-color: var(--primary);
    color: var(--on-primary);
    padding: 1rem 2rem;
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: 1.125rem;
    box-shadow: 0 20px 25px -5px rgba(110, 60, 0, 0.2);
    transition: all 0.2s;
}

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

.btn-hero-secondary {
    padding: 1rem 2rem;
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--primary);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-hero-secondary:hover {
    background-color: rgba(110, 60, 0, 0.1);
}

.hero-stats {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .hero-stats {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .hero-stats {
        display: none;
    }

    .btn-hero-primary {
        width: 100%;
        display: block;
    }
}

.avatar-group {
    display: flex;
}

.avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-full);
    border: 2px solid var(--background);
    margin-left: -0.5rem;
}

.avatar:first-child {
    margin-left: 0;
}

.stats-text {
    font-size: 0.875rem;
    color: var(--on-surface-variant);
}

.stats-count {
    font-weight: 700;
    color: var(--primary);
}

.hero-image-wrapper {
    flex: 1;
    position: relative;
}

.hero-bg-glow {
    position: absolute;
    z-index: -10;
    width: 120%;
    height: 120%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(to top right, rgba(255, 183, 131, 0.2), rgba(253, 226, 147, 0.1));
    filter: blur(64px);
    border-radius: var(--radius-full);
}

.hero-image-container {
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s;
}

@media (min-width: 768px) {
    .hero-image-container {
        transform: rotate(2deg);
    }

    .hero-image-container:hover {
        transform: rotate(0deg);
    }
}

.hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.floating-card {
    position: absolute;
    background-color: var(--surface-container-low);
    padding: 1rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 20rem;
    border: 1px solid var(--surface-variant);
    bottom: -1.5rem;
    left: -1.5rem;
}

@media (min-width: 768px) {
    .floating-card {
        bottom: 3rem;
        left: -3rem;
    }
}

.card-icon {
    background-color: var(--primary-container);
    padding: 0.5rem;
    border-radius: var(--radius-lg);
    display: flex;
}

.card-icon span {
    color: var(--on-primary-container);
}

.card-label {
    font-size: 0.75rem;
    color: var(--on-surface-variant);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--on-surface);
}

/* Wave Divider */
.wave-path-bg {
    fill: var(--background);
}

.wave-path-surface {
    fill: var(--surface-container);
}

@keyframes waveDividerAnimation {
    0% {
        d: path("M826.337463,25.5396311 C670.970254,58.655965 603.696181,68.7870267 447.802481,35.1443383 C293.342778,1.81111414 137.33377,1.81111414 0,1.81111414 L0,150 L1920,150 L1920,1.81111414 C1739.53523,-16.6853983 1679.86404,73.1607868 1389.7826,37.4859505 C1099.70117,1.81111414 981.704672,-7.57670281 826.337463,25.5396311 Z");
    }

    50% {
        d: path("M655.558582,28.4898877 C500.191373,61.6062216 422.833785,83.5422763 266.940085,49.8995879 C112.480383,16.5663637 84.0992497,8.02840272 0,44.7243294 L0,150.727527 L1920,150.727527 L1920,49.8995879 C1580.91676,-34.8808285 1438.10804,73.6768193 1148.0266,38.0019829 C857.945166,2.32714659 810.925791,-4.62644617 655.558582,28.4898877 Z");
    }

    100% {
        d: path("M842.322034,38.0019829 C686.954825,71.1183168 623.386282,53.08497 467.492582,19.4422816 C313.032879,-13.8909426 84.0992497,8.02840272 0,44.7243294 L0,150.727527 L1920,150.727527 L1920,76.8685643 C1512.23604,-35.3595639 1568.70222,67.4289432 1278.62078,31.7541069 C988.539347,-3.92072949 997.689243,4.88564905 842.322034,38.0019829 Z");
    }
}

.wavePath {
    animation: waveDividerAnimation 20s linear infinite alternate;
}

.dividerTop {
    transform: translateY(10px);
}

.dividerBottom {
    transform: rotate(180deg) translateY(10px)
}

/* Community Showcase */
.features-section {
    background-color: var(--surface-container);
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.showcase-section .section-header {
    text-align: left;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--on-surface);
    margin-bottom: .5rem;
}

.section-subtitle {
    color: var(--on-surface-variant);
    max-width: 45rem;
    margin: 0 auto;
    font-size: 1.125rem;
}

@media (max-width: 768px) {
    .section-subtitle {
        margin-bottom: 1rem;
    }
}

.showcase-grid,
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {

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

@media (min-width: 1024px) {

    .showcase-grid,
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card {
    background-color: var(--surface-container-low);
    border-radius: 3rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 3rem 2rem;
    transition: all 0.3s;

    &:hover {
        transform: translateY(-5px);
    }
}

.card-image-wrapper {
    height: 12rem;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
    transition: transform 0.5s, filter 0.5s;
}

.card:hover .card-image {
    transform: scale(1.1);
    filter: unset;
}

.card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--on-surface);
}

.badge {
    background-color: var(--primary-container);
    color: var(--on-primary-container);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-full);
}

.card-text {
    color: var(--on-surface-variant);
}

/* Features Section */
.showcase-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
    background-color: var(--surface);
}

.accent-line {
    height: 0.375rem;
    width: 6rem;
    background-color: var(--primary-fixed);
    margin: 0 auto;
    border-radius: var(--radius-full);
}

.feature-card {
    background-color: var(--surface-container-high);
    padding: 2rem;
    border-radius: 3rem;
    /* transition: transform 0.2s; */

    &:nth-child(odd) {
        background-color: oklch(from var(--surface-container-high) l c var(--hue));

        > * {
            color: oklch(0.8323 0.1561 var(--hue))!important;
        }

        > .feature-icon-wrapper {
            background: oklch(from var(--primary-container) l c var(--hue));
            transform: rotate(3deg)
        }
    }

    &:nth-child(even) {
        > .feature-icon-wrapper {
            transform: rotate(-3deg);
        }
    }

    &:nth-child(1) {
        --hue: 314
    }

    &:nth-child(3) {
        --hue: 211
    }

    &:nth-child(5) {
        --hue: 116;
    }

    /* &:hover {
        transform: translateY(-5px);
    } */
}

.feature-icon-wrapper {
    width: 3.5rem;
    height: 3.5rem;
    background-color: var(--primary-container);
    color: var(--primary);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s;

    &, > .material-symbols-outlined {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--on-surface);
}

.feature-description {
    color: var(--on-surface-variant);
    line-height: 1.625;
}

/* Footer */
.main-footer {
    background: var(--surface-container);
    /* border-top: 1px solid #292524; */
    position: relative;
    overflow: hidden;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 10;
    font-family: var(--font-body);
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

@media (min-width: 768px) {
    .footer-logo-section {
        align-items: flex-start;
    }
}

.footer-logo {
    font-family: 'Ubuntu', var(--font-headline);
    font-size: 1.25rem;
    font-weight: 700;
    color: #e7e5e4;
    margin-bottom: .5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-copyright {
    color: #a8a29e;
    text-align: left;
}

@media (max-width: 768px) {
    .footer-copyright {
        text-align: center;
    }
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem 2rem;
}

.footer-link {
    color: #a8a29e;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #fb923c;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-btn {
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-full);
    background-color: #292524;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a8a29e;
    transition: all 0.2s;
}

.social-btn:hover {
    background-color: #ea580c;
    color: #ffffff;

    &.mastodon {
        background-color: #6364FF;
    }

    &.bluesky {
        background-color: #1185FE;
    }

    &.facebook {
        background-color: #0866FF;
    }

    &.twitter, &.github {
        background-color: #181717;
    }

    &.discord {
        background-color: #5865F2;
    }
}

.social-icon {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
    filter: invert(1);
    opacity: 0.5;
    user-select: none;
    pointer-events: none;
    transition: opacity 0.2s;
}

.social-btn:hover .social-icon {
    opacity: 1;
}

@media (max-width: 768px) {
    .btn-hero-primary .material-symbols-outlined {
        display: none;
    }
}