/* ================================================================
   NEXIA, Shared Design System
   Phase 1 tokens extracted for use across all pages.
   index.html keeps its own inline copy; sectorial pages link here.
================================================================ */

/* =============================================
   TOKENS
============================================= */
:root {
  --cream:        #F6F1E9;
  --ink:          #1A1714;
  --terracotta:   #C2542F;
  --terracotta-h: #A8441F;
  --espresso:     #231E1A;

  --cream-muted:  #E4DBCF;
  --ink-muted:    #6B5F55;
  --ink-faint:    rgba(26,23,20,0.1);

  --cream-on-dark: #C4BAA8;
  --cream-card:    rgba(246,241,233,0.07);
  --cream-border:  rgba(246,241,233,0.1);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Hanken Grotesk', system-ui, sans-serif;
  --ease:         cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out:     cubic-bezier(0, 0, 0.25, 1);
}

/* =============================================
   RESET + BASE
============================================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Grain overlay */
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =============================================
   NAV
============================================= */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(246,241,233,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
nav.scrolled { border-bottom-color: var(--ink-faint); background: rgba(246,241,233,0.96); }
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo .brand-mark svg { height: 30px; width: auto; display: block; }
.nav-logo .brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  color: var(--ink);
  letter-spacing: -0.5px;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 14px; font-weight: 500;
  color: var(--ink-muted); text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--terracotta) !important;
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px; font-weight: 600;
  transition: background 0.2s, transform 0.2s !important;
}
.nav-cta:hover { background: var(--terracotta-h) !important; transform: translateY(-1px); }

/* =============================================
   BREADCRUMB
============================================= */
.breadcrumb {
  padding: 100px 64px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-muted);
  position: relative; z-index: 1;
}
.breadcrumb a { color: var(--ink-muted); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .bc-current { color: var(--terracotta); font-weight: 500; }

/* =============================================
   BUTTONS
============================================= */
.btn-primary {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--terracotta); color: #fff;
  padding: 14px 28px; border-radius: 8px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-primary::after {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 55%; height: 100%;
  background: linear-gradient(90deg,transparent,rgba(255,255,255,0.18),transparent);
  transform: skewX(-20deg);
}
.btn-primary:hover {
  background: var(--terracotta-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(194,84,47,0.3);
  color: #fff;
}
.btn-primary:hover::after { animation: btn-shine 0.5s forwards; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--ink);
  padding: 13px 24px; border-radius: 8px;
  font-size: 15px; font-weight: 500; text-decoration: none;
  border: 1.5px solid var(--ink-faint);
  transition: border-color 0.2s;
}
.btn-outline:hover { border-color: rgba(26,23,20,0.4); }

/* =============================================
   SECTIONS
============================================= */
.section {
  padding: 100px 64px;
  max-width: 1280px;
  margin: 0 auto;
}
.section-tag {
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--terracotta);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.section-tag::before { content: ''; width: 22px; height: 1px; background: var(--terracotta); }
h2.sh {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.8vw, 50px);
  line-height: 1.1; letter-spacing: -0.03em;
  color: var(--ink); margin-bottom: 20px;
}
.section-sub {
  font-size: 17px; line-height: 1.7;
  color: var(--ink-muted); max-width: 540px;
  margin-bottom: 52px;
}

/* Dark section */
.dark-section { background: var(--espresso); position: relative; overflow: hidden; }
.dark-section::before {
  content: '';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 65%; height: 65%;
  background: radial-gradient(circle, rgba(194,84,47,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.dark-section .inner {
  max-width: 1280px; margin: 0 auto;
  padding: 100px 64px; position: relative; z-index: 1;
}
.dark-section .section-tag { color: var(--terracotta); }
.dark-section .section-tag::before { background: var(--terracotta); }
.dark-section h2.sh { color: var(--cream); }
.dark-section .section-sub { color: var(--cream-on-dark); }
.bg-muted { background: var(--cream-muted); }

/* =============================================
   STATS STRIP
============================================= */
.stats-strip {
  background: var(--espresso);
  padding: 40px 64px;
  display: flex;
}
.stat-item {
  flex: 1; padding: 0 36px;
  border-right: 1px solid rgba(246,241,233,0.08);
}
.stat-item:first-child { padding-left: 0; }
.stat-item:last-child  { border-right: none; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 700; font-size: 48px;
  color: var(--cream); letter-spacing: -0.04em; line-height: 1;
}
.stat-suffix { font-size: 22px; color: var(--terracotta); }
.stat-label { font-size: 13px; color: var(--cream-on-dark); margin-top: 8px; line-height: 1.45; }
.stats-sources {
  background: var(--espresso);
  padding: 0 64px 20px;
  font-size: 11px; color: rgba(196,186,168,0.4);
}

/* =============================================
   FEATURES GRID
============================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 16px;
}
.feat-card {
  background: var(--cream);
  border: 1.5px solid var(--ink-faint);
  border-radius: 16px; padding: 28px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.feat-card:hover { border-color: var(--terracotta); box-shadow: 0 12px 32px rgba(26,23,20,0.07); }
.feat-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(194,84,47,0.08); border: 1px solid rgba(194,84,47,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 16px;
}
.feat-title {
  font-family: var(--font-display);
  font-weight: 600; font-size: 16px;
  color: var(--ink); margin-bottom: 8px;
}
.feat-desc { font-size: 14px; color: var(--ink-muted); line-height: 1.6; }

/* =============================================
   TARGET CHIPS
============================================= */
.targets { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.target-chip {
  background: var(--cream);
  border: 1.5px solid var(--ink-faint);
  border-radius: 100px; padding: 8px 20px;
  font-size: 14px; color: var(--ink-muted);
  transition: border-color 0.2s, color 0.2s;
}
.target-chip:hover { border-color: var(--terracotta); color: var(--ink); }

/* =============================================
   PRICING, dark section version
============================================= */
.pricing-grid-dark {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px; margin-top: 56px; align-items: start;
}
.pricing-card-dark {
  background: var(--cream-card);
  border: 1.5px solid var(--cream-border);
  border-radius: 20px; padding: 36px;
  position: relative; color: var(--cream);
  transition: border-color 0.25s, transform 0.3s var(--ease-out), box-shadow 0.3s;
  will-change: transform;
}
.pricing-card-dark:hover { border-color: rgba(246,241,233,0.2); transform: translateY(-4px); box-shadow: 0 20px 48px rgba(0,0,0,0.2); }
.pricing-card-dark.featured {
  background: var(--terracotta); border-color: transparent; isolation: isolate;
  padding: 44px 34px;
  margin-top: -12px;
  z-index: 1;
}
.pricing-card-dark.featured::before {
  content: ''; position: absolute; inset: -2px; border-radius: 22px; z-index: -1;
  background: linear-gradient(135deg,#E87B50,#9A3520,#C9603A,#E87B50);
  background-size: 300% 300%;
  animation: grad-border 4s ease infinite;
}
.pricing-card-dark.featured:hover { transform: translateY(-6px); box-shadow: 0 24px 56px rgba(194,84,47,0.35); }
.pricing-badge-dark {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--cream); color: var(--terracotta);
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  padding: 4px 14px; border-radius: 100px; white-space: nowrap;
}
.p-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 24px; color: var(--cream); margin-bottom: 6px;
}
.pricing-card-dark.featured .p-name { color: #fff; }
.p-price-row { display: flex; align-items: baseline; gap: 2px; }
.p-currency { font-size: 20px; color: var(--cream-on-dark); align-self: flex-start; margin-top: 8px; }
.pricing-card-dark.featured .p-currency { color: rgba(255,255,255,0.7); }
.p-amount {
  font-family: var(--font-display); font-weight: 700;
  font-size: 52px; letter-spacing: -0.04em; line-height: 1; color: var(--cream);
}
.pricing-card-dark.featured .p-amount { color: #fff; }
.p-period { font-size: 13px; color: var(--cream-on-dark); margin-bottom: 4px; }
.pricing-card-dark.featured .p-period { color: rgba(255,255,255,0.7); }
.p-install { font-size: 13px; color: var(--cream-on-dark); margin-bottom: 24px; }
.pricing-card-dark.featured .p-install { color: rgba(255,255,255,0.7); }
.p-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.p-list li { font-size: 14px; color: var(--cream-on-dark); display: flex; align-items: flex-start; gap: 10px; line-height: 1.45; }
.pricing-card-dark.featured .p-list li { color: rgba(255,255,255,0.82); }
.p-check {
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(246,241,233,0.12); color: var(--cream);
  font-size: 10px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.pricing-card-dark.featured .p-check { background: rgba(255,255,255,0.22); color: #fff; }
.p-btn {
  display: block; text-align: center; padding: 14px; border-radius: 8px;
  font-size: 15px; font-weight: 600; text-decoration: none; transition: all 0.2s;
}
.p-btn-ghost { border: 1.5px solid var(--cream-border); color: var(--cream); }
.p-btn-ghost:hover { border-color: rgba(246,241,233,0.35); color: var(--cream); background: var(--cream-card); }
.p-btn-solid { background: #fff; color: var(--terracotta); border: none; }
.p-btn-solid:hover { background: rgba(255,255,255,0.9); }
.p-footer { font-size: 12px; color: var(--cream-on-dark); text-align: center; margin-top: 12px; opacity: 0.75; }
.pricing-card-dark.featured .p-footer { color: rgba(255,255,255,0.6); }
.pricing-note-dark { font-size: 12px; color: var(--cream-on-dark); margin-top: 20px; text-align: center; opacity: 0.5; }

/* =============================================
   FAQ
============================================= */
.faq-list { max-width: 760px; display: flex; flex-direction: column; gap: 4px; }
.faq-item {
  background: var(--cream); border: 1.5px solid var(--ink-faint);
  border-radius: 12px; overflow: hidden; transition: border-color 0.2s;
}
.faq-item.open { border-color: var(--terracotta); }
.faq-q {
  padding: 20px 22px; font-weight: 600; font-size: 16px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px; user-select: none; color: var(--ink); transition: color 0.2s;
}
.faq-q:hover { color: var(--terracotta); }
.faq-icon {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--ink-faint);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 16px; color: var(--terracotta);
  transition: transform 0.3s var(--ease), border-color 0.2s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); border-color: var(--terracotta); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-a-inner { padding: 0 22px 20px; font-size: 15px; color: var(--ink-muted); line-height: 1.7; border-top: 1px solid var(--ink-faint); padding-top: 14px; }
.faq-item.open .faq-a { max-height: 400px; }

/* =============================================
   BRIDGE BAND (agence)
============================================= */
.bridge-band {
  background: var(--cream-muted);
  border-top: 1px solid var(--ink-faint);
  border-bottom: 1px solid var(--ink-faint);
  padding: 56px 64px;
}
.bridge-band-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; gap: 64px; align-items: center; flex-wrap: wrap;
}
.bridge-copy { flex: 1 1 340px; }
.bridge-supertitle {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--terracotta); margin-bottom: 10px;
}
.bridge-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(20px, 2.5vw, 28px);
  color: var(--ink); margin-bottom: 10px; letter-spacing: -0.02em;
}
.bridge-text { font-size: 15px; color: var(--ink-muted); line-height: 1.65; }
.bridge-links { display: flex; flex-wrap: wrap; gap: 10px; flex: 1 1 320px; }
.bridge-link {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cream);
  border: 1.5px solid var(--ink-faint);
  border-radius: 100px; padding: 8px 18px;
  font-size: 13px; font-weight: 500; color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.bridge-link:hover { border-color: var(--terracotta); color: var(--terracotta); background: rgba(194,84,47,0.04); }

/* =============================================
   CTA WRAP
============================================= */
.cta-wrap { padding: 100px 64px; text-align: center; }
.cta-box {
  background: var(--espresso); border-radius: 24px;
  padding: 72px 48px; max-width: 700px; margin: 0 auto;
  position: relative; overflow: hidden;
}
.cta-box::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 80%; height: 80%;
  background: radial-gradient(circle, rgba(194,84,47,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.cta-box .section-tag { justify-content: center; position: relative; z-index: 1; }
.cta-box .section-tag::before { display: none; }
.cta-box h2.sh { font-size: clamp(26px,3.5vw,42px); color: var(--cream); position: relative; z-index: 1; }
.cta-box p { font-size: 17px; color: var(--cream-on-dark); margin-bottom: 36px; line-height: 1.65; position: relative; z-index: 1; }

/* =============================================
   FOOTER
============================================= */
footer {
  border-top: 1px solid var(--ink-faint);
  padding: 36px 64px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 24px;
}
.footer-logo { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--ink); text-decoration: none; }
.footer-copy { font-size: 13px; color: var(--ink-muted); line-height: 1.6; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.footer-links a { font-size: 13px; color: var(--ink-muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--ink); }

/* =============================================
   REVEAL SYSTEM
============================================= */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* =============================================
   FOCAL OBJECT, shared (same orb as index.html)
============================================= */
.page-visual {
  position: relative; display: flex;
  align-items: center; justify-content: center;
  height: 420px;
}
.page-orb-wrap { position: relative; display: flex; align-items: center; justify-content: center; }
.page-orb-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(194,84,47,0.18);
  animation: orb-ring-p 3.5s ease-out infinite;
  pointer-events: none;
}
.page-orb-ring:nth-child(2) { animation-delay: 1.1s; }
.page-orb-ring:nth-child(3) { animation-delay: 2.2s; }
@keyframes orb-ring-p {
  0%   { width: 180px; height: 180px; opacity: 0.7; }
  100% { width: 360px; height: 360px; opacity: 0; }
}
.page-orb {
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle at 36% 32%, rgba(194,84,47,0.55) 0%, var(--espresso) 62%);
  box-shadow: 0 0 60px rgba(194,84,47,0.18), 0 0 120px rgba(194,84,47,0.07),
              inset 0 1px 0 rgba(246,241,233,0.14), inset 0 -2px 4px rgba(0,0,0,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 64px;
  animation: orb-float-p 5.5s ease-in-out infinite;
  position: relative; z-index: 2;
}
@keyframes orb-float-p { 0%,100%{transform:translateY(0) rotate(-1deg)} 50%{transform:translateY(-14px) rotate(1deg)} }
.notif-card {
  position: absolute;
  background: rgba(246,241,233,0.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(194,84,47,0.13); border-radius: 12px;
  padding: 10px 16px; font-family: var(--font-body); font-size: 13px; font-weight: 500;
  color: var(--ink); box-shadow: 0 10px 28px rgba(26,23,20,0.1), 0 1px 0 rgba(255,255,255,0.6) inset;
  display: flex; align-items: center; gap: 8px; white-space: nowrap; z-index: 3;
}
.nc-dot { width: 8px; height: 8px; border-radius: 50%; background: #5ECFA8; flex-shrink: 0; animation: blink-dot 2.4s ease infinite; }
.nc-1 { top: 8%;  right: 2%;  animation: nf1 4.2s ease-in-out infinite; }
.nc-2 { bottom: 4%; right: -6%; animation: nf2 5.1s ease-in-out 0.8s infinite; }
.nc-3 { bottom: 8%; left: -4%; animation: nf1 4.8s ease-in-out 1.6s infinite; }

/* =============================================
   ANIMATIONS
============================================= */
@keyframes fadeUp { from{opacity:0;transform:translateY(22px)} to{opacity:1;transform:translateY(0)} }
@keyframes btn-shine { from{left:-100%} to{left:180%} }
@keyframes blink-dot { 0%,100%{opacity:1} 60%{opacity:0.2} }
@keyframes nf1 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
@keyframes nf2 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(10px)} }
@keyframes grad-border {
  0%,100%{background-position:0% 50%} 50%{background-position:100% 50%}
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 1100px) {
  .pricing-grid-dark { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  nav { padding: 14px 20px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .breadcrumb { padding: 90px 24px 0; }
  .section { padding: 64px 24px; }
  .dark-section .inner { padding: 64px 24px; }
  .bg-muted .section { padding: 64px 24px; }
  .stats-strip { padding: 28px 24px; flex-wrap: wrap; gap: 20px; }
  .stat-item { flex: 1 1 42%; border-right: none; padding: 0; }
  .stats-sources { padding: 0 24px 16px; }
  .bridge-band { padding: 40px 24px; }
  .bridge-band-inner { gap: 28px; }
  .cta-wrap { padding: 64px 24px; }
  .cta-box { padding: 48px 24px; }
  footer { padding: 28px 20px; flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .page-visual { height: 280px; }
  .page-orb { width: 140px; height: 140px; font-size: 50px; }
  @keyframes orb-ring-p { 0%{width:140px;height:140px;opacity:0.7} 100%{width:280px;height:280px;opacity:0} }
  .nc-1 { top: 4%; right: 0%; }
  .nc-2 { bottom: 2%; right: -2%; }
  .nc-3 { bottom: 4%; left: -2%; }
  .notif-card { font-size: 11px; padding: 8px 12px; }
}
@media (max-width: 560px) {
  .stat-num { font-size: 36px; }
  .pricing-grid-dark { grid-template-columns: 1fr; }
}
