/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--white);
    background: var(--deep-navy);
    overflow-x: hidden;
    position: relative;
}

/* Liquid Glass Background */
#liquid-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-background);
    opacity: 0.35;
}

.gradient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: calc(var(--z-background) + 1);
    pointer-events: none;
    background: radial-gradient(ellipse 80% 50% at 50% -20%,
            rgba(13, 148, 136, 0.15),
            transparent 50%),
        radial-gradient(ellipse 60% 50% at 80% 50%,
            rgba(13, 148, 136, 0.1),
            transparent 50%);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
    color: var(--white);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.25rem);
    line-height: 1.1;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
}

h3 {
    font-size: var(--text-lg);
    font-family: var(--font-sans);
    font-weight: 600;
}

p {
    color: var(--muted-text);
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-base);
}

.p-white {
    color: white;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.container-bg {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    position: relative;
    overflow: hidden;
}

/* Section Spacing */
.section {
    padding: clamp(4rem, 10vw, 8rem) 0;
    position: relative;
}

/* Labels */
.label,
.section-label {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--quilven-teal);
    margin-bottom: var(--space-4);
}

/* Italic Teal Accent */
.italic-teal {
    font-style: italic;
    color: var(--quilven-teal);
}

/* Glass Card Base */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    position: relative;
    overflow: hidden;
    transition:
            transform 250ms ease,
            box-shadow 250ms ease,
            border-color 250ms ease;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(13, 148, 136, 0.5) 50%,
            transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.glass-card:hover::before {
    opacity: 1;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(13, 148, 136, 0.3);
    transform: translateY(-2px);
    box-shadow:
        0 8px 32px rgba(13, 148, 136, 0.1),
        0 0 0 1px rgba(13, 148, 136, 0.1);
}

/* Section background overrides */
.section-solid {
    background: #0b1620;
    /* darker navy */
    position: relative;
    z-index: 2;
}

.section-soft {
    background: #0f1e2a;
    /* slight variation */
    position: relative;
    z-index: 2;
}

.section-clean {
    background: #0c1822;
    position: relative;
    z-index: 2;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    white-space: nowrap;
}

.btn-large {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
}

.btn-primary {
    background: var(--quilven-teal);
    color: var(--white);
    box-shadow:
        0 4px 16px rgba(13, 148, 136, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    background: var(--light-teal);
    transform: translateY(-1px);
    box-shadow:
        0 8px 24px rgba(13, 148, 136, 0.3),
        0 0 0 1px rgba(13, 148, 136, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(13, 148, 136, 0.3);
    box-shadow: 0 0 0 1px rgba(13, 148, 136, 0.2);
}

/* Pulse Dot */
.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
    position: relative;
    margin-right: var(--space-2);
}

.pulse-dot::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: inherit;
    border-radius: inherit;
    opacity: 0.5;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0;
        transform: scale(1.5);
    }
}

/* Selection */
::selection {
    background: var(--quilven-teal);
    color: var(--white);
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--deep-navy);
}

::-webkit-scrollbar-thumb {
    background: rgba(13, 148, 136, 0.3);
    border-radius: 6px;
    border: 2px solid var(--deep-navy);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(13, 148, 136, 0.5);
}