/* ============================================================
   VayaOne — Design System & Site Stylesheet
   ============================================================ */

:root {
  --primary: #0B1F3A;
  --primary-light: #16305a;
  --secondary: #F58220;
  --secondary-dark: #d96f14;
  --light: #F5F7FA;
  --dark: #111827;
  --white: #FFFFFF;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-400: #9CA3AF;
  --gray-600: #4B5563;
  --gray-700: #374151;

  --success: #16a34a;
  --success-bg: #ecfdf3;
  --error: #dc2626;
  --error-bg: #fef2f2;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 3px rgba(11, 31, 58, 0.08);
  --shadow-md: 0 8px 24px rgba(11, 31, 58, 0.10);
  --shadow-lg: 0 16px 48px rgba(11, 31, 58, 0.14);

  --container-width: 1180px;
  --header-height: 76px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--primary); }
p { margin: 0 0 1em; color: var(--gray-700); }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--primary); color: var(--white);
  padding: 10px 16px; z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  border: 2px solid transparent; transition: all .2s ease; white-space: nowrap;
}
.btn-primary { background: var(--secondary); color: var(--white); }
.btn-primary:hover { background: var(--secondary-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-ghost { background: var(--gray-100); color: var(--gray-700); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; justify-content: center; margin-top: 10px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 500;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
}
.header-inner {
  height: var(--header-height);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand-mark { font-size: 1.4rem; font-weight: 800; color: var(--primary); letter-spacing: -0.02em; }
.brand-accent { color: var(--secondary); }
.main-nav ul { display: flex; gap: 4px; align-items: center; }
.main-nav a {
  display: block; padding: 10px 14px; border-radius: 999px; font-weight: 500;
  font-size: 0.94rem; color: var(--gray-700); transition: all .15s ease;
}
.main-nav a:hover, .main-nav a.active { background: var(--light); color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none; background: none; border: none; padding: 8px; color: var(--primary);
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Icons ---------- */
.icon { width: 20px; height: 20px; flex-shrink: 0; }
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 28px; height: 28px; }
.icon-lg { width: 32px; height: 32px; color: var(--secondary); }
.icon-xl { width: 44px; height: 44px; color: var(--white); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 88px; background: linear-gradient(180deg, var(--light) 0%, var(--white) 100%); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.eyebrow { color: var(--secondary); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.82rem; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 18px; }
.hero .lead { font-size: 1.1rem; color: var(--gray-600); max-width: 46ch; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-graphic { position: relative; display: flex; align-items: center; justify-content: center; min-height: 320px; }
.node-diagram { position: relative; width: 100%; max-width: 380px; aspect-ratio: 1/1; color: var(--primary); }
.node-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.node {
  position: absolute; background: var(--white); border: 1px solid var(--gray-200); border-radius: 999px;
  padding: 14px 20px; font-weight: 700; font-size: 0.85rem; box-shadow: var(--shadow-md); color: var(--primary);
}
.node-center { top: 46%; left: 50%; transform: translate(-50%, -50%); background: var(--primary); color: var(--white); font-size: 1rem; padding: 20px 28px; box-shadow: var(--shadow-lg); }
.node-orbit.n1 { top: 8%; left: 50%; transform: translateX(-50%); }
.node-orbit.n2 { top: 32%; right: 0%; }
.node-orbit.n3 { bottom: 20%; right: 4%; }
.node-orbit.n4 { bottom: 4%; left: 10%; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--light); }
.section-title { font-size: 1.9rem; font-weight: 800; margin-bottom: 32px; letter-spacing: -0.01em; }
.section-eyebrow { color: var(--secondary); font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.08em; margin-bottom: 10px; }
.section-lead { font-size: 1.1rem; color: var(--gray-600); max-width: 70ch; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head .section-title { margin-bottom: 0; }
.link-more { font-weight: 600; color: var(--secondary); display: inline-flex; align-items: center; gap: 6px; }
.section-intro { padding-bottom: 40px; }
.prose-section { max-width: 78ch; }
.prose-section h2 { margin-top: 1.6em; }

/* ---------- Grid & Cards ---------- */
.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); }

.card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .2s ease;
}

.ecosystem-card, .why-card, .industry-card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  padding: 28px; text-align: left;
}
.ecosystem-card h3, .why-card h3, .industry-card h3 { margin: 14px 0 8px; font-size: 1.1rem; }
.industry-related { font-size: 0.85rem; color: var(--gray-400); margin-top: 10px; }

.download-card { text-align: left; }
.download-card h3 { margin-top: 14px; }
.download-meta { font-size: 0.85rem; color: var(--gray-400); margin-bottom: 8px; }
.download-meta a { color: var(--secondary); font-weight: 600; }
.download-meta-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 18px; }
.download-meta-row .tag { font-weight: 600; }

.tag-card {
  display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-md); padding: 16px 18px; font-weight: 600; font-size: 0.92rem; color: var(--primary);
}

.project-card { padding: 0; overflow: hidden; }
.project-card-link { display: flex; flex-direction: column; height: 100%; padding: 26px; }
.project-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.project-card-icon { width: 52px; height: 52px; border-radius: var(--radius-sm); background: var(--light); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; color: var(--secondary); }
.project-card-top { display: flex; align-items: start; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.project-card-top h3 { font-size: 1.1rem; margin: 0; }
.project-card-body p { font-size: 0.92rem; margin-bottom: 0; }
.project-card-more { margin-top: auto; padding-top: 18px; font-weight: 600; font-size: 0.85rem; color: var(--secondary); display: inline-flex; align-items: center; gap: 6px; }

/* Status pills */
.pill { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; white-space: nowrap; }
.pill-live { background: #ecfdf3; color: #15803d; }
.pill-dev { background: #eff6ff; color: #1d4ed8; }
.pill-beta { background: #fef3c7; color: #b45309; }
.pill-soon { background: #f3e8ff; color: #7e22ce; }
.pill-concept { background: var(--gray-100); color: var(--gray-600); }
.pill-inactive { background: var(--gray-100); color: var(--gray-400); }
.status-legend { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }

/* ---------- Ecosystem map (Solutions page) ---------- */
.ecosystem-map { display: flex; flex-direction: column; align-items: center; gap: 0; }
.eco-level { text-align: center; width: 100%; }
.eco-level-label { font-weight: 700; color: var(--gray-400); text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.08em; margin-bottom: 14px; }
.eco-connector { width: 2px; height: 36px; background: var(--gray-200); }
.eco-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 20px; }
.eco-node {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: 999px;
  padding: 12px 22px; font-weight: 600; font-size: 0.9rem; color: var(--primary); box-shadow: var(--shadow-sm);
}
.eco-node a { color: var(--primary); }
.eco-node-primary { background: var(--primary); color: var(--white); font-size: 1.2rem; padding: 20px 40px; font-weight: 800; box-shadow: var(--shadow-lg); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--primary); color: var(--white); text-align: center; }
.cta-inner h2 { color: var(--white); font-size: 1.8rem; margin-bottom: 10px; }
.cta-inner p { color: rgba(255,255,255,0.75); margin-bottom: 26px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--light); padding: 48px 0 56px; }
.page-hero h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 10px 0 8px; }
.page-hero .lead { color: var(--gray-600); font-size: 1.05rem; max-width: 60ch; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; font-size: 0.85rem; color: var(--gray-400); }
.breadcrumbs li { display: flex; align-items: center; gap: 6px; }
.breadcrumbs li:not(:last-child)::after { content: '/'; margin-left: 6px; color: var(--gray-200); }
.breadcrumbs a { color: var(--gray-600); }
.breadcrumbs a:hover { color: var(--secondary); }

/* ---------- Filters ---------- */
.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; align-items: center; }
.filter-bar select {
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--gray-200); background: var(--white);
  font-size: 0.9rem; color: var(--gray-700);
}
.empty-state { color: var(--gray-400); padding: 40px 0; text-align: center; font-size: 1.05rem; }

/* ---------- Search ---------- */
.search-form-large { display: flex; gap: 10px; max-width: 560px; margin-top: 22px; }
.search-form-large input {
  flex: 1; padding: 14px 20px; border-radius: 999px; border: 1px solid var(--gray-200); font-size: 1rem;
}
.search-form-large button {
  display: flex; align-items: center; gap: 8px; background: var(--primary); color: var(--white);
  padding: 0 24px; border-radius: 999px; border: none; font-weight: 600;
}
.results-count { color: var(--gray-400); margin-bottom: 20px; }

/* ---------- Project detail ---------- */
.project-hero-top { display: flex; gap: 22px; align-items: flex-start; }
.project-hero-icon { width: 76px; height: 76px; border-radius: var(--radius-md); background: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.project-hero-meta { display: flex; gap: 10px; margin-bottom: 12px; align-items: center; }
.tag { background: var(--white); border: 1px solid var(--gray-200); padding: 4px 12px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; color: var(--gray-600); }
.project-detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.feature-grid { margin-top: 18px; }
.feature-item { display: flex; gap: 14px; align-items: flex-start; }
.feature-item .icon { color: var(--secondary); margin-top: 3px; }
.feature-item h4 { margin: 0 0 4px; font-size: 1rem; }
.feature-item p { font-size: 0.9rem; margin: 0; }
.project-detail-sidebar { position: sticky; top: calc(var(--header-height) + 24px); }
.cta-card { text-align: center; }
.cta-card h3 { margin-bottom: 8px; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 48px; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; color: var(--gray-700); }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: 12px 16px; border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.95rem; background: var(--white);
}
.form-row input:focus, .form-row textarea:focus { outline: 2px solid var(--secondary); outline-offset: 1px; }
.form-row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 22px; display: flex; align-items: center; gap: 10px; font-size: 0.92rem; }
.alert-success { background: var(--success-bg); color: var(--success); }
.alert-error { background: var(--error-bg); color: var(--error); }
.alert-error ul { padding-left: 18px; list-style: disc; }
.contact-info { background: var(--light); border-radius: var(--radius-lg); padding: 28px; align-self: start; }
.contact-info h3 { margin-bottom: 16px; }
.contact-info p { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; }
.contact-info .icon { color: var(--secondary); flex-shrink: 0; margin-top: 2px; }

/* ---------- 404 ---------- */
.not-found { text-align: center; padding: 120px 0; }
.error-code { font-size: 5rem; font-weight: 800; color: var(--gray-200); margin: 0; }
.not-found .hero-actions { justify-content: center; margin-top: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary); color: rgba(255,255,255,0.85); padding-top: 64px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; padding-bottom: 48px; }
.footer-brand .brand-mark { color: var(--white); }
.footer-brand p { color: rgba(255,255,255,0.6); margin-top: 12px; font-size: 0.9rem; }
.footer-social { display: flex; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.footer-social a { font-size: 0.82rem; color: rgba(255,255,255,0.7); }
.footer-social a:hover { color: var(--secondary); }
.footer-col h4 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.footer-col a:hover { color: var(--secondary); }
.footer-contact li { font-size: 0.85rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 20px 0; text-align: center; font-size: 0.82rem; color: rgba(255,255,255,0.5); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-graphic { min-height: 240px; order: -1; }
  .project-detail-layout { grid-template-columns: 1fr; }
  .project-detail-sidebar { position: static; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --header-height: 64px; }
  .main-nav {
    position: fixed; inset: 64px 0 0 0; background: var(--white); padding: 20px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all .2s ease;
    overflow-y: auto; z-index: 400;
  }
  .main-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { padding: 14px 16px; font-size: 1.05rem; }
  .nav-toggle { display: block; }
  .header-actions .btn-primary { display: none; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .form-row-split { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .hero { padding: 48px 0 56px; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .hero-actions, .filter-bar { flex-direction: column; align-items: stretch; }
  .search-form-large { flex-direction: column; }
}
