:root {
    --teal: #1A7A6D;
    --teal-dark: #145A51;
    --coral: #E06B4F;
    --coral-hover: #D45A3E;
    --ink: #1A1D21;
    --ash: #64615A;
    --paper: #F6F4F0;
    --white: #FFFFFF;
    --border-color: #E8E6E1;
    --shadow-sm: 0 2px 8px rgba(26, 29, 33, 0.06);
    --shadow-md: 0 4px 16px rgba(26, 29, 33, 0.08);
    --shadow-lg: 0 8px 32px rgba(26, 29, 33, 0.12);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
}

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

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1 { font-size: 3.25rem; margin-bottom: 1.25rem; color: var(--ink); }
h2 { font-size: 2rem; margin-bottom: 1rem; color: var(--ink); }
p { font-size: 1.125rem; color: var(--ash); margin-bottom: 1.5rem; }

.btn {
    display: inline-block;
    background: var(--coral);
    color: var(--white);
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    transition: background 0.2s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    background: var(--coral-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

.btn:focus-visible,
.locale-switcher-landing select:focus-visible {
    outline: 3px solid rgba(224, 107, 79, 0.4);
    outline-offset: 2px;
}

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

header.landing-header {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--teal);
    text-decoration: none;
}

.hero {
    padding: 6rem 0 5rem;
    background: var(--white);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    color: var(--ink);
}

.hero-content p {
    max-width: 500px;
}

.request-access-form {
    margin-bottom: 0.5rem;
}

.request-access-field {
    display: flex;
    gap: 0.75rem;
    max-width: 460px;
}

.request-access-input {
    flex: 1;
    min-width: 0;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    color: var(--ink);
    background: var(--white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.request-access-input::placeholder {
    color: #9a9790;
}

.request-access-input:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(26, 122, 109, 0.15);
}

.request-access-hint {
    font-size: 0.875rem;
    color: var(--ash);
    margin-bottom: 1.25rem;
}

.request-access-success p {
    color: var(--teal);
    font-weight: 600;
    margin-bottom: 1rem;
}

.sign-in-link {
    font-size: 0.95rem;
    color: var(--ash);
    margin-bottom: 0;
}

.sign-in-link a {
    color: var(--teal);
    font-weight: 600;
    text-decoration: none;
}

.sign-in-link a:hover {
    text-decoration: underline;
}

.cta-section .request-access-field {
    margin: 0 auto;
}

.notice-board {
    position: relative;
    height: 420px;
    perspective: 1000px;
}

.notice-card {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    animation: pinCard 0.6s ease forwards;
}

.notice-card:hover {
    transform: translateY(-4px) rotate(0deg);
    box-shadow: var(--shadow-lg);
}

.notice-card::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: var(--coral);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.card-discussion {
    top: 20px;
    left: 10%;
    width: 280px;
    transform: rotate(-3deg);
    animation-delay: 0.1s;
}

.card-announcement {
    top: 80px;
    right: 5%;
    width: 260px;
    transform: rotate(2deg);
    animation-delay: 0.3s;
}

.card-service {
    bottom: 30px;
    left: 25%;
    width: 300px;
    transform: rotate(-1deg);
    animation-delay: 0.5s;
}

@keyframes pinCard {
    from {
        opacity: 0;
        transform: translateY(-20px) rotate(0deg);
    }
    to {
        opacity: 1;
    }
}

.card-discussion { animation-name: pinCard1; }
.card-announcement { animation-name: pinCard2; }
.card-service { animation-name: pinCard3; }

@keyframes pinCard1 {
    from { opacity: 0; transform: translateY(-20px) rotate(0deg); }
    to { opacity: 1; transform: rotate(-3deg); }
}

@keyframes pinCard2 {
    from { opacity: 0; transform: translateY(-20px) rotate(0deg); }
    to { opacity: 1; transform: rotate(2deg); }
}

@keyframes pinCard3 {
    from { opacity: 0; transform: translateY(-20px) rotate(0deg); }
    to { opacity: 1; transform: rotate(-1deg); }
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink);
    font-family: 'Space Grotesk', sans-serif;
}

.card-badge {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    letter-spacing: 0.05em;
}

.badge-staff {
    background: rgba(217, 119, 6, 0.12);
    color: #92400e;
}

.badge-category {
    background: rgba(26, 122, 109, 0.12);
    color: var(--teal);
}

.card-content {
    font-size: 0.8rem;
    color: var(--ash);
    line-height: 1.5;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    font-size: 0.7rem;
    color: var(--ash);
}

.upvote-count {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--teal);
    font-weight: 600;
}

.vouch-count {
    color: var(--teal);
    font-weight: 600;
}

.features {
    padding: 5rem 2rem;
}

.features-section {
    padding: 5rem 0;
}

.features-section:nth-child(even) {
    background: var(--paper);
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-row.revealed {
    opacity: 1;
    transform: translateY(0);
}

.feature-content h2 {
    color: var(--teal);
}

.feature-list {
    list-style: none;
    margin-top: 1.5rem;
}

.feature-list li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    color: var(--ink);
    font-weight: 500;
    line-height: 1.5;
}

.feature-list li::before {
    content: "✓";
    color: var(--teal);
    font-weight: bold;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.feature-image-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-image-container:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.app-mockup {
    background: var(--white);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
    font-size: 0.85rem;
}

.mockup-header {
    background: var(--paper);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--teal);
    font-family: 'Space Grotesk', sans-serif;
}

.mockup-body {
    padding: 0.75rem;
}

.mockup-post {
    display: flex;
    gap: 0.75rem;
    padding: 0.875rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
    align-items: flex-start;
}

.mockup-post:last-child {
    border-bottom: none;
}

.mockup-upvote {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    flex-shrink: 0;
    width: 32px;
    color: var(--ash);
    font-size: 0.7rem;
}

.mockup-upvote-arrow {
    width: 26px;
    height: 26px;
    border-radius: var(--radius-sm);
    background: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--teal);
}

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

.mockup-line {
    height: 0.7rem;
    background: var(--paper);
    border-radius: 3px;
    margin-bottom: 0.4rem;
}

.mockup-line.w1 { width: 60%; }
.mockup-line.w2 { width: 85%; }
.mockup-line.w3 { width: 40%; }
.mockup-line.w4 { width: 50%; }
.mockup-line.w5 { width: 75%; }

.mockup-badge {
    display: inline-block;
    background: rgba(217, 119, 6, 0.12);
    color: #92400e;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mockup-announcement {
    border-left: 3px solid #d97706;
    padding: 0.875rem 0.75rem;
    margin-bottom: 0.25rem;
    background: #fffbeb;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.mockup-service {
    padding: 0.875rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mockup-service:last-child {
    border-bottom: none;
}

.mockup-service-category {
    display: inline-block;
    background: rgba(26, 122, 109, 0.12);
    color: var(--teal);
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mockup-service-vouch {
    text-align: right;
    font-size: 0.7rem;
    color: var(--teal);
    font-weight: 700;
}

.cta-section {
    background: var(--paper);
    text-align: center;
    padding: 5rem 2rem;
    border-top: 1px solid var(--border-color);
}

.cta-section h2 {
    color: var(--teal);
    margin-bottom: 1.5rem;
}

.cta-section p {
    max-width: 600px;
    margin: 0 auto 2rem;
}

footer {
    padding: 2rem 0;
    text-align: center;
    color: var(--ash);
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.locale-switcher-landing select {
    background: var(--paper);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--ink);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2364615A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 10px 6px;
    transition: border-color 0.2s ease;
}

.locale-switcher-landing select:hover {
    border-color: var(--teal);
}

@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.625rem; }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .notice-board {
        height: 380px;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .card-discussion {
        left: 5%;
        width: 240px;
    }
    
    .card-announcement {
        right: 0;
        width: 220px;
    }
    
    .card-service {
        left: 15%;
        width: 260px;
    }
    
    .feature-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .features-section {
        padding: 3rem 0;
    }
    
    .nav-left { gap: 1rem; }
    .locale-switcher-landing select { font-size: 0.75rem; padding: 0.4rem 1.5rem 0.4rem 0.5rem; }
}

@media (max-width: 640px) {
    .nav-container {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .nav-left {
        flex: 1;
        min-width: 0;
    }

    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 2.5rem 1rem;
    }

    .hero-content p {
        max-width: 100%;
    }

    .notice-board {
        height: 340px;
    }
    
    .card-discussion {
        left: 0;
        width: 220px;
    }
    
    .card-announcement {
        right: -5%;
        width: 200px;
    }
    
    .card-service {
        left: 10%;
        width: 240px;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .request-access-field {
        flex-direction: column;
    }

    .request-access-field .btn {
        width: 100%;
    }

    .cta-section {
        padding: 3rem 1rem;
    }

    .features {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .nav-left {
        justify-content: center;
    }

    .btn {
        text-align: center;
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    p { font-size: 1rem; }
    
    .notice-board {
        height: 320px;
    }
    
    .card-discussion {
        width: 200px;
    }
    
    .card-announcement {
        width: 180px;
    }
    
    .card-service {
        width: 220px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .notice-card {
        opacity: 1;
    }
    
    .feature-row {
        opacity: 1;
        transform: none;
    }
}
