@import url('./theme.css');

/* Modern CSS Reset (Preflight-compatible) */
*,
::before,
::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: currentColor;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: var(--font-primary);
}

html.scroll-smooth {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    line-height: inherit;
    font-family: var(--font-primary);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
    margin: 0;
}

p {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: inherit;
}

img, svg {
    display: block;
    vertical-align: middle;
    max-width: 100%;
    height: auto;
}

/* Brand & Media Assets */
.brand-logo {
    max-width: 400px;
    width: 100%;
    height: auto;
}

.brand-logo-sm {
    max-width: 260px;
    width: 100%;
    height: auto;
}

.feature-icon {
    max-width: 150px;
    height: auto;
    filter: drop-shadow(var(--shadow-icon-cyan));
    transition: transform var(--transition-smooth), filter var(--transition-smooth);
}

.border-gradient:hover .feature-icon {
    transform: scale(1.03);
    filter: drop-shadow(0 0 22px rgba(0, 216, 255, 0.45));
}

/* Custom Neon Gradients and Glows */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-custom {
    background:
        linear-gradient(135deg, rgba(0, 216, 255, 0.06) 0%, rgba(255, 0, 106, 0.06) 100%),
        var(--color-bg-surface);
}

.border-gradient {
    position: relative;
    background: var(--color-bg-surface);
    border-radius: var(--radius-card);
    isolation: isolate;
}

.border-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: var(--gradient-border);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.28;
    transition: opacity var(--transition-smooth);
    pointer-events: none;
}

.border-gradient:hover::before {
    opacity: 0.55;
}

/* Interactive Buttons */
.glow-button {
    position: relative;
    background: var(--gradient-primary);
    z-index: 1;
}

.glow-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    z-index: -1;
    filter: blur(15px);
    opacity: 0.5;
    transition: opacity var(--transition-smooth);
    border-radius: inherit;
}

.glow-button:hover::before {
    opacity: 1;
}

.outline-button {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 216, 255, 0.35);
    transition: all var(--transition-smooth);
}

.outline-button:hover {
    background: rgba(0, 216, 255, 0.1);
    border-color: var(--color-accent-cyan);
    box-shadow: 0 0 20px rgba(0, 216, 255, 0.2);
    transform: scale(1.03);
}

/* Badges & Pills */
.location-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    color: var(--color-text-secondary);
}

.status-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: var(--color-accent-cyan);
    box-shadow: 0 0 8px var(--color-accent-cyan);
}

.portal-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: rgba(255, 0, 106, 0.12);
    border: 1px solid rgba(255, 0, 106, 0.35);
    color: #ff66a3;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Ambient Background Container & LED Dot Matrix */
.bg-effects-container {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -2;
}

.led-dot-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(0, 216, 255, 0.2) 1px, transparent 1px);
    background-size: 24px 24px;
    -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 28%, #000 20%, transparent 80%);
    mask-image: radial-gradient(ellipse 75% 60% at 50% 28%, #000 20%, transparent 80%);
    opacity: 0.55;
}

.ambient-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--glow-ambient-cyan);
    top: -200px;
    left: -200px;
    border-radius: 50%;
}

.ambient-glow-2 {
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--glow-ambient-pink);
    bottom: -200px;
    right: -200px;
    border-radius: 50%;
}

/* Legal Page Typography */
.legal-content h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.legal-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.legal-content p,
.legal-content ul {
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.legal-content ul {
    padding-left: 1.25rem;
    list-style-type: disc;
}

.legal-content a {
    color: var(--color-accent-cyan);
    transition: opacity var(--transition-smooth);
}

.legal-content a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Layout & Utility Classes (100% Local Replacement for Tailwind CDN) */
.antialiased {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.pointer-events-none { pointer-events: none; }
.relative { position: relative; }
.z-10 { z-index: 10; }

.min-h-screen { min-height: 100vh; }
.h-full { height: 100%; }
.h-6 { height: 1.5rem; }
.h-5 { height: 1.25rem; }
.h-4 { height: 1rem; }
.h-1 { height: 0.25rem; }

.w-full { width: 100%; }
.w-auto { width: auto; }
.w-20 { width: 5rem; }
.w-6 { width: 1.5rem; }
.w-5 { width: 1.25rem; }
.w-4 { width: 1rem; }

.max-w-md { max-width: 28rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-7xl { max-width: 80rem; }

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.inline-block { display: inline-block; }
.grid { display: grid; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-grow { flex-grow: 1; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.mx-auto { margin-left: auto; margin-right: auto; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-24 { margin-bottom: 6rem; }

.p-8 { padding: 2rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-10 { padding-top: 2.5rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-20 { padding-bottom: 5rem; }

.rounded-full { border-radius: 9999px; }

.bg-cyan-400 { background-color: var(--color-accent-cyan-tw); }
.bg-pink-500 { background-color: var(--color-accent-pink-tw); }

.text-center { text-align: center; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }

.font-light { font-weight: 300; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.tracking-tight { letter-spacing: -0.025em; }
.tracking-wide { letter-spacing: 0.025em; }
.leading-relaxed { line-height: 1.625; }

.text-white { color: var(--color-text-primary); }
.text-gray-300 { color: var(--color-text-secondary); }
.text-gray-400 { color: var(--color-text-muted); }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: var(--color-text-dim); }
.text-cyan-400 { color: var(--color-accent-cyan-tw); }
.text-pink-500 { color: var(--color-accent-pink-tw); }

.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.transition-colors {
    transition-property: color, background-color, border-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 200ms;
}

.duration-300 { transition-duration: 300ms; }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:text-white:hover { color: var(--color-text-primary); }
.hover\:text-cyan-400:hover { color: var(--color-accent-cyan-tw); }
.hover\:text-pink-500:hover { color: var(--color-accent-pink-tw); }

/* Responsive Breakpoints */
@media (min-width: 640px) {
    .sm\:w-auto { width: auto; }
    .sm\:flex-row { flex-direction: row; }
}

@media (min-width: 768px) {
    .md\:px-12 { padding-left: 3rem; padding-right: 3rem; }
    .md\:p-12 { padding: 3rem; }
    .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
    .md\:text-5xl { font-size: 3rem; line-height: 1; }
    .md\:text-7xl { font-size: 4.5rem; line-height: 1; }
}

@media (min-width: 1024px) {
    .lg\:px-24 { padding-left: 6rem; padding-right: 6rem; }
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
