/* ==========================================================================
   TUORVIX — Design System
   Signature motif: "Nodo" — three connected nodes representing intelligence,
   automation and connected systems. Appears in the logo, section dividers,
   list markers and the hero's node-graph backdrop.
   ========================================================================== */

:root {
  /* Brand palette */
  --color-primary: #2563FF;
  --color-primary-hover: #1B4ED8;
  --color-secondary: #111827;
  --color-accent: #18C29C;
  --color-highlight: #7C5CFF;

  --color-bg: #F6F8FC;
  --color-surface: #FFFFFF;
  --color-border: #E6EAF2;

  --color-text: #101828;
  --color-text-secondary: #667085;

  --color-success: #12B76A;
  --color-warning: #F59E0B;
  --color-error: #E5484D;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #2563FF 0%, #7C5CFF 100%);
  --gradient-accent: linear-gradient(135deg, #18C29C 0%, #2563FF 100%);
  --gradient-mesh: radial-gradient(circle at 15% 20%, rgba(37,99,255,0.10), transparent 40%),
                    radial-gradient(circle at 85% 10%, rgba(124,92,255,0.10), transparent 40%),
                    radial-gradient(circle at 50% 90%, rgba(24,194,156,0.08), transparent 45%);

  /* Typography */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Radii & shadows */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 4px 16px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 12px 40px rgba(16, 24, 40, 0.10);
  --shadow-glow: 0 0 0 1px rgba(37,99,255,0.08), 0 8px 30px rgba(37,99,255,0.14);

  --container: 1180px;
  --nav-height: 76px;
}

/* Dark mode */
[data-theme="dark"] {
  --color-bg: #0B0E17;
  --color-surface: #10141F;
  --color-border: #232838;
  --color-text: #EEF1F7;
  --color-text-secondary: #9AA3B5;
  --gradient-mesh: radial-gradient(circle at 15% 20%, rgba(37,99,255,0.16), transparent 40%),
                    radial-gradient(circle at 85% 10%, rgba(124,92,255,0.16), transparent 40%),
                    radial-gradient(circle at 50% 90%, rgba(24,194,156,0.10), transparent 45%);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-secondary);
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3, [data-theme="dark"] h4 { color: var(--color-text); }
p { margin: 0; }
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section-tight { padding: 40px 0; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(37,99,255,0.08);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(24,194,156,0.18);
}

h1 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: 1.3rem; }
.text-lead {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  max-width: 640px;
}
.text-secondary { color: var(--color-text-secondary); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(37,99,255,0.24); }
.btn-secondary {
  background: var(--color-surface);
  color: var(--color-secondary);
  border-color: var(--color-border);
}
[data-theme="dark"] .btn-secondary { color: var(--color-text); }
.btn-secondary:hover { border-color: var(--color-primary); transform: translateY(-2px); }
.btn-ghost { color: var(--color-primary); padding: 13px 8px; }
.btn-ghost:hover { color: var(--color-primary-hover); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Nav ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(246, 248, 252, 0.78);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--color-border);
}
[data-theme="dark"] .navbar { background: rgba(11, 14, 23, 0.72); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-left { display: flex; align-items: center; gap: 40px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--color-secondary); }
[data-theme="dark"] .nav-logo { color: var(--color-text); }
.nav-logo svg { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--color-text-secondary);
  position: relative;
  padding: 6px 0;
  transition: color 0.15s ease;
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 2px; border-radius: 2px;
  background: var(--gradient-primary);
  transition: right 0.22s ease;
}
.nav-links a:hover { color: var(--color-text); }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-links a.active { color: var(--color-text); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  display: flex; align-items: center; justify-content: center;
}
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  align-items: center; justify-content: center;
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}
.mobile-menu {
  display: none;
  position: fixed; inset: var(--nav-height) 0 0 0;
  background: var(--color-bg);
  z-index: 99;
  padding: 20px 24px 40px;
  overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-secondary);
}
[data-theme="dark"] .mobile-menu a { color: var(--color-text); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 40px;
  background-image: var(--gradient-mesh);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 22px; margin-top: 36px; flex-wrap: wrap; }
.hero-meta-item { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--color-text-secondary); }
.hero-meta-item svg { width: 16px; height: 16px; color: var(--color-accent); }
.hero-visual { position: relative; }
.hero-visual svg { width: 100%; height: auto; }
.float-slow { animation: float 7s ease-in-out infinite; }
.float-slower { animation: float 9s ease-in-out infinite; animation-delay: -3s; }
@keyframes float { 0%,100% { transform: translateY(0px); } 50% { transform: translateY(-14px); } }
.pulse-node { animation: pulse 2.4s ease-in-out infinite; transform-origin: center; }
@keyframes pulse { 0%,100% { opacity: 0.55; r: 4; } 50% { opacity: 1; r: 6; } }
.dash-line { stroke-dasharray: 6 6; animation: dash 3.5s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -60; } }

/* ---------- Logo strip ---------- */
.logo-strip { padding: 40px 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.logo-strip-label { text-align: center; font-size: 13px; color: var(--color-text-secondary); margin-bottom: 26px; letter-spacing: 0.04em; }
.logo-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; opacity: 0.75; }
.logo-row svg { height: 26px; width: auto; color: var(--color-secondary); }
[data-theme="dark"] .logo-row svg { color: var(--color-text-secondary); }

/* ---------- Cards & Grid ---------- */
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.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); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(37,99,255,0.25); }
.card-icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 22px; height: 22px; color: #fff; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--color-text-secondary); font-size: 14.5px; }

.glass {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.5);
}
[data-theme="dark"] .glass { background: rgba(16,20,31,0.55); border-color: rgba(255,255,255,0.08); }

/* Node bullet list — signature motif reused as a content marker */
.node-list li { position: relative; padding-left: 30px; margin-bottom: 16px; color: var(--color-text-secondary); font-size: 15px; }
.node-list li::before {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--color-surface);
  border: 2px solid var(--color-accent);
}
.node-list li::after {
  content: "";
  position: absolute; left: 4px; top: 19px;
  width: 1px; height: calc(100% - 8px);
  background: var(--color-border);
}
.node-list li:last-child::after { display: none; }

/* Stats */
.stat { text-align: center; }
.stat-number { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: var(--color-secondary); }
[data-theme="dark"] .stat-number { color: var(--color-text); }
.stat-label { color: var(--color-text-secondary); font-size: 14px; margin-top: 6px; }

/* Testimonials */
.testimonial-card { padding: 34px; }
.testimonial-quote { font-family: var(--font-display); font-size: 1.15rem; color: var(--color-secondary); margin-bottom: 22px; }
[data-theme="dark"] .testimonial-quote { color: var(--color-text); }
.testimonial-person { display: flex; align-items: center; gap: 12px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; }
.person-name { font-weight: 600; font-size: 14.5px; }
.person-role { font-size: 13px; color: var(--color-text-secondary); }

/* Pricing */
.pricing-card { position: relative; display: flex; flex-direction: column; }
.pricing-card.featured { border-color: var(--color-primary); box-shadow: var(--shadow-glow); }
.pricing-badge {
  position: absolute; top: -14px; left: 32px;
  background: var(--gradient-primary); color: #fff;
  font-size: 12px; font-weight: 600;
  padding: 5px 14px; border-radius: var(--radius-pill);
}
.price-value { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; margin: 16px 0 4px; }
.price-cadence { color: var(--color-text-secondary); font-size: 14px; }
.pricing-card ul { margin: 26px 0; flex-grow: 1; }

/* Accordion / FAQ */
.accordion-item { border-bottom: 1px solid var(--color-border); }
.accordion-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0; background: none; border: none; text-align: left;
  font-family: var(--font-display); font-size: 16.5px; color: var(--color-secondary);
}
[data-theme="dark"] .accordion-trigger { color: var(--color-text); }
.accordion-trigger svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.25s ease; color: var(--color-primary); }
.accordion-item.open .accordion-trigger svg { transform: rotate(45deg); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.accordion-panel p { padding-bottom: 22px; color: var(--color-text-secondary); font-size: 14.5px; max-width: 720px; }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; color: var(--color-secondary); }
[data-theme="dark"] label { color: var(--color-text); }
input, select, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14.5px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
}
input:focus, select:focus, textarea:focus { border-color: var(--color-primary); }
textarea { resize: vertical; min-height: 130px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-row input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }
.checkbox-row label { font-weight: 400; font-size: 13.5px; color: var(--color-text-secondary); margin: 0; }
.form-note { font-size: 12.5px; color: var(--color-text-secondary); margin-top: 6px; }

/* Footer */
.site-footer { background: var(--color-secondary); color: #C3C9D6; padding: 72px 0 28px; }
[data-theme="dark"] .site-footer { background: #070a11; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 19px; color: #fff; margin-bottom: 14px; }
.footer-brand svg { width: 28px; height: 28px; }
.footer-desc { font-size: 14px; line-height: 1.7; max-width: 280px; color: #9AA3B5; }
.footer-col h4 { color: #fff; font-size: 13.5px; letter-spacing: 0.03em; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { font-size: 14px; color: #9AA3B5; transition: color 0.15s ease; }
.footer-col a:hover { color: #fff; }
.footer-contact { font-size: 14px; color: #9AA3B5; line-height: 1.8; }
.footer-bottom {
  margin-top: 56px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal li { display: inline-flex; }
.footer-legal a { font-size: 13px; color: #7A8296; }
.footer-legal a:hover { color: #fff; }
.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
}
.social-row svg { width: 16px; height: 16px; }
.social-row a:hover { border-color: var(--color-primary); background: rgba(37,99,255,0.12); }

/* Cookie banner */
.cookie-banner {
  position: fixed; left: 24px; right: 24px; bottom: 24px;
  max-width: 620px; margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 24px 26px;
  z-index: 200;
  transform: translateY(140%);
  transition: transform 0.4s ease;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner p { font-size: 13.5px; color: var(--color-text-secondary); margin-bottom: 16px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--color-text-secondary); margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb svg { width: 12px; height: 12px; }

/* Page hero (inner pages) */
.page-hero { padding: 56px 0 20px; }
.page-hero .eyebrow { margin-bottom: 18px; }

/* CTA band */
.cta-band {
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); margin: 14px auto 30px; max-width: 520px; }
.cta-band .btn-secondary { background: #fff; color: var(--color-secondary); border: none; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Table (pricing comparison, etc.) */
.table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { text-align: left; padding: 14px 20px; font-size: 14px; border-bottom: 1px solid var(--color-border); }
th { font-family: var(--font-display); color: var(--color-secondary); background: var(--color-bg); }
[data-theme="dark"] th { color: var(--color-text); }
tr:last-child td { border-bottom: none; }

/* Blog / case study cards */
.post-card img { border-radius: var(--radius-md); margin-bottom: 18px; aspect-ratio: 16/10; object-fit: cover; }
.post-tag { font-size: 12px; font-weight: 600; color: var(--color-primary); text-transform: uppercase; letter-spacing: 0.04em; }
.post-card h3 { margin: 10px 0 8px; font-size: 1.05rem; }
.post-meta { font-size: 12.5px; color: var(--color-text-secondary); margin-top: 14px; }

/* Utility */
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; }
.text-center { text-align: center; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; padding: 5px 12px; border-radius: var(--radius-pill);
  background: rgba(24,194,156,0.1); color: #0E9A7C;
}
[data-theme="dark"] .badge { background: rgba(24,194,156,0.15); color: #4EDCB9; }
