@font-face {
    font-family: 'TeX Gyre Heros';
    src: url('/fonts/texgyreheros-regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TeX Gyre Heros';
    src: url('/fonts/texgyreheros-bold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TeX Gyre Pagella';
    src: url('/fonts/texgyrepagella-regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TeX Gyre Pagella';
    src: url('/fonts/texgyrepagella-bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

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

body {
    font-family: 'TeX Gyre Pagella', Georgia, serif;
    background: #0d1419;
    color: #d4dae0;
    line-height: 1.7;
}

/* Header / Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(13, 20, 25, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s ease;
}

header nav {
    font-family: 'TeX Gyre Heros', Helvetica, Arial, sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 16px 24px;
    font-size: 0.9rem;
}

header nav a {
    color: #b0b8c0;
    margin-right: 24px;
    text-decoration: none;
    transition: color 0.2s;
}

header nav a:hover {
    color: #ffffff;
}

.nav-login {
    float: right;
}

.nav-login a {
    margin-right: 0;
}

/* Hero Section */
.hero {
    min-height: 75vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 24px;
    padding-top: 114px;
    position: relative;
    overflow: hidden;
    background: #0d1419;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 60%);
    pointer-events: none;
}

.geometric-accent {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 300px;
    height: 300px;
    pointer-events: none;
}

.geometric-accent::before {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 250px;
    height: 250px;
    border: 1px solid rgba(255,255,255,0.04);
    transform: rotate(45deg);
}

.geometric-accent::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 180px;
    height: 180px;
    border: 1px solid rgba(255,255,255,0.03);
    transform: rotate(45deg);
}

.glow {
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(30,60,90,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, #0d1419);
    pointer-events: none;
}

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

.hero h1 {
    font-family: 'TeX Gyre Heros', Helvetica, Arial, sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    letter-spacing: 0.15em;
    color: #ffffff;
    margin-bottom: 16px;
}

.hero .subtitle {
    font-family: 'TeX Gyre Heros', Helvetica, Arial, sans-serif;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #9aa4ae;
    margin-bottom: 32px;
}

.hero .description {
    text-align: center;
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    font-weight: 300;
    color: #b0b8c0;
    max-width: 550px;
    line-height: 1.6;
}

/* Main content */
main {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.content-section {
    padding: 80px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.content-section:last-child {
    border-bottom: none;
}

h1 {
    font-family: 'TeX Gyre Heros', Helvetica, Arial, sans-serif;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

h2 {
    font-family: 'TeX Gyre Heros', Helvetica, Arial, sans-serif;
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

h3 {
    font-family: 'TeX Gyre Heros', Helvetica, Arial, sans-serif;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

p {
    margin-bottom: 12px;
}

a {
    color: #b0b8c0;
    transition: color 0.2s;
}

a:hover {
    color: #ffffff;
}

/* Form */
form {
    max-width: 500px;
}

form label {
    display: block;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #b0b8c0;
}

form input, form textarea {
    width: 100%;
    padding: 12px 14px;
    margin-top: 8px;
    font-family: 'TeX Gyre Pagella', Georgia, serif;
    font-size: 1rem;
    background: #141c22;
    border: 1px solid rgba(255,255,255,0.12);
    color: #d4dae0;
    transition: border-color 0.2s;
}

form input:focus, form textarea:focus {
    outline: none;
    border-color: rgba(255,255,255,0.3);
}

form textarea {
    min-height: 140px;
    resize: vertical;
}

form button {
    font-family: 'TeX Gyre Heros', Helvetica, Arial, sans-serif;
    padding: 14px 32px;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.25);
    color: #ffffff;
    transition: all 0.2s;
}

form button:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.4);
}

/* Footer */
footer {
    max-width: 900px;
    margin: 60px auto 0;
    padding: 40px 24px 60px;
    text-align: center;
    color: #9aa4ae;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

footer p {
    margin-bottom: 8px;
}

footer a {
    color: #9aa4ae;
}

footer a:hover {
    color: #ffffff;
}

/* Page content (for subpages like privacy, terms, login) */
.page-content {
    padding-top: 100px;
    min-height: 60vh;
}

/* Login page */
.login-container {
    max-width: 400px;
    margin: 0 auto;
}

.login-container h1 {
    margin-bottom: 32px;
}

/* Grid animation */
.grid-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

#gridCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Lists */
ul, ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

li {
    margin-bottom: 8px;
}
