/* Base Variables */
:root {
    /* Colors */
    --bg-color: #ffffff;
    --bg-secondary: #f8fafc;
    /* Slate-50 */
    --text-main: #0f172a;
    /* Slate-900 */
    --text-muted: #64748b;
    /* Slate-500 */
    --text-light: #94a3b8;
    /* Slate-400 */

    --accent-color: #000000;
    --accent-hover: #1e293b;

    --gradient-primary: linear-gradient(135deg, #020617 0%, #1e3a8a 100%);
    --gradient-glow: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);

    --border-color: #e2e8f0;

    /* Layout */
    --container-width: 1280px;
    --header-height: 90px;

    /* Typography */
    --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Footer Vars */
    --footer-bg: #020617;
    /* Slate-950 */
    --footer-text: #94a3b8;
    --footer-heading: #f8fafc;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 4.5rem;
}

h2 {
    font-size: 3.5rem;
}

h3 {
    font-size: 2.25rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.5rem;
    }
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 1.125rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utility Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.text-gradient {
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 2.8rem;
    background-color: var(--text-main);
    color: white;
    font-weight: 600;
    border-radius: 9999px;
    border: 2px solid var(--text-main);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-glow);
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
    color: white;
}

.btn:hover::after {
    opacity: 1;
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    z-index: 1;
}

.btn-secondary:hover {
    border-color: var(--text-main);
    background-color: var(--text-main);
    color: white;
}

/* Layout Sections */
.section {
    padding: 8rem 0;
    position: relative;
}

.bg-light {
    background-color: var(--bg-secondary);
    position: relative;
}

/* Add subtle texture to bg-light */
.bg-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
    pointer-events: none;
}

.text-center {
    text-align: center;
}

/* Header */
header {
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

header .container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    position: relative;
}

.logo::after {
    content: '.';
    color: #1e3a8a;
    /* Accent dot (Dark Blue) */
}

.main-nav ul {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.main-nav a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--text-main);
    transition: width 0.3s ease;
}

.main-nav a:hover {
    color: var(--text-main);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav .btn {
    padding: 0.75rem 1.75rem;
    font-size: 0.9rem;
    margin-left: 1rem;
}

/* Hero Special Effects */
.hero-section {
    position: relative;
    overflow: hidden;
}

/* Animated Blob Background */
.hero-section::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(30, 58, 138, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    top: -200px;
    right: -200px;
    border-radius: 50%;
    z-index: 0;
    animation: pulse 10s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.hero-image-wrapper {
    position: relative;
    z-index: 1;
}

.hero-image-wrapper img {
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Cards */
.card {
    background: white;
    padding: 3rem;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    height: 100%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

/* Gradient Top Border on hover */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-glow);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.card:hover::before {
    transform: scaleX(1);
}

.card h3 {
    margin-top: auto;
    /* Push down if needed */
    margin-bottom: 1rem;
}

/* Grid System */
.grid {
    display: grid;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.grid-2 {
    grid-template-columns: 1fr 1fr;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Animations - Entry */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

main>section {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Feature Items */
.feature-item {
    transition: var(--transition);
    cursor: default;
}

.feature-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-lg) !important;
}

/* Lists in Content */
ul li {
    position: relative;
    margin-bottom: 0.5rem;
}

/* Footer - From previous step, keeping the premium look */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
}

/* Footer CTA */
.footer-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 6rem;
}

.footer-cta h2 {
    color: var(--footer-heading);
    font-size: 3.5rem;
    max-width: 700px;
    margin-bottom: 0;
}

.footer-cta h2 .text-gradient {
    /* Lighter gradient for dark background */
    background: linear-gradient(135deg, #fff 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-white {
    background: white;
    color: black;
    border-color: white;
    font-size: 1.25rem;
    padding: 1.25rem 3rem;
}

.btn-white:hover {
    background: transparent;
    color: white;
    border-color: white;
}

/* Footer Grid */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
}

.footer-logo {
    color: white;
    font-size: 1.5rem;
    font-weight: 900;
    display: block;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.footer-desc {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 300px;
}

.site-footer h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--footer-text);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

/* Socials */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background: white;
    color: black;
    transform: translateY(-3px);
}

/* Footer Bottom */
.footer-bottom {
    margin-top: 6rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.legal-links {
    display: flex;
    gap: 2rem;
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .footer-cta h2 {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.5rem;
    }
}

/* Form inputs styling match */
input,
textarea {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--bg-secondary);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #1e3a8a;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.1);
}

/* Epic Feature Cards */
.feature-item-epic {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-item-epic:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #1e3a8a;
}

.feature-item-epic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #1e3a8a, #3b82f6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-item-epic:hover::before {
    transform: scaleX(1);
}

.feature-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e3a8a;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.feature-item-epic:hover .feature-icon-circle {
    background: #1e3a8a;
    color: white;
}

/* =========================================
   Responsive & Mobile Menu Styles
   ========================================= */

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

/* Tablet & Mobile Tweaks */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    /* Hero text adjust */
    .hero-content h1 {
        font-size: 3.5rem !important;
    }
}

@media (max-width: 768px) {

    /* Global Layout */
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr !important;
        gap: 2.5rem;
    }

    .section {
        padding: 4rem 0;
    }

    /* Typography Overrides */
    h1 {
        font-size: 2.8rem !important;
        margin-bottom: 1rem;
    }

    h2 {
        font-size: 2.2rem !important;
    }

    p {
        font-size: 1.05rem;
    }

    /* Fix Card Headings on Mobile */
    .card h3 {
        font-size: 1.5rem !important;
        overflow-wrap: break-word;
    }

    /* Header */
    header .container {
        padding: 0 1.5rem;
    }

    .mobile-menu-toggle {
        display: block;
    }

    /* Mobile Navigation */
    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid var(--border-color);
        height: 0;
        overflow: hidden;
        transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .main-nav.active {
        height: auto;
        /* Fallback */
        height: calc(100vh - var(--header-height));
        overflow-y: auto;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 2rem 1.5rem 4rem;
        gap: 2rem;
        align-items: center;
        text-align: center;
    }

    .main-nav a {
        font-size: 1.25rem;
        display: block;
        padding: 0.5rem;
    }

    .main-nav .btn {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }

    /* Hero */
    .hero-section {
        padding-top: 3rem !important;
        padding-bottom: 4rem !important;
        text-align: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-image-wrapper {
        order: -1;
        margin-bottom: 2rem;
        max-width: 100%;
    }

    .hero-image-wrapper img {
        transform: rotate(0deg);
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-cta {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-cta h2 {
        font-size: 2.2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .legal-links {
        justify-content: center;
    }
}

/* Responsive Grid Spans */
@media (min-width: 769px) {
    .col-span-2-md {
        grid-column: span 2;
    }
}

/* Responsive Grid Spans */
@media (min-width: 768px) {
    .col-span-2-md {
        grid-column: span 2;
    }

    .col-span-3-md {
        grid-column: span 3;
    }
}

@media (max-width: 768px) {
    .feature-item-epic {
        align-items: center;
        text-align: center;
    }
}