@import url('https://fonts.googleapis.com/css2?family=Source+Han+Sans+CN:wght@300;400;700&display=swap');

:root {
    --primary-color: #ffffff;
    --background-color: #000000;
    --accent-color: #d4af37; /* Gold accent for a premium feel */
    --text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Han Sans CN', sans-serif;
    color: var(--primary-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-1%, -1%); }
  20% { transform: translate(1%, 1%); }
  30% { transform: translate(-2%, 2%); }
  40% { transform: translate(2%, -2%); }
  50% { transform: translate(-1%, 2%); }
  60% { transform: translate(2%, 1%); }
  70% { transform: translate(-2%, -1%); }
  80% { transform: translate(1%, -2%); }
  90% { transform: translate(-1%, 1%); }
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/grain.png');
    animation: grain 8s steps(10) infinite;
    z-index: -1;
    opacity: 0.3; /* Increased grain intensity */
}

.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    height: auto;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -2; /* Explicitly set to be at the very bottom */
    filter: saturate(1.1) contrast(1.2) brightness(0.9) blur(0.5px); /* Stylistic filters */
}

.content-container {
    position: relative;
    z-index: 2; /* Ensure it's above the overlay and video */
}

.content-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2em;
}

header h1 {
    font-size: 4rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 3px;
    text-shadow: var(--text-shadow);
}

.tagline {
    font-size: 1.5rem;
    font-weight: 300;
    margin-top: 1rem;
    text-shadow: var(--text-shadow);
}

.cta-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.8rem 2rem;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    transition: background-color 0.3s, color 0.3s;
}

.cta-button:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
}

.covenant-section {
    background-color: #1a1a1a;
    padding: 5em 2em;
}

.covenant-content {
    max-width: 800px;
    margin: 0 auto;
}

.covenant-section h2 {
    font-size: 3rem;
    font-weight: 300;
    text-align: center;
    letter-spacing: 2px;
    margin-bottom: 2em;
    position: relative;
    padding-bottom: 0.5em;
}

.covenant-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.covenant-section h3 {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary-color);
    margin-top: 3em;
    margin-bottom: 1em;
    border-left: 3px solid var(--accent-color);
    padding-left: 0.8em;
}

.covenant-section p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #ccc;
}

.covenant-section ul {
    list-style: none;
    padding-left: 1em;
}

.covenant-section li {
    margin-bottom: 1.2em;
    font-size: 1.1rem;
    line-height: 1.9;
    color: #ccc;
    padding-left: 1.5em;
    position: relative;
}

.covenant-section li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 1.5em;
    line-height: 1;
}

.covenant-section strong {
    color: var(--accent-color);
}

.covenant-section footer {
    text-align: center;
    margin-top: 5em;
    color: #888;
}


.letter-link {
    margin-bottom: 1em;
}

.letter-link a {
    color: #aaa;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.letter-link a:hover {
    color: #fff;
}


/* Navigation Bar Styles */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1em 2em;
    box-sizing: border-box;
    text-align: right;
    z-index: 3; /* Highest z-index */
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.main-nav a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1rem;
    padding: 0.5em 1em;
    border: 1px solid transparent;
    transition: all 0.3s;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.main-nav a:hover {
    border-color: var(--primary-color);
}


/* FAQ Section Styles */
.faq-section {
    background-color: #111; /* A slightly different dark shade */
    padding: 5em 2em;
    color: #eee;
}

.faq-title {
    font-size: 3rem;
    font-weight: 300;
    text-align: center;
    letter-spacing: 2px;
    margin-bottom: 2em;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-container details {
    border-bottom: 1px solid #333;
    padding: 1.5em 0;
}

.faq-container details:last-of-type {
    border-bottom: none;
}

.faq-container summary {
    font-size: 1.3rem;
    font-weight: 400;
    cursor: pointer;
    list-style: none; /* Remove default marker */
    position: relative;
    padding-right: 2em; /* Space for the custom marker */
}

.faq-container summary::-webkit-details-marker {
    display: none; /* Hide default marker for Chrome/Safari */
}

.faq-container summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: transform 0.2s;
}

.faq-container details[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-content {
    padding: 1em 0 0 0;
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.9;
}

.faq-content ul {
    list-style: none;
    padding-left: 1em;
}

.faq-content li {
    margin-bottom: 0.5em;
}
