/* ============================================================
   DicnaTIC Soft — Corporate site design system
   Tokens from identity.png / ColorPallette.png (brief §4.2)
   ============================================================ */

:root {
  /* Brand */
  --c-primary:      #2563EF;
  --c-primary-600:  #1D4ED8;
  --c-secondary:    #7B3DFF;
  --c-cyan:         #00C2FF;

  --grad-brand: linear-gradient(120deg, #00C2FF 0%, #2563EF 48%, #7B3DFF 100%);
  --grad-text:  linear-gradient(100deg, #00C2FF 0%, #2563EF 45%, #7B3DFF 100%);
  --grad-soft:  linear-gradient(135deg, rgba(0,194,255,.10), rgba(123,61,255,.10));

  /* Backgrounds */
  --bg-dark:   #0B1120;
  --bg-dark-2: #0F172A;
  --bg-light:  #FFFFFF;
  --bg-light-2:#F8FAFC;

  /* Neutrals */
  --ink:        #0F172A;
  --ink-muted:  #475569;
  --gray:       #94A3B8;
  --line:       #E2E8F0;
  --line-dark:  #1E293B;
  --on-dark:    #E2E8F0;
  --on-dark-soft:#94A3B8;

  /* State */
  --success: #10B981;
  --error:   #EF4444;

  /* Radius + shadow */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --shadow-soft: 0 8px 30px rgba(11,17,32,.08);
  --shadow-card: 0 1px 2px rgba(11,17,32,.04), 0 12px 40px rgba(11,17,32,.06);
  --shadow-dark: 0 20px 60px rgba(0,0,0,.45);

  --maxw: 1200px;
  --nav-h: 72px;

  --font-display: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-light);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); }
.display { font-size: clamp(2.6rem, 5.2vw, 4.4rem); font-weight: 700; line-height: 1.04; letter-spacing: -0.03em; text-wrap: balance; }
h1, .h1 { font-size: clamp(2.1rem, 3.6vw, 3rem); }
h2, .h2 { font-size: clamp(1.7rem, 2.8vw, 2.25rem); text-wrap: balance; }
h3, .h3 { font-size: clamp(1.25rem, 1.7vw, 1.5rem); }
.body-lg { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.6; }
.small { font-size: .875rem; }

.eyebrow {
  font-family: var(--font-display);
  font-size: .8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-primary);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px; border-radius: 2px;
  background: var(--c-primary);
}
.eyebrow.center::before { display: none; }

.grad-text {
  color: var(--c-primary);
}

.muted { color: var(--ink-muted); }
.on-dark { color: var(--on-dark); }
.on-dark-soft { color: var(--on-dark-soft); }

/* ── Layout shells ──────────────────────────────────────── */
.container { max-width: var(--maxw); margin: 0 auto; padding-inline: 24px; }
.section { padding-block: clamp(64px, 9vw, 116px); position: relative; }
.section-sm { padding-block: clamp(48px, 6vw, 72px); }

.section.dark { background: var(--bg-dark); color: var(--on-dark); }
.section.dark h1, .section.dark h2, .section.dark h3 { color: #fff; }
.section.light-2 { background: var(--bg-light-2); }

.sec-head { max-width: 720px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head .eyebrow { margin-bottom: 18px; }
.sec-head p { margin-top: 18px; color: var(--ink-muted); }
.section.dark .sec-head p { color: var(--on-dark); }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  font-family: var(--font-display);
  font-weight: 600; font-size: .98rem;
  display: inline-flex; align-items: center; gap: .55rem;
  padding: 14px 26px; border-radius: var(--r-sm);
  cursor: pointer; border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  color: #fff; background: var(--c-primary);
  box-shadow: 0 1px 2px rgba(11,17,32,.10);
}
.btn-primary:hover { transform: translateY(-1px); background: var(--c-primary-600); box-shadow: 0 6px 18px rgba(37,99,239,.20); }
.btn-secondary {
  color: var(--c-primary); border-color: var(--line);
  background: #fff;
}
.btn-secondary:hover { border-color: var(--c-primary); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.section.dark .btn-secondary, .btn-secondary.on-dark {
  background: rgba(255,255,255,.04); color: #fff; border-color: rgba(255,255,255,.22);
}
.section.dark .btn-secondary:hover, .btn-secondary.on-dark:hover { border-color: var(--c-cyan); background: rgba(255,255,255,.08); }
.btn-ghost { padding-inline: 4px; color: var(--c-primary); }
.btn-ghost:hover { gap: .8rem; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }

.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ── Decorative motifs removed for a flat, minimalist look ── */
.circuit-bg, .orb, .grid-lines { display: none !important; }
.section .container { position: relative; z-index: 1; }

/* ── Cards ──────────────────────────────────────────────── */
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 30px; transition: border-color .2s ease, transform .25s ease, box-shadow .25s ease;
}
.feature-card:hover { border-color: var(--c-primary); transform: translateY(-3px); box-shadow: var(--shadow-card); }
.feature-card .ico {
  width: 48px; height: 48px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(37,99,239,.07); color: var(--c-primary); margin-bottom: 20px;
  border: 1px solid rgba(37,99,239,.14);
}
.feature-card .ico svg { width: 24px; height: 24px; }
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { color: var(--ink-muted); font-size: .975rem; }

.section.dark .feature-card {
  background: rgba(255,255,255,.025); border-color: var(--line-dark); color: var(--on-dark);
}
.section.dark .feature-card:hover { border-color: var(--c-cyan); box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.section.dark .feature-card p { color: var(--on-dark-soft); }
.section.dark .feature-card .ico { background: rgba(0,194,255,.08); color: var(--c-cyan); border-color: rgba(0,194,255,.2); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Stat blocks ────────────────────────────────────────── */
.stat .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 4vw, 3.2rem); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.stat .num.grad { color: #fff; }
.stat .lbl { color: var(--on-dark-soft); font-size: .95rem; margin-top: 10px; }
.stat .pend { font-size: .68rem; color: var(--gray); display: inline-block; margin-top: 8px; border: 1px dashed rgba(148,163,184,.4); border-radius: 4px; padding: 1px 6px; letter-spacing: .03em; }

/* ── Reveal animation ───────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.16,.8,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ── Pending marker (controlled placeholder) ────────────── */
.pending {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body); font-size: .72rem; font-weight: 500;
  color: #B45309; background: #FEF3C7; border: 1px solid #FCD34D;
  border-radius: 6px; padding: 3px 9px; letter-spacing: .01em;
}
.pending::before { content: "⟨"; font-weight: 700; }
.pending::after { content: "⟩"; font-weight: 700; }
.section.dark .pending { background: rgba(252,211,77,.10); color: #FCD34D; border-color: rgba(252,211,77,.35); }

/* placeholder visual (image slots) */
.placeholder {
  border: 1px dashed var(--gray); border-radius: var(--r-md);
  background:
    repeating-linear-gradient(135deg, rgba(148,163,184,.07) 0 10px, transparent 10px 20px);
  display: grid; place-items: center; color: var(--gray);
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .8rem; text-align: center; padding: 24px;
  min-height: 200px;
}
.section.dark .placeholder { border-color: rgba(148,163,184,.4); color: var(--on-dark-soft); }

/* ── Product visual (signal viz — replaces empty image slots) ── */
.viz {
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: linear-gradient(160deg, rgba(37,99,239,.05), rgba(0,194,255,.03));
  padding: 26px; display: flex; flex-direction: column; gap: 14px; min-height: 240px;
}
.viz-head { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: var(--ink); }
.viz-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-cyan); box-shadow: 0 0 0 4px rgba(0,194,255,.15); flex-shrink: 0; }
.viz-rows { display: flex; flex-direction: column; gap: 13px; margin-top: 2px; }
.viz-row { display: flex; align-items: center; gap: 12px; }
.viz-k { display: flex; align-items: center; gap: 8px; min-width: 138px; font-size: .82rem; color: var(--ink-muted); }
.viz-k svg { width: 15px; height: 15px; color: var(--c-primary); flex-shrink: 0; }
.viz-bar { flex: 1; height: 6px; border-radius: 100px; background: rgba(148,163,184,.22); overflow: hidden; }
.viz-bar i { display: block; height: 100%; border-radius: 100px; background: linear-gradient(90deg, var(--c-primary), var(--c-cyan)); }
.viz-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--gray); display: flex; align-items: center; gap: 7px; }
.viz-foot svg { width: 14px; height: 14px; color: var(--c-primary); flex-shrink: 0; }
.viz--dark { border-color: var(--line-dark); background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.012)); }
.viz--dark .viz-head { color: #fff; }
.viz--dark .viz-k { color: var(--on-dark); }
.viz--dark .viz-k svg, .viz--dark .viz-foot svg { color: var(--c-cyan); }
.viz--dark .viz-foot { border-color: var(--line-dark); color: var(--on-dark-soft); }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--c-primary); outline-offset: 3px; border-radius: 6px;
}
.section.dark a:focus-visible, .section.dark .btn:focus-visible { outline-color: var(--c-cyan); }
