/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Mono:wght@400;700&display=swap');

:root {
    /* Hybrid Palette */
    --bg-main: #ffffff;
    --bg-secondary: #ffffff;
    /* Zinc 100 */
    --bg-panel: #ffffff;

    --text-primary: #09090b;
    /* Zinc 950 */
    --text-secondary: #52525b;
    /* Zinc 600 */

    --accent-primary: #000000;
    /* Sharp Black for primary actions */
    --accent-secondary: #2563eb;
    /* Electric Blue for highlights */

    --border-color: #e4e4e7;
    /* Zinc 200 */
    --border-strong: #000000;
    /* Sharp contrasts */

    --header-height: 70px;
    --container-width: 1200px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center top;
    z-index: -1;
    pointer-events: none;
}

html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Opaque background for content to sit on top of grid */
section {
    background: rgba(255, 255, 255, 0.95);
    /* Increased opacity */
    backdrop-filter: blur(8px);
}

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

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5 {
    font-family: 'Space Mono', monospace;
    /* The "Soul" */
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    text-transform: uppercase;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

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

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
    /* Keep body readable */
}

/* Layout Utilities */
.container {
    max-width: 95%;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

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

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-4 {
    gap: 1rem;
}

.gap-8 {
    gap: 2rem;
}

.flex-responsive {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    .flex-responsive {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 768px) {
    .flex-center {
        flex-direction: column;
        width: 100%;
    }

    .flex-center .btn {
        width: 100%;
    }
}

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

.mt-4 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.py-24 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 0px;
    /* Sharp Edges */
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.1s ease;
    border: 1px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.btn-primary:hover {
    background-color: var(--accent-secondary);
    border-color: var(--accent-secondary);
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0px 0px rgba(0, 0, 0, 0.1);
}

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

.btn-outline:hover {
    background-color: var(--border-strong);
    color: white;
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0px 0px rgba(0, 0, 0, 0.1);
}

.card {
    background: white;
    border: 1px solid var(--border-strong);
    border-radius: 0px;
    /* Sharp Edges */
    padding: 2rem;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 6px 6px 0px 0px var(--accent-secondary);
}

.no-lift:hover {
    transform: none !important;
    box-shadow: none !important;
}

.card.highlight {
    border-color: var(--accent-primary);
}

.card.highlight:hover {
    border-color: var(--accent-secondary);
    box-shadow: 6px 6px 0px 0px var(--accent-secondary);
}

.card ul {
    flex-grow: 1;
}

.card .btn {
    margin-top: auto;
    width: 100%;
}

@keyframes float {
    0% {
        top: 0px;
    }

    50% {
        top: -10px;
    }

    100% {
        top: 0px;
    }
}

.animate-float {
    position: relative;
    animation: float 3s ease-in-out infinite;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    width: 100%;
}

.pricing-grid .card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-grid .card ul {
    flex-grow: 1;
    text-align: left;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.pricing-grid .card .btn {
    margin-top: auto;
    width: 100%;
}

/* Header */
header {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 2px solid var(--border-strong);
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
}

.logo {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: -0.05em;
}

/* Nav Components */
.nav-links {
    display: flex;
    gap: 2rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.nav-btn {
    padding: 8px 16px !important;
}



.logout-link {
    color: var(--text-secondary) !important;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 100;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-links a:not(.btn) {
    color: var(--text-secondary);
    position: relative;
}

.nav-links a.btn-primary {
    color: #ffffff;
}

.nav-links a:not(.btn):hover {
    color: var(--accent-primary);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-secondary);
    transition: width 0.2s;
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

/* Footer */
footer {
    background: var(--bg-main);
    padding: 4rem 0;
    margin-top: auto;
    border-top: 2px solid var(--border-strong);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

.copyright {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    font-family: 'Space Mono', monospace;
}

@media (max-width: 768px) {
    .footer-col {
        text-align: center;
    }
}

/* Forms */
input,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 0px;
    /* Sharp */
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-primary);
    background: var(--bg-secondary);
    margin-bottom: 1rem;
    transition: all 0.2s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-secondary);
    background: white;
    box-shadow: 4px 4px 0px 0px rgba(37, 99, 235, 0.1);
}

label {
    display: block;
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    text-transform: uppercase;
}

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

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        left: 0;
        top: var(--header-height);
        background: var(--bg-main);
        width: 100%;
        height: calc(100vh - var(--header-height));
        padding: 2rem;
        gap: 2rem;
        transition: transform 0.3s ease;
        transform: translateX(-100%);
        border-top: 1px solid var(--border-color);
        z-index: 99;
        visibility: hidden;
    }

    .nav-links.active {
        transform: translateX(0);
        visibility: visible;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.25rem;
        display: block;
        padding: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 16px;
    }

    .card {
        padding: 1.25rem;
    }
}