/* ═══════════════════════════════════════════
   DATALITHIX — CSS including UI Mockups
   ═══════════════════════════════════════════ */

:root {
  --bg-base:        #040811;
  --bg-surface:     #080f1e;
  --bg-card:        #0c1528;
  --bg-card-hover:  #101d35;
  --bg-overlay:     rgba(4, 8, 17, 0.75);

  --cyan:           #0ea5e9;
  --cyan-glow:      rgba(14, 165, 233, 0.18);

  --violet:         #0f766e;
  --violet-glow:    rgba(15, 118, 110, 0.18);

  --text-primary:   #f0f6ff;
  --text-secondary: #94a3b8;
  --text-muted:     #475569;
  --text-accent:    #e2e8f0;

  --border:         rgba(148, 163, 184, 0.1);

  --radius-sm:      8px;
  --radius-md:      14px;
  --radius-lg:      20px;
  --radius-xl:      28px;

  --shadow-card:    0 4px 32px rgba(0,0,0,0.4), 0 1px 0 rgba(255,255,255,0.04) inset;

  --font-sans:      'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body:      'Inter', system-ui, sans-serif;
  --transition:     cubic-bezier(0.23, 1, 0.32, 1);
  --nav-h:          72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body { background: var(--bg-base); color: var(--text-primary); font-family: var(--font-body); font-size: 16px; line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; position: relative; overflow: hidden; }
.hide-sm { display: block; }

.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s var(--transition), transform 0.7s var(--transition); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal:nth-child(2) { transition-delay: 0.1s; } .reveal:nth-child(3) { transition-delay: 0.2s; }

.gradient-text { background: linear-gradient(135deg, #38bdf8 0%, #a78bfa 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.cyan-gradient { background: linear-gradient(135deg, #0ea5e9 0%, #60a5fa 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.violet-gradient { background: linear-gradient(135deg, #0f766e 0%, #34d399 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.section-label { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 16px; }
.section-label::before { content: ''; display: inline-block; width: 20px; height: 1px; background: currentColor; }
.cyan-label { color: #38bdf8; } .violet-label { color: #14b8a6; }

.section-title { font-family: var(--font-sans); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.15; margin-bottom: 20px; }
.section-desc { font-size: 1.05rem; color: var(--text-secondary); max-width: 640px; margin-bottom: 56px; }

.btn-primary { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; background: linear-gradient(135deg, #0ea5e9, #38bdf8); color: #fff; font-weight: 700; font-size: 0.9rem; border-radius: 50px; transition: transform 0.2s, box-shadow 0.2s; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(14, 165, 233, 0.4); }
.btn-ghost { display: inline-flex; align-items: center; padding: 14px 28px; background: transparent; border: 1px solid var(--border); color: #fff; font-weight: 600; font-size: 0.9rem; border-radius: 50px; transition: 0.2s; }
.btn-ghost:hover { border-color: #38bdf8; background: rgba(56, 189, 248, 0.1); }

/* ── Navigation & Logo ── */
.navbar { position: fixed; top: 0; width: 100%; z-index: 1000; height: var(--nav-h); display: flex; align-items: center; border-bottom: 1px solid transparent; transition: 0.4s; }
.navbar.scrolled { background: rgba(4, 8, 17, 0.88); backdrop-filter: blur(20px); border-bottom-color: var(--border); }
.nav-container { max-width: 1200px; margin: 0 auto; width: 100%; display: flex; align-items: center; gap: 40px; padding: 0 24px; }
.nav-logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-sans); font-weight: 800; font-size: 1.2rem; letter-spacing: 0.05em; color: #fff; }
.dlx-logo { width: 34px; height: 34px; color: #fff; }
.logo-text { padding-top: 2px; }
.nav-links { display: flex; flex: 1; gap: 4px; }
.nav-link { padding: 8px 16px; font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); transition: 0.2s; border-radius: 4px; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav-actions { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.btn-nav-cta { padding: 9px 20px; background: #0ea5e9; color: #fff; font-weight: 700; font-size: 0.85rem; border-radius: 50px; }
.lang-switcher { padding: 9px 14px; background: rgba(255, 255, 255, 0.08); color: #fff; font-weight: 700; font-size: 0.8rem; border-radius: 50px; border: 1px solid var(--border); transition: 0.2s; letter-spacing: 0.05em; }
.lang-switcher:hover { background: rgba(255, 255, 255, 0.15); border-color: #38bdf8; }
.nav-hamburger { display: none; }
.mobile-menu { display: none; }

/* ── Hero ── */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; }
.hero-bg-overlay { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 20%, rgba(14, 165, 233, 0.1) 0%, transparent 60%), radial-gradient(ellipse at 70% 80%, rgba(15, 118, 110, 0.1) 0%, transparent 60%); }
.particles-canvas { position: absolute; inset: 0; }
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 900px; padding: 0 24px; }
.hero-cards { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; align-items: center; }

.hero-card {
  position: relative;
  padding: 32px 36px;
  border-radius: 24px;
  overflow: hidden;
  max-width: 700px;
  width: 100%;
  background: rgba(12, 21, 40, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.4s var(--transition), box-shadow 0.4s var(--transition);
}
.hero-card:hover { transform: translateY(-4px) scale(1.01); }

.card-glow {
  position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  filter: blur(60px); opacity: 0.12;
  animation: cardGlowRotate 12s linear infinite;
  pointer-events: none;
}
.card-glow-cyan { background: conic-gradient(from 0deg, #0ea5e9, #38bdf8, #818cf8, #a78bfa, #0ea5e9); }
.card-glow-violet { background: conic-gradient(from 180deg, #a78bfa, #7c3aed, #0ea5e9, #38bdf8, #a78bfa); }
@keyframes cardGlowRotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.card-border {
  position: absolute; inset: 0; border-radius: 24px; pointer-events: none;
  padding: 1px;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.card-border-cyan { background: linear-gradient(135deg, rgba(14, 165, 233, 0.5), transparent 40%, transparent 60%, rgba(167, 139, 250, 0.3)); }
.card-border-violet { background: linear-gradient(135deg, rgba(167, 139, 250, 0.5), transparent 40%, transparent 60%, rgba(14, 165, 233, 0.3)); }

.card-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.hero-card-primary .card-icon { background: rgba(14, 165, 233, 0.1); border: 1px solid rgba(14, 165, 233, 0.2); }
.hero-card-symbiosis .card-icon { background: rgba(167, 139, 250, 0.1); border: 1px solid rgba(167, 139, 250, 0.2); }

.hero-card-primary { box-shadow: 0 8px 40px rgba(14, 165, 233, 0.15), 0 0 0 1px rgba(14, 165, 233, 0.08); }
.hero-card-primary:hover { box-shadow: 0 12px 48px rgba(14, 165, 233, 0.25), 0 0 0 1px rgba(14, 165, 233, 0.15); }

.hero-card-symbiosis { box-shadow: 0 8px 40px rgba(167, 139, 250, 0.12), 0 0 0 1px rgba(167, 139, 250, 0.08); }
.hero-card-symbiosis:hover { box-shadow: 0 12px 48px rgba(167, 139, 250, 0.2), 0 0 0 1px rgba(167, 139, 250, 0.15); }

.hero-card-title { font-family: var(--font-sans); font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; line-height: 1.1; margin-bottom: 0; }

.hero-symbiosis-text {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0;
  font-style: italic;
  letter-spacing: 0.01em;
}

.card-sparkle {
  position: absolute; top: 20px; right: 20px;
  width: 60px; height: 60px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: sparkle 4s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes sparkle {
  0% { opacity: 0.3; transform: scale(0.8); }
  100% { opacity: 0.8; transform: scale(1.2); }
}

.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; background: rgba(14, 165, 233, 0.1); border: 1px solid rgba(14, 165, 233, 0.2); border-radius: 50px; font-size: 0.78rem; font-weight: 600; color: #38bdf8; margin-bottom: 32px; text-transform: uppercase; }
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: #38bdf8; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(56,189,248,0.4); } 70% { box-shadow: 0 0 0 10px rgba(56,189,248,0); } 100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); } }
.hero-headline { font-family: var(--font-sans); font-size: clamp(2.8rem, 6vw, 5.2rem); font-weight: 800; line-height: 1.08; }
.hero-sub { font-size: clamp(1rem, 2vw, 1.2rem); color: var(--text-secondary); margin: 0 auto 44px; max-width: 680px; }
.hero-ctas { display: flex; justify-content: center; gap: 12px; margin-bottom: 64px; }
.hero-stats { display: flex; justify-content: center; gap: 40px; }
.stat-num { display: block; font-size: 2rem; font-weight: 800; color: #fff; line-height: 1; }
.stat-label { display: block; font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }
.hero-scroll-hint { position: absolute; bottom: 36px; display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 2; font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; }
.scroll-arrow { width: 1px; height: 40px; background: linear-gradient(to bottom, var(--border), transparent); }

/* ── Products Overview ── */
.products-section { text-align: center; } .products-section .section-desc { margin: 0 auto 64px; }
.products-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.product-card { background: var(--bg-card); border-radius: var(--radius-xl); border: 1px solid var(--border); text-align: left; padding: 36px; transition: 0.3s; position: relative; overflow: hidden; }
.product-card:hover { transform: translateY(-4px); }
.fr8ix-card:hover { border-color: rgba(14, 165, 233, 0.3); } .kanon-card:hover { border-color: rgba(15, 118, 110, 0.3); }
.product-card-glow { position: absolute; top: -80px; right: -80px; width: 280px; height: 280px; filter: blur(80px); opacity: 0; transition: 0.5s; }
.product-card:hover .product-card-glow { opacity: 1; }
.fr8ix-glow { background: rgba(14, 165, 233, 0.25); } .kanon-glow { background: rgba(15, 118, 110, 0.25); }
.product-icon-wrap { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.fr8ix-icon-bg { background: rgba(14, 165, 233, 0.1); border: 1px solid rgba(14, 165, 233, 0.2); }
.kanon-icon-bg { background: rgba(15, 118, 110, 0.1); border: 1px solid rgba(15, 118, 110, 0.2); }
.product-tag { display: inline-block; padding: 4px 12px; border-radius: 50px; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; margin-bottom: 14px; }
.fr8ix-tag { background: rgba(14, 165, 233, 0.1); color: #38bdf8; border: 1px solid rgba(14, 165, 233, 0.2); }
.kanon-tag { background: rgba(15, 118, 110, 0.1); color: #14b8a6; border: 1px solid rgba(15, 118, 110, 0.2); }
.product-name { font-family: var(--font-sans); font-size: 2rem; font-weight: 800; margin-bottom: 6px; }
.product-tagline { font-size: 0.9rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 16px; }
.product-desc { font-size: 0.92rem; margin-bottom: 24px; color: var(--text-secondary); }
.product-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.875rem; }
.fr8ix-link { color: #38bdf8; } .kanon-link { color: #14b8a6; }

/* ── Deep Dives ── */
.fr8ix-section { background: var(--bg-surface); }
.kanon-section { background: var(--bg-base); }
.product-deep { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.product-deep-reverse { grid-template-columns: 1.2fr 1fr; }
.feature-list { display: flex; flex-direction: column; gap: 28px; }
.feature-item { display: flex; gap: 18px; }
.feat-icon-wrap { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.cyan-feat { background: rgba(14, 165, 233, 0.1); color: #38bdf8; border: 1px solid rgba(14, 165, 233, 0.2); }
.violet-feat { background: rgba(15, 118, 110, 0.1); color: #14b8a6; border: 1px solid rgba(15, 118, 110, 0.2); }
.feat-content h4 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.feat-content p { font-size: 0.9rem; color: var(--text-secondary); }

/* ── Visual UI Mockups ── */
.visual-frame { display: flex; border-radius: 14px; position: relative; box-shadow: 0 30px 60px rgba(0,0,0,0.5); padding: 8px; background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.01)); border: 1px solid rgba(255,255,255,0.08); aspect-ratio: 16/9; }
.fr8ix-screenshot { width: 100%; max-width: 100%; height: auto; object-fit: contain; border-radius: 14px; box-shadow: 0 30px 60px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.08); display: block; image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges; }
.mockup-window { width: 100%; height: 100%; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; background: #fff; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1); }
.mockup-top { height: 24px; background: #f1f5f9; display: flex; align-items: center; padding: 0 12px; border-bottom: 1px solid #e2e8f0; }
.mac-dots { display: flex; gap: 6px; }
.mac-dots span { width: 10px; height: 10px; border-radius: 50%; opacity: 0.8; }
.mac-dots span:nth-child(1) { background: #ff5f56; } .mac-dots span:nth-child(2) { background: #ffbd2e; } .mac-dots span:nth-child(3) { background: #27c93f; }
.mockup-body { flex: 1; display: flex; font-size: 10px; overflow: hidden; color: #334155; }

/* ── Fr8ix Mockup ── */
.fr8ix-app .fr-sidebar { width: 130px; background: #f8fafc; border-right: 1px solid #e2e8f0; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.fr-brand { font-family: var(--font-sans); font-size: 14px; font-weight: 800; color: #0284c7; margin-bottom: 8px; }
.fr-brand span { display: block; font-size: 7px; color: #64748b; font-weight: 600; margin-top: 2px; letter-spacing: 0.05em; }
.fr-item { font-size: 10px; color: #475569; padding: 6px 8px; border-radius: 4px; font-weight: 500; cursor: default; }
.fr-item.active { background: #e0f2fe; color: #0284c7; font-weight: 600; }
.fr8ix-app .fr-main { flex: 1; background: #f1f5f9; display: flex; flex-direction: column; }
.fr-header { background: #fff; padding: 12px; border-bottom: 1px solid #e2e8f0; display: flex; align-items: center; gap: 12px; }
.fr-nav-icon { color: #0284c7; font-size: 14px; }
.fr-title { font-weight: 700; font-size: 12px; color: #0f172a; }
.fr-title span { display: block; font-size: 8px; color: #64748b; font-weight: 500; margin-top: 2px; }
.fr-content { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.fr-page-title { font-size: 16px; font-weight: 700; color: #0f172a; display: flex; align-items: center; gap: 8px; }
.fr-page-title span { font-size: 10px; color: #0284c7; font-weight: 500; }
.fr-chat-panel { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 12px; box-shadow: 0 1px 2px rgba(0,0,0,0.02); }
.fr-chat-label { color: #64748b; font-size: 10px; margin-bottom: 6px; }
.fr-float-right { float: right; color: #0284c7; }
.fr-chat-box { background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 4px; padding: 12px; font-family: var(--font-body); color: #0f172a; font-size: 12px; height: 50px; }
.fr-chat-tags { display: flex; gap: 8px; margin: 10px 0; }
.fr-tag { color: #0284c7; font-weight: 600; font-size: 9px; }
.fr-chat-actions { display: flex; gap: 8px; }
.fr-btn { padding: 6px 12px; border-radius: 4px; background: #f1f5f9; color: #334155; font-weight: 600; }
.fr-btn-blue { background: #0ea5e9; color: #fff; border: 1px solid #0284c7; }
.fr-btn-ghost { background: transparent; }
.fr-response { color: #64748b; font-size: 10px; margin: 2px 0; }
.fr-table { background: #fff; border: 1px solid #e2e8f0; border-radius: 6px; overflow: hidden; }
.fr-tr { display: grid; grid-template-columns: 1.5fr 1fr 1.5fr 3fr 0.5fr; padding: 8px 12px; border-bottom: 1px solid #f1f5f9; color: #475569; font-size: 10px; }
.fr-th { background: #f8fafc; font-weight: 700; color: #334155; border-bottom: 1px solid #e2e8f0; }
.fr-link { color: #0ea5e9; font-weight: 600; text-align: right; }

/* ── Kanon Mockup ── */
.kanon-app { flex-direction: column; background: #eff6ff; }
.k-header { background: #fff; padding: 10px 16px; border-bottom: 1px solid #e2e8f0; display: flex; align-items: center; gap: 12px; }
.k-nav-icon { color: #0f766e; font-size: 14px; }
.k-title { font-weight: 600; font-size: 12px; color: #0f172a; flex: 1; }
.k-controls { display: flex; gap: 8px; }
.k-org { border: 1px solid #cbd5e1; padding: 4px 8px; border-radius: 4px; color: #475569; font-size: 10px; }
.k-user { display: flex; align-items: center; gap: 6px; padding: 4px 8px; background: #f1f5f9; border-radius: 4px; color: #0f766e; font-weight: 600; }
.k-user span { background: #cbd5e1; color: #fff; border-radius: 50%; width: 14px; height: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 8px; }
.k-main { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 16px; background: radial-gradient(circle at center, #ffffff 0%, #f0f9ff 100%); }
.k-dash-top { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 1px solid rgba(0,0,0,0.05); padding-bottom: 8px; }
.k-dlx { font-family: var(--font-sans); font-weight: 800; font-size: 12px; color: #1e3a8a; letter-spacing: 0.1em; }
.k-dash-title { font-weight: 800; font-size: 16px; color: #0f172a; }
.k-grid { display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: 16px; flex: 1; }
.k-col { display: flex; flex-direction: column; gap: 12px; }
.k-card { background: #fff; padding: 14px; border-radius: 8px; border: 1px solid #e2e8f0; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
.k-card h4 { font-size: 11px; color: #0f172a; margin-bottom: 6px; }
.k-status { color: #0f766e; font-weight: 700; margin-bottom: 6px; font-size: 12px; }
.k-card p { color: #64748b; font-size: 10px; line-height: 1.5; }
.k-stretch { height: 100%; position: relative; }
.k-img-ph { margin-top: 10px; height: 40px; background: #f1f5f9; border-radius: 4px; position: relative; }
.k-img-btm { position: absolute; bottom: 0; left: 0; right: 0; background: #fff; padding: 6px 8px; border-top: 1px solid #e2e8f0; border-radius: 0 0 4px 4px; display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 600; }
.k-dot-b { width: 10px; height: 10px; border-radius: 50%; background: #0284c7; }
.k-rt { margin-left: auto; color: #475569; font-weight: 400; }
.k-donut-col { position: relative; display: flex; align-items: center; justify-content: center; }
.k-donut-chart { width: 140px; height: 140px; position: relative; display: flex; align-items: center; justify-content: center; background: conic-gradient(#0f766e 0% 70%, #d97706 70% 85%, #cbd5e1 85% 100%); border-radius: 50%; box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.k-donut-center { width: 90px; height: 90px; background: #fff; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 2; box-shadow: inset 0 2px 4px rgba(0,0,0,0.05); }
.k-grade { font-size: 36px; font-weight: 900; color: #0f766e; line-height: 1; }
.k-conf { font-size: 10px; color: #0f172a; font-weight: 700; margin-top: 2px; }
.k-sub-conf { font-size: 6px; color: #d97706; margin-top: 2px; font-weight: 700; }
.k-lbl { position: absolute; font-size: 8px; font-weight: 700; color: #1e293b; background: white; padding: 2px 6px; border-radius: 4px; border: 1px solid #e2e8f0; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.k-l1 { top: 10px; left: -10px; transform: rotate(-15deg); }
.k-l2 { top: 0; right: 10px; transform: rotate(15deg); }
.k-l3 { bottom: 10px; right: -5px; }
.k-l4 { bottom: 10px; left: 10px; }

/* ── Tutorials Section ── */
.tutorials-section { background: var(--bg-surface); text-align: center; }
.tutorials-section .section-desc { margin: 0 auto 56px; }
.tutorials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: left; }
.tutorial-card { display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s; }
.tutorial-card:hover { transform: translateY(-4px); border-color: rgba(14, 165, 233, 0.3); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.tutorial-image { height: 160px; overflow: hidden; position: relative; }
.t-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; opacity: 0.8; transition: opacity 0.3s; }
.tutorial-card:hover .t-img-placeholder { opacity: 1; }
.t-icon { width: 48px; height: 48px; color: rgba(255,255,255,0.7); }
.tutorial-content { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.tutorial-tag { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; align-self: flex-start; padding: 4px 10px; border-radius: 4px; }
.cyan-tag { background: rgba(14,165,233,0.1); color: #38bdf8; }
.violet-tag { background: rgba(15,118,110,0.1); color: #34d399; }
.orange-tag { background: rgba(217,119,6,0.1); color: #fbbf24; }
.tutorial-title { font-family: var(--font-sans); font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; line-height: 1.4; transition: color 0.2s; }
.tutorial-card:hover .tutorial-title { color: #38bdf8; }
.tutorial-excerpt { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 20px; flex: 1; }
.tutorial-read-time { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; }

/* ── Overlay Micro Cards ── */
.visual-overlay-cards { position: absolute; bottom: 20px; right: 20px; z-index: 10; display: flex; gap: 8px; }
.kanon-cards { right: auto; left: 20px; }
.mini-card { background: rgba(4, 8, 17, 0.9); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 10px 16px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 10px 20px rgba(0,0,0,0.3); }
.mini-card-label { font-size: 0.7rem; font-weight: 500; color: var(--text-muted); text-transform: uppercase; }
.mini-card-value { font-family: var(--font-mono); font-size: 0.9rem; font-weight: 700; }
.mini-card-value.cyan { color: #38bdf8; } .mini-card-value.violet { color: #14b8a6; }

/* ── Footer ── */
.footer { background: #020508; border-top: 1px solid var(--border); padding: 64px 0 40px; }
.footer-top { text-align: center; margin-bottom: 20px; }
.footer-brand { display: flex; flex-direction: column; align-items: center; }
.footer-logo { font-size: 1.5rem; margin-bottom: 12px; }
.footer-brand-desc { font-size: 0.9rem; color: var(--text-muted); max-width: 400px; margin: 0 auto; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .product-deep, .product-deep-reverse { grid-template-columns: 1fr; gap: 40px; }
  .product-deep-visual { order: -1; }
  .k-grid { grid-template-columns: 1fr; }
  .tutorials-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links, .nav-actions .btn-nav-cta, .nav-actions .lang-switcher { display: none; }
  .nav-hamburger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; }
  .nav-hamburger span { width: 25px; height: 2px; background: #fff; transition: 0.3s; }
  .mobile-menu { display: none; }
  .hero-headline { font-size: 2.5rem; }
  .products-grid { grid-template-columns: 1fr; }
  .tutorials-grid { grid-template-columns: 1fr; }
  .hero-card { padding: 24px 20px; }
  .hero-card-title { font-size: 2rem; }
  .hero-symbiosis-text { font-size: 0.95rem; }
}

/* ── Demo Modal ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 520px; width: 100%;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s var(--transition);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.modal-overlay.active .modal-container { transform: translateY(0); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.modal-title { font-family: var(--font-sans); font-size: 1.4rem; font-weight: 700; }
.modal-close {
  font-size: 1.6rem; color: var(--text-muted); line-height: 1; padding: 4px 8px; border-radius: 6px; transition: 0.2s;
}
.modal-close:hover { color: #fff; background: rgba(255,255,255,0.08); }
.modal-desc { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 24px; }

.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-secondary);
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 12px 14px; background: var(--bg-base); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-primary); font-family: var(--font-body);
  font-size: 0.92rem; transition: border-color 0.2s; outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--cyan); }
.form-group input[readonly] {
  color: var(--text-muted); cursor: default; background: rgba(4,8,17,0.5);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select option { background: var(--bg-card); color: var(--text-primary); }
.form-error { display: block; font-size: 0.78rem; color: #f87171; margin-top: 4px; min-height: 1em; }

.form-actions { display: flex; gap: 12px; margin-top: 24px; }
.btn-modal-cancel {
  flex: 1; padding: 12px 20px; border: 1px solid var(--border); border-radius: 50px;
  color: var(--text-secondary); font-weight: 600; font-size: 0.9rem; transition: 0.2s;
}
.btn-modal-cancel:hover { border-color: var(--text-muted); color: #fff; }
.btn-modal-submit {
  flex: 1.5; padding: 12px 20px; background: linear-gradient(135deg, #0ea5e9, #38bdf8);
  border: none; border-radius: 50px; color: #fff; font-weight: 700; font-size: 0.9rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-modal-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(14,165,233,0.4); }

.demo-confirmation {
  display: none; text-align: center; padding: 32px 16px;
}
.demo-confirmation.visible { display: block; animation: fadeUp 0.4s ease forwards; }
.demo-confirmation p { font-size: 1.05rem; color: var(--text-primary); margin-bottom: 8px; }
.demo-fallback { font-size: 0.82rem; color: var(--text-muted); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .modal-container { padding: 24px; }
  .modal-title { font-size: 1.2rem; }
  .form-actions { flex-direction: column-reverse; }
}
