:root {
    /* Brand Colors */
    --primary-color: #60a5fa;
    --primary-gradient: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    --secondary-color: #34d399;
    --secondary-gradient: linear-gradient(135deg, #34d399 0%, #6ee7b7 100%);

    /* Backgrounds - Deep Blue/Purple Theme */
    --bg-body: #0c0a1d;
    --bg-header: rgba(12, 10, 29, 0.85);
    --bg-card: rgba(30, 27, 75, 0.4);
    --bg-card-hover: rgba(45, 40, 100, 0.5);

    /* Text */
    --text-main: #f1f5f9;
    --text-muted: #a5b4c8;
    --text-highlight: #e2e8f0;

    /* Borders & Shadows */
    --border-color: rgba(139, 92, 246, 0.2);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 25px rgba(139, 92, 246, 0.35);

    /* Layout */
    --max-width: 1200px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-muted);
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(120, 80, 200, 0.25), transparent),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(80, 120, 220, 0.2), transparent),
        radial-gradient(ellipse 50% 30% at 50% 80%, rgba(60, 100, 180, 0.15), transparent),
        linear-gradient(180deg, #0c0a1d 0%, #1a1333 50%, #0d0b1e 100%);
    background-attachment: fixed;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    margin-top: 0;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

img,
svg,
video,
canvas {
    max-width: 100%;
    height: auto;
}

/* Header & Nav */
header {
    background: var(--bg-header);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}

nav a:hover {
    color: var(--text-main);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* Main Layout */
main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 3rem 1rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
}

/* Abstract Background for Hero */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.05) 40%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(60px);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    max-width: 900px;
    letter-spacing: -0.03em;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* Features Section */
.features {
    margin-bottom: 6rem;
}

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

#pricing-tiers .card {
    display: flex;
    flex-direction: column;
}

#pricing-tiers .btn {
    width: 100%;
    margin: 0;
    margin-top: auto;
}

.billing-switch {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.billing-switch-btn {
    appearance: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
    padding: 0.65rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.billing-switch-btn:hover {
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.22);
}

.billing-switch-btn.is-active {
    background: var(--primary-gradient);
    border-color: rgba(96, 165, 250, 0.55);
    color: #fff;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
}

.card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: var(--shadow-glow);
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.card-tip {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.14) 0%, rgba(167, 139, 250, 0.08) 100%);
    border-color: rgba(96, 165, 250, 0.22);
    border-left: 5px solid rgba(96, 165, 250, 0.7);
}

.card-tip:hover {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.18) 0%, rgba(167, 139, 250, 0.1) 100%);
    border-color: rgba(96, 165, 250, 0.28);
}

.card p {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    /* Pill shape */
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    margin: 0 0.5rem;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.5);
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Sections */
section {
    position: relative;
    padding: 2rem 0;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

#how-it-works,
#core-features,
#auto-relay,
#faq {
    margin-top: 6rem;
}

#user-space {
    background: linear-gradient(to right, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid var(--border-color);
    padding: 4rem 2rem;
    border-radius: 24px;
    text-align: center;
    margin-top: 6rem;
}

#user-space h2 {
    margin-bottom: 1.5rem;
}

#user-space p {
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* Lists */
ul li {
    margin-bottom: 0.5rem;
}

#why-web ul {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    list-style: none;
    /* remove default */
}

#why-web li {
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1.5rem;
}

#why-web li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

strong {
    color: var(--text-highlight);
}

/* FAQ */
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    transition: background 0.2s;
}

.faq-item:hover {
    background: var(--bg-card-hover);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
    border-top: none;
}

/* Footer */
footer {
    background: #020203;
    padding: 6rem 0 2rem;
    margin-top: 8rem;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 3rem;
}

.footer-col h4 {
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: var(--text-main);
    text-decoration: underline;
    text-decoration-color: var(--primary-color);
    text-underline-offset: 4px;
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 4rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: #52525b;
    font-size: 0.875rem;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
}

thead th {
    color: var(--text-main);
    font-weight: 700;
}

tbody tr:last-child td {
    border-bottom: none;
}

/* Responsive */
@media (max-width: 768px) {
    main {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    nav {
        flex-direction: column;
        padding: 1rem;
    }

    nav ul {
        margin-top: 1rem;
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .card {
        padding: 1.5rem;
    }

    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    thead th {
        white-space: nowrap;
    }

    .footer-container {
        text-align: left;
    }

    .btn {
        width: 100%;
        margin: 0.5rem 0;
    }
}

/* Helpers & Utilities */
.w-full {
    width: 100%;
}

.text-center {
    text-align: center;
}

#changelog-list .card {
    margin-bottom: 1.5rem;
}

.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--secondary-color);
}

.card-highlight {
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.15);
}

.card-badge {
    background: var(--primary-gradient);
    color: white;
    position: absolute;
    top: -10px;
    right: 20px;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 10;
}

.inline-badge-link {
    display: inline-flex;
    align-items: center;
    margin-left: 0.5rem;
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-decoration: none;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.35);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.16);
}

.inline-badge-link:hover {
    background: rgba(52, 211, 153, 0.18);
    border-color: rgba(52, 211, 153, 0.5);
    box-shadow: 0 0 22px rgba(16, 185, 129, 0.32);
}

.inline-badge-link:focus-visible {
    outline: 2px solid rgba(52, 211, 153, 0.7);
    outline-offset: 2px;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 1rem 0;
}

.price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}

.card hr {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 1.5rem 0;
}
