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

:root {
    --gray-text: #666666;
    --black-text: #000000;
    --bg-color: #ffffff;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    color: var(--gray-text);
    background-color: var(--bg-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--black-text);
    text-decoration: none;
}

a:hover {
    opacity: 0.7;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem 0;
    padding-bottom: 0;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.title {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--gray-text);
    animation: fadeIn 0.8s ease-in;
    opacity: 0;
    animation-fill-mode: forwards;
}

.figure-accent {
    color: var(--black-text);
    font-weight: 400;
}

.text {
    font-size: 1rem;
    color: var(--gray-text);
    font-weight: 300;
    line-height: 1.7;
    max-width: 600px;
    animation: fadeIn 0.8s ease-in;
    opacity: 0;
    animation-fill-mode: forwards;
}

.text:nth-child(1) { animation-delay: 0.1s; }
.text:nth-child(2) { animation-delay: 0.2s; }
.text:nth-child(3) { animation-delay: 0.3s; }
.text:nth-child(4) { animation-delay: 0.4s; }
.text:nth-child(5) { animation-delay: 0.5s; }

.signatures {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    animation: fadeIn 0.8s ease-in;
    animation-delay: 0.6s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.signature-img {
    height: 60px;
    object-fit: contain;
}

.join-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 400;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-text);
    border-radius: 8px;
    transition: all 0.2s ease;
    animation: fadeIn 0.8s ease-in;
    animation-delay: 0.7s;
    opacity: 0;
    animation-fill-mode: forwards;
    width: fit-content;
}

.join-button:hover {
    background: var(--black-text);
    color: var(--bg-color);
    border-color: var(--black-text);
    opacity: 1;
}

.join-button svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.join-button:hover svg {
    transform: translateX(4px);
}

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

.polaroid-section {
    width: 100%;
    padding-top: 5rem;
    padding-bottom: 0;
    margin-bottom: 0;
    overflow: hidden;
    position: relative;
    animation: fadeIn 0.8s ease-in;
    animation-delay: 1.3s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.polaroid-container {
    position: relative;
    height: 280px;
    overflow: visible;
}

.polaroid-string {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gray-text);
    opacity: 0.3;
    z-index: 0;
}

.polaroid-slider {
    display: flex;
    gap: 2rem;
    animation: slide 40s linear infinite;
    will-change: transform;
    align-items: flex-start;
}

@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.polaroid {
    position: relative;
    width: 260px;
    flex-shrink: 0;
    background: white;
    padding: 0.8rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: rotate(-1deg);
    overflow: visible;
    z-index: 1;
}

.polaroid:nth-child(even) {
    transform: rotate(1deg);
}

.polaroid-pin {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    background: #dc2626;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.polaroid-image {
    width: 100%;
    height: 200px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.polaroid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 4rem 2rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-copyright {
    color: var(--gray-text);
    font-weight: 300;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-link {
    color: #999999;
    font-size: 0.9rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.footer-link svg {
    width: 20px;
    height: 20px;
}

.footer-link:hover,
.footer-link:active,
.footer-link:focus {
    color: var(--black-text);
}

.join-form-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.back-button {
    display: inline-flex;
    align-items: center;
    color: var(--gray-text);
    margin-bottom: 2rem;
    transition: color 0.2s ease;
    animation: fadeIn 0.8s ease-in;
    opacity: 0;
    animation-fill-mode: forwards;
}

.back-button:hover {
    color: var(--black-text);
}

.back-button svg {
    width: 20px;
    height: 20px;
}

.form-intro {
    margin-bottom: 3rem;
}

.join-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    animation: fadeIn 0.8s ease-in;
    opacity: 0;
    animation-fill-mode: forwards;
}

.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; }
.form-group:nth-child(7) { animation-delay: 0.7s; }

.form-label {
    font-size: 1rem;
    color: var(--gray-text);
    font-weight: 400;
}

.form-input,
.form-textarea {
    font-size: 1rem;
    color: var(--black-text);
    font-weight: 300;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d0d0d0;
    background: transparent;
    outline: none;
    transition: border-color 0.2s ease;
    line-height: 1.5;
    width: 100%;
    border-radius: 8px;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--black-text);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #999999;
    opacity: 0.5;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-submit {
    font-size: 1rem;
    color: var(--black-text);
    font-weight: 400;
    background: transparent;
    border: 1px solid var(--gray-text);
    padding: 0.75rem 2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    align-self: flex-start;
    margin-top: 1rem;
    border-radius: 8px;
    animation: fadeIn 0.8s ease-in;
    animation-delay: 0.8s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.form-submit:hover:not(:disabled) {
    background: var(--black-text);
    color: var(--bg-color);
    border-color: var(--black-text);
}

.form-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-message {
    display: none;
    font-size: 0.9rem;
    font-weight: 300;
    margin-top: 1rem;
    padding: 0.75rem;
    border: 1px solid;
}

.form-message.success {
    color: var(--gray-text);
    border-color: var(--gray-text);
    background: transparent;
}

.form-message.error {
    color: var(--black-text);
    border-color: var(--black-text);
    background: transparent;
}

@media (max-width: 768px) {
    .content-section {
        padding: 3rem 1.5rem 0;
    }
    
    .polaroid {
        width: 220px;
    }
    
    .footer {
        flex-direction: row;
        padding: 4rem 1.5rem 2.5rem;
        max-width: 800px;
    }
    
    .join-form-container {
        min-height: 500px;
    }
}
