/* ===== RESET & BASE ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #0d1821;
  color: #fff;
  font-family: "Source Code Pro", monospace;
  min-height: 100vh;
  line-height: 1.6;
}

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0;
  right: 0;
  padding: 20px 30px;
  z-index: 100;
}

p {
  color: #d0d0d0;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
}

h1 {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-size: 44px;
  color: #00fefc;
  margin-bottom: 24px;
  text-transform: uppercase;
}


.menu-icon {
  color: #00fefc;
  font-size: 24px;
  cursor: pointer;
  transition: color 0.2s;
}

.menu-icon:hover {
  color: #fff;
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100vh;
  background: #0d1821;
  border-left: 2px dashed #616161;
  z-index: 200;
  transition: right 0.3s ease;
  padding: 80px 40px 40px;
}

.mobile-menu.open {
  right: 0;
}

.menu-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #00fefc;
  font-size: 32px;
  cursor: pointer;
  transition: color 0.2s;
}

.menu-close:hover {
  color: #fff;
}

.mobile-menu ul {
  list-style: none;
}

.mobile-menu li {
  margin-bottom: 24px;
}

.mobile-menu li::before {
  display: none;
}

.mobile-menu a {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  text-decoration: none;
  letter-spacing: 2px;
  transition: color 0.2s;
  display: block;
  padding: 8px 0;
  border-bottom: 1px dashed transparent;
}

.mobile-menu a:hover {
  color: #00fefc;
  border-bottom-color: #00fefc;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* ===== FOOTER ===== */
footer {
  padding: 20px 40px;
  font-size: 10px;
  color: #616161;
  text-align: center;
}

footer a {
  color: #616161;
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover {
  color: #00fefc;
}

/* ===== ASCII BACKGROUND ELEMENTS ===== */
.ski-background,
.ascii-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.tree,
.box {
  position: absolute;
  font-family: "Source Code Pro", monospace;
  font-size: 10px;
  line-height: 1;
  white-space: pre;
  color: #616161;
  opacity: 0.4;
}

.tree {
  color: #f0ffff;
}

.box {
  font-size: 10px;
  color: #f0ffff;
  transform: rotate(90deg);
}

.question-mark {
  position: absolute;
  color: #f0ffff;
  opacity: 0.4;
  font-size: 5px;
  line-height: 1;
  white-space: pre;
}

.anarchy {
  position: absolute;
  font-size: 8px;
  line-height: 1;
  color: #f0ffff;
  opacity: 0.3;
  white-space: pre;
}

/* ===== CORNER DECORATIONS ===== */
.corner {
  position: absolute;
  width: 20px;
  height: 20px;
}
.corner::before,
.corner::after {
  content: "";
  position: absolute;
  background: #00fefc;
}
.corner::before {
  width: 20px;
  height: 3px;
  top: 50%;
  transform: translateY(-50%);
}
.corner::after {
  width: 3px;
  height: 20px;
  left: 50%;
  transform: translateX(-50%);
}
.corner.top-left { top: -12px; left: -12px; }
.corner.top-right { top: -12px; right: -12px; }
.corner.bottom-left { bottom: -12px; left: -12px; }
.corner.bottom-right { bottom: -12px; right: -12px; }

/* ===== INDEX PAGE STYLES ===== */
body.page-index {
  background: linear-gradient(135deg, #0d1821 0%, #122230 25%, #0d1821 50%, #0a1219 75%, #0d1821 100%);
  background-size: 400% 400%;
  animation: gradientShift 20s ease infinite;
  overflow-x: hidden;
}

body.page-index html {
  overflow-y: scroll;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.skier {
  position: absolute;
  z-index: 10;
  transition: none;
  width: 24px;
  height: auto;
  opacity: 0.7;
}

body.page-index main {
  position: relative;
  z-index: 1;
}

body.page-index section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 40px;
  max-width: 600px;
  margin: 0 auto;
}

/* Hero Section */
.hero {
  align-items: center;
  text-align: center;
  min-height: 100vh !important;
  height: 100vh !important;
  position: relative;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: auto;
  opacity: 0.7;
  animation: bounce 2s ease-in-out infinite;
  cursor: pointer;
  transition: opacity 0.2s;
}

.scroll-indicator:hover {
  opacity: 1;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

.logo-container {
  position: relative;
  max-width: 500px;
  width: 100%;
}

.hero-logo {
  max-width: 500px;
  width: 100%;
  height: auto;
}

.hero-logo-main {
  position: relative;
}

/* About Section */
.about {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.about-container {
  border: 2px dashed #616161;
  padding: 60px;
  position: relative;
  background: rgba(13, 24, 33, 0.95);
}

.about h1 {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-size: 44px;
  color: #00fefc;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.about .intro {
  font-family: "Space Mono", monospace;
  font-size: 18px;
  color: #a984b6;
  margin-bottom: 24px;
  line-height: 1.6;
  font-weight: 700;
}

.about p {
  color: #d0d0d0;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.save-date {
  margin: 40px 0;
  padding: 20px 0;
  border-top: 1px dashed #616161;
  border-bottom: 1px dashed #616161;
}

.save-date h3 {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-size: 36px;
  color: #00fefc;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.2;
  width: 100%;
}

.cta-arrow {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.cta-arrow:hover {
  opacity: 0.8;
}

.cta-arrow span {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-size: 24px;
  color: #a984b6;
}

.cta-arrow-icon {
  width: 24px;
  height: auto;
  animation: bounce-vertical 2s ease-in-out infinite;
}

@keyframes bounce-vertical {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Signup Section */
.signup {
  align-items: center;
}

.form-container {
  width: 100%;
  max-width: 100%;
  border: 2px dashed #616161;
  padding: 60px;
  position: relative;
  background: rgba(13, 24, 33, 0.95);
}

.form-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.form-logo .brackets {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-size: 32px;
}

.form-logo .brackets .brace {
  color: #00fefc;
}

.form-logo .brackets .plus {
  color: #b026ff;
}

.form-logo .text h3 {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-size: 18px;
  color: #00fefc;
  line-height: 1.1;
}

.form-logo .text h4 {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  line-height: 1.1;
}

.form-logo .text .year {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-size: 16px;
  color: #5b8db8;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: #00fefc;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.form-group input,
.form-group select {
  width: 100%;
  background: transparent;
  border: 1px solid #616161;
  padding: 12px;
  color: #fff;
  font-family: "Source Code Pro", monospace;
  font-size: 14px;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #00fefc;
}

.form-group input::placeholder {
  color: #616161;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300FEFC' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.form-group select option {
  background: #0d1821;
}

button[type="submit"] {
  width: 100%;
  background: transparent;
  color: #00fefc;
  border: 2px solid #00fefc;
  padding: 14px;
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.2s;
}

button[type="submit"]:hover {
  background: #00fefc;
  color: #0d1821;
}

.form-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 10px;
  color: #616161;
}

.form-footer a {
  color: #616161;
  text-decoration: underline;
}

/* ===== SUBPAGE STYLES (integritet, om-xc26) ===== */
body.page-sub .container {
  max-width: 640px;
  margin: 0 auto;
  padding: 60px 40px;
  position: relative;
  z-index: 1;
}

body.page-sub h1 {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  color: #00fefc;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 33px;
  line-height: 1.2;
  margin-bottom: 24px;
}

body.page-sub h2 {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  color: #00fefc;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 23px;
  margin-bottom: 16px;
  margin-top: 40px;
}

body.page-sub h3 {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  color: #00fefc;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 23px;
  margin-bottom: 12px;
  margin-top: 30px;
}

body.page-sub p {
  color: #d0d0d0;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
}

body.page-sub .intro {
  font-family: "Space Mono", monospace;
  font-size: 21px;
  color: #a984b6;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.5;
}

body.page-sub .section {
  margin-bottom: 50px;
}

body.page-sub ul {
  list-style: none;
  margin: 16px 0;
}

body.page-sub ul li {
  color: #d0d0d0;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
}

body.page-sub ul li::before {
  content: "•";
  color: #00fefc;
  position: absolute;
  left: 0;
}

body.page-sub .highlight {
  color: #00fefc;
  font-weight: 700;
}

body.page-sub .boxed-section {
  border: 1px dashed #00fefc;
  padding: 30px;
  margin: 30px 0;
}

body.page-sub .dashed-box {
  border: 1px dashed #00fefc;
  padding: 25px;
}

body.page-sub .dashed-box h2 {
  margin-top: 0;
}

body.page-sub .dashed-box p:last-child {
  margin-bottom: 0;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  /* Index page mobile */
  body.page-index section {
    min-height: auto;
    height: auto;
    padding: 60px 20px;
  }

  .hero-logo {
    max-width: 90%;
  }

  .about-container,
  .form-container {
    padding: 30px 20px;
  }

  .save-date h3 {
    font-size: 20px;
  }

  .about h1 {
    font-size: 27px;
  }

  .about .intro {
    font-size: 16px;
  }

  .about p {
    font-size: 13px;
  }

  .form-logo .brackets {
    font-size: 24px;
  }

  .form-logo .text h3,
  .form-logo .text h4 {
    font-size: 14px;
  }

  /* Subpage mobile */
  body.page-sub .container {
    padding: 40px 20px;
  }

  body.page-sub h1 {
    font-size: 26px;
  }

  body.page-sub .intro {
    font-size: 19px;
  }

  /* Hide ASCII art on mobile */
  .tree,
  .box,
  .question-mark,
  .anarchy,
  .skier {
    display: none;
  }
}
