/* Global Reset & Base Styles */
:root {
    --bg-color: #0d0d0d;
    --text-color: #e0e0e0;
    --accent-color: #d4af37;
    /* Gold-ish */
    --accent-light: #f3e5ab;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --sidebar-width: 400px;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Bradley Hand', 'Chalkboard SE', cursive;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-light);
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: normal;
    margin-bottom: 1rem;
    color: #fff;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: 1px;
}

h2 {
    font-size: 2.2rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
    display: inline-block;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #cccccc;
}

/* Layout Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
    position: relative;
    padding-top: 100px;
}

.hero-content {
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    animation: fadeIn 1s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tagline {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    font-family: var(--font-primary);
    font-weight: 300;
    max-width: 800px;
}

.hero-image-container {
    margin: 40px auto 0;
    position: relative;
    width: 80%;
    max-width: 1000px;
    aspect-ratio: 16/10;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    color: #555;
    font-size: 0.9em;
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* or cover, depending on screenshot */
}

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

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-color);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

/* Privacy Section */
.privacy-excerpt {
    background: rgba(255, 255, 255, 0.03);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
}

.button {
    display: inline-block;
    padding: 12px 30px;
    background: var(--accent-color);
    color: #000;
    font-weight: 600;
    border-radius: 30px;
    margin-top: 20px;
    font-family: var(--font-primary);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.button:hover {
    background: var(--accent-light);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero {
        padding-top: 60px;
    }
}

/* Manual / Documentation Styles */
.manual-nav {
    padding: 20px 0;
    margin-bottom: 20px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
}

.back-link:before {
    content: '←';
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.back-link:hover:before {
    transform: translateX(-5px);
}

.manual-section {
    margin-bottom: 100px;
    scroll-margin-top: 100px;
}

.manual-desc {
    max-width: 800px;
    margin-bottom: 30px;
}

.annotated-image-container {
    position: relative;
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    background: #000;
}

.annotated-image-container img {
    width: auto;
    height: auto;
    max-height: 700px;
    /* Constraint height for vertical images */
    display: block;
    opacity: 0.9;
}

/* Annotation Markers */
.annotation-marker {
    position: absolute;
    z-index: 10;
    cursor: default;
}

.marker-dot {
    width: 16px;
    height: 16px;
    background: var(--accent-color);
    border: 2px solid rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.3);
    animation: pulse 2s infinite;
    position: relative;
}

.marker-content {
    position: absolute;
    width: 220px;
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid var(--accent-color);
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.5s ease-out forwards;
}

/* Positioning helpers for content relative to dot */
.annotation-marker.right .marker-content {
    top: -10px;
    left: 30px;
}

.annotation-marker.left .marker-content {
    top: -10px;
    right: 30px;
    text-align: right;
}

.annotation-marker.top .marker-content {
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
}

.annotation-marker.bottom .marker-content {
    top: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
}

.marker-title {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
    font-size: 0.95rem;
    font-family: var(--font-primary);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0) translateX(-50%);
    }
}

/* Override transform for side ones */
.annotation-marker.right .marker-content,
.annotation-marker.left .marker-content {
    animation-name: fadeInSide;
}

@keyframes fadeInSide {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsiveness for annotations */
@media (max-width: 768px) {
    .annotated-image-container img {
        opacity: 0.4;
    }

    .marker-dot {
        width: 12px;
        height: 12px;
    }

    .marker-content {
        width: 150px;
        font-size: 0.8rem;
        padding: 8px;
    }
}