/* ============================================
   $CLAWDEN - SECRET SOCIETY THEME
   Dark, Mysterious, Elegant
   ============================================ */

:root {
    --gold: #d4af37;
    --gold-light: #f4d03f;
    --gold-dark: #b8960c;
    --black: #0a0a0a;
    --bg: #0d0d0d;
    --bg-light: #151515;
    --bg-card: #1a1a1a;
    --text: #e8e8e8;
    --text-muted: #888888;
    --text-dim: #555555;
    --border: rgba(212, 175, 55, 0.2);
    --glow: rgba(212, 175, 55, 0.4);
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--black);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

::selection {
    background: var(--gold);
    color: var(--black);
}

/* Background Layer */
.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.fog {
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.03) 0%, transparent 50%);
}

.fog-1 {
    top: -50%;
    left: -50%;
    animation: fogMove 30s ease-in-out infinite;
}

.fog-2 {
    bottom: -50%;
    right: -50%;
    animation: fogMove 25s ease-in-out infinite reverse;
}

@keyframes fogMove {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(5%, 5%) rotate(5deg); }
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0.3;
    animation: particleFloat 15s linear infinite;
}

@keyframes particleFloat {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% { transform: translateY(-100vh) scale(1); opacity: 0; }
}

.watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 50vw;
    color: rgba(212, 175, 55, 0.02);
    pointer-events: none;
    z-index: -1;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 3rem;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.95) 0%, transparent 100%);
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-symbol {
    font-size: 1.5rem;
    color: var(--gold);
    text-shadow: 0 0 20px var(--glow);
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 3px;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-btn {
    padding: 0.6rem 1.5rem;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: var(--gold);
    color: var(--black);
}

/* Buttons */
.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border: none;
    color: var(--black);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    box-shadow: 0 0 30px var(--glow);
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.1);
}

.btn-lg {
    padding: 1.25rem 3rem;
    font-size: 1rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem;
    position: relative;
}

.emblem {
    position: relative;
    width: 200px;
    height: 200px;
    margin-bottom: 3rem;
}

.emblem-outer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.emblem-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid var(--gold);
    border-radius: 50%;
    opacity: 0.3;
}

.ring-1 {
    width: 100%;
    height: 100%;
    animation: ringRotate 20s linear infinite;
}

.ring-2 {
    width: 80%;
    height: 80%;
    animation: ringRotate 15s linear infinite reverse;
}

.ring-3 {
    width: 60%;
    height: 60%;
    animation: ringRotate 10s linear infinite;
}

@keyframes ringRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.emblem-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--bg);
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emblem-symbol {
    font-size: 2rem;
    color: var(--gold);
    text-shadow: 0 0 20px var(--glow);
    animation: symbolPulse 3s ease-in-out infinite;
}

@keyframes symbolPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.95); }
}

.emblem-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
    filter: blur(20px);
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-whisper {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-style: italic;
    color: var(--gold);
    letter-spacing: 3px;
    margin-bottom: 1rem;
    animation: fadeIn 2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-title {
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-muted);
    letter-spacing: 5px;
    text-transform: uppercase;
}

.title-main {
    display: block;
    font-family: var(--font-serif);
    font-size: 5rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 15px;
    text-shadow: 0 0 40px var(--glow);
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, var(--gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; height: 60px; }
    50% { opacity: 0.5; height: 40px; }
}

.scroll-indicator span {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* Sections Common */
section {
    padding: 8rem 2rem;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--gold);
    letter-spacing: 5px;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 5px;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-dim);
    font-style: italic;
}

/* Sanctum Section */
.sanctum {
    background: linear-gradient(180deg, var(--black) 0%, var(--bg) 50%, var(--black) 100%);
}

.sanctum-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.sanctum-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 3rem;
    text-align: center;
    position: relative;
    transition: all 0.4s ease;
}

.sanctum-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
}

.card-symbol {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px var(--glow);
}

.sanctum-card h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.sanctum-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.card-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--gold);
    opacity: 0;
    transition: all 0.3s ease;
}

.sanctum-card:hover .card-line {
    opacity: 1;
    width: 100px;
}

/* Circle Section */
.circle {
    background: var(--bg);
}

.circle-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.circle-visual {
    display: flex;
    justify-content: center;
}

.orbit-system {
    position: relative;
    width: 300px;
    height: 300px;
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px dashed var(--border);
    border-radius: 50%;
}

.o1 {
    width: 100%;
    height: 100%;
    animation: orbitSpin 20s linear infinite;
}

.o2 {
    width: 70%;
    height: 70%;
    animation: orbitSpin 15s linear infinite reverse;
}

.o3 {
    width: 40%;
    height: 40%;
    animation: orbitSpin 10s linear infinite;
}

@keyframes orbitSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.orb {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--glow);
}

.center-gem {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--bg-card);
    border: 2px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--gold);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.circle-info {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2.5rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--text-muted);
}

.info-value {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--text);
}

.info-divider {
    height: 2px;
    background: var(--gold);
    margin: 1rem 0;
    opacity: 0.3;
}

.info-row.highlight .info-value {
    color: var(--gold);
}

/* Chamber Section */
.chamber {
    background: linear-gradient(180deg, var(--bg) 0%, var(--black) 100%);
}

.chamber-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
}

.elder-portrait {
    text-align: center;
}

.portrait-frame {
    width: 200px;
    height: 250px;
    margin: 0 auto 1.5rem;
    border: 2px solid var(--gold);
    padding: 10px;
    position: relative;
}

.portrait-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--black) 100%);
    position: relative;
    overflow: hidden;
}

.elder-figure {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.elder-hood {
    width: 80px;
    height: 60px;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--black) 100%);
    border-radius: 50% 50% 0 0;
    position: relative;
}

.elder-face {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 30px;
}

.elder-eyes {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding-top: 10px;
}

.eye {
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--gold);
    animation: eyeGlow 3s ease-in-out infinite;
}

@keyframes eyeGlow {
    0%, 100% { opacity: 1; box-shadow: 0 0 15px var(--gold); }
    50% { opacity: 0.5; box-shadow: 0 0 25px var(--gold); }
}

.elder-cloak {
    width: 100px;
    height: 80px;
    background: linear-gradient(180deg, var(--bg-light) 0%, transparent 100%);
    margin-top: -10px;
    margin-left: -10px;
    clip-path: polygon(10% 0%, 90% 0%, 100% 100%, 0% 100%);
}

.elder-gem {
    width: 15px;
    height: 15px;
    background: var(--gold);
    position: absolute;
    top: 55px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    box-shadow: 0 0 20px var(--glow);
}

.portrait-mist {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(180deg, transparent, rgba(212, 175, 55, 0.05));
}

.elder-name {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--text);
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
}

.elder-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--gold);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Chat Terminal */
.chat-terminal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    overflow: hidden;
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.terminal-title {
    color: var(--gold);
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.terminal-status {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.terminal-body {
    height: 350px;
    overflow-y: auto;
    padding: 1.5rem;
}

.terminal-body::-webkit-scrollbar {
    width: 4px;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: var(--gold);
}

.chat-intro {
    text-align: center;
    padding: 2rem;
}

.intro-symbol {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.intro-text {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--text);
    font-style: italic;
    margin-bottom: 0.5rem;
}

.intro-hint {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    animation: msgFade 0.3s ease;
}

@keyframes msgFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message.user {
    text-align: right;
}

.message.user .msg-content {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--border);
    display: inline-block;
    padding: 0.75rem 1rem;
    color: var(--text);
}

.message.elder .msg-content {
    background: var(--bg);
    border-left: 2px solid var(--gold);
    padding: 1rem;
    color: var(--text-muted);
    font-style: italic;
}

.message.elder::before {
    content: '◈ The Elder speaks:';
    display: block;
    font-size: 0.75rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
    font-style: normal;
}

.terminal-input {
    display: flex;
    border-top: 1px solid var(--border);
}

.terminal-input input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: var(--bg);
    border: none;
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    outline: none;
}

.terminal-input input::placeholder {
    color: var(--text-dim);
}

.send-btn {
    padding: 1rem 1.5rem;
    background: var(--gold);
    border: none;
    color: var(--black);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.send-btn:hover {
    background: var(--gold-light);
}

.quick-whispers {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.whisper-label {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.whisper-btn {
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.whisper-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* Codex Section */
.codex {
    background: var(--black);
}

.codex-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, var(--gold), var(--border));
}

.codex-phase {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.phase-marker {
    width: 60px;
    height: 60px;
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.codex-phase.completed .phase-marker,
.codex-phase.active .phase-marker {
    border-color: var(--gold);
}

.marker-symbol {
    font-size: 1.25rem;
    color: var(--text-dim);
}

.codex-phase.completed .marker-symbol,
.codex-phase.active .marker-symbol {
    color: var(--gold);
    text-shadow: 0 0 15px var(--glow);
}

.phase-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2rem;
    flex: 1;
    transition: all 0.3s ease;
}

.codex-phase:hover .phase-content {
    border-color: var(--gold);
}

.phase-title {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.phase-content ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.phase-content li {
    color: var(--text-muted);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.phase-content li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: var(--gold);
}

.phase-status {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.codex-phase.completed .phase-status {
    color: var(--gold);
}

.codex-phase.active .phase-status {
    color: var(--gold);
    animation: statusPulse 2s infinite;
}

/* Final CTA */
.final-cta {
    background: linear-gradient(180deg, var(--black) 0%, var(--bg) 50%, var(--black) 100%);
    text-align: center;
    padding: 8rem 2rem;
}

.cta-symbol {
    font-size: 3rem;
    color: var(--gold);
    text-shadow: 0 0 30px var(--glow);
    margin-bottom: 2rem;
}

.final-cta h2 {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--text);
    margin-bottom: 1rem;
    letter-spacing: 3px;
}

.final-cta p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    background: var(--bg);
    padding: 3rem 2rem;
    border-top: 1px solid var(--border);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .sanctum-grid {
        grid-template-columns: 1fr;
    }
    
    .circle-content {
        grid-template-columns: 1fr;
    }
    
    .circle-visual {
        margin-bottom: 2rem;
    }
    
    .chamber-content {
        grid-template-columns: 1fr;
    }
    
    .elder-portrait {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .title-main {
        font-size: 3rem;
        letter-spacing: 8px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .codex-phase {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .timeline-line {
        display: none;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 2rem;
    }
}
