/* ===========================================
   ODDIQ — GLOBAL STYLES
   =========================================== */

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

:root {
  --blue-deep: #0032ff;
  --blue-electric: #0066ff;
  --blue-glow: #00a8ff;
  --blue-cyan: #00e0ff;
  --blue-soft: #e6f0ff;
  --blue-mist: #f5f9ff;
  --white: #ffffff;
  --ink: #0a0f1f;
  --ink-soft: #1a2340;
  --gray: #5a6580;
  --gray-light: #d0dcf0;
}

html, body {
  background: var(--white);
  color: var(--ink);
  font-family: 'Archivo', sans-serif;
  overflow-x: hidden;
  cursor: none;
  scroll-behavior: smooth;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
  z-index: 9998;
  mix-blend-mode: multiply;
}

::selection { background: var(--blue-electric); color: var(--white); }

/* ===== CUSTOM CURSOR ===== */
.cursor {
  position: fixed;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--blue-electric);
  pointer-events: none;
  z-index: 10000;
  mix-blend-mode: difference;
  transition: transform 0.15s ease, width 0.3s, height 0.3s;
  transform: translate(-50%, -50%);
}
.cursor-ring {
  position: fixed;
  width: 38px; height: 38px;
  border: 1px solid var(--blue-electric);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), width 0.3s, height 0.3s, border-color 0.3s;
  transform: translate(-50%, -50%);
}
.cursor.grow { width: 0; height: 0; }
.cursor-ring.grow { width: 80px; height: 80px; background: rgba(0, 102, 255, 0.1); border-color: var(--blue-glow); }

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 24px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  mix-blend-mode: difference;
  color: var(--white);
  transition: padding 0.3s;
}
nav.scrolled { padding: 16px 48px; }

nav .logo {
  font-family: 'Instrument Serif', serif;
  font-size: 28px;
  font-style: italic;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
nav .logo::before {
  content: '';
  width: 10px; height: 10px;
  background: var(--blue-glow);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--blue-glow);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}
nav ul {
  display: flex;
  gap: 36px;
  list-style: none;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 400;
}
nav a {
  color: inherit;
  text-decoration: none;
  position: relative;
  transition: opacity 0.3s;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
nav a:hover::after, nav a.active::after { width: 100%; }
nav a.active { font-weight: 700; }

.nav-cta {
  padding: 10px 22px;
  border: 1px solid currentColor;
  border-radius: 100px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.3s;
}
.nav-cta:hover { background: var(--white); color: var(--ink) !important; }
.nav-cta::after { display: none; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: 'Archivo', sans-serif;
  font-weight: 100;
  letter-spacing: -0.035em;
  line-height: 0.95;
}
h1 { font-size: clamp(56px, 10vw, 160px); }
h2 { font-size: clamp(40px, 7vw, 110px); margin-bottom: 60px; }
h3 { font-size: clamp(28px, 4vw, 48px); font-weight: 200; }
em, .italic {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--blue-electric);
}

.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--blue-electric);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::before {
  content: '';
  width: 40px; height: 1px;
  background: var(--blue-electric);
}
.section-label.centered { justify-content: center; }
.section-label.light { color: var(--blue-glow); }
.section-label.light::before { background: var(--blue-glow); }

/* ===== PAGE HEADER (for inner pages) ===== */
.page-header {
  position: relative;
  min-height: 70vh;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 120px 48px 80px;
}
.page-header canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.page-header-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  z-index: 1;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.page-header-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, transparent 0%, rgba(10,15,31,0.4) 70%),
    linear-gradient(180deg, rgba(10,15,31,0.1) 0%, rgba(10,15,31,0.7) 100%);
  z-index: 1;
  pointer-events: none;
}
.page-header-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}
.page-header h1 {
  font-size: clamp(48px, 9vw, 140px);
  margin-bottom: 28px;
}
.page-header p {
  max-width: 600px;
  font-size: 20px;
  line-height: 1.6;
  color: rgba(255,255,255,0.75);
  font-weight: 300;
}
.breadcrumb {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--blue-glow); }

/* ===== SECTIONS ===== */
section {
  position: relative;
  padding: 120px 48px;
}
.container { max-width: 1400px; margin: 0 auto; }

/* ===== BUTTONS ===== */
.btn-primary {
  padding: 18px 36px;
  background: var(--white);
  color: var(--ink);
  border: none;
  border-radius: 100px;
  font-family: 'Archivo', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--blue-electric), var(--blue-glow));
  transform: translateX(-101%);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 0;
}
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary:hover { color: var(--white); }
.btn-primary span { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px; }

.btn-ghost {
  color: inherit;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 500;
}
.btn-ghost svg { transition: transform 0.3s; }
.btn-ghost:hover svg { transform: translateX(6px); }

.btn-dark {
  padding: 18px 36px;
  background: var(--ink);
  color: var(--white);
  border-radius: 100px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
}
.btn-dark:hover { background: var(--blue-electric); transform: translateY(-2px); }

/* ===== MARQUEE ===== */
.marquee {
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
  background: rgba(10,15,31,0.5);
  backdrop-filter: blur(20px);
}
.marquee-track {
  display: flex;
  gap: 60px;
  animation: marquee 16s linear infinite;
  white-space: nowrap;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.marquee-track span::before {
  content: '◆';
  color: var(--blue-glow);
  margin-right: 60px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== FOOTER ===== */
footer {
  background: var(--ink);
  color: var(--white);
  padding: 80px 48px 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  max-width: 1400px;
  margin: 0 auto 80px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-big {
  font-family: 'Archivo', sans-serif;
  font-weight: 100;
  font-size: clamp(44px, 5.5vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.footer-big em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: var(--blue-glow);
}
footer h4 {
  font-family: 'Space Mono', monospace;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-glow);
  margin-bottom: 20px;
  line-height: 1.4;
}
footer ul { list-style: none; }
footer ul li { margin-bottom: 12px; }
footer ul a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 15px;
  font-weight: 300;
  transition: color 0.3s;
}
footer ul a:hover { color: var(--white); }
.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }



/* ===== NAV RIGHT GROUP ===== */
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ===== LANGUAGE TOGGLE ===== */
.lang-toggle {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 6px 12px;
  border-radius: 100px;
  border: 1.5px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s, background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.lang-toggle:hover { opacity: 1; background: currentColor; color: var(--ink); }

/* ===== HAMBURGER BUTTON ===== */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== MOBILE MENU OVERLAY ===== */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 998;
  display: flex;
  flex-direction: column;
  padding: 96px 36px 56px;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }

.mobile-menu > ul {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.mobile-menu > ul li {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-menu > ul li:first-child {
  border-top: 1px solid rgba(255,255,255,0.08);
}
.mobile-menu > ul li a {
  display: block;
  padding: 22px 0;
  font-family: 'Archivo', sans-serif;
  font-weight: 100;
  font-size: clamp(40px, 11vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transform: translateX(32px);
  opacity: 0;
  transition: color 0.3s, padding-left 0.3s,
              transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
              opacity 0.5s;
}
.mobile-menu > ul li a::after { display: none !important; }
.mobile-menu.open > ul li a { transform: translateX(0); opacity: 1; }
.mobile-menu.open > ul li:nth-child(1) a { transition-delay: 0.08s; }
.mobile-menu.open > ul li:nth-child(2) a { transition-delay: 0.13s; }
.mobile-menu.open > ul li:nth-child(3) a { transition-delay: 0.18s; }
.mobile-menu.open > ul li:nth-child(4) a { transition-delay: 0.23s; }
.mobile-menu > ul li a.active { color: var(--blue-glow); }
.mobile-menu > ul li a:hover { color: var(--white); padding-left: 12px; }

.mobile-menu-footer {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s 0.3s, transform 0.4s 0.3s;
}
.mobile-menu.open .mobile-menu-footer { opacity: 1; transform: translateY(0); }

.mobile-cta {
  padding: 18px 32px;
  background: var(--blue-electric);
  color: white !important;
  border-radius: 100px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 0.3s;
  width: fit-content;
  cursor: pointer;
}
.mobile-cta::after { display: none !important; }
.mobile-cta:hover { background: var(--blue-glow) !important; }

.mobile-menu-contact {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  gap: 12px;
}
.mobile-menu-contact::before {
  content: '';
  width: 28px;
  height: 1px;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}
.mobile-menu-contact a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.3s;
}
.mobile-menu-contact a::after { display: none !important; }
.mobile-menu-contact a:hover { color: var(--white); }

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
  nav { padding: 16px 20px; }
  nav ul { display: none; }
  nav.scrolled { padding: 16px 20px; }
  nav.menu-open {
    mix-blend-mode: normal;
    background: var(--ink);
    color: var(--white);
  }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  body.menu-open { overflow: hidden; }

  section { padding: 80px 24px; }
  .page-header { padding: 100px 24px 60px; }

  footer { padding: 60px 24px 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-top > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 16px; }

  .marquee-track { animation-duration: 9s; }

  html, body { cursor: auto; }
  .cursor, .cursor-ring { display: none; }
  .btn-primary, .btn-ghost, .btn-dark,
  nav a, a, button, input, select, textarea { cursor: pointer; }
  input, textarea { cursor: text; }
}
