/* Modern CSS Reset & Variables */
:root {
    /* MindWorx Dark Green Futuristic Design System */
    --background: 160 30% 4%;
    --foreground: 150 20% 95%;

    --card: 160 25% 8%;
    --card-foreground: 150 20% 95%;

    --popover: 160 25% 8%;
    --popover-foreground: 150 20% 95%;

    --primary: 158 64% 52%;
    --primary-foreground: 160 30% 4%;

    --secondary: 160 25% 15%;
    --secondary-foreground: 150 20% 95%;

    --muted: 160 20% 15%;
    --muted-foreground: 155 15% 55%;

    --accent: 158 64% 52%;
    --accent-foreground: 160 30% 4%;

    --destructive: 0 84% 60%;
    --destructive-foreground: 150 20% 95%;

    --border: 160 20% 18%;
    --input: 160 20% 18%;
    --ring: 158 64% 52%;

    --radius: 0.75rem;

    /* Custom MindWorx tokens */
    --glow-primary: 158 64% 52%;
    --glow-secondary: 160 40% 40%;
    --gradient-start: 158 64% 52%;
    --gradient-end: 160 40% 35%;

    /* Font Families */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: hsl(var(--border));
}

body {
    margin: 0;
    font-family: var(--font-sans);
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Utilities */
.container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 2rem;
    padding-left: 2rem;
    max-width: 1400px;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.flex-col {
    flex-direction: column;
}

.gap-4 {
    gap: 1rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-6 {
    padding-top: .8rem;
    padding-bottom: .8rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-24 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.text-center {
    text-align: center;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-top: 0;
}

h1 {
    font-size: 3rem;
    line-height: 1;
}

h2 {
    font-size: 2.25rem;
    line-height: 2.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    line-height: 2rem;
    margin-bottom: 0.75rem;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
    color: hsl(var(--muted-foreground));
}

.lead {
    font-size: 1.25rem;
    color: hsl(var(--muted-foreground));
}

/* Nav Links */
.nav-link {
    text-decoration: none;
    color: hsl(var(--foreground) / 0.8);
    font-weight: 500;
    font-size: .9rem;
    transition: all 0.2s;
}

.nav-link:hover {
    color: hsl(var(--primary));
    text-shadow: 0 0 10px hsl(var(--glow-primary) / 0.5);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    height: 2.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-outline {
    border-color: hsl(var(--input));
    background-color: transparent;
    color: hsl(var(--foreground));
}

.btn-outline:hover {
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
}

.btn-lg {
    height: 3rem;
    padding-left: 2rem;
    padding-right: 2rem;
    font-size: 1rem;
}

/* Cards */
.card {
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    background-color: hsl(var(--card));
    color: hsl(var(--card-foreground));
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.input,
.textarea {
    display: flex;
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid hsl(var(--input));
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    transition: border-color 0.2s;
    font-family: inherit;
}

.input:focus,
.textarea:focus {
    outline: none;
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 2px hsl(var(--ring));
}

.textarea {
    min-height: 80px;
    resize: vertical;
}

/* Sections specific logic */
.hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.scan-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.scan-card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: hsl(var(--primary));
}

/* Simple Animation */
.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Design Effects (Ported) */
.gradient-primary {
    background: linear-gradient(135deg, hsl(var(--gradient-start)), hsl(var(--gradient-end)));
}

.gradient-text {
    background: linear-gradient(135deg, hsl(var(--gradient-start)), hsl(158 64% 70%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    /* Fallback */
}

.glow-primary {
    box-shadow: 0 0 20px hsl(var(--glow-primary) / 0.3),
        0 0 40px hsl(var(--glow-primary) / 0.15),
        inset 0 0 20px hsl(var(--glow-primary) / 0.05);
}

.glass {
    background: hsl(var(--card) / 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid hsl(var(--border) / 0.5);
}

.glass-card {
    background: linear-gradient(135deg, hsl(160 25% 10% / 0.8), hsl(160 25% 6% / 0.9));
    backdrop-filter: blur(16px);
    border: 1px solid hsl(var(--border) / 0.6);
}

.dotted-bg {
    background-image: radial-gradient(circle, hsl(var(--primary) / 0.15) 1px, transparent 1px);
    background-size: 24px 24px;
    min-height: 100vh;
}

.gradient-radial {
    background: radial-gradient(ellipse at 50% 0%, hsl(var(--primary) / 0.15) 0%, transparent 60%);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}