/* ============================================================
   NUAVORA — styles.css · v2 "Showroom"
   Deep Forest #0F1B18 · Teal #2FBF9B · Light Teal #54D6B6
   Bone #F2F0EA · Paper #F5F6F4 · Ink #10201B
   ============================================================ */

:root {
  --forest: #0f1b18;
  --forest-2: #0a1210;
  --teal: #2fbf9b;
  --lteal: #54d6b6;
  --bone: #f2f0ea;
  --paper: #f5f6f4;
  --ink: #10201b;
  --muted-d: rgba(242, 240, 234, 0.72);
  --muted-l: rgba(16, 32, 27, 0.68);
  --line-d: rgba(242, 240, 234, 0.1);
  --line-l: rgba(16, 32, 27, 0.1);
  --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --display: "Space Grotesk", var(--font);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--forest); color: var(--bone); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--teal); color: #06110e; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 18, 16, 0.75);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line-d);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; color: var(--bone); }
.logo img, .logo svg { width: 25px; height: 25px; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 14.5px; }
.nav-links a { color: var(--muted-d); transition: color .18s; position: relative; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--teal); border-radius: 2px; transition: width .22s ease;
}
.nav-links a:not(.btn):hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover, .nav-links a.active { color: var(--bone); }
.nav-links .btn { margin-left: 6px; }
.burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--bone); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 12px;
  background: linear-gradient(135deg, var(--teal), var(--lteal));
  color: #06110e; font-weight: 700; font-size: 15px;
  border: none; cursor: pointer;
  box-shadow: 0 4px 20px rgba(47, 191, 155, 0.25);
  transition: transform .16s, box-shadow .16s, filter .16s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(47, 191, 155, 0.4); filter: brightness(1.05); }
.btn:active { transform: translateY(0); }
.btn-ghost {
  display: inline-block; padding: 13px 26px; border-radius: 12px;
  border: 1px solid var(--line-d); color: var(--bone); font-weight: 600; font-size: 15px;
  transition: border-color .18s, background .18s, transform .16s;
}
.btn-ghost:hover { border-color: var(--teal); background: rgba(47, 191, 155, 0.08); transform: translateY(-2px); }
.section.paper .btn-ghost { border-color: var(--line-l); color: var(--ink); }
.section.paper .btn-ghost:hover { border-color: var(--teal); background: rgba(47, 191, 155, 0.08); }

/* ---------- Sections ---------- */
.section { padding: 104px 0; position: relative; }
.section.dark { background: var(--forest); color: var(--bone); }
.section.darker { background: var(--forest-2); color: var(--bone); }
.section.paper { background: var(--paper); color: var(--ink); }
.eyebrow {
  font-size: 12.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--teal); font-weight: 700; margin-bottom: 18px;
}
h1 { font-family: var(--display); font-size: clamp(38px, 5.4vw, 66px); line-height: 1.04; letter-spacing: -0.025em; font-weight: 700; }
h2 { font-family: var(--display); font-size: clamp(28px, 3.8vw, 44px); line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; margin-bottom: 16px; }
h3 { font-family: var(--display); font-size: 18.5px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.lead { font-size: 17.5px; color: var(--muted-d); max-width: 620px; }
.section.paper .lead { color: var(--muted-l); }
.grad {
  background: linear-gradient(100deg, var(--teal) 10%, var(--lteal) 55%, #8ee8cf 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Hero with aurora ---------- */
.hero { padding: 104px 0 120px; overflow: hidden; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 420px at 18% 8%, rgba(47, 191, 155, 0.14), transparent 65%),
    radial-gradient(520px 400px at 88% 78%, rgba(84, 214, 182, 0.1), transparent 65%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(rgba(242, 240, 234, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 240, 234, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(75% 65% at 50% 35%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(75% 65% at 50% 35%, #000 30%, transparent 100%);
}
.hero > .container { position: relative; z-index: 1; }
.hero .lead { margin: 24px 0 38px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.services-line {
  margin-top: 76px; font-size: 12.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(242, 240, 234, 0.45); font-weight: 600;
}
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 60px; align-items: center; }

/* ---------- Phone frame ---------- */
.phone {
  position: relative; width: 100%; max-width: 392px; margin-left: auto;
  background: #060b0a;
  border: 10px solid #17211e;
  border-radius: 48px;
  padding: 52px 14px 22px;
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(242, 240, 234, 0.06),
    0 0 90px rgba(47, 191, 155, 0.12);
}
.phone::before {
  content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 26px; background: #17211e; border-radius: 20px;
}
.phone .chat { border: none; border-radius: 26px; box-shadow: none; padding: 20px 14px; max-width: none; background: var(--forest-2); }

/* ---------- Chat mock ---------- */
.chat {
  background: var(--forest-2); border: 1px solid var(--line-d);
  border-radius: 22px; padding: 26px 22px; max-width: 400px; width: 100%;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.chat-head { display: flex; align-items: center; gap: 11px; padding-bottom: 16px; border-bottom: 1px solid var(--line-d); margin-bottom: 16px; }
.chat-head .avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--forest); display: flex; align-items: center; justify-content: center; border: 1px solid var(--line-d); }
.chat-head .avatar img, .chat-head .avatar svg { width: 21px; height: 21px; }
.chat-head .name { font-weight: 700; font-size: 14.5px; }
.chat-head .status { font-size: 11.5px; color: var(--lteal); }
.bubble { max-width: 84%; padding: 10px 14px; border-radius: 15px; font-size: 13.5px; line-height: 1.5; margin-bottom: 10px; }
.bubble .time { display: block; font-size: 10px; opacity: 0.55; margin-top: 4px; text-align: right; }
.bubble.in { background: rgba(242, 240, 234, 0.08); color: var(--bone); border-bottom-left-radius: 4px; }
.bubble.out { background: linear-gradient(135deg, rgba(47, 191, 155, 0.22), rgba(84, 214, 182, 0.14)); color: var(--bone); margin-left: auto; border-bottom-right-radius: 4px; }
.chat-caption { text-align: center; font-size: 12px; color: rgba(242, 240, 234, 0.5); margin-top: 14px; }

/* typing indicator */
.typing { display: inline-flex; align-items: center; gap: 4px; padding: 12px 16px; }
.typing i {
  width: 6px; height: 6px; border-radius: 50%; background: rgba(242, 240, 234, 0.55);
  animation: typing 1.3s infinite ease-in-out;
}
.typing i:nth-child(2) { animation-delay: 0.18s; }
.typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* ---------- Stats strip ---------- */
.stats { border-top: 1px solid var(--line-d); border-bottom: 1px solid var(--line-d); background: var(--forest-2); }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 20px; text-align: center; border-left: 1px solid var(--line-d); }
.stat:first-child { border-left: none; }
.stat b { display: block; font-family: var(--display); font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; color: var(--lteal); letter-spacing: -0.01em; }
.stat span { font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(242, 240, 234, 0.55); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding: 26px 0; border-top: 1px solid var(--line-l); border-bottom: 1px solid var(--line-l); background: #eef0ec; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 36s linear infinite; }
.marquee-track span { font-family: var(--display); font-size: 15px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(16, 32, 27, 0.5); white-space: nowrap; }
.marquee-track span::after { content: "·"; margin-left: 48px; color: var(--teal); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 18px; margin-top: 46px; }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #ffffff; border: 1px solid #e4e8e4; border-radius: var(--radius);
  padding: 32px 26px; position: relative;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 22px 50px rgba(10, 25, 20, 0.1); border-color: rgba(47, 191, 155, 0.45); }
.card p { font-size: 14.5px; color: var(--muted-l); }
.card .card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(47, 191, 155, 0.16), rgba(84, 214, 182, 0.08));
  border: 1px solid rgba(47, 191, 155, 0.25);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
  color: var(--teal); font-size: 20px; font-weight: 800;
}
.card a.more { display: inline-block; margin-top: 14px; color: var(--teal); font-weight: 700; font-size: 14px; transition: transform .16s; }
.card a.more:hover { transform: translateX(3px); }
.section.dark .card, .section.darker .card {
  background: rgba(242, 240, 234, 0.045);
  border-color: var(--line-d);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.section.dark .card:hover, .section.darker .card:hover {
  border-color: rgba(47, 191, 155, 0.5);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35), 0 0 40px rgba(47, 191, 155, 0.08);
}
.section.dark .card p, .section.darker .card p { color: var(--muted-d); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 78px; margin-top: 42px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  width: 54px; height: 54px; border-radius: 15px;
  background: var(--forest); color: var(--lteal);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 17px; font-weight: 700;
  box-shadow: 0 8px 20px rgba(15, 27, 24, 0.25);
}
.section.dark .step::before, .section.darker .step::before { background: rgba(47, 191, 155, 0.12); border: 1px solid rgba(47, 191, 155, 0.3); }
.step h3 { margin-bottom: 4px; }
.step p { font-size: 15px; color: var(--muted-l); max-width: 560px; }
.section.dark .step p, .section.darker .step p { color: var(--muted-d); }

/* ---------- Big numbers (services) ---------- */
.bignum {
  font-family: var(--display); font-size: 64px; font-weight: 700; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(47, 191, 155, 0.65);
  margin-bottom: 14px;
}
.section.darker .bignum, .section.dark .bignum { -webkit-text-stroke: 1.5px rgba(84, 214, 182, 0.55); }

/* ---------- Split rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-top: 56px; }
.split .lead { max-width: none; }
.feature-list { list-style: none; margin-top: 22px; }
.feature-list li { position: relative; padding-left: 34px; margin-bottom: 14px; font-size: 15.5px; }
.feature-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 7px; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(47, 191, 155, 0.14); border: 1px solid rgba(47, 191, 155, 0.35);
  color: var(--lteal); font-weight: 800;
}
.section.paper .feature-list li { color: var(--ink); }
.section.paper .feature-list li::before { color: var(--teal); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; padding: 130px 0; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(560px 360px at 50% 110%, rgba(47, 191, 155, 0.16), transparent 70%);
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band .lead { margin: 18px auto 38px; }
.cta-sub { margin-top: 18px; font-size: 14px; color: var(--muted-d); }
.cta-sub a { color: var(--lteal); font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: var(--forest-2); border-top: 1px solid var(--line-d); padding: 60px 0 44px; position: relative; overflow: hidden; }
.watermark {
  position: absolute; left: 50%; bottom: -38px; transform: translateX(-50%);
  font-family: var(--display); font-weight: 700; font-size: clamp(120px, 22vw, 260px);
  letter-spacing: -0.04em; color: rgba(242, 240, 234, 0.03);
  pointer-events: none; user-select: none; line-height: 1; white-space: nowrap;
}
.footer .container { position: relative; z-index: 1; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.footer .logo { font-size: 19px; }
.footer .tagline { margin-top: 10px; font-size: 13.5px; color: var(--muted-d); }
.footer-links { display: flex; gap: 26px; font-size: 14px; }
.footer-links a { color: var(--muted-d); }
.footer-links a:hover { color: var(--bone); }
.footer-bottom { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line-d); font-size: 12.5px; color: rgba(242, 240, 234, 0.45); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 88px 0 74px; overflow: hidden; position: relative; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(560px 380px at 14% 0%, rgba(47, 191, 155, 0.12), transparent 65%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .lead { margin-top: 20px; }

/* ---------- Reveal (added only by JS — no-JS users always see everything) ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- v3: living demo & motion ---------- */
.phone.float { animation: phoneFloat 7s ease-in-out infinite; }
.phone.float:hover, .phone.float:focus-within { animation-play-state: paused; }
@keyframes phoneFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.grad { background-size: 220% 100%; animation: gradShift 7s ease-in-out infinite alternate; }
@keyframes gradShift { from { background-position: 0% 0; } to { background-position: 100% 0; } }
.chat-body { display: flex; flex-direction: column; max-height: 354px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; scrollbar-color: rgba(242,240,234,0.2) transparent; }
.chat-body::-webkit-scrollbar { width: 4px; }
.chat-body::-webkit-scrollbar-thumb { background: rgba(242,240,234,0.18); border-radius: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  border: 1px solid rgba(47,191,155,0.45); background: rgba(47,191,155,0.08);
  color: var(--lteal); font-size: 12.5px; font-weight: 600; padding: 8px 14px;
  border-radius: 999px; cursor: pointer; font-family: var(--font);
  transition: background .15s, transform .15s;
}
.chip:hover { background: rgba(47,191,155,0.2); transform: translateY(-1px); }
.bubble.new { animation: bubbleIn .32s ease; }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(8px) scale(.97); } }
@media (prefers-reduced-motion: reduce) {
  .phone.float { animation: none; }
  .grad { animation: none; }
  .bubble.new { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 46px; }
  .chat, .phone { margin: 0 auto; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: none; border-top: 1px solid var(--line-d); }
  .stat:nth-child(-n+2) { border-top: none; }
  .stat:nth-child(even) { border-left: 1px solid var(--line-d); }
}
@media (max-width: 720px) {
  .section { padding: 76px 0; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .nav-links {
    display: none; position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--forest-2); border-bottom: 1px solid var(--line-d); padding: 10px 24px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 0; width: 100%; font-size: 16px; }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links .btn { margin: 10px 0 0; width: 100%; text-align: center; }
  .burger { display: block; }
  .bignum { font-size: 48px; }
}
