@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
  --bg-color: #0a0a0f;
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --accent-1: #00f0ff;
  --accent-2: #ff007f;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: blur(12px);
  --font-family: 'Outfit', sans-serif;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(0, 240, 255, 0.08), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(255, 0, 127, 0.08), transparent 25%);
  background-attachment: fixed;
}

body.no-scroll {
  overflow: hidden;
}

/* Accessibility Focus States */
:focus-visible {
  outline: 2px solid var(--accent-1);
  outline-offset: 3px;
}

/* Typography */
h1, h2, h3 {
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(2.25rem, 6vw + 0.5rem, 4.75rem);
  background: linear-gradient(45deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw + 0.2rem, 2.25rem);
}

h3 {
  font-size: clamp(1.2rem, 2.5vw + 0.2rem, 1.75rem);
}

p {
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.5vw + 0.2rem, 1.125rem);
  margin-bottom: 1.5rem;
  overflow-wrap: break-word;
}

a {
  color: var(--accent-1);
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  overflow-wrap: break-word;
}

a:hover {
  color: #fff;
  text-shadow: 0 0 8px var(--accent-1);
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}

main {
  flex: 1 0 auto;
  width: 100%;
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: clamp(16px, 3vw, 24px);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-panel:hover {
  box-shadow: 0 12px 40px 0 rgba(0, 240, 255, 0.1);
  border-color: rgba(0, 240, 255, 0.3);
}

@media (hover: hover) and (pointer: fine) {
  .glass-panel:hover {
    transform: translateY(-4px);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.25rem;
  min-height: 48px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: linear-gradient(45deg, var(--accent-1), var(--accent-2));
  color: #fff;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 4px 15px rgba(255, 0, 127, 0.3);
  transition: all 0.3s ease;
  text-align: center;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--accent-2), var(--accent-1));
  z-index: -1;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.btn:hover::before {
  opacity: 1;
}

.btn:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.4);
  color: #fff;
  text-shadow: none;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-bottom 0.3s ease;
  display: flex;
  align-items: center;
}

header.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  display: inline-flex;
  align-items: center;
  z-index: 101;
}

.logo span {
  color: var(--accent-1);
}

/* Nav & Mobile Toggle */
nav {
  display: flex;
  align-items: center;
}

.nav-toggle {
  display: none !important;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  z-index: 102;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 240, 255, 0.4);
}

.hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

.nav-toggle.active .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background-color: var(--accent-1);
}

.nav-toggle.active .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: translateX(-8px);
}

.nav-toggle.active .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background-color: var(--accent-1);
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.5vw, 2rem);
}

nav a {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

nav a:hover, nav a.active {
  color: var(--accent-1);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 1.5rem);
  padding-bottom: 3rem;
  position: relative;
}

.hero-content {
  max-width: 800px;
}

.hero-subtitle {
  color: var(--accent-1);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: clamp(1px, 0.5vw, 2px);
  font-size: clamp(0.8rem, 2vw, 0.95rem);
  margin-bottom: 1rem;
  display: block;
}

/* About Section */
#about {
  padding-bottom: clamp(3.5rem, 8vh, 6rem);
}

#about h2 {
  color: #fff;
  margin-bottom: 1.25rem;
}

/* Page Header (for inner pages) */
.page-header {
  padding: calc(var(--header-height) + clamp(2.5rem, 6vh, 4.5rem)) 0 clamp(2rem, 4vh, 3.5rem);
  text-align: center;
}

.page-header h1 {
  font-size: clamp(2.25rem, 5vw + 0.5rem, 4rem);
}

.page-header p {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
}

/* Agreement Switcher */
.agreement-switch {
  display: inline-flex;
  align-items: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 4px;
  margin-top: 1.5rem;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.agreement-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem clamp(1.2rem, 3vw, 1.8rem);
  border-radius: 50px;
  font-weight: 600;
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
  color: var(--text-secondary);
  transition: all 0.3s ease;
  white-space: nowrap;
  min-height: 40px;
}

.agreement-switch a:hover {
  color: #fff;
}

.agreement-switch a.active {
  background: linear-gradient(45deg, var(--accent-1), var(--accent-2));
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 0, 127, 0.3);
  text-shadow: none;
}

/* Policy Content */
.policy-content {
  max-width: 900px;
  margin: 0 auto clamp(3rem, 6vh, 6rem);
}

.policy-content h2 {
  color: var(--accent-1);
  margin-top: clamp(1.75rem, 3.5vw, 2.75rem);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.policy-content ul {
  margin-bottom: 1.5rem;
  padding-left: clamp(1.2rem, 3vw, 1.75rem);
  color: var(--text-secondary);
}

.policy-content li {
  margin-bottom: 0.6rem;
  font-size: clamp(0.95rem, 1.5vw + 0.2rem, 1.05rem);
  line-height: 1.6;
}

/* Footer */
footer {
  border-top: 1px solid var(--glass-border);
  padding: clamp(2rem, 4vh, 3rem) 0;
  text-align: center;
  margin-top: auto;
  width: 100%;
}

footer p {
  margin-bottom: 0;
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Glowing Orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
  animation: float 10s infinite alternate ease-in-out;
}

.orb-1 {
  width: min(300px, 60vw);
  height: min(300px, 60vw);
  background: rgba(0, 240, 255, 0.15);
  top: 10%;
  left: 5%;
}

.orb-2 {
  width: min(400px, 70vw);
  height: min(400px, 70vw);
  background: rgba(255, 0, 127, 0.15);
  bottom: -5%;
  right: -5%;
  animation-delay: -5s;
}

@keyframes float {
  0% { transform: translate(0, 0); }
  100% { transform: translate(20px, 35px); }
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  :root {
    --header-height: 68px;
  }

  .nav-toggle {
    display: flex !important;
  }

  nav ul {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    background: rgba(10, 10, 15, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    padding: 1.25rem clamp(1.25rem, 4vw, 2rem) 2rem;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.6);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 99;
  }

  nav ul.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
  }

  nav ul li {
    width: 100%;
  }

  nav a {
    display: flex;
    width: 100%;
    padding: 0.85rem 1.25rem;
    font-size: 1.05rem;
    border-radius: 12px;
    border: 1px solid transparent;
  }

  nav a:hover, nav a.active {
    background: rgba(0, 240, 255, 0.08);
    border-color: rgba(0, 240, 255, 0.2);
    color: var(--accent-1);
  }

  .orb-1, .orb-2 {
    filter: blur(50px);
  }
}

@media (max-width: 480px) {
  .btn {
    width: 100%;
  }
}

/* Reduced Motion preference */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .orb {
    animation: none !important;
  }

  .btn, .glass-panel, nav ul {
    transition: none !important;
  }
}
