:root {
    /* Light Theme Tokens */
    --bg-color: #FFFFFF;
    --surface-color: #F9FAFB;
    --text-main: #111827;
    --text-secondary: #4B5563;
    --primary-color: #22C55E;
    --primary-hover: #16A34A;
    --border-color: rgba(0, 0, 0, 0.05);

    /* Vampire Red Theme Tokens */
    --primary-blue: #dc2626;
    --primary-blue-hover: #b91c1c;
    --secondary-sky: #7f1d1d;
    --navy-contrast: #2d0a0a;
    --bg-light: #fffcfc;
    --bg-dark: #0a0505;
    /* Vampire Midnight */
    --accent-cyan: #ef4444;
    /* Vibrant Red */
    --accent-azure: #fee2e2;
    --periwinkle: #fca5a5;
    --electric-blue: #dc2626;

    /* Vivid Material Palette (Vibrant but Restrained) */
    --vivid-red: #FFE5E5;
    --vivid-pink: #FFF0F6;
    --vivid-yellow: #FFF9DB;
    --vivid-green: #EBFBEE;
    --vivid-blue: #E7F5FF;
    --vivid-emerald: #E6FCF5;
    --vivid-orange: #FFF4E6;
    --vivid-purple: #F3F0FF;
    --vivid-cyan: #E3FAFC;
    --vivid-indigo: #EDF2FF;
    --vivid-green-dark: #087F5B;

    --vivid-red-text: #C92A2A;
    --vivid-pink-text: #A61E4D;
    --vivid-yellow-text: #E67700;
    --vivid-green-text: #2B8A3E;
    --vivid-blue-text: #1864AB;
    --vivid-emerald-text: #099268;
    --vivid-orange-text: #D9480F;
    --vivid-purple-text: #862E9C;
    --vivid-cyan-text: #0B7285;
    --vivid-indigo-text: #364FC7;

    --radius-md: 16px;
    --radius-lg: 28px;

    /* Material 3 Elevation Shadows */
    --m3-elev-1: 0px 1px 3px 1px rgba(0, 0, 0, 0.15),
        0px 1px 2px 0px rgba(0, 0, 0, 0.3);
    --m3-elev-2: 0px 2px 6px 2px rgba(0, 0, 0, 0.15),
        0px 1px 2px 0px rgba(0, 0, 0, 0.3);
    --m3-elev-3: 0px 1px 3px 0px rgba(0, 0, 0, 0.3),
        0px 4px 8px 3px rgba(0, 0, 0, 0.15);
    --m3-elev-4: 0px 2px 3px 0px rgba(0, 0, 0, 0.3),
        0px 6px 10px 4px rgba(0, 0, 0, 0.15);
    --m3-elev-5: 0px 4px 4px 0px rgba(0, 0, 0, 0.3),
        0px 8px 12px 6px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] {
    --bg-color: #0A0A0A;
    --surface-color: #161616;
    --text-main: #F9FAFB;
    --text-secondary: #9CA3AF;
    --primary-color: #22C55E;
    --primary-hover: #4ADE80;
    --border-color: rgba(255, 255, 255, 0.05);

    /* Card Glowing Borders - Night Mode */
    --glow-red: 0 0 15px rgba(239, 68, 68, 0.4);
    --glow-pink: 0 0 15px rgba(217, 70, 239, 0.4);
    --glow-yellow: 0 0 15px rgba(245, 158, 11, 0.4);
    --glow-green: 0 0 15px rgba(34, 197, 94, 0.4);
    --glow-emerald: 0 0 15px rgba(16, 185, 129, 0.4);
}

* {
    box-sizing: border-box;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

body {
    margin: 0;
    font-family: 'Nunito', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4 {
    margin-top: 0;
    font-weight: 800;
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem;
    max-width: 100%;
    margin: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] header {
    background-color: rgba(10, 10, 10, 0.8);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-links a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.25rem;
    text-decoration: none;
    color: var(--text-main);
}

.logo-icon {
    width: 28px;
    height: 28px;
    background-color: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.4);
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.login-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
}

.btn-signup,
.btn-get-started {
    background-color: var(--primary-color);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--m3-elev-1);
    transition: all 0.2s cubic-bezier(0, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
}

.btn-signup:hover,
.btn-get-started:hover {
    background-color: var(--primary-hover);
    box-shadow: var(--m3-elev-2);
    transform: translateY(-1px);
}

.btn-signup:active,
.btn-get-started:active {
    transform: translateY(0) scale(0.98);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 6rem 2rem 6rem;
    background:
        radial-gradient(circle at 12% 25%, rgba(22, 163, 74, 0.45), transparent 35%),
        radial-gradient(circle at 88% 20%, rgba(22, 163, 74, 0.4), transparent 75%),
        linear-gradient(to bottom, var(--surface-color), var(--bg-color));
    position: relative;
    overflow: hidden;
}

.hero-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-shape {
    position: absolute;
    background: var(--primary-color);
    filter: blur(80px);
    opacity: 0.15;
    border-radius: 50%;
}

.hero-shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -150px;
}

.hero-shape-2 {
    width: 250px;
    height: 250px;
    bottom: -50px;
    right: -100px;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero h1 {
    font-size: 4rem;
    max-width: 900px;
    margin: 0 auto 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

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

.btn-get-started {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.39);
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(260px, auto);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 4rem auto 4rem;
    padding: 0 2rem;
}

.card-wide {
    grid-column: span 2;
}

.card-tall {
    grid-row: span 2;
}

@media (max-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-wide {
        grid-column: span 1;
    }
}

@media (max-width: 640px) {
    .card-grid {
        grid-template-columns: 1fr;
    }

    .card-wide,
    .card-tall {
        grid-column: span 1;
        grid-row: span 1;
    }
}

.card {
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    min-height: 240px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s cubic-bezier(0, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0, 0, 0.2, 1), background-color 0.2s linear;
    z-index: 1;
    box-shadow: var(--m3-elev-1);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--m3-elev-3);
}

.card:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: var(--m3-elev-2);
}

.card-decoration {
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 40%;
    height: 40%;
    background: currentColor;
    opacity: 0.1;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    z-index: -1;
    pointer-events: none;
    transition: transform 0.4s ease;
}

.card:hover .card-decoration {
    transform: scale(1.2) rotate(15deg);
}

.badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background-color: rgba(0, 0, 0, 0.05);
    color: inherit;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Vivid Material Card Surfaces */
.card-red {
    background: linear-gradient(135deg, var(--vivid-red), #FFF0F0);
    color: var(--vivid-red-text);
}

.card-pink {
    background: linear-gradient(135deg, var(--vivid-pink), #FFF0F5);
    color: var(--vivid-pink-text);
}

.card-yellow {
    background: linear-gradient(135deg, var(--vivid-yellow), #FFFBEB);
    color: var(--vivid-yellow-text);
}

.card-green-light {
    background: linear-gradient(135deg, var(--vivid-green), #F2FDF5);
    color: var(--vivid-green-text);
}

.card-orange {
    background: linear-gradient(135deg, var(--vivid-orange), #FFF8E1);
    color: var(--vivid-orange-text);
}

.card-purple {
    background: linear-gradient(135deg, var(--vivid-purple), #F8F0FC);
    color: var(--vivid-purple-text);
}

.card-blue {
    background: linear-gradient(135deg, var(--vivid-blue), #E7F5FF);
    color: var(--vivid-blue-text);
}

.card-cyan {
    background: linear-gradient(135deg, var(--vivid-cyan), #F0FCFF);
    color: var(--vivid-cyan-text);
}

.card-indigo {
    background: linear-gradient(135deg, var(--vivid-indigo), #F1F3FF);
    color: var(--vivid-indigo-text);
}

.card-green-dark {
    background: linear-gradient(135deg, var(--vivid-green-dark), #099268);
    color: #FFFFFF;
}


.card-emerald {
    background: linear-gradient(135deg, var(--vivid-emerald), #F0FFF9);
    color: var(--vivid-emerald-text);
}


[data-theme="dark"] .card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    box-shadow: none;
}

[data-theme="dark"] .card:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
    transform: translateY(-4px);
}

[data-theme="dark"] .card:active {
    transform: translateY(-2px) scale(0.98);
}

[data-theme="dark"] .badge {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
}

.card-icon {
    font-size: 3.5rem;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 1.1rem;
    line-height: 1.3;
    opacity: 0.9;
    margin: 0;
}

/* Contact Section / Banner */
.contact-banner {
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

.banner-content {
    background: linear-gradient(135deg, var(--vivid-green-dark), #099268);
    color: white;
    border-radius: var(--radius-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 4rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--m3-elev-2);
}

.banner-decoration {
    position: absolute;
    top: -10%;
    left: -5%;
    width: 30%;
    height: 50%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    transform: rotate(-15deg);
}

@media (max-width: 768px) {
    .banner-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2.5rem;
    }
}

.banner-left h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.banner-left p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.banner-right {
    background-color: var(--bg-color);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    color: var(--text-main);
    box-shadow: var(--m3-elev-4);
}

[data-theme="dark"] .banner-right {
    background-color: #1a1a1a;
}

.banner-right h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 800;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-control {
    width: 100%;
    border: 2px solid var(--border-color);
    background-color: var(--surface-color);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s ease;
    color: var(--text-main);
}

.form-control:focus {
    outline: none;
    border-color: var(--vivid-green-dark);
    box-shadow: 0 0 0 4px rgba(8, 127, 91, 0.1);
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--vivid-green-dark), #099268);
    color: #fff;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1rem;
    box-shadow: var(--m3-elev-2);
    transition: all 0.2s ease;
}

.btn-submit:hover {
    box-shadow: var(--m3-elev-3);
    transform: translateY(-2px);
}

/* Glassmorphism & New Design Utilities */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(191, 219, 254, 0.3);
}

[data-theme="dark"] .glass-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bg-blob {
    position: fixed;
    z-index: -1;
    filter: blur(80px);
    opacity: 0.6;
    pointer-events: none;
}

.font-display {
    font-family: 'Epilogue', sans-serif;
}

/* Material Design 3 Shadow Overrides/Additions */
.shadow-m3-1 {
    box-shadow: 0 1px 3px 0 rgba(37, 99, 235, 0.1), 0 1px 2px 0 rgba(37, 99, 235, 0.06);
}

.shadow-m3-2 {
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.1), 0 2px 4px -1px rgba(37, 99, 235, 0.06);
}

.shadow-m3-3 {
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.1), 0 4px 6px -2px rgba(37, 99, 235, 0.05);
}