/* Global */
:root {
  --bg: #090c1a;
  --fg: #f7f8ff;
  --muted: rgba(247, 248, 255, 0.72);
  --accent: #4fe0ff;
  --accent-dark: #1fa6b7;
  --surface: rgba(17, 24, 40, 0.72);
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --max-width: 1040px;
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  height: 100%;
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--fg);
  background: var(--bg);
}

body {
  touch-action: none;
}

#app {
  height: 100%;
  font-family: "Montserrat", serif;
}

#app a {
  text-decoration: none;
  color: #fff;
}

.hero {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

h1, h2, p {
  margin: 0;
  padding: 0;
  color: white;
  text-shadow: 0 0 20px rgba(0, 0, 0, 1);
  line-height: 100%;
  user-select: none;
}

h1 {
  font-size: 80px;
  font-weight: 700;
  text-transform: uppercase;
}

h2 {
  font-size: 60px;
  font-weight: 500;
  text-transform: uppercase;
}

#canvas {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
}

.overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.12), transparent 65%),
    radial-gradient(circle at 70% 40%, rgba(79, 224, 255, 0.18), transparent 65%),
    linear-gradient(210deg, rgba(25, 45, 82, 0.68), rgba(2, 8, 18, 0.92));
  mix-blend-mode: overlay;
}

/* Header */
.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 48px);
  gap: 20px;
  pointer-events: none;
}

.brand {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 700;
}

.brand__name {
  font-size: 18px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.brand__tagline {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  pointer-events: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
  max-width: min(760px, 100%);
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(28, 34, 55, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.nav a:hover {
  background: rgba(79, 224, 255, 0.2);
  box-shadow: 0 12px 34px rgba(31, 166, 183, 0.3);
  transform: translateY(-1px);
}

.nav a:active {
  transform: translateY(0);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.32);
}

/* Buttons (unused, left for future use) */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(79, 224, 255, 0.16);
  color: rgba(255, 255, 255, 0.96);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.button:hover {
  background: rgba(79, 224, 255, 0.32);
  box-shadow: 0 14px 40px rgba(31, 166, 183, 0.28);
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.28);
}

/* Hero card layout */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 18px 60px;
  z-index: 2;
}

.hero__card {
  width: min(100%, 1040px);
  max-width: 720px;
  padding: 42px 42px 34px;
  border-radius: 26px;
  background: rgba(15, 22, 45, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(18px);
  text-align: center;
}

.hero__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hero__logo {
  width: clamp(72px, 8vw, 112px);
  height: auto;
  display: block;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
}

.hero__header h1 {
  margin: 0;
  font-size: clamp(2.8rem, 5.4vw, 4.4rem);
  letter-spacing: -0.03em;
}

.hero__subtitle {
  margin: 14px auto 28px;
  max-width: 680px;
  color: rgba(247, 248, 255, 0.75);
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  line-height: 1.5;
}

.links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin: 0 auto 24px;
}

.link-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(35, 47, 78, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(247, 248, 255, 0.92);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.link-card:hover {
  background: rgba(79, 224, 255, 0.18);
  box-shadow: 0 16px 34px rgba(31, 166, 183, 0.3);
  transform: translateY(-2px);
}

.link-card:active {
  transform: translateY(0);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.hero__note {
  margin: 0;
  color: rgba(247, 248, 255, 0.65);
  font-size: 0.92rem;
}

.hero__contact {
  margin: 10px auto 0;
  color: rgba(247, 248, 255, 0.72);
  font-size: 0.92rem;
}

.hero__contact a {
  color: rgba(79, 224, 255, 0.92);
  text-decoration: none;
  border-bottom: 1px dashed rgba(79, 224, 255, 0.65);
  transition: color 160ms ease, border-color 160ms ease;
}

.hero__contact a:hover {
  color: rgba(79, 224, 255, 1);
  border-color: rgba(79, 224, 255, 0.9);
}

.hero__footer {
  margin-top: 28px;
  color: rgba(247, 248, 255, 0.56);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

/* Dashboard */
.dashboard {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.dashboard__form {
  display: grid;
  gap: 14px;
  text-align: left;
}

.dashboard__form label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  font-size: 0.9rem;
  color: rgba(247, 248, 255, 0.84);
}

.dashboard__form input {
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(247, 248, 255, 0.95);
  font-size: 0.95rem;
}

.dashboard__form input:focus {
  outline: none;
  border-color: rgba(79, 224, 255, 0.75);
  box-shadow: 0 0 0 3px rgba(79, 224, 255, 0.15);
}

.dashboard__error {
  margin: 0;
  color: rgba(255, 85, 85, 0.95);
  font-size: 0.9rem;
}

.dashboard__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 16px;
}

.dashboard__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(20, 28, 48, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.dashboard__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
}

.dashboard__row strong {
  font-weight: 700;
}

.dashboard__row span {
  opacity: 0.75;
  font-size: 0.9rem;
}

@media (max-width: 520px) {
  .hero {
    padding: 80px 14px 50px;
  }

  .hero__card {
    padding: 30px 22px 26px;
  }

  .hero__subtitle {
    margin: 14px 0 24px;
  }

  .links {
    gap: 12px;
  }

  .link-card {
    padding: 12px 14px;
    font-size: 0.9rem;
  }

  .hero__logo {
    width: clamp(64px, 12vw, 92px);
  }
}
