/* ==========================================================================
   RESET & FOUNDATION
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@200;300;400;500;600&family=Roboto:wght@300;400;500&display=swap');

:root {
  --color-bg-primary: #0a0a0b;
  --color-bg-secondary: #121214;
  --color-bg-glass: rgba(18, 18, 20, 0.7);
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-glow: rgba(100, 255, 218, 0.3);
  
  --color-accent-teal: #64FFDA;
  --color-accent-gold: #C5A059;
  --color-accent-red: #ff4d4d;
  
  --color-text-primary: #F8F9FA;
  --color-text-secondary: #A0A0A0;
  --color-text-muted: #666666;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Roboto Mono', monospace;
  
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  position: relative;
}

body.gate-active {
  overflow: hidden;
}

::selection {
  background: var(--color-accent-teal);
  color: #000;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 300;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 200; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 200; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
p { font-size: clamp(0.95rem, 1.2vw, 1.1rem); color: var(--color-text-secondary); }

.accent-text-teal { color: var(--color-accent-teal); }
.accent-text-gold { color: var(--color-accent-gold); }

/* ==========================================================================
   GLOBAL LAYOUT & UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4vw;
}

.section-padding {
  padding: 8rem 0;
}

.thin-line-top { border-top: 1px solid var(--color-border); }
.thin-line-bottom { border-bottom: 1px solid var(--color-border); }

.glass-panel {
  background: var(--color-bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-family: var(--font-heading);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-primary);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 0; height: 100%;
  background: var(--color-accent-teal);
  transition: var(--transition-smooth);
  z-index: -1;
}

.btn:hover::before { width: 100%; }
.btn:hover {
  color: #000;
  border-color: var(--color-accent-teal);
}

.btn-gold::before { background: var(--color-accent-gold); }
.btn-gold:hover { border-color: var(--color-accent-gold); }

/* ==========================================================================
   PASSWORD GATE
   ========================================================================== */
#password-gate {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100vh;
  background: var(--color-bg-primary);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

#password-gate.unlocked {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gate-background {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: linear-gradient(rgba(10,10,11,0.9), rgba(10,10,11,0.95)), url('../image/dashboard_ui_concept_1775637323575.png');
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  z-index: 0;
  filter: blur(5px);
}

.gate-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 450px;
  padding: 3rem 4rem;
  border-radius: 2px;
  text-align: center;
}

.gate-card h2 {
  font-size: 1.2rem;
  letter-spacing: 0.2em;
  margin-bottom: 2rem;
  color: var(--color-text-secondary);
}

.gate-input-group {
  position: relative;
  margin-bottom: 2rem;
}

.gate-input-group input {
  width: 100%;
  padding: 1rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-primary);
  font-family: var(--font-mono);
  font-size: 1rem;
  text-align: center;
  outline: none;
  transition: border-color var(--transition-fast);
}

.gate-input-group input:focus {
  border-bottom-color: var(--color-accent-teal);
}

.gate-action .btn {
  width: 100%;
}

.error-msg {
  color: var(--color-accent-red);
  font-size: 0.8rem;
  position: absolute;
  bottom: -25px;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.gate-card.error {
  animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

.gate-card.error input {
  border-bottom-color: var(--color-accent-red);
  box-shadow: 0 5px 15px rgba(255, 77, 77, 0.1);
}

.gate-card.error .error-msg {
  opacity: 1;
}

@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--transition-smooth);
}

header.scrolled {
  background: var(--color-bg-glass);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
}

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

.logo {
  font-family: var(--font-heading);
  text-decoration: none;
  color: var(--color-text-primary);
  display: flex;
  flex-direction: column;
}

.logo .name { font-size: 1.2rem; font-weight: 400; letter-spacing: 0.1em; }
.logo .title { font-size: 0.7rem; color: var(--color-text-secondary); letter-spacing: 0.05em; }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition-fast);
  position: relative;
  display: inline-block;
  padding: 0.5rem 0;
  white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--color-text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 0;
  width: 0%;
  height: 1px;
  background: var(--color-accent-teal);
  transition: var(--transition-smooth);
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--color-text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   FOOTER (MEGA FOOTER)
   ========================================================================== */
.site-footer {
  background: #050505;
  border-top: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
  padding: 6rem 0 0 0;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMSIgY3k9IjEiIHI9IjEiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4wMykiLz48L3N2Zz4=');
  z-index: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  position: relative;
  z-index: 1;
  padding-bottom: 4rem;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: var(--color-text-primary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-accent-teal);
}

.footer-newsletter p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.footer-form {
  display: flex;
  border-bottom: 1px solid var(--color-text-secondary);
}

.footer-form input {
  background: transparent;
  border: none;
  padding: 0.5rem 0;
  color: var(--color-text-primary);
  width: 100%;
  outline: none;
}

.footer-form button {
  background: transparent;
  border: none;
  color: var(--color-accent-teal);
  cursor: pointer;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

.footer-map-embed {
  margin-top: 1.5rem;
  width: 100%;
  height: 120px;
  filter: grayscale(100%) invert(90%) opacity(0.7);
  transition: filter var(--transition-smooth);
}

.footer-map-embed:hover {
  filter: grayscale(80%) invert(90%) opacity(1);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

.footer-credit a {
  color: var(--color-accent-teal);
  text-decoration: none;
}

.back-to-top {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.back-to-top:hover {
  background: var(--color-text-primary);
  color: var(--color-bg-primary);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { gap: 1.5rem; }
  .nav-links a { font-size: 0.8rem; }
}

@media (max-width: 900px) {
  .logo .title { display: none; }
  nav { position: absolute; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 300px; height: 100vh;
    background: var(--color-bg-secondary);
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2rem 2rem;
    gap: 1.5rem;
    transition: var(--transition-smooth);
    border-left: 1px solid var(--color-border);
  }
  .nav-links.active { right: 0; }
  .nav-links a { width: 100%; font-size: 1rem; }
  .mobile-menu-btn { display: block; z-index: 1001; position: relative; }
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
