/* ═══════════════════════════════════════════════
   KALYXIA — SHARED STYLES
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cabinet+Grotesk:wght@400;500;700;800;900&family=Instrument+Sans:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
  --bg:           #060608;
  --surface:      #0b0b0e;
  --card:         #0f0f13;
  --card-hover:   #131318;
  --border:       rgba(255,255,255,0.07);
  --border-light: rgba(255,255,255,0.04);
  --green:        #00e664;
  --green-dim:    rgba(0,230,100,0.12);
  --green-glow:   rgba(0,230,100,0.06);
  --text:         #f2f2f5;
  --muted:        rgba(242,242,245,0.45);
  --muted-hi:     rgba(242,242,245,0.65);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Instrument Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
}

/* NOISE OVERLAY */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9998;
  mix-blend-mode: screen;
}

/* CURSOR */
.cursor-dot, .cursor-ring {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--green);
  transition: transform 0.1s ease;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(0,230,100,0.4);
  transition: all 0.18s cubic-bezier(0.16,1,0.3,1);
}
.cursor-ring.hovering {
  width: 56px; height: 56px;
  background: rgba(0,230,100,0.07);
  border-color: var(--green);
}

/* PARTICLE CANVAS */
.particle-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ─── NAV ────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 52px;
  background: rgba(6,6,8,0.7);
  backdrop-filter: blur(24px) saturate(1.5);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}
nav.scrolled {
  padding: 14px 52px;
  border-bottom-color: var(--border);
  background: rgba(6,6,8,0.9);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.04em;
}
.logo-icon {
  width: 28px; height: 28px;
  background: var(--green);
  border-radius: 7px;
  display: flex; align-items:center; justify-content:center;
  position: relative;
}
.logo-inner {
  width: 11px; height: 11px;
  background: var(--bg);
  border-radius: 50%;
  position: relative;
}
.logo-inner::after {
  content:'';
  position:absolute;
  inset:3px;
  background: var(--green);
  border-radius:50%;
}
.logo-reg {
  font-size: 13px;
  vertical-align: super;
  opacity: 0.5;
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content:'';
  position:absolute;
  bottom:-4px; left:0;
  width:0; height:1px;
  background: var(--green);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width:100%; }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { width: 100%; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.open span:first-child { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:last-child { transform: rotate(-45deg) translate(5px,-5px); }

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 490;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 900;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.04em;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--green); }

/* ─── BUTTONS ────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #000;
  border: none;
  padding: 13px 28px;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: none;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn-primary::before {
  content:'';
  position:absolute; inset:0;
  background: linear-gradient(135deg, rgba(255,255,255,0.25), transparent);
  opacity:0;
  transition: opacity 0.3s;
}
.btn-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 12px 40px rgba(0,230,100,0.35); }
.btn-primary:hover::before { opacity:1; }

.btn-primary.btn-sm { padding: 9px 20px; font-size: 13px; }
.btn-primary.btn-lg { padding: 17px 44px; font-size: 16px; font-weight: 700; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--muted-hi);
  border: 1px solid var(--border);
  padding: 13px 28px;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  cursor: none;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-ghost:hover { border-color: rgba(0,230,100,0.35); color: var(--green); background: var(--green-glow); }
.btn-ghost.btn-sm { padding: 9px 20px; font-size: 13px; }

/* ─── SECTION UTILS ─────────────────────────── */
.section-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-tag::before {
  content:'';
  width: 20px; height: 1px;
  background: var(--green);
  display: block;
}
.section-title {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 18px;
}
.section-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 500px;
  line-height: 1.7;
}

/* ─── ANIMATIONS ────────────────────────────── */
@keyframes slide-up {
  from { opacity:0; transform: translateY(28px); }
  to   { opacity:1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity:0; }
  to   { opacity:1; }
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s cubic-bezier(0.16,1,0.3,1),
              transform 0.75s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity:1; transform:translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ─── FOOTER ────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 64px 60px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-tagline {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 6px;
}
.footer-nav {
  display: flex;
  gap: 64px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col-title {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--green); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 60px;
  max-width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
.footer-made { opacity: 0.5; }

@media(max-width:768px) {
  nav { padding: 18px 24px; }
  nav.scrolled { padding: 12px 24px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
  .footer-inner { padding: 48px 28px; flex-direction: column; }
  .footer-nav { gap: 36px; }
  .footer-bottom { padding: 18px 28px; flex-direction: column; gap: 6px; }
}
