:root {
    --background: #ffffff;
    --foreground: #09090b;
    --muted: #f4f4f5;
    --muted-foreground: #71717a;
    --border: #e4e4e7;
    --accent: #18181b;

    --neutral-50: #fafafa;
    --neutral-100: #f4f4f5;
    --neutral-200: #e4e4e7;
    --neutral-300: #d4d4d8;
    --neutral-400: #a1a1aa;
    --neutral-500: #71717a;
    --neutral-600: #52525b;
    --neutral-700: #3f3f46;
    --neutral-800: #27272a;
    --neutral-900: #18181b;
    --neutral-950: #09090b;
    --white: #ffffff;

    /* High contrast premium values */
    --gold: #d4af37;

    --container-max: 80rem;

    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-md: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--neutral-700);
    background-color: var(--background);
    overflow-x: hidden;
}

::selection {
    background-color: var(--foreground);
    color: var(--background);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', 'Inter', system-ui;
    /* A more distinctive display font */
    letter-spacing: -0.04em;
    font-weight: 600;
    color: var(--foreground);
    line-height: 1.1;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-md);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: 1.5rem;
}

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

.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;
}

.gap-16 {
    gap: 4rem;
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .md\:flex-row {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.grid {
    display: grid;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-md);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 36px;
    width: auto;
    mix-blend-mode: multiply;
    transition: transform 0.3s ease;
}

.nav-logo:hover img {
    transform: scale(1.05);
}

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

.nav-links a.nav-item {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--neutral-600);
    position: relative;
}

.nav-links a.nav-item::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--foreground);
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-links a.nav-item:hover {
    color: var(--foreground);
}

.nav-links a.nav-item:hover::after {
    width: 100%;
}

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

/* Buttons */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    /* Pill shape for premium feel */
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition-slow);
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    z-index: -1;
    transition: transform var(--transition-slow);
}

.btn-primary {
    background: var(--foreground);
    color: var(--background);
    border: none;
    box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.5);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -10px rgba(0, 0, 0, 0.6);
}

.btn-primary::before {
    background: rgba(255, 255, 255, 0.1);
    transform: scaleX(0);
    transform-origin: right;
}

.btn-primary:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-secondary {
    background: transparent;
    color: var(--foreground);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--neutral-50);
    border-color: var(--neutral-300);
    transform: translateY(-2px);
}

.btn-dark-secondary {
    background: transparent;
    color: var(--background);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-dark-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
}

.w-full {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--neutral-950);
    color: var(--white);
    padding-top: 8rem;
    padding-bottom: 6rem;
    overflow: hidden;
}

/* Subtle glow blob */
.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60vw;
    height: 60vw;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 56rem;
}

.eyebrow {
    font-family: ui-monospace, SFMono-Regular, monospace;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    color: var(--neutral-400);
    margin-bottom: 2rem;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
}

.hero-heading {
    font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: -0.05em;
    line-height: 1.05;
    margin-bottom: 2rem;
    color: var(--white);
    background: linear-gradient(135deg, #fff 30%, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subhead {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--neutral-400);
    max-width: 42rem;
    margin-inline: auto;
    margin-bottom: 3rem;
    line-height: 1.6;
}

/* Base Sections */
.section {
    padding-block: 8rem;
    position: relative;
}

@media (min-width: 768px) {
    .section {
        padding-block: 12rem;
    }
}

.bg-light {
    background-color: var(--background);
}

.bg-dark {
    background-color: var(--neutral-900);
    color: var(--white);
}

.bg-subtle {
    background-color: var(--neutral-50);
}

.section-head {
    max-width: 48rem;
    margin-bottom: 5rem;
}

.section-head .eyebrow {
    color: var(--neutral-500);
    border-color: var(--border);
    background: var(--white);
}

.bg-dark .section-head .eyebrow {
    color: var(--neutral-400);
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.text-4xl {
    font-size: clamp(2rem, 4vw, 3rem);
}

h2.text-4xl {
    margin-bottom: 1.5rem;
}

p.lead {
    font-size: 1.25rem;
    color: var(--neutral-600);
}

.bg-dark p.lead {
    color: var(--neutral-400);
}

/* Custom Cards */
.modern-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 3rem 2.5rem;
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--foreground);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-slow);
}

.modern-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 40px 40px -20px rgba(0, 0, 0, 0.05);
}

.modern-card:hover::before {
    transform: scaleX(1);
}

.dark-card {
    background: var(--neutral-950);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    padding: 3rem 2.5rem;
    transition: var(--transition-slow);
}

.dark-card:hover {
    background: var(--neutral-900);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.dark-card h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.dark-card p {
    color: var(--neutral-400);
    font-size: 1rem;
}

/* Contact Form */
.contact-wrapper {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 2rem;
    padding: 4rem;
    max-width: 48rem;
    margin-inline: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.05);
}

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

.form-control {
    width: 100%;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--neutral-200);
    border-radius: 0.75rem;
    background: var(--neutral-50);
    font-family: inherit;
    font-size: 1rem;
    color: var(--foreground);
    transition: var(--transition-md);
}

.form-control:focus {
    outline: none;
    border-color: var(--foreground);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(9, 9, 11, 0.05);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
footer {
    background: var(--neutral-950);
    color: var(--neutral-500);
    padding-block: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.875rem;
}

.footer-link {
    color: var(--neutral-400);
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--white);
}

/* Toast Notification for form */
#toast {
    visibility: hidden;
    min-width: 250px;
    background-color: var(--foreground);
    color: var(--background);
    text-align: center;
    border-radius: 9999px;
    padding: 1rem 2rem;
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%) translateY(20px);
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.5s, transform 0.5s;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

#toast.show {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}