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

:root {
    --paper-light: #f4f1e8;
    --paper-mid: #e8e4d8;
    --paper-dark: #d4cfc0;
    --text-primary: #2c2820;
    --text-secondary: #5a5448;
    --accent-gold: #b8a682;
    --accent-dark: #3a352c;
    --shadow-subtle: rgba(44, 40, 32, 0.08);
    --shadow-medium: rgba(44, 40, 32, 0.15);

    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    background: var(--paper-light);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Subtle paper texture */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(44, 40, 32, 0.02) 2px, rgba(44, 40, 32, 0.02) 4px);
    pointer-events: none;
    z-index: 1;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* Navigation */
nav {
    padding: 1rem 0;
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(244, 241, 232, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-radius: 0 0 16px 16px;
    border-bottom: 1px solid var(--paper-dark);
    border-left: 1px solid var(--paper-dark);
    border-right: 1px solid var(--paper-dark);
    box-shadow: 0 2px 20px var(--shadow-subtle);
}

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

.logo {
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-dark);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
    align-items: center;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--paper-dark);
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: inherit;
}

.lang-btn:hover {
    background: var(--paper-mid);
    color: var(--text-primary);
    border-color: var(--accent-gold);
}

.lang-btn.active {
    background: var(--accent-dark);
    color: var(--paper-light);
    border-color: var(--accent-dark);
}

.lang-btn.active:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 10%;
    right: -10%;
    width: 600px;
    height: 600px;
    border: 1px solid var(--paper-dark);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 15%;
    left: -5%;
    width: 400px;
    height: 400px;
    border: 1px solid var(--paper-dark);
    opacity: 0.2;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    animation: rotate 30s linear infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-30px) translateX(20px); }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 3;
    animation: fadeInUp 1s ease-out;
}

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

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    color: var(--accent-dark);
    line-height: 1.1;
}

.hero-subtext {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--accent-dark);
    color: var(--paper-light);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px var(--shadow-medium);
    position: relative;
    overflow: hidden;
    border: 2px solid var(--accent-dark);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--accent-gold);
    transition: width 0.6s ease, height 0.6s ease, top 0.6s ease, left 0.6s ease;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px var(--shadow-medium);
    border-color: var(--accent-gold);
}

/* Section Styles */
section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--accent-dark);
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.6);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--paper-dark);
    box-shadow: 0 4px 20px var(--shadow-subtle);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-dark));
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px var(--shadow-medium);
}

.feature-card:hover::before {
    transform: translateX(0);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--paper-mid);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    border: 1px solid var(--paper-dark);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-dark);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Use Cases */
.use-cases {
    background: var(--paper-mid);
    border-top: 1px solid var(--paper-dark);
    border-bottom: 1px solid var(--paper-dark);
}

.use-case-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.use-case-item {
    background: rgba(255, 255, 255, 0.7);
    padding: 2rem;
    border-radius: 8px;
    border-left: 3px solid var(--accent-gold);
    transition: all 0.3s ease;
    cursor: default;
}

.use-case-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(5px);
}

.use-case-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--accent-dark);
}

.use-case-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.7);
    padding: 3rem 2rem;
    border-radius: 12px;
    border: 2px solid var(--paper-dark);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
}

.pricing-card.featured {
    transform: scale(1.05);
    border-color: var(--accent-gold);
    box-shadow: 0 8px 40px var(--shadow-medium);
}

.pricing-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 40px var(--shadow-medium);
}

.pricing-card.featured:hover {
    transform: translateY(-10px) scale(1.07);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--accent-gold);
    color: var(--paper-light);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-card > div {
    flex: 1 0 auto;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-dark);
}

.pricing-price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.pricing-period {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.pricing-features li {
    padding: 0.8rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--paper-dark);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li::before {
    content: '✓';
    color: var(--accent-gold);
    font-weight: 700;
    margin-right: 0.8rem;
}

.pricing-button {
    display: block;
    width: 100%;
    padding: 1rem;
    background: transparent;
    color: var(--accent-dark);
    border: 2px solid var(--accent-dark);
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pricing-button:hover {
    background: var(--accent-dark);
    color: var(--paper-light);
}

.pricing-card.featured .pricing-button {
    background: var(--accent-dark);
    color: var(--paper-light);
}

.pricing-card.featured .pricing-button:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
}

/* Testimonials */
.testimonials {
    background: var(--paper-mid);
    border-top: 1px solid var(--paper-dark);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.8);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--paper-dark);
    box-shadow: 0 4px 20px var(--shadow-subtle);
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: 0 8px 30px var(--shadow-medium);
}

.testimonial-quote {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-quote::before {
    content: '"';
    font-size: 3rem;
    color: var(--accent-gold);
    line-height: 0;
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    opacity: 0.3;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    background: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--paper-light);
    font-weight: 700;
    font-size: 1.2rem;
}

.testimonial-info h4 {
    color: var(--accent-dark);
    margin-bottom: 0.2rem;
}

.testimonial-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Footer */
footer {
    background: var(--accent-dark);
    color: var(--paper-mid);
    padding: 4rem 0 2rem;
    border-top: 3px solid var(--accent-gold);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--paper-light);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    line-height: 1.8;
    color: var(--paper-dark);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--paper-mid);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    text-align: start;
    padding-top: 1rem;
    border-top: 1px solid rgba(232, 228, 216, 0.2);
    color: var(--paper-dark);
}

/* Scroll animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.scroll-animate.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1200px) {
    nav {
        border-left: none;
        border-right: none;
        border-radius: 0;
    }
}

@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .hero {
        min-height: 80vh;
        padding: 2rem 0;
    }

    section {
        padding: 4rem 0;
    }

    .pricing-card.featured {
        transform: scale(1);
    }
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--accent-dark);
}

@media (max-width: 640px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--paper-light);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-top: 1px solid var(--paper-dark);
        box-shadow: 0 4px 20px var(--shadow-subtle);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .lang-switcher {
        margin-left: 0;
        margin-top: 0.5rem;
        justify-content: center;
    }
}

/* Rules Page Styles */
.rules-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.rules-card {
    background: rgba(255, 255, 255, 0.7);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--paper-dark);
    box-shadow: 0 4px 20px var(--shadow-subtle);
}

.rules-card h1 {
    margin-top: 0;
    font-size: 2.5rem;
    color: var(--accent-dark);
    margin-bottom: 1.5rem;
}

.rules-card > p:first-of-type {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.rules-card h2 {
    margin-top: 2.5rem;
    font-size: 1.5rem;
    color: var(--accent-dark);
    border-left: 4px solid var(--accent-gold);
    padding-left: 1rem;
    margin-bottom: 1rem;
}

.rules-card ul {
    margin: 1rem 0 1.5rem 2rem;
    list-style: disc;
}

.rules-card li {
    margin: 0.8rem 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

.rules-card li strong {
    color: var(--text-primary);
}

.rules-note {
    background: rgba(254, 249, 195, 0.5);
    border-left: 4px solid #facc15;
    padding: 1.2rem 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.rules-note strong {
    color: var(--accent-dark);
}

svg {
  width: 2.5rem;
  aspect-ratio: 1/1;
}

svg path {
  fill: var(--accent-gold);
}

.rules-footer {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 3rem;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--paper-dark);
}

@media (max-width: 768px) {
    .rules-container {
        padding: 2rem 1rem;
    }

    .rules-card {
        padding: 2rem 1.5rem;
    }

    .rules-card h1 {
        font-size: 2rem;
    }
}

/* 404 Error Page Styles */
.error-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.error-card {
    background: rgba(255, 255, 255, 0.7);
    padding: 4rem 3rem;
    border-radius: 12px;
    border: 1px solid var(--paper-dark);
    box-shadow: 0 4px 20px var(--shadow-subtle);
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.error-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    background: var(--paper-mid);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--paper-dark);
}

.error-icon svg {
    width: 60px;
    height: 60px;
}

.error-card h1 {
    font-size: 6rem;
    font-weight: 700;
    color: var(--accent-dark);
    margin-bottom: 1rem;
    line-height: 1;
}

.error-card h2 {
    font-size: 2rem;
    color: var(--accent-dark);
    margin-bottom: 1.5rem;
}

.error-card > p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.error-actions .pricing-button {
    display: inline-block;
    width: auto;
    padding: 1rem 2rem;
}

/* Coming Soon Page Styles */
.coming-soon-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.coming-soon-card {
    background: rgba(255, 255, 255, 0.7);
    padding: 4rem 3rem;
    border-radius: 12px;
    border: 1px solid var(--paper-dark);
    box-shadow: 0 4px 20px var(--shadow-subtle);
    text-align: center;
    max-width: 700px;
    width: 100%;
}

.coming-soon-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    background: var(--paper-mid);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--paper-dark);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

.coming-soon-icon svg {
    width: 60px;
    height: 60px;
}

.coming-soon-card h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-dark);
    margin-bottom: 1.5rem;
}

.coming-soon-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.7;
}

.coming-soon-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.coming-soon-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    border: 1px solid var(--paper-dark);
    min-width: 150px;
    transition: all 0.3s ease;
}

.coming-soon-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px var(--shadow-subtle);
}

.coming-soon-feature svg {
    width: 40px;
    height: 40px;
}

.coming-soon-feature p {
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0;
}

.coming-soon-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.coming-soon-actions .pricing-button {
    display: inline-block;
    width: auto;
    padding: 1rem 2rem;
}

@media (max-width: 768px) {
    .error-container,
    .coming-soon-container {
        padding: 2rem 1rem;
    }

    .error-card,
    .coming-soon-card {
        padding: 3rem 2rem;
    }

    .error-card h1 {
        font-size: 4rem;
    }

    .coming-soon-card h1 {
        font-size: 2.5rem;
    }

    .coming-soon-features {
        gap: 1rem;
    }

    .coming-soon-feature {
        min-width: 120px;
        padding: 1rem;
    }

    .error-actions,
    .coming-soon-actions {
        flex-direction: column;
    }

    .error-actions .cta-button,
    .error-actions .pricing-button,
    .coming-soon-actions .cta-button,
    .coming-soon-actions .pricing-button {
        width: 100%;
    }
}
