:root{
  --bg:#0b0b0b;
  --ink:#e0e0e0;
  --muted:#b0b0b0;
  --line:rgba(255,255,255,.08);
  --gold-1:#c8a86b;
  --gold-2:#e8d9b5;
}

*{
  box-sizing:border-box;
}

html{
  overflow-x:hidden;
  width: 100%;
}

body{
  margin:0;
  background:radial-gradient(circle at center,#161616 0%,#0b0b0b 100%);
  color:var(--ink);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Helvetica Neue,Arial,sans-serif;
  overflow-x:hidden;
  position: relative;
  width: 100%;
  max-width: 100vw;
}

#globe-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  transform: translateY(30vh) translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  perspective: 1000px;
}

#globe-canvas {
  width: 95vw;
  height: 95vw;
  max-width: 1600px;
  max-height: 1600px;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

#globe-canvas.visible {
  opacity: 0.6;
}

.satellite-container {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.satellite {
  position: absolute;
  width: 3px;
  height: 3px;
  background: radial-gradient(circle, #e8d9b5, #c8a86b);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(232, 217, 181, 0.6);
  opacity: 0.8;
  will-change: transform, opacity;
  transform: translateZ(0);
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: opacity 1s ease-out;
}

.loading-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-text {
  font-size: 1.5rem;
  color: var(--gold-2);
  opacity: 0;
  animation: loadingPulse 2s ease-in-out infinite;
  padding: 0 1rem;
  text-align: center;
  white-space: nowrap;
}

@keyframes loadingPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  height: 70px;
  padding: 0;
  border-bottom:1px solid rgba(255,255,255,.1);
  position:sticky;
  top:0;
  background:rgba(11,11,11,.85);
  backdrop-filter:saturate(120%) blur(4px);
  z-index: 200;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.logo{
  display: flex;
  align-items: center;
  height: 100%;
  padding: 5px 0 5px 1rem;
}

.logo img {
  height: 100%;
  width: auto;
  max-height: 76px;
  object-fit: contain;
  transition: opacity 0.2s;
}

.logo img:hover {
  opacity: 0.85;
  cursor: pointer;
}

nav{
  display: flex;
  align-items: center;
  margin-right: 2rem;
}

nav a{
  color:var(--ink);
  opacity:.8;
  text-decoration:none;
  margin-left:2rem;
  font-size:.95rem;
  transition:opacity .2s;
}

nav a:hover{
  opacity:1;
}

.hamburger{
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 15px;
  height: 12px;
  position: relative;
  z-index: 202;
  margin-right: 1.5rem;
}

.hamburger span{
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--gold-2);
  border-radius: 1px;
  transition: all 0.3s ease;
  position: absolute;
}

.hamburger span:nth-child(1){
  top: 0;
}

.hamburger span:nth-child(2){
  top: 50%;
  transform: translateY(-50%);
}

.hamburger span:nth-child(3){
  bottom: 0;
}

.hamburger.active span:nth-child(1){
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.hamburger.active span:nth-child(2){
  opacity: 0;
}

.hamburger.active span:nth-child(3){
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

.hero{
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  min-height:90vh;
  text-align:center;
  padding:4rem 1.5rem;
  position: relative;
}

.hero h1{
  font-size:3.2rem;
  font-weight:700;
  background:linear-gradient(90deg,var(--gold-2),#f5f5f5);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  margin:0 0 1rem;
  max-width:1000px;
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeIn 1.5s ease-out 3s forwards;
}

.hero p{
  font-size:1.12rem;
  max-width:780px;
  color:var(--muted);
  margin:0 0 2rem;
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeIn 1.5s ease-out 3.5s forwards;
}

.hero .btn{
  background:linear-gradient(90deg,var(--gold-2),var(--gold-1));
  color:#0b0b0b;
  border:none;
  padding:1rem 2rem;
  font-size:1rem;
  border-radius:8px;
  cursor:pointer;
  box-shadow:0 8px 28px rgba(200,168,107,.25);
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeIn 1.5s ease-out 4s forwards;
  transition: transform 0.3s ease;
}

.hero .btn:hover {
  transform: translateY(-2px);
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section{
  padding:5rem 10%;
  text-align:center;
}

section h2{
  color:var(--gold-2);
  font-size:2rem;
  margin-bottom:1rem;
}

section p{
  color:var(--muted);
  font-size:1rem;
  max-width:860px;
  margin:0 auto 2.4rem;
}

.cards{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:2rem;
  margin-top:1rem;
}

.card{
  border:1px solid var(--line);
  border-radius:14px;
  padding:1.6rem;
  background:linear-gradient(180deg,rgba(255,255,255,.03),rgba(255,255,255,.01));
  transition: transform 0.3s ease, border-color 0.3s ease;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.card:hover {
  transform: translateY(-5px) translateZ(0);
  border-color: var(--gold-1);
}

.card h3{
  color:var(--ink);
  margin:.6rem 0 .4rem;
}

.card p{
  color:var(--muted);
}

figure.img{
  position:relative;
  width:100%;
  aspect-ratio:16/9;
  border:1px solid var(--line);
  border-radius:12px;
  overflow:hidden;
  background:linear-gradient(135deg,rgba(255,255,255,.04),rgba(255,255,255,.01));
  margin:0 0 1rem;
  box-shadow:0 10px 40px rgba(0,0,0,.35);
}

footer{
  text-align:center;
  padding:2.4rem;
  border-top:1px solid rgba(255,255,255,.1);
  font-size:.9rem;
  color:#9a9a9a;
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(3px);
  pointer-events: none;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (max-width: 768px) {
  .loading-text {
    font-size: 1rem;
    max-width: 85vw;
    white-space: normal;
    line-height: 1.4;
  }

  body.menu-open {
    overflow: hidden;
    height: 100vh;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  section {
    padding: 3rem 5%;
  }

  header {
    height: 60px;
  }

  .logo {
    padding: 5px 0 5px 1rem;
  }

  .logo img {
    max-height: 63px;
  }

  .hamburger {
    display: flex;
  }

  nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: rgba(11,11,11,.98);
    backdrop-filter: saturate(120%) blur(8px);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 2rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-left: 1px solid rgba(255,255,255,.1);
    z-index: 201;
    margin-right: 0;
    overflow-y: auto;
  }

  nav.active {
    transform: translateX(0);
  }

  nav a {
    margin-left: 0;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    width: 100%;
    padding: 0.5rem 0;
  }
}