/* =========================================
   NEXIDATA v2 — Global Stylesheet
   nexidata.io
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Bricolage+Grotesque:wght@400;600;700;800&display=swap');

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }

/* ---- TOKENS ---- */
:root {
  --bg:         #ffffff;
  --surface:    #f7f7f5;
  --surface2:   #f0f0ec;
  --ink:        #111110;
  --ink2:       #6b6b68;
  --ink3:       #a8a8a4;
  --border:     #e4e4e0;
  --blue:       #2563eb;
  --blue-light: #eff6ff;
  --blue-mid:   #bfdbfe;
  --blue-dark:  #1d4ed8;
  --green:      #16a34a;
  --display:    'Bricolage Grotesque', sans-serif;
  --sans:       'Plus Jakarta Sans', sans-serif;
  --max:        1180px;
  --px:         48px;
  --py:         88px;
  --nav-h:      64px;
}

/* ---- BASE ---- */
html  { scroll-behavior: smooth; }
body  {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- MAX-WIDTH HELPER ---- */
/* All sections have full-bleed backgrounds but content is capped */
.inner {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}

/* ---- TYPOGRAPHY ---- */
h1 {
  font-family: var(--display);
  font-size: clamp(36px, 4.5vw, 62px);
  font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; color: var(--ink);
}
h2 {
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.025em; color: var(--ink);
}
h3 { font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); line-height: 1.2; }
h4 { font-family: var(--display); font-size: 17px; font-weight: 700; color: var(--ink); }
p  { font-size: 15px; line-height: 1.75; color: var(--ink2); }
em { font-style: normal; color: var(--blue); }
a  { color: inherit; }

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--bg);
  padding: 13px 22px; border-radius: 8px;
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  text-decoration: none; transition: background 0.15s; border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--blue); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink2); font-size: 14px; font-weight: 500;
  text-decoration: none; transition: color 0.15s;
}
.btn-secondary:hover { color: var(--ink); }

.btn-blue {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue); color: #fff;
  padding: 13px 22px; border-radius: 8px;
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  text-decoration: none; transition: background 0.15s; border: none; cursor: pointer;
}
.btn-blue:hover { background: var(--blue-dark); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--border); color: var(--ink2);
  padding: 13px 22px; border-radius: 8px;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  text-decoration: none; transition: all 0.15s;
}
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }

.btn-white {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--ink);
  padding: 13px 22px; border-radius: 8px;
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  text-decoration: none; transition: background 0.15s;
}
.btn-white:hover { background: var(--blue-light); }

.btn-outline-white {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid rgba(255,255,255,0.25); color: rgba(255,255,255,0.75);
  padding: 13px 22px; border-radius: 8px;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  text-decoration: none; transition: all 0.15s;
}
.btn-outline-white:hover { border-color: rgba(255,255,255,0.6); color: #fff; }

/* ---- NAV ---- */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  padding: 0 var(--px);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.nav-logo {
  font-family: var(--display); font-size: 20px; font-weight: 700;
  letter-spacing: -0.02em; color: var(--ink); text-decoration: none;
}
.nav-logo span { color: var(--blue); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--ink2);
  text-decoration: none; transition: color 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-cta {
  font-size: 14px; font-weight: 600;
  background: var(--ink); color: var(--bg);
  padding: 9px 18px; border-radius: 8px; text-decoration: none;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--blue); }

/* Mobile */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--ink); }
.nav-mobile {
  display: none; position: fixed; inset: 0; top: var(--nav-h);
  background: var(--bg); z-index: 99; border-top: 1px solid var(--border);
  flex-direction: column; padding: 32px var(--px); gap: 0;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--display); font-size: 32px; font-weight: 800;
  color: var(--ink); text-decoration: none; letter-spacing: -0.02em;
  border-bottom: 1px solid var(--border); padding: 18px 0; transition: color 0.15s;
}
.nav-mobile a:hover { color: var(--blue); }

/* ---- SECTION LABEL ---- */
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 12px;
}
.section-tag::before { content: ''; width: 16px; height: 2px; background: var(--blue); border-radius: 2px; flex-shrink: 0; }
.section-tag.light { color: rgba(255,255,255,0.5); }
.section-tag.light::before { background: rgba(255,255,255,0.35); }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 72px var(--px) 64px;
}
.page-hero .inner { }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink3); margin-bottom: 24px;
}
.breadcrumb a { color: var(--ink3); text-decoration: none; transition: color 0.15s; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { color: var(--border); }
.page-hero h1 { margin-bottom: 16px; }
.page-hero p  { font-size: 17px; max-width: 580px; }

/* ---- TICKER ---- */
.ticker-wrap {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--surface); padding: 13px 0; overflow: hidden; white-space: nowrap;
}
.ticker-inner { display: inline-flex; animation: ticker 30s linear infinite; }
@keyframes ticker { from{transform:translateX(0);} to{transform:translateX(-50%);} }
.ticker-item {
  font-size: 13px; font-weight: 500; color: var(--ink2);
  padding: 0 28px; display: inline-flex; align-items: center; gap: 10px;
}
.ticker-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }

/* ---- SECTION BASE ---- */
section { padding: var(--py) var(--px); }

/* ---- SERVICE CARDS ---- */
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.scard {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 32px 28px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.scard:hover { border-color: var(--blue-mid); box-shadow: 0 4px 24px rgba(37,99,235,0.07); }
.scard-num { font-size: 12px; font-weight: 600; color: var(--ink3); letter-spacing: 0.08em; margin-bottom: 14px; }
.scard p  { font-size: 14px; line-height: 1.65; }
.scard-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.stag {
  font-size: 11px; font-weight: 500; background: var(--surface);
  color: var(--ink2); padding: 4px 10px; border-radius: 5px;
}
.scard-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 600; color: var(--blue);
  text-decoration: none; margin-top: 16px; transition: gap 0.15s;
}
.scard-link:hover { gap: 8px; }

/* ---- PROCESS STEPS ---- */
.process-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; margin-top: 48px; }
.pstep { padding: 0 32px 0 0; border-right: 1px solid var(--border); }
.pstep:last-child { border-right: none; padding-right: 0; }
.pstep-num {
  font-family: var(--display); font-size: 40px; font-weight: 800;
  color: var(--blue-mid); line-height: 1; margin-bottom: 14px; letter-spacing: -0.03em;
}
.pstep h4 { margin-bottom: 8px; }
.pstep p  { font-size: 13px; line-height: 1.65; }

/* ---- STACK ---- */
.stack-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stack-item {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px;
  display: flex; align-items: center; gap: 20px; transition: border-color 0.2s;
}
.stack-item:hover { border-color: var(--blue-mid); }
.stack-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--blue);
  letter-spacing: 0.04em; text-align: center; line-height: 1.2; flex-shrink: 0;
}
.stack-item h4 { margin-bottom: 3px; }
.stack-item p  { font-size: 13px; line-height: 1.5; }

/* ---- TESTIMONIALS ---- */
.testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.tcard {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 28px;
}
.tcard-stars { color: var(--blue); font-size: 13px; margin-bottom: 14px; letter-spacing: 2px; }
.tcard-quote { font-size: 15px; line-height: 1.7; color: var(--ink2); margin-bottom: 20px; font-style: italic; }
.tcard-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.tcard-role { font-size: 12px; color: var(--ink3); margin-top: 2px; }

/* ---- DASHBOARD PREVIEW ---- */
.dash-ui {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
}
.dash-header {
  background: var(--bg); border-bottom: 1px solid var(--border);
  padding: 12px 20px; display: flex; align-items: center; gap: 8px;
}
.dash-dot { width: 10px; height: 10px; border-radius: 50%; }
.dash-url { font-family: monospace; font-size: 12px; color: var(--ink3); margin-left: 8px; }
.dash-body { padding: 20px; display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.stat-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 16px 14px;
}
.stat-label { font-size: 11px; font-weight: 600; color: var(--ink3); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 6px; }
.stat-value { font-family: var(--display); font-size: 26px; font-weight: 700; color: var(--ink); line-height: 1; letter-spacing: -0.02em; }
.stat-delta { font-size: 12px; color: var(--green); font-weight: 500; margin-top: 4px; }
.dash-chart { padding: 0 20px 20px; display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.chart-block {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 16px;
}
.chart-label { font-size: 11px; font-weight: 600; color: var(--ink3); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 10px; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 56px; }
.bar { flex: 1; border-radius: 3px 3px 0 0; background: var(--blue-mid); }
.bar.active { background: var(--blue); }
.status-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.status-row:last-child { border-bottom: none; padding-bottom: 0; }
.status-row span:first-child { font-size: 12px; color: var(--ink2); }

/* ---- CTA BAND ---- */
.cta-band {
  background: var(--ink); border-radius: 16px;
  padding: 60px 56px; position: relative; overflow: hidden;
  margin: 0 var(--px) var(--py);
}
.cta-band::before {
  content: 'Nexidata';
  position: absolute; font-family: var(--display); font-size: 180px; font-weight: 800;
  color: rgba(255,255,255,0.04); right: -10px; top: 50%; transform: translateY(-50%);
  pointer-events: none; letter-spacing: -0.04em; white-space: nowrap;
}
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p  { color: rgba(255,255,255,0.55); max-width: 460px; margin-bottom: 32px; font-size: 16px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }

/* ---- PRICING CARDS ---- */
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 48px; }
.pricing-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 36px 28px;
}
.pricing-card.featured {
  background: var(--ink); border-color: var(--ink);
}
.pricing-card h3 { margin-bottom: 6px; }
.pricing-card.featured h3 { color: #fff; }
.pricing-card.featured p { color: rgba(255,255,255,0.5); }
.price-val {
  font-family: var(--display); font-size: 44px; font-weight: 800;
  color: var(--ink); line-height: 1; letter-spacing: -0.03em; margin: 16px 0 4px;
}
.pricing-card.featured .price-val { color: #fff; }
.price-note { font-size: 12px; color: var(--ink3); margin-bottom: 24px; }
.pricing-card.featured .price-note { color: rgba(255,255,255,0.35); }
.price-features { list-style: none; }
.price-features li {
  font-size: 14px; color: var(--ink2); padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-start; gap: 10px;
}
.pricing-card.featured .price-features li { color: rgba(255,255,255,0.65); border-color: rgba(255,255,255,0.08); }
.price-features li::before { content: '✓'; color: var(--blue); font-weight: 600; font-size: 12px; flex-shrink: 0; }
.pricing-card.featured .price-features li::before { color: var(--blue-mid); }
.price-features li:last-child { border-bottom: none; }
.price-badge {
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--blue); color: #fff;
  padding: 4px 12px; border-radius: 20px; display: inline-block; margin-bottom: 14px;
}

/* ---- ACCORDION ---- */
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-trigger {
  width: 100%; text-align: left; padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  background: none; border: none; cursor: pointer;
  font-family: var(--display); font-size: 17px; font-weight: 700; color: var(--ink);
}
.accordion-icon { font-size: 20px; color: var(--blue); transition: transform 0.3s; flex-shrink: 0; margin-left: 16px; }
.accordion-trigger[aria-expanded="true"] .accordion-icon { transform: rotate(45deg); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.accordion-content p { padding: 0 0 20px; font-size: 14px; }

/* ---- FORM ---- */
.form-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 40px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 12px; font-weight: 600; color: var(--ink2); letter-spacing: 0.04em; text-transform: uppercase; }
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--sans); font-size: 14px; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 8px; padding: 11px 14px; outline: none;
  transition: border-color 0.15s; width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--blue); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ---- FOOTER ---- */
.footer-wrap {
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 56px var(--px) 0;
}
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
}
.footer-logo { font-family: var(--display); font-size: 18px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; margin-bottom: 12px; }
.footer-logo span { color: var(--blue); }
.footer-brand p { font-size: 13px; color: var(--ink3); line-height: 1.7; max-width: 260px; }
.footer-col h5 { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink3); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13px; color: var(--ink2); text-decoration: none; margin-bottom: 9px; transition: color 0.15s; }
.footer-col a:hover { color: var(--blue); }
.footer-bottom {
  max-width: var(--max); margin: 40px auto 0; padding: 20px 0;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom span { font-size: 12px; color: var(--ink3); }
.footer-status { display: flex; align-items: center; gap: 6px; }
.footer-status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:0.4;} }

/* ---- PRODUCT BADGE ---- */
.product-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue-light); color: var(--blue);
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  padding: 5px 12px; border-radius: 6px; margin-bottom: 16px;
}

/* ---- EMBED CODE BLOCK ---- */
.embed-block {
  background: var(--ink); border-radius: 8px; padding: 18px 20px; margin-top: 20px;
}
.embed-block-label { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.4); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px; }
.embed-block code { font-family: monospace; font-size: 13px; color: var(--blue-mid); line-height: 1.6; }

/* ---- DETAIL SECTION (services page) ---- */
.detail-section { padding: var(--py) var(--px); border-bottom: 1px solid var(--border); }
.detail-section:nth-child(even) { background: var(--surface); }
.detail-layout { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.3fr; gap: 72px; align-items: start; }
.detail-left { position: sticky; top: calc(var(--nav-h) + 32px); }
.detail-left h2 { margin-bottom: 16px; }
.detail-left > p { margin-bottom: 24px; font-size: 15px; }
.what-list { list-style: none; margin-bottom: 32px; }
.what-list li {
  font-size: 14px; color: var(--ink2); padding: 11px 0;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-start; gap: 10px;
}
.what-list li::before { content: '→'; color: var(--blue); flex-shrink: 0; font-weight: 600; }
.what-list li:last-child { border-bottom: none; }
.detail-cards { display: flex; flex-direction: column; gap: 12px; }
.detail-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 24px; border-left: 3px solid var(--blue);
}
.detail-card h4 { margin-bottom: 8px; }
.detail-card p  { font-size: 14px; line-height: 1.65; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) { :root { --px: 32px; } }
@media (max-width: 768px) {
  :root { --px: 20px; --py: 60px; }
  nav { padding: 0 20px; }
  .nav-inner { padding: 0; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .services-grid, .testi-grid, .stack-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .pstep { border-right: none; border-bottom: 1px solid var(--border); padding: 0 0 24px; margin-bottom: 24px; }
  .pstep:last-child { border-bottom: none; margin-bottom: 0; }
  .dash-body { grid-template-columns: 1fr 1fr; }
  .dash-chart { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; gap: 40px; }
  .detail-left { position: static; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-wrap { padding: 40px 20px 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .cta-band { margin: 0 20px var(--py); padding: 40px 28px; }
}
