/* Variables */
:root {
  --color-background: #0f1113;
  --color-white: #ffffff;
  --color-grey: #cccccc;
  --color-accent: #ff6a00;
  --color-accent-translucent: rgba(255, 106, 0, 0.4);
  --color-border: rgba(255, 255, 255, 0.08);
  --font-family-mono: "Roboto Mono", monospace;
  --border-radius: 4px;
}

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

/* Base */
body {
  font-family: var(--font-family-mono);
  min-height: 100vh;
  background-color: var(--color-background);
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.45;
}

/* Canvas */
#gridCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Layout */
main {
  position: relative;
  z-index: 1;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.4rem 3.2rem;
}

.content-wrapper {
  max-width: 52rem;
  width: 100%;
}

/* Logo */
.site-logo {
  width: 45px;
  height: auto;
  display: block;
  opacity: 0;
  position: absolute;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
}

.logo-fade-in.visible {
  animation: fadeIn 2.8s cubic-bezier(0.16, 1, 0.6, 1) forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.logo-pixel {
  fill: var(--color-white);
  transition: fill 0.18s ease-out;
}

.logo-pixel.colored {
  fill: var(--color-accent);
}

.logo-eye {
  fill: #000000;
}

.logo-eye.blink {
  fill: var(--color-accent);
}

/* Typography */
h1 {
  font-size: clamp(2.4rem, 8vw, 6.4rem);
  font-weight: 200;
  letter-spacing: 0.32em;
  padding-left: 0.32em;
  line-height: 1;
  margin-bottom: 1.6rem;
  text-transform: uppercase;
}

.subheading {
  font-size: 0.9rem;
  color: rgba(204, 204, 204, 0.95);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.6;
  max-width: 94ch;
  margin: 0 auto 2rem;
}

.coming-soon {
  font-size: 1.4rem;
  color: rgba(204, 204, 204, 0.6);
  font-weight: 300;
  letter-spacing: 0.06em;
  margin-bottom: 3rem;
}

/* Email form */
.notify-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin: 0 auto 1rem;
  width: 18rem;
}

input[type="email"] {
  height: 3.5rem;
  padding: 0 1.5rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
  background: var(--color-background);
  color: var(--color-white);
  font-family: var(--font-family-mono);
  font-size: 0.9rem;
  width: 100%;
  outline: none;
  transition: border-color 0.2s ease;
  text-align: center;
}

input[type="email"]::placeholder {
  color: rgba(204, 204, 204, 0.4);
  text-align: center;
}

input[type="email"]:focus {
  border-color: var(--color-accent);
}

/* Buttons */
.btn {
  position: relative;
  height: 3.5rem;
  padding: 0 2.5rem;
  border-radius: var(--border-radius);
  font-family: var(--font-family-mono);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none;
  width: 100%;
}

.btn-secondary {
  background: var(--color-accent-translucent);
  color: var(--color-white);
  border: none;
  overflow: hidden;
  transition: transform 0.4s ease;
}

.btn-secondary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  transform: scaleX(0);
  transform-origin: 0 50%;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--color-accent);
  transition: all 0.475s;
  z-index: -1;
}

.btn-secondary:hover {
  transform: scale(1.02);
}

.btn-secondary:hover::before {
  transform: scaleX(1);
}

.btn-secondary:active {
  transform: scale(0.92);
}

/* Feedback */
.feedback {
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  min-height: 1.4em;
}

.feedback.success {
  color: var(--color-accent);
}
.feedback.error {
  color: #ef4444;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-element {
  opacity: 0;
  transform: translateY(60px);
}

.fade-in-element.visible {
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-in-element:nth-child(1) {
  animation-delay: 0.1s;
}
.fade-in-element:nth-child(2) {
  animation-delay: 0.2s;
}
.fade-in-element:nth-child(3) {
  animation-delay: 0.3s;
}

.notify-form .fade-in-element:nth-child(1) {
  animation-delay: 0.4s;
}
.notify-form .fade-in-element:nth-child(2) {
  animation-delay: 0.65s;
}

/* Utilities */
.hidden {
  display: none !important;
}

/* Site footer (landing page) */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  text-align: center;
}

.site-footer.fade-in-element {
  transform: none;
}

.site-footer.fade-in-element.visible {
  animation: fadeIn 2.8s cubic-bezier(0.16, 1, 0.6, 1) forwards;
}

.site-footer a {
  font-size: 0.75rem;
  color: rgba(204, 204, 204, 0.35);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--color-grey);
}

/* Legal page */
.legal-page {
  display: block;
}

.legal-layout {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1.4rem 4rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3.5rem;
  padding-top: 0.5rem;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: rgba(204, 204, 204, 0.45);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.legal-back:hover {
  color: var(--color-grey);
}

.legal-logo-link {
  display: block;
  color: var(--color-accent);
  line-height: 0;
}

.legal-logo {
  width: 28px;
  height: auto;
}

.legal-content {
  flex: 1;
}

.legal-content h1 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding-left: 0;
  margin-bottom: 2.5rem;
  color: var(--color-white);
}

.legal-content h2 {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 1.25rem;
}

.legal-content h3 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-grey);
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.legal-content p {
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(204, 204, 204, 0.75);
  line-height: 1.8;
}

.legal-content a {
  color: var(--color-accent);
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

.legal-block {
  margin: 1rem 0;
}

.legal-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2.5rem 0;
}
