/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0f;
  --surface: #13131a;
  --text: #e8e6e0;
  --muted: #6b6a72;
  --accent: #b5a07a;
  --accent-dim: rgba(181, 160, 122, 0.15);
  --font: 'Georgia', serif;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  overflow: hidden;
}

/* ── Wave canvas sits behind everything ── */
#wave {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.35;
}

/* ── Navigation ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 48px;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: opacity 2s ease;
}

.nav-logo {
  font-size: 18px;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-style: italic;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.08em;
  transition: color 0.3s;
}

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

.btn-signin {
  border: 1px solid var(--muted);
  padding: 7px 18px;
  border-radius: 99px;
}

.btn-signin:hover {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}

/* ── Hero ── */
.hero {
  position: relative;
  z-index: 5;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 24px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 76px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 24px;
}

.hero p {
  font-size: clamp(15px, 2vw, 19px);
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 44px;
  font-style: italic;
}

.btn-primary {
  display: inline-block;
  text-decoration: none;
  color: var(--bg);
  background: var(--accent);
  padding: 14px 36px;
  border-radius: 99px;
  font-size: 14px;
  letter-spacing: 0.1em;
  font-family: sans-serif;
  transition: opacity 0.3s, transform 0.3s;
}

.btn-primary:hover { opacity: 0.85; transform: translateY(-2px); }

/* ── Modal overlay ── */
.hidden { display: none !important; }

#modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

#modal {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 48px 40px;
  width: 100%;
  max-width: 400px;
  position: relative;
  text-align: center;
}

#modal h2 {
  font-size: 24px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 10px;
}

#modal p {
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 32px;
}

.oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 20px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-size: 14px;
  font-family: sans-serif;
  cursor: pointer;
  margin-bottom: 12px;
  transition: background 0.2s, border-color 0.2s;
}

.oauth-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--accent);
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
}

/* ── User avatar in nav when logged in ── */
#user-display {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  font-family: sans-serif;
}

#user-display img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--accent);
}

#btn-signout {
  background: none;
  border: 1px solid var(--muted);
  color: var(--muted);
  padding: 5px 14px;
  border-radius: 99px;
  font-size: 12px;
  cursor: pointer;
  font-family: sans-serif;
  transition: all 0.2s;
}

#btn-signout:hover { border-color: var(--accent); color: var(--accent); }
