/* === NOX WEBSITE — GLOBAL STYLES === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Colors — Light */
  --bg: #ffffff;
  --fg: #0a0a0a;
  --fg-muted: rgba(10,10,10,0.65);
  --fg-dim: rgba(10,10,10,0.4);
  --accent: #6366f1;
  --accent-light: rgba(99,102,241,0.1);
  --glass-bg: rgba(255,255,255,0.6);
  --glass-border: rgba(0,0,0,0.06);
  --card-hover: rgba(0,0,0,0.03);
  --btn-bg: #000;
  --btn-fg: #fff;
  --code-bg: #fafafa;
  --shadow: rgba(0,0,0,0.08);
}

[data-theme="dark"] {
  --bg: #09090b;
  --fg: #fafafa;
  --fg-muted: rgba(250,250,250,0.75);
  --fg-dim: rgba(250,250,250,0.3);
  --accent: #818cf8;
  --accent-light: rgba(129,140,248,0.1);
  --glass-bg: rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.08);
  --card-hover: rgba(255,255,255,0.05);
  --btn-bg: #fff;
  --btn-fg: #000;
  --code-bg: rgba(0,0,0,0.5);
  --shadow: rgba(0,0,0,0.3);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font-family: inherit; border: none; outline: none; background: none; }
::selection { background: rgba(99,102,241,0.25); }

/* === UTILITIES === */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
.text-accent { color: var(--accent); }

.gradient-text {
  background: linear-gradient(135deg, var(--accent), #a855f7, #06b6d4);
  color: var(--accent); /* Fallback for SEO visibility */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradient-shift 4s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
@keyframes pulse-glow { 0%, 100% { opacity: 0.3; } 50% { opacity: 0.6; } }
@keyframes spin-slow { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* === NAVBAR === */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: center; padding: 1rem;
  animation: fade-up 0.6s ease forwards;
}

.navbar-inner {
  width: 100%; max-width: 1280px;
  display: flex; align-items: center; justify-content: space-between;
}

.logo {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.625rem 1rem; border-radius: 1rem;
}

.logo-icon {
  width: 2rem; height: 2rem; border-radius: 0.5rem;
  background: var(--btn-bg); color: var(--btn-fg);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.875rem;
  transition: transform 0.3s;
}

.logo:hover .logo-icon { transform: rotate(12deg); }
.logo-text { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }

.nav-links {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0.5rem 1.5rem; border-radius: 1rem;
  font-size: 0.875rem; font-weight: 500; color: var(--fg-muted);
}

.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--fg); }

.nav-btn {
  padding: 0.375rem 1rem; border-radius: 0.75rem;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: 0.75rem; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-btn:hover { transform: scale(1.1); box-shadow: 0 4px 12px var(--shadow); }

.nav-actions { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem; border-radius: 1rem; }

.theme-toggle {
  width: 2.25rem; height: 2.25rem; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; position: relative;
}

.theme-toggle:hover { background: var(--card-hover); transform: scale(1.1); }
.theme-toggle svg { width: 1.25rem; height: 1.25rem; transition: all 0.3s; }
.sun-icon { display: block; }
.moon-icon { display: none; }
[data-theme="dark"] .sun-icon { display: none; }
[data-theme="dark"] .moon-icon { display: block; }

.get-started-btn {
  padding: 0.5rem 1rem; border-radius: 0.75rem;
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: 0.875rem; font-weight: 600; cursor: pointer;
  transition: all 0.2s; box-shadow: 0 4px 12px var(--shadow);
}

.get-started-btn:hover { transform: scale(1.05); }

.mobile-menu-btn { display: none; padding: 0.5rem; cursor: pointer; border-radius: 0.5rem; }
.mobile-menu-btn:hover { background: var(--card-hover); }
.mobile-menu-btn svg { width: 1.5rem; height: 1.5rem; }

/* === HERO === */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding-top: 5rem; padding-bottom: 2rem; overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }

.hero-blob {
  position: absolute; border-radius: 50%;
  filter: blur(120px); will-change: transform;
  animation: float 8s ease-in-out infinite, pulse-glow 4s ease-in-out infinite;
}

.hero-blob-1 { top: 20%; left: 20%; width: 500px; height: 500px; background: rgba(99,102,241,0.25); }
.hero-blob-2 { bottom: 20%; right: 20%; width: 600px; height: 600px; background: rgba(168,85,247,0.15); animation-delay: 2s; }

.hero-content { position: relative; z-index: 10; text-align: center; max-width: 56rem; }
.hero-badge {
  display: inline-block; padding: 0.375rem 1rem; border-radius: 9999px;
  font-size: 0.875rem; font-weight: 600; color: var(--accent);
  margin-bottom: 1.5rem; border: 1px solid var(--accent-light);
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 900;
  letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 2rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem); color: var(--fg-muted);
  max-width: 42rem; margin: 0 auto 2.5rem; line-height: 1.7;
}

.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

.btn-primary {
  padding: 1rem 2rem; border-radius: 1rem;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: 1rem;
  display: flex; align-items: center; gap: 0.5rem; cursor: pointer;
  transition: all 0.2s; box-shadow: 0 4px 16px var(--shadow);
}

.btn-primary:hover { transform: scale(1.08); }

.btn-secondary {
  padding: 1rem 2rem; border-radius: 1rem;
  font-weight: 700; font-size: 1rem;
  display: flex; align-items: center; gap: 0.5rem; cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover { background: var(--card-hover); transform: scale(1.05); box-shadow: 0 8px 24px var(--shadow); }

/* === FEATURES === */
.features { padding: 6rem 1rem; }
.section-title { font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 900; margin-bottom: 1.5rem; }
.section-subtitle { color: var(--fg-muted); max-width: 42rem; margin: 0 auto; }

.features-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem;
  margin-top: 4rem;
}

.feature-card {
  padding: 1.5rem; border-radius: 1.5rem;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  transition: all 0.3s; cursor: default;
  opacity: 0; transform: translateY(20px);
}

.feature-card.visible { opacity: 1; transform: translateY(0); transition: all 0.5s ease; }
.feature-card:hover { background: var(--card-hover); }

.feature-icon {
  width: 2.5rem; height: 2.5rem; border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; transition: transform 0.3s;
}

.feature-card:hover .feature-icon { transform: scale(1.15); }
.feature-icon svg { width: 1.25rem; height: 1.25rem; }
.feature-card h3 { font-size: 0.875rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.7rem; color: var(--fg-muted); line-height: 1.5; }

/* === CHAT PREVIEW === */
.chat-preview { padding: 5rem 1rem; position: relative; overflow: hidden; }

.chat-window {
  max-width: 48rem; margin: 0 auto;
  border-radius: 1.5rem; overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 40px 100px -15px var(--shadow);
  display: flex; flex-direction: column; height: 580px;
  background: var(--bg);
}

.chat-header {
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--glass-bg); backdrop-filter: blur(12px);
}

.chat-dots { display: flex; gap: 0.375rem; }
.chat-dots span { width: 0.625rem; height: 0.625rem; border-radius: 50%; background: var(--fg-dim); }
.chat-title { font-size: 0.5rem; font-weight: 900; letter-spacing: 0.25em; text-transform: uppercase; color: var(--fg-dim); }

.chat-messages { flex: 1; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 2rem; }
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--fg-dim); border-radius: 4px; }

.chat-msg { display: flex; gap: 1rem; max-width: 100%; }

.chat-avatar {
  width: 2rem; height: 2rem; border-radius: 0.5rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--glass-border); box-shadow: 0 1px 3px var(--shadow);
}

.chat-avatar.user { background: var(--btn-bg); color: var(--btn-fg); }
.chat-avatar.nox { background: var(--bg); color: var(--fg); border: 1px solid var(--glass-border); }
.chat-avatar svg { width: 1rem; height: 1rem; }
.chat-label { font-size: 0.5rem; font-weight: 900; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-dim); }
.chat-text { font-size: 0.875rem; font-weight: 500; color: var(--fg-muted); line-height: 1.7; margin-top: 0.375rem; }

.chat-code {
  margin-top: 1rem; border-radius: 0.75rem; overflow: hidden;
  border: 1px solid var(--glass-border); background: var(--code-bg);
}

.chat-code-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.5rem 1rem; border-bottom: 1px solid var(--glass-border);
}

.chat-code-header span { font-size: 0.5rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.2em; color: var(--fg-dim); }
.chat-code pre { padding: 1rem; font-size: 0.75rem; font-family: 'SF Mono', 'Fira Code', monospace; color: var(--fg-muted); overflow-x: auto; line-height: 1.7; white-space: pre; }
.copy-btn { padding: 0.375rem; border-radius: 0.375rem; cursor: pointer; transition: background 0.2s; }
.copy-btn:hover { background: var(--card-hover); }
.copy-btn svg { width: 0.75rem; height: 0.75rem; color: var(--fg-dim); }

.chat-input-area {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--glass-border);
  background: var(--glass-bg); backdrop-filter: blur(12px);
}

.chat-input-wrap {
  position: relative; max-width: 42rem; margin: 0 auto;
}

.chat-input {
  width: 100%; padding: 0.875rem 3rem 0.875rem 2.75rem;
  border-radius: 1rem; border: 1px solid var(--glass-border);
  background: var(--bg); color: var(--fg);
  font-size: 0.8125rem; font-weight: 500;
  transition: all 0.2s;
}

.chat-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.chat-input::placeholder { color: var(--fg-dim); }
.chat-input-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); }
.chat-input-icon svg { width: 1rem; height: 1rem; color: var(--fg-dim); }
.chat-send-btn { position: absolute; right: 0.625rem; top: 50%; transform: translateY(-50%); padding: 0.5rem; border-radius: 0.75rem; cursor: pointer; transition: all 0.2s; }
.chat-send-btn:hover { background: var(--card-hover); transform: translateY(-50%) scale(1.1); }
.chat-send-btn svg { width: 1rem; height: 1rem; color: var(--fg-dim); }

.chat-footer-text {
  display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin-top: 1rem;
  font-size: 0.5rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.3em; color: var(--fg-dim);
}

.chat-footer-dot { width: 0.25rem; height: 0.25rem; border-radius: 50%; background: var(--fg-dim); }

/* === DOWNLOAD === */
.download { padding: 6rem 1rem; position: relative; overflow: hidden; }

.download-blob {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 800px; height: 800px; background: var(--accent-light);
  border-radius: 50%; filter: blur(120px); pointer-events: none;
}

.download-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  margin-top: 3rem;
}

.download-card {
  padding: 2rem; border-radius: 1.5rem;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  transition: all 0.3s; cursor: pointer;
  opacity: 0; transform: translateY(30px);
}

.download-card.visible { opacity: 1; transform: translateY(0); transition: all 0.5s ease; }
.download-card:hover { transform: translateY(-4px); }

.download-icon {
  width: 4rem; height: 4rem; border-radius: 1rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem; box-shadow: 0 8px 24px var(--shadow);
  transition: transform 0.3s; color: #fff;
}

.download-card:hover .download-icon { transform: rotate(6deg); }
.download-icon svg { width: 2rem; height: 2rem; }
.download-card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.25rem; }
.download-version { font-size: 0.625rem; font-weight: 700; color: #a855f7; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1rem; }
.download-desc { font-size: 0.875rem; color: var(--fg-muted); margin-bottom: 2rem; line-height: 1.6; }

.download-btn {
  width: 100%; padding: 1rem; border-radius: 0.75rem;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; display: flex; align-items: center; justify-content: center;
  gap: 0.5rem; cursor: pointer; transition: all 0.2s;
  box-shadow: 0 4px 12px var(--shadow); position: relative; overflow: hidden;
}

.download-btn:hover { transform: scale(1.05); box-shadow: 0 8px 24px var(--shadow); }
.download-btn .shimmer { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent); transform: translateX(-100%); }
.download-btn:hover .shimmer { animation: shimmer 0.8s ease; }
.download-btn svg { width: 1rem; height: 1rem; }

/* === HOW IT WORKS === */
.how-it-works { padding: 5rem 1rem; position: relative; overflow: hidden; }

.pipeline {
  display: flex; align-items: center; justify-content: center;
  gap: 2rem; padding: 3rem 0; flex-wrap: wrap;
}

.pipeline-node { display: flex; flex-direction: column; align-items: center; gap: 1rem; }

.pipeline-circle {
  width: 7rem; height: 7rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}

.pipeline-circle svg { width: 2.5rem; height: 2.5rem; position: relative; z-index: 2; }
.pipeline-circle .dashed { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed; opacity: 0.3; }
.pipeline-circle .dashed.spin { animation: spin-slow 20s linear infinite; }
.pipeline-circle .dashed.spin-rev { animation: spin-slow 20s linear infinite reverse; }

.pipeline-node h3 { font-weight: 900; font-size: 0.75rem; }
.pipeline-node .label { font-size: 0.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; color: var(--fg-dim); }

.pipeline-arrow { width: 4rem; height: 1px; background: var(--fg-dim); position: relative; }

.pipeline-center .pipeline-circle {
  width: 9rem; height: 9rem;
}

.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 4rem; }

.info-card {
  padding: 2rem; border-radius: 1.5rem;
  transition: all 0.2s; cursor: default;
}

.info-card:hover { border-color: var(--fg-dim); transform: scale(1.03); box-shadow: 0 8px 32px var(--shadow); }
.info-card svg { width: 1.5rem; height: 1.5rem; color: var(--fg-muted); margin-bottom: 1rem; }
.info-card h4 { font-weight: 700; font-size: 1.125rem; margin-bottom: 0.25rem; }
.info-card p { font-size: 0.875rem; color: var(--fg-dim); }

/* === QUOTE === */
.quote-card {
  margin-top: 5rem; padding: 2rem; border-radius: 1.5rem; text-align: center;
  border: 1px solid rgba(99,102,241,0.3);
}

.quote-card p { color: var(--fg-muted); font-size: 0.875rem; font-style: italic; }
.quote-card .author { margin-top: 1rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; color: var(--accent); }

/* === FOOTER === */
.footer { padding: 5rem 1rem; border-top: 1px solid var(--glass-border); }

.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem;
}

.footer-brand p { color: var(--fg-muted); font-size: 0.875rem; max-width: 20rem; margin: 1.5rem 0 2rem; line-height: 1.7; }
.footer-social { display: flex; gap: 1rem; }
.footer-social div { width: 2rem; height: 2rem; border-radius: 0.5rem; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s; }
.footer-social div:hover { background: var(--card-hover); }

.footer-col h4 { font-weight: 700; margin-bottom: 1.5rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 1rem; }
.footer-col a { font-size: 0.875rem; color: var(--fg-muted); font-weight: 500; transition: color 0.2s; }
.footer-col a:hover { color: var(--fg); }

.footer-bottom {
  margin-top: 5rem; padding-top: 2rem; border-top: 1px solid var(--glass-border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: var(--fg-dim);
}

.footer-bottom-links { display: flex; gap: 2rem; }
.footer-bottom-links a:hover { color: var(--fg); }

/* === BADGE === */
.badge-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.25rem 0.75rem; border-radius: 9999px;
  font-size: 0.5rem; font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--accent);
  border: 1px solid var(--accent-light);
}

.badge-pill svg { width: 0.75rem; height: 0.75rem; }

/* === ANIMATE ON SCROLL === */
.animate-on-scroll { opacity: 0; transform: translateY(20px); transition: all 0.6s ease; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .download-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .info-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .get-started-btn { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .download-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .download-card { padding: 1rem; }
  .download-icon { width: 3rem; height: 3rem; border-radius: 0.75rem; }
  .download-icon svg { width: 1.5rem; height: 1.5rem; }
  .download-card h3 { font-size: 1.125rem; }
  .download-desc { display: none; }
  .hero-blob-1 { width: 300px; height: 300px; }
  .hero-blob-2 { width: 400px; height: 400px; }
  .pipeline { gap: 0.5rem; }
  .pipeline-circle { width: 4rem; height: 4rem; }
  .pipeline-circle svg { width: 1.5rem; height: 1.5rem; }
  .pipeline-center .pipeline-circle { width: 5rem; height: 5rem; }
  .pipeline-arrow { width: 2rem; }
  .pipeline-node h3 { font-size: 0.6rem; }
  .info-cards { grid-template-columns: 1fr 1fr; }
  .info-card { padding: 1rem; }
  .info-card h4 { font-size: 0.8rem; }
  .info-card p { font-size: 0.7rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .chat-window { height: 480px; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .download-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: scroll !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
}

