/* ==========================================================================
   OrnaMatrix — public marketing site
   ========================================================================== */

.section { padding: 6rem 0; }
.section-sm { padding: 3.75rem 0; }
@media (max-width: 767px) {
  .section { padding: 3.75rem 0; }
  .section-sm { padding: 2.5rem 0; }
}
.section-title { font-size: clamp(1.85rem, 3.2vw, 2.7rem); margin-bottom: .85rem; }
.section-lead { color: var(--text-muted); font-size: 1.08rem; max-width: 660px; }
.section-head { max-width: 700px; margin: 0 auto 3rem; text-align: center; }
.section-head .section-lead { margin-left: auto; margin-right: auto; }

/* ---- Reveal on scroll (enabled by app.js; content stays visible without JS) ---- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---- Top bar + navbar ---- */
.om-navbar {
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  padding: .85rem 0;
  transition: box-shadow .25s ease, border-color .25s ease, padding .25s ease;
}
.om-navbar.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 24px rgba(20, 17, 15, .06); padding: .6rem 0; }
.om-navbar .nav-link { font-weight: 500; font-size: .95rem; color: var(--text); padding: .5rem .85rem !important; border-radius: var(--radius-sm); }
.om-navbar .nav-link:hover, .om-navbar .nav-link.active, .om-navbar .nav-link.show { color: var(--primary-dark); }
.om-navbar .navbar-toggler { border: 1px solid var(--border); padding: .4rem .6rem; }
.om-navbar .navbar-toggler:focus { box-shadow: 0 0 0 .2rem var(--primary-ring); }
.om-navbar .dropdown-menu { border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .6rem; min-width: 300px; }
.om-navbar .dropdown-item { border-radius: var(--radius-sm); padding: .6rem .75rem; display: flex; gap: .75rem; align-items: center; white-space: normal; }
.om-navbar .dropdown-item:hover, .om-navbar .dropdown-item.active { background: var(--light); color: var(--ink); }
.om-navbar .dropdown-item .dd-icon { width: 34px; height: 34px; border-radius: 9px; background: var(--primary-soft); color: var(--primary-dark); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.om-navbar .dropdown-item strong { display: block; font-size: .9rem; color: var(--ink); }
.om-navbar .dropdown-item small { color: var(--text-muted); font-size: .78rem; }
@media (max-width: 991px) {
  .om-navbar .navbar-collapse { padding: 1rem 0 .5rem; }
  .om-navbar .dropdown-menu { box-shadow: none; border: 0; padding: 0 0 0 .5rem; min-width: 0; }
}

/* ---- Hero ---- */
.hero {
  position: relative; overflow: hidden;
  padding: 5.5rem 0 5rem;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(227, 193, 90, .22), transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--border);
}
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.08; letter-spacing: -0.025em; }
.hero h1 em { font-style: normal; color: var(--primary-dark); background: linear-gradient(transparent 62%, rgba(227, 193, 90, .35) 0); }
.hero .section-lead { font-size: 1.12rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .82rem; font-weight: 600; color: var(--ink);
  background: var(--white); border: 1px solid var(--border);
  padding: .45rem .85rem; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.hero-badge i { color: var(--primary); }

/* Product mockup (pure HTML/CSS, no images) */
.app-mock { position: relative; padding: 1.5rem 0 1.5rem 1.5rem; }
.app-window {
  background: var(--white); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.app-titlebar { display: flex; align-items: center; gap: .45rem; padding: .7rem 1rem; background: var(--ink); color: rgba(255,255,255,.75); font-size: .75rem; }
.app-titlebar i.dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.22); display: inline-block; }
.app-titlebar .app-title { margin-left: .5rem; font-weight: 600; color: var(--white); }
.app-titlebar .app-status { margin-left: auto; display: inline-flex; align-items: center; gap: .35rem; color: var(--primary-light); font-weight: 600; }
.app-body { display: grid; grid-template-columns: 120px 1fr; min-height: 330px; }
.app-side { background: var(--cream); border-right: 1px solid var(--border); padding: .9rem .6rem; font-size: .72rem; }
.app-side div { padding: .45rem .55rem; border-radius: 7px; color: var(--text-muted); display: flex; gap: .45rem; align-items: center; }
.app-side div.on { background: var(--white); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-sm); }
.app-side i { width: 14px; color: var(--primary-dark); }
.app-main { padding: 1rem 1.1rem; }
.app-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.app-kpi { border: 1px solid var(--border); border-radius: 10px; padding: .6rem .7rem; }
.app-kpi small { display: block; font-size: .64rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.app-kpi strong { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); }
.app-bars { margin-top: .9rem; border: 1px solid var(--border); border-radius: 10px; padding: .7rem .8rem; }
.app-bars .bar-row { display: grid; grid-template-columns: 54px 1fr 64px; align-items: center; gap: .5rem; font-size: .7rem; margin-bottom: .45rem; }
.app-bars .bar-row:last-child { margin-bottom: 0; }
.app-bars .bar { height: 8px; border-radius: 999px; background: var(--light); overflow: hidden; }
.app-bars .bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--primary), var(--primary-light)); }
.app-bars .bar.silver span { background: linear-gradient(90deg, #9aa3ad, #cfd5db); }
.app-bars .bar.plat span { background: linear-gradient(90deg, #7b8794, #b5c0cc); }
.app-bars .bar-row b { text-align: right; color: var(--ink); font-weight: 600; }
.app-table { margin-top: .9rem; font-size: .7rem; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.app-table .tr { display: grid; grid-template-columns: 58px 1fr 54px 60px; gap: .4rem; padding: .45rem .7rem; border-top: 1px solid var(--border); align-items: center; }
.app-table .tr:first-child { border-top: 0; background: var(--cream); font-weight: 700; color: var(--text-muted); text-transform: uppercase; font-size: .6rem; letter-spacing: .05em; }
.app-table code { color: var(--primary-dark); background: var(--primary-soft); padding: .05rem .35rem; border-radius: 4px; font-size: .68rem; }
.app-table .ok { color: var(--success); font-weight: 600; }
.float-card {
  position: absolute; background: var(--white); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: .7rem .9rem; display: flex; align-items: center; gap: .65rem; font-size: .8rem;
  animation: om-float 6s ease-in-out infinite;
}
.float-card .fc-icon { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--primary-soft); color: var(--primary-dark); }
.float-card strong { display: block; color: var(--ink); font-size: .82rem; }
.float-card small { color: var(--text-muted); font-size: .72rem; }
.float-card.fc-1 { left: -24px; top: 56%; }
.float-card.fc-2 { right: -14px; bottom: -14px; animation-delay: -3s; }
@keyframes om-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 575px) {
  .app-mock { padding: 1rem 0; }
  .app-body { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .float-card { display: none; }
}

/* ---- Trust strip ---- */
.trust-strip { border-bottom: 1px solid var(--border); background: var(--white); }
.trust-strip .item { display: flex; align-items: center; gap: .75rem; padding: 1.4rem .5rem; }
.trust-strip .item i { font-size: 1.25rem; color: var(--primary); width: 28px; text-align: center; }
.trust-strip .item strong { display: block; color: var(--ink); font-size: .95rem; }
.trust-strip .item small { color: var(--text-muted); font-size: .8rem; }

/* ---- Solution cards (links to keyword landing pages) ---- */
.solution-card {
  display: block; height: 100%; color: inherit;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.75rem; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.solution-card:hover { color: inherit; transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary); }
.solution-card h3 { font-family: var(--font-body); font-size: 1.08rem; font-weight: 700; letter-spacing: 0; margin-bottom: .45rem; }
.solution-card p { color: var(--text-muted); font-size: .92rem; margin-bottom: 1rem; }
.solution-card .more { font-weight: 600; font-size: .88rem; color: var(--primary-dark); }
.solution-card:hover .more i { transform: translateX(4px); }
.solution-card .more i { transition: transform .2s ease; }

/* ---- Feature modules ---- */
.feature-module {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; height: 100%;
  background: var(--white); transition: border-color .25s ease, box-shadow .25s ease;
}
.feature-module:hover { border-color: rgba(201, 162, 39, .5); box-shadow: var(--shadow); }
.feature-module .fm-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .8rem; }
.feature-module .fm-head i { width: 38px; height: 38px; border-radius: 10px; background: var(--ink); color: var(--primary-light); display: flex; align-items: center; justify-content: center; font-size: .95rem; flex-shrink: 0; }
.feature-module h3 { font-family: var(--font-body); font-weight: 700; font-size: 1rem; letter-spacing: 0; margin: 0; }
.feature-module ul { list-style: none; padding: 0; margin: 0; color: var(--text-muted); font-size: .88rem; }
.feature-module ul li { padding: .2rem 0 .2rem 1.1rem; position: relative; }
.feature-module ul li::before { content: ""; position: absolute; left: 0; top: .78em; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }

/* ---- Dark band (offline architecture) ---- */
.dark-band { background: var(--ink); color: rgba(255, 255, 255, .78); position: relative; overflow: hidden; }
.dark-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(227,193,90,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(227,193,90,.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 30%, transparent 75%);
}
.dark-band h2, .dark-band h3 { color: var(--white); }
.dark-band .section-lead { color: rgba(255, 255, 255, .72); }
.offline-diagram { position: relative; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-lg); padding: 2.25rem; }
.offline-diagram .node { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 1rem 1.25rem; text-align: center; font-weight: 600; font-size: .9rem; color: var(--white); }
.offline-diagram .node.gold { border-color: var(--primary); color: var(--primary-light); background: rgba(201,162,39,.08); }
.offline-diagram .node.dashed { border-style: dashed; color: rgba(255,255,255,.6); }
.offline-diagram .connector { width: 2px; height: 30px; margin: 0 auto; background: linear-gradient(var(--primary), rgba(201,162,39,.15)); }
.offline-diagram .connector.dashed { background: repeating-linear-gradient(rgba(255,255,255,.35) 0 4px, transparent 4px 8px); }
.dark-band .check-list li::before { background: rgba(227,193,90,.15); color: var(--primary-light); }

/* ---- Platform cards ---- */
.platform-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; height: 100%; background: var(--white); box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.platform-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.platform-card .platform-icon { width: 60px; height: 60px; border-radius: 16px; background: var(--ink); color: var(--primary-light); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 1.25rem; }
.platform-card h3 { font-family: var(--font-body); font-size: 1.15rem; font-weight: 700; letter-spacing: 0; }

/* ---- Steps ---- */
.steps { counter-reset: step; }
.step-card { position: relative; padding: 1.75rem 1.5rem 1.5rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--white); height: 100%; }
.step-card::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--font-display); font-weight: 700; font-size: 2.1rem; color: var(--primary); line-height: 1; display: block; margin-bottom: .9rem; }
.step-card h3 { font-family: var(--font-body); font-size: 1.02rem; font-weight: 700; letter-spacing: 0; }
.step-card p { color: var(--text-muted); font-size: .9rem; margin: 0; }

/* ---- Inner page header + breadcrumbs ---- */
.page-header {
  padding: 4.25rem 0 3.5rem; text-align: center; border-bottom: 1px solid var(--border);
  background: radial-gradient(700px 300px at 50% -20%, rgba(227, 193, 90, .2), transparent 70%), var(--cream);
}
.page-header h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.12; max-width: 900px; margin: 1rem auto .75rem; }
.page-header .section-lead { margin: 0 auto; }
.om-breadcrumb { font-size: .82rem; margin-bottom: .25rem; }
.om-breadcrumb ol { list-style: none; display: inline-flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; justify-content: center; }
.om-breadcrumb li { color: var(--text-muted); }
.om-breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: var(--border); }
.om-breadcrumb a { color: var(--text-muted); }
.om-breadcrumb a:hover { color: var(--primary-dark); }

/* ---- Landing (solution) pages ---- */
.landing-hero { text-align: left; }
.landing-hero h1 { margin-left: 0; }
.landing-hero .section-lead { margin-left: 0; }
.landing-hero .om-breadcrumb ol { justify-content: flex-start; }
.landing-summary { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow); }
.landing-summary h2 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; letter-spacing: 0; margin-bottom: 1rem; }
.feature-split + .feature-split { margin-top: 4.5rem; }
.feature-split h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.feature-panel { background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; }
.related-links a { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.15rem; border: 1px solid var(--border); border-radius: var(--radius); color: var(--ink); font-weight: 600; background: var(--white); transition: border-color .2s ease, box-shadow .2s ease; height: 100%; }
.related-links a:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.related-links a i { color: var(--primary-dark); }

/* ---- Pricing ---- */
.plan-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.25rem; height: 100%; background: var(--white); position: relative; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan-card.featured { border: 2px solid var(--primary); box-shadow: var(--shadow-lg); }
.plan-card .featured-tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--primary); color: var(--ink); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .32rem .95rem; border-radius: 999px; white-space: nowrap; }
.plan-card h2 { font-size: 1.5rem; }
.plan-price { font-family: var(--font-display); font-size: 2.5rem; color: var(--ink); font-weight: 700; line-height: 1.1; }
.plan-price small { font-family: var(--font-body); font-size: .95rem; font-weight: 500; color: var(--text-muted); }
.plan-card ul { list-style: none; padding: 0; margin: 1.5rem 0; flex: 1; }
.plan-card ul li { padding: .38rem 0; color: var(--text); font-size: .93rem; display: flex; gap: .6rem; }
.plan-card ul li i { color: var(--success); margin-top: .3rem; font-size: .8rem; }

/* ---- FAQ ---- */
.om-accordion .accordion-item { border: 1px solid var(--border); border-radius: var(--radius) !important; overflow: hidden; margin-bottom: .85rem; background: var(--white); }
.om-accordion .accordion-button { font-weight: 600; color: var(--ink); padding: 1.15rem 1.35rem; font-size: 1rem; }
.om-accordion .accordion-button:not(.collapsed) { background: var(--cream); color: var(--primary-dark); box-shadow: none; }
.om-accordion .accordion-button:focus { box-shadow: 0 0 0 .2rem var(--primary-ring); }
.om-accordion .accordion-body { color: var(--text-muted); padding: 0 1.35rem 1.25rem; background: var(--cream); }

/* ---- CTA ---- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 4rem 2rem; text-align: center; background: var(--ink); color: rgba(255,255,255,.75); }
.cta-band::after { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(227,193,90,.28), transparent 65%); pointer-events: none; }
.cta-band h2 { color: var(--white); font-size: clamp(1.8rem, 3.4vw, 2.6rem); position: relative; }
.cta-band p { max-width: 580px; margin: .75rem auto 0; position: relative; }
.cta-band .btn { position: relative; }

/* ---- Contact ---- */
.contact-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 0; border-bottom: 1px solid var(--border); }
.contact-item:last-child { border-bottom: 0; }
.contact-item .kf-icon { width: 44px; height: 44px; font-size: 1rem; margin: 0; }
.contact-item small { display: block; color: var(--text-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.contact-item span, .contact-item a { color: var(--ink); font-weight: 500; }

/* ---- Registration ---- */
.kf-panel { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; }
.kf-panel-title { font-weight: 700; font-size: 1.05rem; color: var(--ink); margin-bottom: 1.15rem; display: flex; align-items: center; gap: .6rem; }
.kf-panel-title .num { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--primary-light); display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; }
.plan-select-card { border: 2px solid var(--border); cursor: pointer; padding: 1.25rem; }
.plan-radio:checked + .plan-select-card { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-ring); }
.plan-radio:focus-visible + .plan-select-card { outline: 3px solid var(--primary-ring); outline-offset: 2px; }
.price-breakdown { background: var(--cream); border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--border); }
.price-breakdown .row-line { display: flex; justify-content: space-between; padding: .4rem 0; font-size: .93rem; }
.price-breakdown .row-total { border-top: 1px solid var(--border); margin-top: .5rem; padding-top: .75rem; font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.step-indicator { display: flex; gap: .5rem; margin-bottom: 2rem; }
.step-indicator .step { flex: 1; text-align: center; font-size: .78rem; font-weight: 600; color: var(--text-muted); padding-bottom: .6rem; border-bottom: 3px solid var(--border); }
.step-indicator .step.active { color: var(--primary-dark); border-color: var(--primary); }
.step-indicator .step.done { color: var(--success); border-color: var(--success); }

/* ---- Legal prose ---- */
.prose { color: var(--text); font-size: 1rem; }
.prose h2 { font-family: var(--font-body); font-size: 1.1rem; font-weight: 700; letter-spacing: 0; margin-top: 2rem; }
.prose p { color: var(--text-muted); }

/* ---- Footer ---- */
.om-footer { background: var(--ink); color: rgba(255, 255, 255, .66); padding: 4.5rem 0 1.75rem; font-size: .92rem; }
.om-footer h2 { color: var(--white); font-family: var(--font-body); font-weight: 700; margin-bottom: 1.1rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.om-footer a { color: rgba(255, 255, 255, .66); }
.om-footer a:hover { color: var(--primary-light); }
.om-footer li { margin-bottom: .6rem; }
.om-footer .social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); display: inline-flex; align-items: center; justify-content: center; }
.om-footer .social a:hover { border-color: var(--primary); }
.om-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 3rem; padding-top: 1.5rem; font-size: .84rem; }
