:root {
  --bg: #0f1019;
  --bg-2: #161827;
  --panel: #1c1f38;
  --border: #2a2e4a;
  --text: #eef0ff;
  --muted: #a7acc4;
  --accent: #61e6ff;
  --violet: #8b6bff;
  --danger: #ff5c7a;
  --success: #3ddc97;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 70% -10%, #1e2142 0%, var(--bg) 55%) no-repeat var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem 2rem;
  background: rgba(15, 16, 25, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.brand { display: flex; align-items: center; gap: 0.6rem; margin-right: auto; }
.brand-mark { width: 30px; height: 30px; }
.brand-name { font-weight: 800; font-size: 1.2rem; letter-spacing: 0.5px; }

.site-nav { display: flex; gap: 1.2rem; }
.site-nav a { color: var(--muted); font-size: 0.95rem; }
.site-nav a:hover { color: var(--text); text-decoration: none; }

.account-area { display: flex; gap: 0.6rem; align-items: center; }

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 5.5rem 2rem 4rem;
}
.hero-cube { width: 120px; height: 120px; filter: drop-shadow(0 12px 40px rgba(97, 230, 255, 0.25)); }
.hero-title { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; margin: 1.2rem 0 0.6rem; line-height: 1.1; }
.hero-sub { max-width: 620px; color: var(--muted); font-size: 1.1rem; }
.hero-actions { display: flex; gap: 1rem; margin-top: 1.8rem; flex-wrap: wrap; justify-content: center; }
.accent { color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.7rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  background: transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--violet)); color: #0b0c16; }
.btn-primary:hover { box-shadow: 0 8px 24px rgba(97, 230, 255, 0.35); }
.btn-outline { border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--violet); }
.btn-small { padding: 0.45rem 0.9rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

.section { padding: 4rem 2rem; max-width: 1080px; margin: 0 auto; }
.section-alt { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: center; }
.section-title { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800; text-align: center; margin-bottom: 2rem; }
.section-body { text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto 1.5rem; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}
.feature-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem;
  transition: border-color 0.15s ease;
}
.feature-card:hover { border-color: var(--violet); }
.feature-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; color: var(--accent); }
.feature-card p { color: var(--muted); font-size: 0.92rem; }

.notify-form { text-align: center; margin-top: 1.5rem; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5, 6, 12, 0.7); }
.modal-panel {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.4rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}
.modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.9rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
}
.modal-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.2rem; }
.tab {
  flex: 1;
  padding: 0.5rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
}
.tab.active { background: linear-gradient(135deg, var(--accent), var(--violet)); color: #0b0c16; border-color: transparent; }

.auth-form label { display: block; font-size: 0.85rem; color: var(--muted); margin: 0.8rem 0 0.25rem; }
.auth-form input {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text);
  font-size: 0.95rem;
}
.auth-form input:focus { outline: none; border-color: var(--violet); }
.auth-form .btn { margin-top: 1rem; }

.form-error { color: var(--danger); font-size: 0.85rem; margin-top: 0.6rem; }

.hidden { display: none !important; }

.banner {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}
.banner-actions { display: flex; gap: 0.5rem; align-items: center; }
.role-badge { font-size: 0.72rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 999px; margin-left: 0.4rem; vertical-align: middle; }
.user-role { background: #223; color: var(--accent); border: 1px solid var(--accent); }
.owner-role { background: rgba(255, 92, 122, 0.15); color: var(--danger); border: 1px solid var(--danger); text-transform: uppercase; }

@media (max-width: 640px) {
  .site-header { padding: 0.8rem 1rem; }
  .site-nav { display: none; }
  .hero { padding: 3.5rem 1.2rem 3rem; }
}