:root {
  --blue: #1e4dff;
  --blue-light: #00c2ff;
  --blue-dark: #0b1f3b;
  --orange: #ff8a00;
  --blue-soft: #e8eeff;
  --green: #10b981;
  --purple: #7c3aed;
  --surface: #f4f6f9;
  --white: #ffffff;
  --text: #0b1f3b;
  --text-muted: #5b6b82;
  --border: #e2e8f0;
  --shadow: 0 18px 40px rgba(11, 31, 59, 0.08);
  --radius: 16px;
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 200;
}
.skip-link:focus { left: 0.5rem; }

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.brand-mark-img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.brand-word .vya { color: var(--blue); }
.brand-word .fy { color: var(--orange); }

.nav-panel { display: flex; align-items: center; gap: 1.25rem; flex: 1; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a,
.nav-links button {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
}

.nav-links a:hover,
.nav-links button:hover { color: var(--blue); }

.has-sub { position: relative; }
.has-sub .sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  list-style: none;
  margin: 0;
  padding: 0.4rem;
  z-index: 20;
}
.has-sub:hover .sub,
.has-sub.open .sub { display: block; }
.has-sub .sub a { display: block; padding: 0.5rem 0.7rem; }

.nav-cta { display: flex; align-items: center; gap: 0.6rem; }
.nav-cta-drawer { display: none; }

.menu-btn {
  display: none;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: #e67c00; }
.btn-secondary {
  background: var(--white);
  color: var(--blue);
  border: 1px solid var(--border);
}
.btn-ghost {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--border);
}
.text-link {
  align-self: center;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.92rem;
}

.hero {
  padding: 4.5rem 0 3.5rem;
  background:
    radial-gradient(circle at 90% 10%, rgba(30, 77, 255, 0.1), transparent 42%),
    radial-gradient(circle at 10% 90%, rgba(255, 138, 0, 0.08), transparent 40%),
    var(--surface);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0 0 0.5rem;
}
.hero h1 span { color: var(--orange); }

.brand-line {
  margin: 0 0 0.85rem;
  font-weight: 700;
  color: var(--blue);
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 0 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.dash-mock {
  background: var(--blue-dark);
  color: #fff;
  border-radius: 20px;
  padding: 1.25rem;
  box-shadow: 0 24px 50px rgba(11, 31, 59, 0.28);
}

.dash-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  opacity: 0.85;
}

.dash-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.dash-kpis div {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.7rem;
}
.dash-kpis small { display: block; opacity: 0.7; font-size: 0.72rem; }
.dash-kpis b { font-size: 0.92rem; }

.dash-mods {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}
.dash-mods li {
  background: rgba(30, 77, 255, 0.35);
  border: 1px solid rgba(255, 138, 0, 0.35);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
}

section { padding: 4.5rem 0; }

.section-head { max-width: 44rem; margin-bottom: 2.2rem; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.7rem;
}
.section-head p { margin: 0; color: var(--text-muted); }
.kicker {
  color: var(--orange);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin: 0 0 0.5rem;
}

.value-grid,
.features-grid,
.diff-grid,
.type-grid {
  display: grid;
  gap: 1rem;
}
.value-grid { grid-template-columns: repeat(3, 1fr); }
.features-grid { grid-template-columns: repeat(3, 1fr); }
.diff-grid { grid-template-columns: repeat(4, 1fr); }
.type-grid { grid-template-columns: repeat(4, 1fr); }

.value-card,
.feature-card,
.diff-card,
.type-card {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}
.value-card h3, .feature-card h3, .diff-card h3, .type-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}
.value-card p, .feature-card p, .diff-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.93rem;
}
.diff-card strong { color: var(--orange); font-size: 0.8rem; }
.type-card { text-align: center; }
.type-ico { font-size: 1.5rem; display: block; margin-bottom: 0.35rem; }

.chip-roadmap {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--purple);
}

.why-vyafy, .diff, .arch, .faq, .trust, .pricing { background: var(--surface); }
.biz-types, .units, .commerce { background: var(--white); }
.field, .ai-sec { background: var(--blue-dark); color: #fff; }
.field .section-head p, .ai-sec .section-head p { color: rgba(255,255,255,0.75); }
.field h2, .ai-sec h2 { color: #fff; }

.arch-flow {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}
.arch-node {
  border-radius: 14px;
  padding: 1rem;
  border: 1px solid var(--border);
  background: var(--white);
}
.arch-node.platform {
  background: var(--blue);
  color: #fff;
  border: none;
}
.arch-node.tenant { background: var(--blue-soft); }
.arch-node small { display: block; opacity: 0.85; font-size: 0.82rem; }
.arch-arrow { margin: 0.4rem 0; color: var(--orange); font-weight: 800; }
.ops-row, .channel-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
}
.ops-row span, .channel-row span {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
}
.channel-row span { background: #ecfdf5; color: #047857; }
.arch-label { font-weight: 700; margin: 0.4rem 0; }

.units-grid, .commerce-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.unit-ladder { text-align: center; }
.unit-step {
  display: inline-block;
  min-width: 140px;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  background: var(--blue-soft);
  font-weight: 800;
}
.unit-ex { color: var(--text-muted); font-size: 0.9rem; }

.flow-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  counter-reset: flow;
}
.flow-row li {
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-weight: 600;
  font-size: 0.85rem;
}
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
.pill-list li {
  background: var(--orange);
  color: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.commerce-tree ul { list-style: none; padding: 0; margin: 0.75rem 0 0; display: grid; gap: 0.45rem; }
.commerce-tree li {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
  font-weight: 600;
}

.compare-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.compare-table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 0.85rem; }
.compare-table th, .compare-table td {
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.compare-table th { background: var(--surface); }
.highlight-col { background: #eef3ff; font-weight: 700; color: var(--blue); }
.compare-note { text-align: center; color: var(--text-muted); font-size: 0.85rem; margin-top: 1rem; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.step { padding: 1.15rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); }
.step-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue); color: #fff; display: grid; place-items: center;
  font-weight: 800; margin-bottom: 0.6rem;
}
.step h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.step p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }

.ai-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ai-split article {
  background: rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 1.25rem;
}
.ai-split h3 { margin: 0 0 0.6rem; }
.ai-split ul { margin: 0; padding-left: 1.1rem; }

.trust-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.6rem; }
.trust-item {
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 0.5rem;
}

.center-row { justify-content: center; }

.faq-list { max-width: 760px; margin-inline: auto; display: grid; gap: 0.6rem; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.2rem 1rem;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.85rem 0;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--blue); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0 0 1rem; color: var(--text-muted); font-size: 0.92rem; }

.cta-box {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: #fff;
  border-radius: 24px;
  padding: clamp(1.75rem, 4vw, 3rem);
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
}
.cta-box h2 { margin: 0 0 0.4rem; }
.cta-box p { margin: 0; opacity: 0.9; }
.cta-box .btn-secondary { border-color: rgba(255,255,255,0.35); color: #fff; background: transparent; }

.site-footer {
  background: var(--blue-dark);
  color: #cbd5e1;
  padding: 2.75rem 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 1.5rem;
}
.footer-grid h3 { color: #fff; font-size: 0.85rem; margin: 0 0 0.7rem; }
.apps-h { margin-top: 1.1rem; }
.footer-grid a, .footer-grid .muted { display: block; font-size: 0.88rem; margin-bottom: 0.35rem; }
.footer-grid a:hover { color: #fff; }
.footer-tag { font-weight: 700; color: var(--orange); margin: 0.5rem 0; }
.footer-meta { font-size: 0.82rem; }

body.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1rem; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(11, 31, 59, 0.55); }
.modal-dialog {
  position: relative;
  width: min(100%, 560px);
  max-height: min(92vh, 720px);
  overflow: auto;
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(11, 31, 59, 0.2);
  padding: 1.75rem;
}
.modal-close {
  position: absolute; top: 0.85rem; right: 0.85rem;
  width: 36px; height: 36px; border: 1px solid var(--border);
  border-radius: 10px; background: var(--white); cursor: pointer;
}
.modal-body h2 { margin: 0 0 0.5rem; font-size: 1.45rem; }
.modal-lead { margin: 0 0 1.25rem; color: var(--text-muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.875rem; font-weight: 500; }
.field-full { margin-top: 0.85rem; }
.field input, .field select, .field textarea {
  font: inherit; font-weight: 400; padding: 0.7rem 0.85rem;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); background: var(--white);
}
.form-error { margin: 0.75rem 0 0; color: #dc2626; font-size: 0.875rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.25rem; }
.form-actions .btn-primary[disabled] { opacity: 0.65; cursor: not-allowed; transform: none; }
.modal-success { text-align: center; }
.success-icon {
  width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 50%;
  background: #d1fae5; color: var(--green); display: grid; place-items: center;
  font-size: 1.5rem; font-weight: 700;
}

@media (max-width: 1024px) {
  .features-grid, .diff-grid, .type-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid, .units-grid, .commerce-grid, .ai-split, .steps, .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .menu-btn { display: grid; place-items: center; }
  .nav-cta-bar .btn-ghost, .nav-cta-bar .btn-primary { display: none; }
  .nav-panel {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem 1rem;
  }
  .nav-panel.open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; }
  .has-sub .sub { position: static; box-shadow: none; border: none; }
  .nav-cta-drawer { display: flex; margin-top: 0.75rem; }
  .features-grid, .diff-grid, .type-grid, .value-grid, .units-grid, .commerce-grid,
  .ai-split, .steps, .footer-grid, .trust-grid { grid-template-columns: 1fr; }
  .cta-box { flex-direction: column; align-items: flex-start; }
  .form-grid { grid-template-columns: 1fr; }
}
