/* ─── GLOBAL VARIABLES ─── */
:root {
  --teal: #00D4AA;
  --teal-dim: #00a888;
  --blue: #0099FF;
  --dark: #000000;
  --dark2: #080C14;
  --dark3: #0D1220;
  --card: #0A1020;
  --border: rgba(0,212,170,0.12);
  --text: #ffffff;
  --text-dim: rgba(255,255,255,0.5);
  --text-faint: rgba(255,255,255,0.2);
  --accent-gradient: linear-gradient(135deg, var(--teal), var(--blue));
}

/* ─── BASE STYLES ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 100px; /* Space for fixed nav */
}

/* Noise Overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 2000;
  padding: 0 60px;
  height: 100px; /* Fixed height for consistency */
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  height: 100%;
}

.nav-logo img {
  height: 80px; /* Large but constrained */
  width: auto;
  display: block;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-logo:hover img {
  transform: scale(1.08) rotate(-3deg);
}

.nav-logo span {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 24px;
  color: var(--text);
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--teal);
  color: #000 !important;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600 !important;
  text-decoration: none;
  transition: opacity 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-cta:hover { opacity: 0.85; }

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 2001;
}

.hamburger .bar {
  width: 25px;
  height: 2px;
  background-color: var(--text);
  transition: all 0.3s ease-in-out;
}

/* ─── UI COMPONENTS ─── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.section { padding: 100px 60px; position: relative; }

.section-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 24px;
}

/* ─── APP CARDS ─── */
.apps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.app-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.app-card:hover {
  border-color: rgba(0,212,170,0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.app-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: linear-gradient(135deg, var(--card), #0A1628);
}

.app-icon {
  width: 80px; height: 80px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; padding: 180px 60px 80px; }

.app-icon img { width: 100%; height: 100%; object-fit: cover; }

/* ─── FOOTER ─── */
footer {
  padding: 80px 60px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo { font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 800; color: #fff; text-decoration: none; }
.copyright { font-size: 13px; color: var(--text-dim); }

.footer-links { display: flex; gap: 32px; }
.footer-links a { font-size: 13px; color: var(--text-dim); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--teal); }

/* ─── ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

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

@media (max-width: 900px) {
  nav { padding: 10px 24px; }
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: rgba(0,0,0,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: right 0.3s ease-in-out;
    border-left: 1px solid var(--border);
    margin: 0;
    padding: 0;
  }
  .nav-links.active {
    right: 0;
  }
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  .nav-logo span {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    color: #ffffff !important;
  }
  .section { padding: 70px 24px; }
  .apps-grid { grid-template-columns: 1fr; }
  .app-card.featured { grid-template-columns: 1fr; grid-column: span 1; }
  footer { flex-direction: column; gap: 20px; text-align: center; }
}
