﻿:root {
  --bg-2: #0f1b22;
  --panel: rgba(18, 32, 40, 0.72);
  --panel-strong: #14232b;
  --text: #e6f4f4;
  --muted: #a4bcbc;
  --accent: #2ad3c6;
  --accent-2: #3fe6ff;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  --font-sans: "Bahnschrift", "Segoe UI Variable Text", "Candara", "Corbel", "Noto Sans", "Segoe UI", sans-serif;
  --max-width: 1120px;
  --header-height: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--text);
  background: radial-gradient(1200px 800px at 10% 10%, rgba(42, 211, 198, 0.12), transparent 60%),
    radial-gradient(900px 600px at 90% 20%, rgba(63, 230, 255, 0.08), transparent 60%),
    linear-gradient(160deg, #0b1217, #0d151b 40%, #0a1216 100%);
  letter-spacing: 0.2px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(transparent 0 1px, rgba(255, 255, 255, 0.03) 1px 2px),
    linear-gradient(90deg, transparent 0 1px, rgba(255, 255, 255, 0.03) 1px 2px);
  background-size: 80px 80px;
  pointer-events: none;
  opacity: 0.5;
  z-index: -1;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

p {
  margin: 0;
  color: var(--muted);
}

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-120%);
  background: var(--accent);
  color: #061014;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  z-index: 200;
  font-weight: 600;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-transition {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(42, 211, 198, 0.25), transparent 60%),
    linear-gradient(120deg, rgba(9, 14, 18, 0.95), rgba(9, 14, 18, 0.8));
  opacity: 0;
  pointer-events: none;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s ease, opacity 0.4s ease;
  z-index: 120;
}

.page-transition.is-active {
  opacity: 1;
  transform: scaleY(1);
}

.page-shell {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 0 24px 80px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(9, 16, 20, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
}

.brand svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.95rem;
}

.site-nav a {
  background: none;
  border: none;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(42, 211, 198, 0.1);
  transform: translateY(-1px);
}

.site-nav a[data-active="true"] {
  color: #041114;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  font-weight: 600;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition: border 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-toggle:hover {
  border-color: rgba(42, 211, 198, 0.4);
  background: rgba(42, 211, 198, 0.12);
  transform: translateY(-1px);
}

.nav-toggle-icon {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle-bar {
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.home-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.home-link svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent);
}

.section {
  padding: 64px 0;
  position: relative;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  margin-bottom: 18px;
}

.section-title span {
  width: 38px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  display: inline-block;
}

.card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 12px 20px;
  border: 1px solid rgba(42, 211, 198, 0.3);
  background: rgba(42, 211, 198, 0.12);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(42, 211, 198, 0.2);
  background: rgba(42, 211, 198, 0.2);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

.button.ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.12);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(63, 230, 255, 0.12);
  color: var(--accent-2);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.muted {
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

input,
textarea,
select {
  font: inherit;
  background: rgba(10, 17, 22, 0.8);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

label {
  font-size: 0.85rem;
  color: var(--muted);
}

.form-field {
  display: grid;
  gap: 8px;
}

.notice {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.notice.success {
  border-color: rgba(110, 234, 177, 0.6);
  background: rgba(110, 234, 177, 0.12);
}

.notice.error {
  border-color: rgba(255, 106, 106, 0.6);
  background: rgba(255, 106, 106, 0.12);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(63, 230, 255, 0.6);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 200;
  mix-blend-mode: screen;
}

footer {
  padding: 40px 24px 60px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .header-inner {
    flex-wrap: nowrap;
    height: auto;
    padding: 12px 18px;
    position: relative;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 18px;
    right: 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 12px;
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-nav a {
    width: 100%;
    justify-content: flex-start;
  }

  html:not(.js) .site-nav {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
  }

  html:not(.js) .nav-toggle {
    display: none;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 0 18px 60px;
  }

  .site-nav {
    left: 12px;
    right: 12px;
  }

  .site-nav a {
    padding: 10px 12px;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    transition: none;
  }

  .page-transition {
    transition: none;
  }
}

html.reduce-motion .cursor-dot {
  display: none;
}

/* Main Footer Styles */
.site-footer-main {
  padding: 2rem 1rem;
  text-align: center;
  background: var(--panel-strong);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 4rem;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-address {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  opacity: 0.8;
}

.footer-socials {
  margin: 0.5rem 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.footer-socials a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-socials a:hover {
  color: var(--accent-2);
  text-decoration: underline;
}
