/* ─────────────────────────────────────────
   3K Digital — Main Stylesheet
   ───────────────────────────────────────── */

:root {
  --bg-primary: #050508;
  --bg-secondary: #0a0a12;
  --bg-card: rgba(255,255,255,0.03);
  --bg-card-hover: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(100,180,255,0.25);
  --text-primary: #f0f0f5;
  --text-secondary: #8888a0;
  --text-muted: #555570;
  --accent-cyan: #00c8ff;
  --accent-purple: #7b5ea7;
  --accent-violet: #a855f7;
  --accent-gradient: linear-gradient(135deg, #00c8ff 0%, #7b5ea7 50%, #a855f7 100%);
  --accent-gradient-text: linear-gradient(90deg, #00c8ff, #a855f7);
  --glow-cyan: 0 0 40px rgba(0,200,255,0.15);
  --glow-purple: 0 0 40px rgba(168,85,247,0.15);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --nav-height: 72px;
  --section-pad: 120px;
}

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

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-purple); border-radius: 2px; }

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  z-index: 1000;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(5,5,8,0.85);
  backdrop-filter: blur(20px);
  border-color: var(--border);
}
.nav-logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
}
.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-cta {
  background: var(--accent-gradient);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  text-decoration: none;
}
.nav-cta:hover { opacity: 0.85; transform: scale(1.02); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: all 0.3s; }

/* ─── HERO ─── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  /*padding: 120px 24px 80px;*/
  overflow: hidden;
}
#hero-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(0,200,255,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(168,85,247,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 60%, rgba(123,94,167,0.06) 0%, transparent 60%);
}
.hero-content { position: relative; z-index: 1; /*max-width: 900px;*/ }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,200,255,0.08);
  border: 1px solid rgba(0,200,255,0.2);
  color: var(--accent-cyan);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: pulse 2s infinite;
}

h1.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 8rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.9s 0.4s forwards;
}
.gradient-text {
  background: var(--accent-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.9s 0.55s forwards;
}
.hero-sub {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 52px;
  line-height: 1.7;
  font-weight: 300;
  opacity: 0;
  animation: fadeUp 0.9s 0.7s forwards;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s 0.85s forwards;
}

/* ─── SCROLL INDICATOR ─── */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  /*left: 50%;*/
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeUp 1s 1.2s forwards;
}
.scroll-indicator span {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--font-display);
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent-cyan), transparent);
  animation: scrollLine 1.5s ease-in-out infinite;
}

/* ─── BUTTONS ─── */
.btn-primary {
  background: var(--accent-gradient);
  color: white;
  border: none;
  padding: 16px 36px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s;
  box-shadow: 0 4px 24px rgba(0,200,255,0.2);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 36px rgba(0,200,255,0.3);
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 15px 36px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.25s, color 0.25s, transform 0.25s;
}
.btn-ghost:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  transform: translateY(-2px);
}
.btn-sm { padding: 10px 22px; font-size: 13px; }

/* ─── SECTIONS ─── */
section { padding: var(--section-pad) 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 48px; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 24px;
}
.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent-cyan);
}
h2.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.75;
  font-weight: 300;
  max-width: 520px;
}

/* ─── ABOUT ─── */
#about { background: var(--bg-secondary); position: relative; overflow: hidden; }
#about::before {
  content: '';
  position: absolute;
  right: -200px; top: -100px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123,94,167,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-visual { position: relative; height: 420px; display: flex; align-items: center; justify-content: center; }
.about-orb { position: absolute; border-radius: 50%; filter: blur(1px); }
.orb-1 {
  width: 280px; height: 280px;
  background: conic-gradient(from 0deg, rgba(0,200,255,0.15), rgba(123,94,167,0.15), rgba(168,85,247,0.1), rgba(0,200,255,0.15));
  border: 1px solid rgba(255,255,255,0.06);
  animation: orbSpin 20s linear infinite;
}
.orb-2 {
  width: 200px; height: 200px;
  background: conic-gradient(from 180deg, rgba(168,85,247,0.12), rgba(0,200,255,0.08), rgba(168,85,247,0.12));
  border: 1px solid rgba(255,255,255,0.04);
  animation: orbSpin 14s linear infinite reverse;
}
.orb-3 {
  width: 100px; height: 100px;
  background: radial-gradient(circle, rgba(0,200,255,0.2) 0%, transparent 70%);
  animation: orbPulse 3s ease-in-out infinite;
}
.about-stats { display: flex; gap: 48px; margin-top: 48px; }
.stat-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  background: var(--accent-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label { font-size: 13px; color: var(--text-muted); font-weight: 400; }

/* ─── TOOLS ─── */
#tools { position: relative; overflow: hidden; }
#tools::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,200,255,0.3), transparent);
}
.tools-header { text-align: center; margin-bottom: 72px; }
.tools-header .section-label { justify-content: center; }
.tools-header .section-desc { margin: 0 auto; text-align: center; }
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.tool-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  cursor: pointer;
  transition: border-color 0.35s ease, background 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.35s ease;
  border-radius: var(--radius-xl);
  z-index: 0;
}
.tool-card:hover {
  border-color: transparent;
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,200,255,0.12), 0 0 0 1px rgba(0,200,255,0.2);
}
.tool-card:hover::before { opacity: 0.06; }
.tool-card > * { position: relative; z-index: 1; }

.tool-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  font-size: 24px;
  transition: transform 0.35s ease;
}
.tool-card:hover .tool-icon { transform: scale(1.1) rotate(-4deg); }
.tool-icon-fc { background: rgba(0,200,255,0.1); border: 1px solid rgba(0,200,255,0.2); }
.tool-icon-hc { background: rgba(168,85,247,0.1); border: 1px solid rgba(168,85,247,0.2); }
.tool-icon-una { background: rgba(123,94,167,0.1); border: 1px solid rgba(123,94,167,0.2); }
.tool-icon-una img { width: 36px; height: auto; object-fit: contain; }

.tool-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.tool-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 300;
  flex: 1;
  margin-bottom: 36px;
}
.tool-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent-cyan);
  text-decoration: none;
  transition: gap 0.2s;
}
.tool-card:hover .tool-link { gap: 12px; }
.tool-link::after { content: '→'; }
.tool-card.featured {
  background: linear-gradient(135deg, rgba(0,200,255,0.04) 0%, rgba(123,94,167,0.04) 100%);
  border-color: rgba(0,200,255,0.12);
}

/* ─── ECOSYSTEM ─── */
#ecosystem { background: var(--bg-secondary); position: relative; }
.eco-header { text-align: center; margin-bottom: 64px; }
.eco-header .section-label { justify-content: center; }
.eco-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.eco-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.eco-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}
.eco-logo-wrap { height: 70px; display: flex; align-items: center; }
.eco-logo-wrap img {
  max-height: 52px;
  max-width: 180px;
  width: auto;
  object-fit: contain;
  /*filter: brightness(0) invert(1);*/
  opacity: 0.85;
  transition: opacity 0.3s;
}
.eco-card:hover .eco-logo-wrap img { opacity: 1; }
.eco-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  font-weight: 300;
  flex: 1;
}
.eco-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
}
.badge-live { background: rgba(0,200,100,0.1); color: #00c864; border: 1px solid rgba(0,200,100,0.2); }
.badge-live::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #00c864;
  box-shadow: 0 0 6px #00c864;
  animation: pulse 2s infinite;
}
.badge-soon { background: rgba(168,85,247,0.1); color: var(--accent-violet); border: 1px solid rgba(168,85,247,0.2); }

.eco-link { font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.eco-link:hover { color: var(--accent-cyan); }

/* ─── PHILOSOPHY ─── */
#philosophy { position: relative; overflow: hidden; }
.phil-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.phil-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 48px; }
.pillar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 32px 28px;
  transition: background 0.3s, border-color 0.3s;
}
.pillar:first-child { border-radius: var(--radius-md) 0 0 0; }
.pillar:nth-child(2) { border-radius: 0 var(--radius-md) 0 0; }
.pillar:nth-child(3) { border-radius: 0 0 0 var(--radius-md); }
.pillar:last-child { border-radius: 0 0 var(--radius-md) 0; }
.pillar:hover { background: var(--bg-card-hover); border-color: var(--border-hover); }
.pillar-icon { font-size: 22px; margin-bottom: 14px; }
.pillar-title { font-family: var(--font-display); font-size: 15px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.pillar-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.65; font-weight: 300; }

.phil-visual { position: relative; height: 480px; display: flex; align-items: center; justify-content: center; }
.phil-lines { position: absolute; inset: 0; overflow: hidden; }
.phil-lines svg { width: 100%; height: 100%; }

/* ─── CTA ─── */
#cta { background: var(--bg-secondary); text-align: center; position: relative; overflow: hidden; }
#cta::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(0,200,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 24px;
}
.cta-sub { font-size: 17px; color: var(--text-secondary); margin-bottom: 52px; font-weight: 300; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ─── FOOTER ─── */
footer { border-top: 1px solid var(--border); padding: 60px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.footer-brand img { height: 28px; width: auto; margin-bottom: 16px; display: block; opacity: 0.7; }
.footer-brand p { font-size: 14px; color: var(--text-muted); line-height: 1.65; font-weight: 300; max-width: 240px; }
.footer-col h4 { font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 20px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14px; color: var(--text-secondary); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 32px; border-top: 1px solid var(--border); }
.footer-copy { font-size: 13px; color: var(--text-muted); }
.social-links { display: flex; gap: 16px; }
.social-link {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.social-link:hover { border-color: var(--border-hover); color: var(--accent-cyan); transform: translateY(-2px); }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes orbSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes orbPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  :root { --section-pad: 80px; }
  .container { padding: 0 24px; }
  nav { padding: 0 24px; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .about-grid, .phil-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-visual, .phil-visual { height: 260px; }
  .tools-grid { grid-template-columns: 1fr; }
  .eco-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 600px) {
  .eco-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; }
  .phil-pillars { grid-template-columns: 1fr; }
  .pillar:first-child { border-radius: var(--radius-md) var(--radius-md) 0 0; }
  .pillar:nth-child(2) { border-radius: 0; }
  .pillar:nth-child(3) { border-radius: 0; }
  .pillar:last-child { border-radius: 0 0 var(--radius-md) var(--radius-md); }
}
