/* ============================================================
   DicnaTIC Soft — Components & chrome
   ============================================================ */

/* ── Nav ────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,17,32,.72);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: background .3s ease, border-color .3s ease;
}
.nav.scrolled { background: rgba(11,17,32,.92); border-bottom-color: rgba(255,255,255,.1); }
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  height: var(--nav-h); display: flex; align-items: center; gap: 36px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand .wm { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: #fff; letter-spacing: -0.01em; }

/* shared wordmark: "TIC" carries the brand gradient, "Soft" recedes */
.wm b {
  font-weight: 700;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.wm .s { font-weight: 500; color: var(--on-dark-soft); -webkit-text-fill-color: currentColor; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-links a, .nav-links .has-drop > button {
  font-family: var(--font-display); font-weight: 500; font-size: .95rem;
  color: var(--on-dark); padding: 9px 14px; border-radius: 8px;
  background: none; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover, .nav-links .has-drop > button:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-links a.active { color: #fff; }
.nav-spacer { flex: 1; }

.has-drop { position: relative; }
.has-drop > button .chev { transition: transform .2s ease; }
.has-drop[data-open="true"] > button .chev { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 320px;
  background: var(--bg-dark-2); border: 1px solid var(--line-dark); border-radius: var(--r-md);
  box-shadow: var(--shadow-dark); padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(-6px); transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.has-drop[data-open="true"] .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a {
  display: flex; gap: 13px; padding: 12px; border-radius: 9px; align-items: flex-start;
}
.dropdown a:hover { background: rgba(255,255,255,.05); }
.dropdown .di {
  width: 38px; height: 38px; border-radius: 9px; flex-shrink: 0; display: grid; place-items: center;
  background: rgba(0,194,255,.08); color: var(--c-cyan); border: 1px solid rgba(0,194,255,.2);
}
.dropdown .di svg { width: 19px; height: 19px; }
.dropdown .dt { font-family: var(--font-display); font-weight: 600; color: #fff; font-size: .95rem; }
.dropdown .dd-soon { font-family: var(--font-display); font-weight: 600; font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; color: var(--c-cyan); border: 1px solid rgba(0,194,255,.35); border-radius: 100px; padding: 1px 7px; margin-left: 7px; vertical-align: middle; }
.dropdown .dd { font-size: .82rem; color: var(--on-dark-soft); margin-top: 2px; line-height: 1.45; }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav .btn { padding: 10px 20px; font-size: .92rem; }
.nav-login { font-size: .92rem; font-weight: 500; color: var(--on-dark); padding: 8px 6px; transition: color .15s; }
.nav-login:hover { color: #fff; }
@media (max-width: 860px){ .nav-login { display: none; } }

.hamburger { display: none; background: none; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; width: 42px; height: 42px; cursor: pointer; align-items: center; justify-content: center; }
.hamburger svg { width: 22px; height: 22px; color: #fff; }

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.drawer[data-open="true"] { visibility: visible; }
.drawer .scrim { position: absolute; inset: 0; background: rgba(0,0,0,.55); opacity: 0; transition: opacity .25s; }
.drawer[data-open="true"] .scrim { opacity: 1; }
.drawer .panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(86%, 360px);
  background: var(--bg-dark-2); border-left: 1px solid var(--line-dark);
  transform: translateX(100%); transition: transform .3s cubic-bezier(.16,.8,.3,1);
  padding: 22px; display: flex; flex-direction: column; gap: 6px; overflow-y: auto;
}
.drawer[data-open="true"] .panel { transform: none; }
.drawer .panel .dh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.drawer .panel a { color: var(--on-dark); font-family: var(--font-display); font-weight: 500; padding: 13px 12px; border-radius: 9px; font-size: 1.05rem; }
.drawer .panel a:hover { background: rgba(255,255,255,.06); color: #fff; }
.drawer .panel .sub { font-size: .92rem; padding-left: 26px; color: var(--on-dark-soft); }
.drawer .panel .btn { margin-top: 16px; }
.drawer .close { background: none; border: none; color: #fff; cursor: pointer; width: 40px; height: 40px; }

/* ── Footer ─────────────────────────────────────────────── */
.footer { background: var(--bg-dark); color: var(--on-dark-soft); border-top: 1px solid var(--line-dark); position: relative; overflow: hidden; }
.footer .container { position: relative; z-index: 1; }
.footer-cta { padding-block: clamp(56px, 7vw, 84px); border-bottom: 1px solid var(--line-dark); text-align: center; }
.footer-cta h2 { color: #fff; margin-bottom: 14px; }
.footer-cta p { max-width: 540px; margin: 0 auto 28px; color: var(--on-dark); }
.footer-main { padding-block: 56px; display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr 1.25fr; gap: 40px; }
.footer-brand img { height: 30px; margin-bottom: 16px; }
/* wordmark is inline text ("DicnaTIC Soft") — must NOT be a flex container,
   or each text node (Dicna / TIC / Soft) becomes a flex item and the gap
   splits the word apart. Keep it as plain inline-block text. */
.footer-brand .wm { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; color: #fff; display: inline-block; margin-bottom: 16px; }
.footer-brand .wm img { height: 28px; margin: 0; vertical-align: middle; margin-right: 10px; }
.footer-brand p { font-size: .9rem; max-width: 300px; line-height: 1.6; }
.footer-col h4 { font-family: var(--font-display); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gray); font-weight: 600; margin-bottom: 16px; }
.footer-col a { display: block; font-size: .92rem; padding: 6px 0; color: var(--on-dark); transition: color .15s; overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--c-cyan); }
.footer-bottom { padding-block: 22px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: .85rem; flex-wrap: wrap; }
.footer-bottom .socials { display: flex; gap: 8px; }
.footer-bottom .socials a { width: 36px; height: 36px; border: 1px solid var(--line-dark); border-radius: 8px; display: grid; place-items: center; color: var(--on-dark-soft); transition: all .15s; }
.footer-bottom .socials a:hover { color: #fff; border-color: var(--c-primary); }
.footer-bottom .socials svg { width: 17px; height: 17px; }

/* ── Trust / ecosystem bar ──────────────────────────────── */
.trust { padding-block: 40px; border-bottom: 1px solid var(--line-dark); }
.trust .lbl { text-align: center; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--on-dark-soft); margin-bottom: 26px; font-family: var(--font-display); font-weight: 600; }
.trust .row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 12px; }
.trust .chip {
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 20px;
  border: 1px solid var(--line-dark); border-radius: 100px; color: var(--on-dark);
  font-family: var(--font-display); font-weight: 500; font-size: .95rem;
  background: rgba(255,255,255,.02); transition: border-color .2s, color .2s;
}
.trust .chip:hover { border-color: rgba(0,194,255,.4); color: #fff; }
.trust .chip svg { width: 18px; height: 18px; color: var(--gray); }

/* ── Product cards ──────────────────────────────────────── */
.product-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: stretch; }
.product-card {
  position: relative; border-radius: var(--r-lg); padding: 38px; overflow: hidden;
  border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .2s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.product-card.flagship { color: #fff; border-color: var(--line-dark); background: var(--bg-dark); }
.product-card > * { position: relative; z-index: 1; }
.product-card .plogo { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; letter-spacing: -0.02em; margin-bottom: 6px; }
.product-card.flagship .plogo { color: #fff; }
.product-card .tag { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-primary); margin-bottom: 18px; display: inline-block; }
.product-card.flagship .tag { color: var(--c-cyan); }
.product-card .lead { font-size: 1.02rem; margin-bottom: 22px; }
.product-card.flagship .lead { color: var(--on-dark); }
.product-card:not(.flagship) .lead { color: var(--ink-muted); }
.product-card ul { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 28px; }
.product-card li { display: flex; gap: 11px; align-items: flex-start; font-size: .95rem; }
.product-card li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--c-primary); }
.product-card.flagship li svg { color: var(--c-cyan); }
.product-card .spacer { flex: 1; }

.badge-flag { position: absolute; top: 26px; right: 26px; font-family: var(--font-display); font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 100px; background: var(--c-primary); color: #fff; }
.badge-soon { position: absolute; top: 26px; right: 26px; font-family: var(--font-display); font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 11px; border-radius: 100px; background: rgba(0,194,255,.1); color: var(--c-cyan); border: 1px solid rgba(0,194,255,.35); }

/* ── Role columns ───────────────────────────────────────── */
.role-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 30px; transition: border-color .2s, box-shadow .25s, transform .25s; }
.role-card:hover { border-color: var(--c-primary); box-shadow: var(--shadow-card); transform: translateY(-3px); }
.role-card .role-tag { font-family: var(--font-display); font-weight: 600; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--c-secondary); }
.role-card h3 { margin: 6px 0 12px; }
.role-card p { color: var(--ink-muted); font-size: .97rem; }

/* ── Steps (how it works) ───────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 32px 28px; border-radius: var(--r-md); border: 1px solid var(--line-dark); background: rgba(255,255,255,.02); }
.step .n { font-family: var(--font-display); font-weight: 700; font-size: 1rem; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--c-primary); color: #fff; margin-bottom: 20px; }
.step h3 { color: #fff; margin-bottom: 10px; }
.step p { color: var(--on-dark-soft); font-size: .96rem; }
.step .ico-line { position: absolute; top: 52px; right: -14px; color: var(--line-dark); }

/* ── App screenshot frame (real product capture) ── */
.app-shot { border-radius: 14px; overflow: hidden; border: 1px solid var(--line-dark); background: #fff; box-shadow: var(--shadow-dark); }
.app-shot-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #0A1020; border-bottom: 1px solid var(--line-dark); }
.app-shot-bar i { width: 11px; height: 11px; border-radius: 50%; background: #334155; }
.app-shot img { display: block; width: 100%; height: auto; }

/* ── Console mockup (stylized wireframe of Operations Console) ── */
.console {
  border-radius: 14px; overflow: hidden; background: #0E1729;
  border: 1px solid var(--line-dark); box-shadow: var(--shadow-dark);
  font-family: var(--font-body);
}
.console .bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #0A1020; border-bottom: 1px solid var(--line-dark); }
.console .dots { display: flex; gap: 6px; }
.console .dots i { width: 11px; height: 11px; border-radius: 50%; background: #334155; }
.console .bar .ttl { font-family: var(--font-display); font-weight: 600; font-size: .82rem; color: var(--on-dark); margin-left: 6px; }
.console .bar .live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; color: var(--success); font-weight: 600; }
.console .bar .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(16,185,129,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(16,185,129,.5);} 70%{box-shadow:0 0 0 7px rgba(16,185,129,0);} 100%{box-shadow:0 0 0 0 rgba(16,185,129,0);} }
@media (prefers-reduced-motion: reduce){ .console .bar .live::before { animation: none; } }
.console .body { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.console .colhead { display: flex; justify-content: space-between; font-size: .72rem; color: var(--gray); text-transform: uppercase; letter-spacing: .08em; padding: 0 4px 2px; font-weight: 600; }
.incident { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px; border-radius: 10px; background: rgba(255,255,255,.025); border: 1px solid var(--line-dark); transition: border-color .2s, transform .2s; }
.incident:hover { border-color: rgba(0,194,255,.35); transform: translateX(2px); }
.pc { width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: #fff; line-height: 1; }
.pc small { display:block; font-size: .5rem; font-weight: 600; opacity: .8; letter-spacing: .05em; }
.pc.crit { background: #EF4444; }
.pc.high { background: #F59E0B; }
.pc.med  { background: var(--c-primary); }
.incident .meta .t { font-family: var(--font-display); font-weight: 600; color: #fff; font-size: .92rem; }
.incident .meta .s { font-size: .8rem; color: var(--on-dark-soft); margin-top: 3px; }
.incident .meta .tags { display: flex; gap: 6px; margin-top: 8px; }
.incident .meta .tags span { font-size: .68rem; padding: 2px 8px; border-radius: 5px; background: rgba(148,163,184,.12); color: var(--on-dark-soft); font-family: 'JetBrains Mono', monospace; }
.incident .when { font-size: .74rem; color: var(--gray); white-space: nowrap; }

/* ── Coverage families ──────────────────────────────────── */
.family { border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px; background: #fff; transition: border-color .2s, box-shadow .25s, transform .2s; }
.family:hover { border-color: var(--c-primary); box-shadow: var(--shadow-card); transform: translateY(-3px); }
.family .ft { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.family .ft .ico { width: 42px; height: 42px; border-radius: 10px; background: rgba(37,99,239,.07); color: var(--c-primary); display: grid; place-items: center; border: 1px solid rgba(37,99,239,.14); }
.family .ft .ico svg { width: 21px; height: 21px; }
.family .ft .layer { font-size: .72rem; font-family: 'JetBrains Mono', monospace; color: var(--gray); }
.family h3 { font-size: 1.15rem; }
.family p { color: var(--ink-muted); font-size: .94rem; }

/* ── Plans ──────────────────────────────────────────────── */
.plan { border: 1px solid var(--line); border-radius: var(--r-md); padding: 30px; background: #fff; display: flex; flex-direction: column; transition: border-color .2s, box-shadow .25s, transform .2s; }
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.plan.featured { border-color: var(--c-primary); box-shadow: 0 0 0 1px var(--c-primary), var(--shadow-card); }
.plan .pname { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.plan .pfor { color: var(--ink-muted); font-size: .92rem; margin: 6px 0 18px; }
.plan .price { font-family: var(--font-display); font-weight: 600; color: var(--c-primary); margin-bottom: 18px; font-size: .98rem; }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: .92rem; color: var(--ink-muted); }
.plan li svg { width: 17px; height: 17px; color: var(--c-primary); flex-shrink: 0; margin-top: 2px; }
.plan .badge { align-self: flex-start; font-family: var(--font-display); font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--c-primary); padding: 4px 10px; border-radius: 100px; margin-bottom: 14px; }

.addon { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 100px; font-family: var(--font-display); font-weight: 500; font-size: .9rem; background: #fff; }
.addon svg { width: 16px; height: 16px; color: var(--c-secondary); }

/* ── Accordion (Para IT) ────────────────────────────────── */
.acc { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: #fff; }
.acc summary { cursor: pointer; list-style: none; padding: 20px 24px; font-family: var(--font-display); font-weight: 600; display: flex; justify-content: space-between; align-items: center; color: var(--ink); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .chev { transition: transform .2s; color: var(--c-primary); }
.acc[open] summary .chev { transform: rotate(180deg); }
.acc .acc-body { padding: 0 24px 22px; color: var(--ink-muted); font-size: .96rem; }

/* ── Demo page ──────────────────────────────────────────── */
.demo-wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.demo-sell .vlist { list-style: none; display: flex; flex-direction: column; gap: 20px; margin: 30px 0; }
.demo-sell .vlist li { display: flex; gap: 14px; }
.demo-sell .vlist .vi { width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; background: rgba(0,194,255,.08); border: 1px solid rgba(0,194,255,.2); color: var(--c-cyan); }
.demo-sell .vlist .vi svg { width: 21px; height: 21px; }
.demo-sell .vlist h4 { color: #fff; font-size: 1.02rem; margin-bottom: 3px; }
.demo-sell .vlist p { color: var(--on-dark-soft); font-size: .92rem; }
.guarantee { display: inline-flex; align-items: center; gap: 9px; padding: 12px 18px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--line-dark); color: var(--on-dark); font-size: .92rem; }
.guarantee svg { width: 18px; height: 18px; color: var(--success); }

.form-card { background: #fff; border-radius: var(--r-lg); padding: 36px; box-shadow: var(--shadow-dark); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-display); font-weight: 500; font-size: .9rem; margin-bottom: 7px; color: var(--ink); }
.field label .req { color: var(--error); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: .98rem; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(37,99,239,.13); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--error); }
.field .err { display: none; color: var(--error); font-size: .8rem; margin-top: 6px; }
.field.invalid .err { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--ink-muted); }
.check input { width: auto; margin-top: 3px; flex-shrink: 0; }
.check a { color: var(--c-primary); text-decoration: underline; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.form-success { text-align: center; padding: 30px 10px; }
.form-success .ok { width: 64px; height: 64px; border-radius: 50%; background: rgba(16,185,129,.12); display: grid; place-items: center; margin: 0 auto 22px; color: var(--success); }
.form-success .ok svg { width: 34px; height: 34px; }
.form-success h3 { margin-bottom: 12px; }
.form-success p { color: var(--ink-muted); max-width: 380px; margin: 0 auto; }

.spinner { width: 17px; height: 17px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* simple page hero for inner pages */
.page-hero { background: var(--bg-dark); color: var(--on-dark); position: relative; overflow: hidden; padding-top: clamp(56px, 7vw, 88px); padding-bottom: clamp(56px, 7vw, 88px); }
.page-hero .container { position: relative; z-index: 1; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 980px) {
  .product-grid { grid-template-columns: 1fr; }
  .demo-wrap { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta .btn { display: none; }
  .hamburger { display: flex; }
  .grid-3, .grid-4, .steps { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px; }
  .step .ico-line { display: none; }
}
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
  .product-card, .feature-card, .role-card { padding: 24px; }
}
