/* CSS Variables */
:root {
    --bg-color: #0f0f0f;
    --text-color: #f1f1f1;
    --red-accent: #ff0000;
    --card-bg: #1a1a1a;
    --border-color: #333333;
    --link-hover: #ff4d4d;
    --font-stack: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-stack);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    letter-spacing: -0.02em;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
}

p {
    margin-bottom: 1rem;
    color: #cccccc;
}

a {
    color: var(--text-color);
    text-decoration: underline;
    text-decoration-color: var(--border-color);
    text-underline-offset: 4px;
    transition: color var(--transition-speed), text-decoration-color var(--transition-speed);
}

a:hover {
    color: var(--link-hover);
    text-decoration-color: var(--link-hover);
}

/* Layout Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 4vw;
    /* Ensure there is some dynamic padding on all viewports */
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
        /* Explicit padding for mobile edge */
    }
}

/* Header & Nav */
header {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background-color: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(8px);
    z-index: 100;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-color);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 32px;
    width: auto;
}

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

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a.active {
    color: var(--red-accent);
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    transition: var(--transition-speed);
}

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

    #nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-color);
        padding: 1.5rem 1.5rem 1.5rem 1.5rem;
        /* Match container mobile padding */
        border-bottom: 1px solid var(--border-color);
    }

    #nav-menu.show {
        display: block;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-end;
        /* Align right to match hamburger icon placement */
        gap: 1.5rem;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: transform var(--transition-speed), background-color var(--transition-speed), box-shadow var(--transition-speed);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--red-accent);
    color: #ffffff;
    border: 1px solid var(--red-accent);
}

.btn-primary:hover {
    background-color: #cc0000;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(255, 0, 0, 0.4);
    text-decoration: none;
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--card-bg);
    color: var(--text-color);
    text-decoration: none;
}

/* Hero Section */
.hero {
    padding-top: 6rem;
    padding-bottom: 4rem;
    text-align: center;
    max-width: 800px;
}

.hero .subheadline {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: #a0a0a0;
}

.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

@media (max-width: 480px) {
    .cta-group {
        flex-direction: column;
    }
}

/* Features Section */
.features {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: transform var(--transition-speed), border-color var(--transition-speed);
}

.card:hover {
    transform: translateY(-4px);
    border-color: #555;
}

.card h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Trust Section */
.trust {
    padding-top: 4rem;
    padding-bottom: 6rem;
    text-align: center;
}

.trust h2 {
    margin-bottom: 2rem;
}

.trust-list {
    list-style: none;
    display: inline-flex;
    /* Changed from flex */
    flex-direction: column;
    gap: 1.5rem;
    /* slightly increased gap based on the text layout */
    align-items: center;
    /* Ensure items align to the center internally */
    text-align: center;
    /* Ensure text matches the center alignment */
    padding: 0 1.5rem;
    /* Added padding to ensure text never touches screen edge on mobile */
}

.trust-list li {
    font-size: 1.1rem;
    color: #cccccc;
    display: flex;
    align-items: flex-start;
    /* Box alignment changed so the checkmark stays at the top of wrapped lines */
    gap: 0.75rem;
    /* Slight increase in gap for readability */
    line-height: 1.5;
    /* Better readability for wrapped lines */
}

.trust-list li::before {
    content: "✓";
    color: var(--red-accent);
    font-weight: bold;
    flex-shrink: 0;
    /* Prevents the checkmark from squishing when text wraps */
    margin-top: 0.1rem;
    /* Visually align checkmark with the first line of text */
}

/* Text Pages (Privacy, Support) */
.text-page {
    padding-top: 4rem;
    padding-bottom: 4rem;
    max-width: 800px;
}

.text-page h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.text-page .last-updated {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 3rem;
}

.text-page h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.text-page h3 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.text-page p {
    margin-bottom: 1.5rem;
}

.text-page ul,
.text-page ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    /* Add padding to show numbers/bullets */
    color: #cccccc;
}

.text-page li {
    margin-bottom: 0.5rem;
}

.text-page hr {
    border: 0;
    height: 1px;
    background-color: var(--border-color);
    margin: 3rem 0;
}

.faq-item {
    margin-bottom: 2rem;
}

.faq-item h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.faq-item p {
    color: #b3b3b3;
}

.highlight-box {
    background-color: var(--card-bg);
    border-left: 4px solid var(--red-accent);
    padding: 1rem;
    border-radius: 0 4px 4px 0;
    margin-top: 1rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 2rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: #a0a0a0;
    font-size: 0.9rem;
}

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

.license {
    font-size: 0.85rem;
    color: #666;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}