:root {
    /* Color Palette - Premium Utility */
    --bg-color: #fbfbfd;
    --bg-secondary: #f0f4f8;
    /* Crystal tint */
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --accent-color: #0071e3;
    --osrs-gold: #dcae36;
    --osrs-gold-gradient: linear-gradient(135deg, #dcae36 0%, #f5d76e 100%);
    --magic-gradient: linear-gradient(135deg, #dcae36 0%, #0071e3 100%);
    --accent-gradient: var(--magic-gradient);

    /* Component Colors */
    --card-bg: rgba(255, 255, 255, 0.8);
    --card-border: rgba(255, 255, 255, 0.5);
    --border-color: #d2d2d7;

    /* Status Colors */
    --success-color: #28cd41;
    --warning-bg: rgba(255, 159, 10, 0.1);
    --warning-text: #bf7100;
    --warning-border: rgba(255, 159, 10, 0.2);
    --danger-color: #ff3b30;

    /* Typography */
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Layout */
    --max-width: 1100px;
    /* Widened from 980px */
    --radius: 20px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #0d1117;
        /* Deep Navy */
        --bg-secondary: #161b22;
        --text-primary: #f0f6fc;
        --text-secondary: #8b949e;
        --accent-color: #2997ff;
        --accent-gradient: linear-gradient(135deg, #dcae36 0%, #2997ff 100%);
        --bg-color: #050505;
        --bg-secondary: #0d1117;

        --card-bg: rgba(22, 27, 34, 0.7);
        --card-border: rgba(255, 255, 255, 0.1);
        --border-color: #30363d;

        --warning-text: #ffb340;
        --warning-bg: rgba(255, 159, 10, 0.15);
    }
}

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

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

/* Typography Enhancements */
h1,
h2,
h3 {
    color: var(--text-primary);
    letter-spacing: -0.02em;
    font-weight: 700;
}

h1 {
    font-size: 56px;
    line-height: 1.05;
    margin-bottom: 24px;
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

h2 {
    font-size: 36px;
    margin-bottom: 40px;
    color: var(--text-primary);
    border-left: 4px solid var(--osrs-gold);
    padding-left: 16px;
}

h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

p {
    font-size: 18px;
    line-height: 1.75;
    /* Golden Line Height */
    color: var(--text-primary);
    opacity: 0.9;
    margin-bottom: 28px;
    max-width: 720px;
    /* Optimal reading width */
}

blockquote {
    background: rgba(220, 174, 54, 0.08);
    border-left: 4px solid var(--osrs-gold);
    padding: 24px 32px;
    margin: 40px 0;
    border-radius: 0 16px 16px 0;
    font-style: italic;
    font-size: 19px;
    color: var(--text-primary);
    position: relative;
}

/* Input Micro-interactions */
input[type="text"],
input[type="number"],
input[type="email"] {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

input:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 174, 54, 0.15);
    border-color: var(--osrs-gold) !important;
}

/* Layout */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 100px 0;
    /* Increased breathing room */
}

section:nth-child(even) {
    background-color: var(--bg-secondary);
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

@media (prefers-color-scheme: dark) {
    header {
        background-color: rgba(13, 17, 23, 0.8);
    }
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    gap: 16px;
}

.top-nav {
    height: 70px;
    gap: 24px;
    padding: 6px 0;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-brand {
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.01em;
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.8;
    transition: all 0.2s ease;
}

nav a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.nav-link {
    padding: 8px 12px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background-color: var(--bg-secondary);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.nav-dropdown,
.guide-dropdown {
    position: relative;
}

.nav-drop-toggle,
.dropdown-toggle {
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.8);
    padding: 10px 14px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

@media (prefers-color-scheme: dark) {
    .nav-drop-toggle,
    .dropdown-toggle {
        background: rgba(22, 27, 34, 0.9);
        border-color: var(--border-color);
    }
}

.nav-drop-toggle:hover,
.dropdown-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.14);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 50;
    max-height: 320px;
    overflow: auto;
}

@media (prefers-color-scheme: dark) {
    .dropdown-menu {
        background: rgba(22, 27, 34, 0.9);
    }
}

.nav-dropdown:hover .dropdown-menu,
.guide-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu,
.guide-dropdown.open .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.guide-dropdown .dropdown-menu {
    left: 0;
    right: auto;
}

.dropdown-item {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.15s ease;
}

.dropdown-item:hover,
.dropdown-item.active {
    background: var(--bg-secondary);
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .top-nav {
        flex-wrap: wrap;
        height: auto;
        gap: 12px;
    }

    .nav-actions,
    .nav-left {
        width: 100%;
        justify-content: flex-start;
        gap: 10px;
    }

    .dropdown-menu {
        position: relative;
        top: 0;
        right: 0;
        transform: translateY(8px);
        opacity: 0;
        pointer-events: none;
        box-shadow: var(--shadow-md);
        margin-top: 10px;
    }

    .nav-dropdown.open .dropdown-menu,
    .guide-dropdown.open .dropdown-menu {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 140px 0 100px;
    background: radial-gradient(circle at 50% 0%, rgba(0, 113, 227, 0.1) 0%, var(--bg-color) 70%);
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23dcae36' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.5;
}

.subtitle {
    font-size: 24px;
    color: var(--text-secondary);
    margin: 0 auto 48px;
    font-weight: 400;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--bg-secondary);
    color: var(--accent-color);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Components: Buttons */
.cta-button {
    display: inline-block;
    background: var(--accent-gradient);
    color: white;
    padding: 16px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 17px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 113, 227, 0.5);
}

.cta-button:active {
    transform: translateY(-1px);
}

/* Components: Cards (Glassmorphism) */
.card,
.glass-panel,
.testimonial-card,
.pricing-card {
    background-color: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.card:hover,
.testimonial-card:hover,
.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.card img {
    width: auto;
    max-width: 100%;
    max-height: 500px;
    display: block;
    margin: 0 auto 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

/* Components: Alerts */
.alert {
    padding: 20px 24px;
    border-radius: 16px;
    margin-bottom: 40px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 16px;
    line-height: 1.5;
}

.alert-warning {
    background-color: var(--warning-bg);
    color: var(--warning-text);
    border: 1px solid var(--warning-border);
}

.alert-danger {
    background-color: rgba(255, 59, 48, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(255, 59, 48, 0.2);
}

/* Media & Embeds */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin: 0 auto 24px;
    /* Center and add bottom margin */
    background-color: #000;
    max-width: 800px;
    /* Limit maximum width */
    width: 100%;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

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

.feature-item {
    text-align: center;
    padding: 20px;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 24px;
    display: inline-block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

/* Testimonials Grid */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.testimonial-text {
    font-size: 17px;
    line-height: 1.6;
    font-style: italic;
    color: var(--text-primary);
}

/* Pricing */
.pricing-card {
    max-width: 480px;
    margin: 60px auto 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--accent-gradient);
}

.pricing-price {
    font-size: 64px;
    font-weight: 800;
    margin: 24px 0;
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pricing-features {
    list-style: none;
    margin: 30px 0;
    text-align: left;
    display: inline-block;
}

.pricing-features li {
    margin-bottom: 12px;
    padding-left: 28px;
    position: relative;
    font-size: 16px;
    color: var(--text-secondary);
}

.pricing-features li::before {
    content: "✓";
    color: var(--success-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* FAQ Section */
.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 24px 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.faq-answer {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Testimonial Extras */
.testimonial-author {
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    color: var(--text-primary);
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--accent-color);
    font-weight: bold;
}

/* Ship Layouts */
.ship-layout {
    margin-bottom: 100px;
}

.ship-layout img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
    cursor: zoom-in;
    max-width: 100%;
    height: auto;
}

.ship-layout img:hover {
    transform: scale(1.02);
}

/* Footer */
footer {
    background-color: var(--bg-secondary);
    padding: 80px 0;
    margin-top: 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-links a {
    color: var(--text-secondary);
    font-weight: 500;
}

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

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

/* Watermark */
.watermarked-image {
    position: relative;
    display: table;
    margin: 0 auto;
    max-width: 100%;
    overflow: hidden;
    border-radius: var(--radius);
}

.watermarked-image img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 500px;
    height: auto;
    border-radius: var(--radius);
}

.watermarked-image::after {
    content: "crystalextractor.online";
    position: absolute;
    bottom: 12px;
    right: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 600;
    pointer-events: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 10;
    font-family: var(--font-main);
    letter-spacing: 0.05em;
}

/* Caption */
.caption {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 16px;
    margin-bottom: 32px;
    font-style: italic;
    display: block;
}

/* Minimalist Navigation Layout */
.minimal-nav {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 4px 0 20px 0;
    margin-bottom: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
}

.minimal-nav::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.nav-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.nav-pill:hover {
    background-color: var(--border-color);
    color: var(--text-primary);
}

.nav-pill.active {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Content Area */
.minimal-content {
    min-height: 400px;
    animation: fadeIn 0.3s ease-out;
}

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

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

/* Loading State */
.loading-spinner {
    text-align: center;
    padding: 60px;
    color: var(--text-secondary);
    font-size: 16px;
}
