@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600&family=Inter:wght@300;400;500;600;700;900&display=swap');

:root {
  --bg-color: #0B0D12;
  --panel-bg: rgba(21, 23, 32, 0.6);
  --panel-solid: #151720;
  --panel-hover: rgba(28, 31, 43, 0.8);
  --border-color: #2A2E3D;
  --text-main: #f4f4f5;
  --text-muted: #A1A1AA;
  --purple-main: #9D4EDD;
  --purple-hover: #c77dff;
  --purple-neon: #e0aaff;
  --blue-main: #00F0FF;
  --blue-hover: #48bfe3;
  --shadow-neon-purple: 0 0 10px rgba(157, 78, 221, 0.5), 0 0 20px rgba(157, 78, 221, 0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Backgrounds */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -2;
  pointer-events: none;
}
.bg-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 10%, var(--bg-color) 80%);
}

.glow-bg {
  position: absolute;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(157,78,221,0.08) 0%, rgba(11,13,18,0) 60%);
  top: -10vw;
  left: -20vw;
  z-index: -1;
  pointer-events: none;
}
.glow-bg-2 {
  position: absolute;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(0,240,255,0.06) 0%, rgba(11,13,18,0) 60%);
  top: 30vh;
  right: -10vw;
  z-index: -1;
  pointer-events: none;
}

.glass-panel {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

a { text-decoration: none; color: inherit; transition: color 0.2s; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* Navbar */
header {
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(42, 46, 61, 0.5);
  background: rgba(11, 13, 18, 0.6);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }

/* Logos */
.logo-horizontal {
  display: flex; align-items: center; justify-content: center;
  width: 104px; height: 44px;
  background-color: var(--panel-solid);
  border: 1px solid var(--purple-main);
  border-radius: 0.6rem;
  box-shadow: var(--shadow-neon-purple);
  position: relative; user-select: none;
}
.ko {
  position: absolute; top: 50%; left: 32%; transform: translate(-50%, -50%);
  font-size: 19px; font-weight: 900; color: white; letter-spacing: -0.05em;
  text-shadow: 0 0 10px rgba(157, 78, 221, 0.9);
}
.jinx {
  position: absolute; top: 50%; left: 62%; transform: translate(-50%, -50%);
  font-size: 19px; font-weight: 900; color: white; letter-spacing: -0.05em;
  text-shadow: 0 0 10px rgba(157, 78, 221, 0.9);
}

.logo-square-container {
  display: flex; justify-content: center; margin-bottom: -30px; position: relative; z-index: 10;
}
.logo-square {
  width: 100px; height: 100px;
  background-color: var(--panel-solid);
  border-radius: 1.2rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1px solid var(--purple-main);
  box-shadow: var(--shadow-neon-purple);
  user-select: none; line-height: 0.95;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}
.hover-scale:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(157, 78, 221, 0.8);
}
.ko-sq, .jinx-sq {
  font-size: 32px; font-weight: 900; color: white; letter-spacing: 0.15em; margin-left: 0.15em;
  text-shadow: 0 0 12px rgba(157, 78, 221, 0.9), 0 0 24px rgba(157, 78, 221, 0.5);
}

.nav-links { display: flex; gap: 2.5rem; align-items: center; }
.nav-links a.link-text { font-weight: 500; font-size: 0.95rem; color: var(--text-muted); }
.nav-links a.link-text:hover { color: var(--text-main); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; border: none; gap: 0.5rem;
}
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.9rem; }
.btn-lg { padding: 0.85rem 1.8rem; font-size: 1rem; }

.btn-primary {
  background-color: rgba(255,255,255,0.06); color: white;
  border: 1px solid rgba(255,255,255,0.15);
}
.btn-primary:hover {
  background-color: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.3);
  box-shadow: 0 0 20px rgba(255,255,255,0.05);
}
.btn-primary i { opacity: 0.8; }
.btn-outline { background-color: transparent; color: var(--text-main); border: 1px solid var(--border-color); }
.btn-outline:hover { background-color: var(--panel-hover); border-color: var(--text-muted); }

/* Hero Asymmetric */
.hero {
  padding: 8rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.badge {
  display: inline-block; padding: 0.4rem 1rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600;
  font-family: 'Fira Code', monospace; background: rgba(157, 78, 221, 0.1); color: var(--purple-neon);
  border: 1px solid rgba(157, 78, 221, 0.3); margin-bottom: 2rem;
}
.hero-content h1 {
  font-size: 4.8rem; font-weight: 800; line-height: 1.05; margin-bottom: 1.5rem; letter-spacing: -0.03em;
}
.text-gradient {
  background: linear-gradient(135deg, var(--purple-neon), #ffffff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-content p {
  font-size: 1.15rem; color: var(--text-muted); margin-bottom: 2.5rem; max-width: 500px;
}
.hero-buttons { display: flex; gap: 1rem; }

.hero-visual { position: relative; }
.floating { animation: float 6s ease-in-out infinite; }
@keyframes float {
  0% { transform: translateY(0px); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0px); }
}

/* Terminal Mockup */
.terminal-mockup {
  width: 100%; background: var(--bg-color); border: 1px solid var(--border-color); border-radius: 12px;
  overflow: hidden; box-shadow: 0 30px 60px -12px rgba(0,0,0,0.8);
}
.terminal-header {
  background: var(--panel-solid); padding: 0.8rem 1.2rem; display: flex; gap: 0.5rem; border-bottom: 1px solid var(--border-color);
}
.terminal-dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #FF5F56; } .dot-yellow { background: #FFBD2E; } .dot-green { background: #27C93F; }
.terminal-body {
  padding: 1.5rem; font-family: 'Fira Code', monospace; font-size: 0.95rem; color: var(--text-muted); min-height: 220px; line-height: 1.7;
}
.prompt { color: var(--purple-main); font-weight: 500; }
.log-line { opacity: 0; transform: translateY(10px); animation: logFadeIn 0.3s ease-out forwards; }
@keyframes logFadeIn { to { opacity: 1; transform: translateY(0); } }
.cursor { display: inline-block; width: 8px; height: 16px; background-color: var(--blue-main); animation: blink 1s step-end infinite; vertical-align: middle; margin-left: 4px; }
@keyframes blink { 50% { opacity: 0; } }

/* Bento Grid */
.bento-container { padding: 6rem 0; }
.bento-header h2 { font-size: 3rem; line-height: 1.1; margin-bottom: 3.5rem; letter-spacing: -0.03em; }
.bento-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; auto-rows: minmax(260px, auto);
}
.bento-card {
  background: var(--panel-bg); border: 1px solid var(--border-color); border-radius: 24px; padding: 2.5rem;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: flex; flex-direction: column;
}
.span-2 { grid-column: span 2; }
.span-1 { grid-column: span 1; }
.hover-border { transition: border-color 0.3s, transform 0.3s; }
.hover-border:hover { border-color: rgba(157, 78, 221, 0.4); transform: translateY(-3px); }
.icon-wrap { margin-bottom: 1.5rem; color: var(--text-muted); }
.icon-wrap i { width: 32px; height: 32px; }
.bento-content h3 { font-size: 1.4rem; margin-bottom: 1rem; color: white; }
.bento-content p { color: var(--text-muted); font-size: 1.05rem; }

/* Workflow Asymmetric */
.workflow-section { padding: 8rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.workflow-content h2 { font-size: 3rem; margin-bottom: 3.5rem; letter-spacing: -0.03em; }
.steps { display: flex; flex-direction: column; gap: 3rem; }
.step { display: flex; gap: 1.5rem; align-items: flex-start; }
.step-number {
  font-family: 'Fira Code', monospace; font-size: 1.1rem; font-weight: 700; color: var(--purple-main);
  background: rgba(157, 78, 221, 0.1); width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.step h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.step p { color: var(--text-muted); }

.mock-window {
  display: flex; height: 400px; border-radius: 16px; overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,0.5); border-color: rgba(42, 46, 61, 0.8);
}
.mock-sidebar { width: 80px; border-right: 1px solid var(--border-color); display: flex; flex-direction: column; align-items: center; padding: 1.5rem 0; gap: 1rem; background: var(--panel-solid); }
.mock-logo {
  width: 44px; height: 44px; border: 1px solid var(--purple-main); border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: var(--shadow-neon-purple); line-height: 0.9;
}
.mock-nav { width: 44px; height: 44px; border-radius: 10px; background: rgba(255,255,255,0.03); }
.mock-nav.active { background: rgba(157, 78, 221, 0.15); border: 1px solid rgba(157, 78, 221, 0.3); }
.mock-main { flex: 1; padding: 2rem; display: flex; flex-direction: column; gap: 2rem; background: var(--bg-color); }
.mock-header { height: 40px; width: 60%; background: var(--panel-solid); border: 1px solid var(--border-color); border-radius: 8px; }
.mock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.mock-card { height: 110px; background: var(--panel-solid); border: 1px solid var(--border-color); border-radius: 12px; }

/* Download */
.download-section { padding: 4rem 0 8rem; }
.download-card {
  padding: 5rem 4rem; border-radius: 24px; text-align: center; border: 1px solid rgba(157, 78, 221, 0.2);
  background: linear-gradient(180deg, rgba(21, 23, 32, 0.3) 0%, rgba(21, 23, 32, 0.8) 100%);
}
.download-card h2 { font-size: 3rem; margin-bottom: 1.5rem; letter-spacing: -0.03em; }
.download-card p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 2.5rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* Footer */
footer { border-top: 1px solid var(--border-color); padding: 3rem 0; text-align: center; color: var(--text-muted); }

/* Responsive – Tablet */
@media (max-width: 992px) {
  .hero { grid-template-columns: 1fr; text-align: center; gap: 3rem; padding: 5rem 0; }
  .hero-content h1 { font-size: 3.8rem; }
  .hero-content p { margin: 0 auto 2.5rem; }
  .hero-buttons { justify-content: center; }
  .bento-grid { grid-template-columns: 1fr; }
  .span-2, .span-1 { grid-column: span 1; }
  .workflow-section { grid-template-columns: 1fr; gap: 4rem; }
  .download-card { padding: 4rem 2rem; }
  .download-card h2 { font-size: 2.5rem; }
}

/* ============================================================
   MOBILE-ONLY STYLES (max-width: 768px)
   Desktop styles above are NOT touched here.
   ============================================================ */

/* --- Nav logo visibility --- */
.logo-desktop { display: flex; }   /* show on desktop */
.logo-mobile  { display: none; }   /* hide on desktop */
.nav-desktop  { display: flex; }   /* show on desktop */
.nav-mobile   { display: none; }   /* hide on desktop */

/* --- Square logo in nav (mobile) --- */
.logo-square-nav {
  width: 44px; height: 44px;
  background-color: var(--panel-solid);
  border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1px solid var(--purple-main);
  box-shadow: var(--shadow-neon-purple);
  user-select: none; line-height: 0.9;
}
.ko-sq-nav, .jinx-sq-nav {
  font-size: 13px; font-weight: 900; color: white; letter-spacing: 0.1em;
  text-shadow: 0 0 10px rgba(157, 78, 221, 0.9);
  line-height: 1.1;
}

/* --- Hamburger button --- */
.hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 40px; height: 40px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-color);
  border-radius: 10px; cursor: pointer; padding: 8px;
  transition: background 0.2s;
}
.hamburger span {
  display: block; width: 20px; height: 2px;
  background: var(--text-main); border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Mobile nav overlay --- */
.mobile-nav-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 99;
  background: rgba(11, 13, 18, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  flex-direction: column;
  justify-content: center; align-items: center;
  gap: 0;
  transition: opacity 0.3s ease;
  opacity: 0; pointer-events: none;
}
.mobile-nav-overlay.open {
  opacity: 1; pointer-events: all;
}
.mobile-nav-links {
  display: flex; flex-direction: column; align-items: center; gap: 0;
  width: 100%; padding: 0 2rem;
}
.mobile-nav-link {
  font-size: 2rem; font-weight: 700; color: var(--text-muted);
  padding: 1.2rem 0; width: 100%; text-align: center;
  border-bottom: 1px solid rgba(42,46,61,0.4);
  transition: color 0.2s;
}
.mobile-nav-link:first-child { border-top: 1px solid rgba(42,46,61,0.4); }
.mobile-nav-link:hover { color: var(--text-main); }
.mobile-nav-cta {
  margin-top: 2.5rem;
  border: none !important;
  background: var(--purple-main); color: white;
  border-radius: 14px; padding: 1rem 2.5rem;
  font-size: 1.2rem; width: auto;
  box-shadow: var(--shadow-neon-purple);
}

/* ============================================================
   MOBILE BREAKPOINT
   ============================================================ */
@media (max-width: 768px) {
  /* Show mobile elements, hide desktop */
  .logo-desktop { display: none !important; }
  .logo-mobile  { display: flex !important; }
  .nav-desktop  { display: none !important; }
  .nav-mobile   { display: flex !important; }
  .hamburger    { display: flex !important; }
  .mobile-nav-overlay { display: flex; }

  /* Container: ensure lateral padding on all content */
  .container { padding: 0 1.25rem; }

  /* Hero */
  .hero {
    grid-template-columns: 1fr; text-align: center;
    gap: 2.5rem; padding: 4rem 0 2rem;
  }
  .hero-content h1 { font-size: 2.8rem; line-height: 1.1; }
  .hero-content p  { font-size: 1rem; margin: 0 0 2rem; }
  .hero-buttons    { justify-content: center; }
  .hero-buttons .btn-lg {
    width: 100%; justify-content: center;
    padding: 1rem 1.5rem !important; font-size: 1rem !important;
  }
  .badge { font-size: 0.7rem; }

  /* Bento section */
  .bento-container { padding: 4rem 0; }
  .bento-header h2 { font-size: 2rem; margin-bottom: 2rem; }
  .bento-grid {
    grid-template-columns: 1fr; gap: 1rem;
  }
  .span-2, .span-1 { grid-column: span 1; }
  .bento-card { padding: 1.75rem; border-radius: 18px; }

  /* Workflow section */
  .workflow-section { grid-template-columns: 1fr; gap: 3rem; padding: 4rem 0; }
  .workflow-content h2 { font-size: 2rem; margin-bottom: 2rem; }
  .workflow-image { display: none; } /* hide the mock window on mobile to save space */
  .steps { gap: 2rem; }
  .step { gap: 1rem; }
  .step h3 { font-size: 1.1rem; }
  .step p { font-size: 0.95rem; }

  /* Download section */
  .download-section { padding: 2rem 0 5rem; }
  .download-card { padding: 3rem 1.5rem; border-radius: 18px; }
  .download-card h2 { font-size: 1.8rem; margin-bottom: 1rem; }
  .download-card p { font-size: 1rem; margin-bottom: 2rem; }
  .download-card .btn-lg { width: 100%; justify-content: center; }

  /* Terminal on mobile: reduce font size */
  .terminal-body { font-size: 0.75rem; padding: 1rem; min-height: 160px; }

  /* Footer */
  footer { padding: 2rem 0; font-size: 0.85rem; }
}
