/* ============================================
   GLOBAL STYLES - ZedLogic Cloud Pulse
   Light Luxury Minimalist + Computer Science Style
   ============================================ */

:root {
  --color-bg: #0a0a0c;
  --color-bg-soft: #111114;
  --color-bg-card: #16161a;
  --color-bg-elevated: #1c1c22;
  --color-line: rgba(255, 255, 255, 0.08);
  --color-line-strong: rgba(255, 255, 255, 0.14);
  --color-text: #f5f5f7;
  --color-text-soft: #a8a8b3;
  --color-text-mute: #6b6b75;
  --color-accent: #c9a961;
  --color-accent-soft: rgba(201, 169, 97, 0.16);
  --color-accent-strong: #e2c280;
  --color-tech: #4a8cff;
  --color-tech-soft: rgba(74, 140, 255, 0.14);
  --color-success: #4ade80;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --gradient-gold: linear-gradient(135deg, #c9a961 0%, #e2c280 50%, #c9a961 100%);
  --gradient-dark: linear-gradient(180deg, #0a0a0c 0%, #111114 100%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 8px 32px rgba(201, 169, 97, 0.16);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  --max-width: 1320px;
  --header-height: 80px;
  --transition: 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;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(74, 140, 255, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(201, 169, 97, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

::selection {
  background: var(--color-accent);
  color: var(--color-bg);
}

/* Hide scrollbar globally for cleaner aesthetic, keep scrolling */
html, body {
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;       /* IE/old Edge */
}

::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;                  /* Chrome/Safari/Edge */
  background: transparent;
}

::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: transparent; }

/* Re-enable thin scrollbar only for legal pages with long scrollable docs */
.legal-page {
  scrollbar-width: thin;
  scrollbar-color: var(--color-line-strong) transparent;
}

.legal-page ::-webkit-scrollbar { width: 6px; height: 6px; display: block; }
.legal-page ::-webkit-scrollbar-track { background: transparent; }
.legal-page ::-webkit-scrollbar-thumb {
  background: var(--color-line-strong);
  border-radius: 3px;
}
.legal-page ::-webkit-scrollbar-thumb:hover { background: var(--color-accent); }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

img, svg {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

.section {
  padding: 120px 0;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 24px;
  font-weight: 500;
}

.section-tag::before,
.section-tag::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--color-accent);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--color-text);
}

.section-title .accent {
  font-style: italic;
  color: var(--color-accent);
  font-weight: 300;
}

.section-subtitle {
  font-size: 18px;
  color: var(--color-text-soft);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: all var(--transition);
  background: rgba(10, 10, 12, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(10, 10, 12, 0.85);
  border-bottom-color: var(--color-line);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--color-text);
  font-weight: 500;
  transition: opacity var(--transition);
}

.logo:hover {
  opacity: 0.8;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-name {
  font-size: 18px;
  letter-spacing: 0.01em;
}

.logo-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-top: 4px;
  font-weight: 400;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-text-soft);
  border-radius: 8px;
  transition: all var(--transition);
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transform: translate(-50%, -50%);
  transition: width var(--transition);
  opacity: 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-text);
}

.nav-link.active::before {
  width: 24px;
  opacity: 1;
}

.nav-link:hover::before {
  width: 24px;
  opacity: 1;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--color-text);
  color: var(--color-bg);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-left: 12px;
  transition: all var(--transition);
}

.nav-cta:hover {
  background: var(--color-accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--color-line);
  transition: all var(--transition);
}

.menu-toggle:hover {
  background: var(--color-bg-card);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-text);
  color: var(--color-bg);
  border: 1px solid var(--color-text);
}

.btn-primary:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-bg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-line-strong);
}

.btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-bg);
  border: 1px solid var(--color-accent);
}

.btn-accent:hover {
  background: var(--color-accent-strong);
  border-color: var(--color-accent-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-accent);
  transition: all var(--transition);
  position: relative;
}

.btn-arrow::after {
  content: '→';
  transition: transform var(--transition);
}

.btn-arrow:hover {
  color: var(--color-accent-strong);
}

.btn-arrow:hover::after {
  transform: translateX(6px);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 100px 0 32px;
  background: var(--color-bg-soft);
  border-top: 1px solid var(--color-line);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
}

.footer-brand .logo {
  margin-bottom: 24px;
}

.footer-brand-desc {
  font-size: 14px;
  color: var(--color-text-soft);
  line-height: 1.7;
  max-width: 360px;
  margin-bottom: 32px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: var(--color-text-soft);
  transition: color var(--transition);
}

.footer-contact-item:hover {
  color: var(--color-accent);
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 24px;
  font-weight: 500;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-list a {
  font-size: 14px;
  color: var(--color-text-soft);
  transition: color var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-list a:hover {
  color: var(--color-accent);
  transform: translateX(4px);
}

.footer-list a::before {
  content: '→';
  opacity: 0;
  transform: translateX(-8px);
  transition: all var(--transition);
  color: var(--color-accent);
}

.footer-list a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--color-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-copy {
  font-size: 13px;
  color: var(--color-text-mute);
}

.footer-copy strong {
  color: var(--color-text-soft);
  font-weight: 500;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-bottom-links a {
  font-size: 13px;
  color: var(--color-text-mute);
  transition: color var(--transition);
}

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

/* ============================================
   UTILITIES
   ============================================ */
.text-gradient {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 60px 0;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-line-strong), transparent);
}

.divider-icon {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* Cursor follower */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  transition: width 0.2s, height 0.2s, background 0.2s;
}

.cursor-ring {
  width: 32px;
  height: 32px;
  border: 1px solid var(--color-accent);
  border-radius: 50%;
  transition: width 0.3s, height 0.3s, border-color 0.3s, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cursor-ring.hover {
  width: 56px;
  height: 56px;
  border-color: var(--color-text);
}

@media (max-width: 1024px) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* Page loader */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-bg);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 32px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-mark {
  width: 80px;
  height: 80px;
  position: relative;
}

.loader-ring {
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: loader-spin 1s linear infinite;
}

.loader-ring:nth-child(2) {
  inset: 8px;
  border-top-color: var(--color-text);
  animation-duration: 1.5s;
  animation-direction: reverse;
}

.loader-ring:nth-child(3) {
  inset: 16px;
  border-top-color: var(--color-accent-soft);
  animation-duration: 2s;
}

@keyframes loader-spin {
  to { transform: rotate(360deg); }
}

.loader-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--gradient-gold);
  z-index: 200;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px var(--color-accent);
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-line-strong);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
  backdrop-filter: blur(20px);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-4px);
}

.back-to-top svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

/* Common micro-interactions */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="300"] { transition-delay: 0.3s; }
[data-delay="400"] { transition-delay: 0.4s; }
[data-delay="500"] { transition-delay: 0.5s; }
[data-delay="600"] { transition-delay: 0.6s; }

/* Marquee */
.marquee {
  overflow: hidden;
  position: relative;
  width: 100%;
  user-select: none;
}

.marquee-track {
  display: flex;
  gap: 80px;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Responsive */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 48px; }
  .nav-list { display: none; }
  .menu-toggle { display: flex; }
}

@media (max-width: 768px) {
  :root { --header-height: 64px; }
  .container { padding: 0 20px; }
  .section { padding: 80px 0; }
  .section-header { margin-bottom: 48px; }
  .footer-top { grid-template-columns: 1fr; gap: 48px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .btn { padding: 14px 24px; font-size: 13px; }
}