:root {
  --bg-1: #070b16;
  --bg-2: #0f1830;
  --accent-1: #7c3aed;
  --accent-2: #22d3ee;
  --accent-3: #f472b6;
  --text: #eef2ff;
  --muted: #cbd5e1;
  --glass: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.16);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 20%, rgba(124, 58, 237, 0.35), transparent 30%),
    radial-gradient(circle at 80% 25%, rgba(34, 211, 238, 0.28), transparent 28%),
    radial-gradient(circle at 70% 75%, rgba(244, 114, 182, 0.2), transparent 22%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2));
  background-attachment: fixed;
}

.art-layer, .art-layer::before, .art-layer::after {
  position: fixed;
  inset: 0;
  content: "";
  pointer-events: none;
  z-index: -2;
}

.art-layer {
  background: linear-gradient(115deg, transparent 0 44%, rgba(255,255,255,0.035) 44% 46%, transparent 46% 100%),
              linear-gradient(65deg, transparent 0 48%, rgba(255,255,255,0.03) 48% 50%, transparent 50% 100%);
  filter: blur(0.5px);
}

.art-layer::before {
  background: radial-gradient(circle at 25% 60%, rgba(124, 58, 237, 0.16), transparent 18%),
              radial-gradient(circle at 60% 35%, rgba(34, 211, 238, 0.14), transparent 16%),
              radial-gradient(circle at 85% 75%, rgba(244, 114, 182, 0.12), transparent 14%);
  animation: drift 12s ease-in-out infinite alternate;
}

.art-layer::after {
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 90px),
                    repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 90px);
  mask-image: radial-gradient(circle at center, black 35%, transparent 90%);
  opacity: 0.5;
}

@keyframes drift {
  from { transform: translate3d(-20px, 10px, 0) scale(1); }
  to { transform: translate3d(30px, -10px, 0) scale(1.08); }
}

/* Bubbles for index.html */
.bubbles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.bubble {
    position: absolute;
    bottom: -100px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: rise infinite ease-in;
    box-shadow: 0 0 10px rgba(255,255,255,0.05), inset 0 0 10px rgba(255,255,255,0.05);
}

@keyframes rise {
    0% { transform: translateY(0) scale(1); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-110vh) scale(1.5); opacity: 0; }
}

.page-container { display: flex; flex-direction: column; min-height: 100vh; }

.navbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 40px; background: rgba(15, 24, 48, 0.6);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}

.nav-brand {
  font-size: 20px; font-weight: 700; letter-spacing: -0.02em; text-decoration: none;
  background: linear-gradient(90deg, #ffffff, #c4b5fd, #67e8f9);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color 0.2s ease; font-weight: 500; }
.nav-links a:hover { color: #fff; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #fff !important; padding: 8px 16px; border-radius: 8px; font-weight: 600;
  border: none; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; text-decoration: none; display: inline-block;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4); }

.wrap { position: relative; flex: 1; display: grid; place-items: center; padding: 40px 24px; }

.card {
  position: relative; width: min(760px, 100%); padding: 40px 28px;
  border: 1px solid var(--border); border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0.06));
  backdrop-filter: blur(18px); box-shadow: 0 30px 80px rgba(0,0,0,0.35); text-align: center;
}

.text-page-content { text-align: left; max-width: 800px; width: 100%; }
.text-page-content h2 { margin-top: 32px; }
.text-page-content p { margin-left: 0; max-width: 100%; }

.badge {
  display: inline-block; padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px;
}

h1 { margin: 0; font-size: clamp(32px, 6vw, 64px); line-height: 0.95; letter-spacing: -0.04em; }
.home-h1 { font-size: clamp(40px, 8vw, 72px); }
h1 span, h2 span { background: linear-gradient(90deg, #ffffff, #c4b5fd, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font-size: 32px; margin-bottom: 16px; font-weight: 600; }
p { margin: 18px auto 0; max-width: 560px; color: var(--muted); font-size: clamp(16px, 2vw, 18px); line-height: 1.6; }

.grid { margin-top: 30px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tile {
  aspect-ratio: 9/16; min-height: 250px; border-radius: 22px; border: 1px solid rgba(255,255,255,0.12);
  background: radial-gradient(circle at 25% 30%, rgba(255,255,255,0.14), transparent 25%), linear-gradient(135deg, rgba(124,58,237,0.24), rgba(34,211,238,0.18), rgba(244,114,182,0.18));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08); position: relative; overflow: hidden; transition: transform 0.3s ease, border-color 0.3s ease; cursor: pointer;
}
.tile:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.3); }
.tile:nth-child(2) { background: radial-gradient(circle at 75% 25%, rgba(255,255,255,0.12), transparent 20%), linear-gradient(135deg, rgba(34,211,238,0.24), rgba(124,58,237,0.18), rgba(255,255,255,0.06)); }
.tile:nth-child(3) { background: radial-gradient(circle at 40% 70%, rgba(255,255,255,0.12), transparent 22%), linear-gradient(135deg, rgba(244,114,182,0.22), rgba(124,58,237,0.16), rgba(34,211,238,0.18)); }
.tile iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; z-index: 10; pointer-events: auto; }
.tile::after { display: none; }

.auth-form { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; text-align: left; }
.input-group { display: flex; flex-direction: column; gap: 8px; }
.input-group label { font-size: 14px; color: var(--muted); font-weight: 500; }
.input-group input { background: rgba(0, 0, 0, 0.2); border: 1px solid rgba(255,255,255,0.1); padding: 12px 16px; border-radius: 12px; color: white; font-size: 16px; font-family: inherit; outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.input-group input:focus { border-color: var(--accent-1); box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2); }
.auth-form .btn-primary { margin-top: 8px; padding: 14px; font-size: 16px; text-align: center; }
.form-footer { margin-top: 24px; font-size: 14px; color: var(--muted); }
.form-footer a { color: var(--accent-2); text-decoration: none; }
.form-footer a:hover { text-decoration: underline; }
.form-error { display: none; color: #f87171; background: rgba(248, 113, 113, 0.1); border: 1px solid rgba(248, 113, 113, 0.2); padding: 12px; border-radius: 8px; font-size: 14px; margin-top: 10px; text-align: center; }

.site-footer { padding: 32px 40px; background: rgba(7, 11, 22, 0.8); border-top: 1px solid var(--border); display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; margin-top: auto; }
.footer-col h4 { color: #fff; margin-top: 0; margin-bottom: 16px; font-size: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--accent-2); }
.footer-bottom { grid-column: 1 / -1; text-align: center; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.05); font-size: 14px; color: rgba(255,255,255,0.4); display: flex; justify-content: space-between; align-items: center; }

@media (max-width: 720px) {
  .card { padding: 30px 18px; }
  .grid { grid-template-columns: 1fr; }
  .tile { min-height: 110px; }
  .navbar { padding: 16px 20px; flex-direction: column; gap: 16px; }
  .nav-links { flex-wrap: wrap; justify-content: center; }
  .site-footer { padding: 32px 20px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center;}
}
