/* ==========================================================================
   UpraiseCX — Global Stylesheet
   Brand: Green #7FD349 · Navy #01377D · Deep Navy #0D2653 · Dark #080F1E
   Font: Arial (locked brand font)
   ========================================================================== */

:root {
  --green: #7FD349;
  --navy: #01377D;
  --deep: #0D2653;
  --dark: #080F1E;
  --white: #FFFFFF;
  --line: rgba(255, 255, 255, 0.12);
  --line-dark: rgba(8, 15, 30, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--dark);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
ul { list-style: none; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }

/* --------------------------------------------------------------------------
   Brand mark — green upward triangle
   -------------------------------------------------------------------------- */

.tri {
  display: inline-block;
  width: 0; height: 0;
  border-left: 0.36em solid transparent;
  border-right: 0.36em solid transparent;
  border-bottom: 0.62em solid var(--green);
  transform: translateY(-0.02em);
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.08em;
  font-weight: bold;
  font-size: 24px;
  letter-spacing: 0.02em;
  color: var(--white);
}

.logo .tri { margin: 0 0.05em; }
.logo .dot { color: var(--green); }

/* Scattered triangle pattern (echoo-style ambient motif) */
.pattern { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

.pattern span {
  position: absolute;
  width: 0; height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-bottom: 24px solid var(--green);
  opacity: 0.14;
}

.pattern span:nth-child(1)  { top: 8%;  left: 6%;  transform: rotate(-18deg) scale(1.2); }
.pattern span:nth-child(2)  { top: 18%; left: 82%; transform: rotate(24deg)  scale(1.7); }
.pattern span:nth-child(3)  { top: 64%; left: 12%; transform: rotate(40deg)  scale(0.9); }
.pattern span:nth-child(4)  { top: 76%; left: 74%; transform: rotate(-32deg) scale(1.4); }
.pattern span:nth-child(5)  { top: 36%; left: 44%; transform: rotate(12deg)  scale(0.7); }
.pattern span:nth-child(6)  { top: 86%; left: 38%; transform: rotate(-8deg)  scale(1.1); }
.pattern span:nth-child(7)  { top: 12%; left: 56%; transform: rotate(52deg)  scale(0.8); }
.pattern span:nth-child(8)  { top: 52%; left: 90%; transform: rotate(-45deg) scale(1.0); }
.pattern span:nth-child(9)  { top: 44%; left: 24%; transform: rotate(66deg)  scale(0.6); opacity: 0.10; }
.pattern span:nth-child(10) { top: 28%; left: 16%; transform: rotate(-60deg) scale(1.5); opacity: 0.08; }

/* --------------------------------------------------------------------------
   Header & navigation
   -------------------------------------------------------------------------- */

header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(8, 15, 30, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.nav-links { display: flex; gap: 36px; align-items: center; }

.nav-links a {
  font-size: 14px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a:focus-visible { color: var(--green); }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }

.menu-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: 0.25s;
}

@media (max-width: 900px) {
  .menu-toggle { display: block; }

  .nav-links {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: var(--dark);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom: 1px solid var(--line);
  }

  .nav-links.open { max-height: 480px; }
  .nav-links a { padding: 18px 32px; width: 100%; border-top: 1px solid var(--line); }
  .nav-links .btn { margin: 16px 32px 24px; width: calc(100% - 64px); text-align: center; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 14px 30px;
  font-weight: bold;
  font-size: 15px;
  letter-spacing: 0.03em;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

.btn-green { background: var(--green); color: var(--dark); }
.btn-green:hover { transform: translateY(-2px); background: #8FE05A; }

.btn-ghost { border-color: rgba(255, 255, 255, 0.35); color: var(--white); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }

.nav .btn { padding: 11px 24px; font-size: 14px; }

/* --------------------------------------------------------------------------
   Typography & shared section layout
   -------------------------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 28px;
}

.eyebrow::before {
  content: "";
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 10px solid var(--green);
}

h1 {
  font-size: clamp(44px, 7vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: bold;
  max-width: 15ch;
}

h1 .accent, h2 .accent { color: var(--green); }

.pad { padding: 110px 0; }
@media (max-width: 640px) { .pad { padding: 80px 0; } }

section { position: relative; }
section[id], .service[id] { scroll-margin-top: 96px; }

.section-head { max-width: 720px; margin-bottom: 64px; }

.section-head h2 {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-top: 16px;
}

.section-head p { margin-top: 20px; font-size: 17px; color: rgba(255, 255, 255, 0.7); }
.light .section-head p { color: rgba(8, 15, 30, 0.65); }

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  background: linear-gradient(160deg, var(--dark) 0%, var(--deep) 55%, var(--navy) 120%);
  padding: 190px 0 120px;
}

.hero .wrap { position: relative; z-index: 2; }

.hero .lede {
  margin: 30px 0 42px;
  font-size: clamp(17px, 2vw, 21px);
  color: rgba(255, 255, 255, 0.78);
  max-width: 560px;
}

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-note {
  margin-top: 56px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
}

.hero-note b { color: rgba(255, 255, 255, 0.85); }

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  background: linear-gradient(160deg, var(--dark) 0%, var(--deep) 70%, var(--navy) 130%);
  padding: 170px 0 90px;
}

.page-hero .wrap { position: relative; z-index: 2; }

.page-hero h1 { font-size: clamp(38px, 5.6vw, 64px); }

.page-hero .lede {
  margin-top: 26px;
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255, 255, 255, 0.78);
  max-width: 640px;
}

.breadcrumb { font-size: 13px; letter-spacing: 0.05em; color: rgba(255, 255, 255, 0.5); margin-bottom: 24px; }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb .sep { margin: 0 8px; color: rgba(255, 255, 255, 0.3); }

/* --------------------------------------------------------------------------
   Stats bar
   -------------------------------------------------------------------------- */

.stats { background: var(--green); color: var(--dark); }

.stats .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-top: 44px;
  padding-bottom: 44px;
}

.stat b { display: block; font-size: clamp(30px, 3.4vw, 44px); line-height: 1; letter-spacing: -0.02em; }

.stat span {
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
}

@media (max-width: 800px) { .stats .wrap { grid-template-columns: repeat(2, 1fr); } }

/* --------------------------------------------------------------------------
   Services grid (home)
   -------------------------------------------------------------------------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service {
  background: var(--dark);
  padding: 40px 34px 44px;
  position: relative;
  display: block;
  transition: background 0.25s;
}

.service:hover,
.service:focus-visible { background: var(--deep); outline: none; }

.service .tri-lg {
  width: 0; height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-bottom: 19px solid var(--green);
  margin-bottom: 26px;
  transition: transform 0.25s;
}

.service:hover .tri-lg { transform: translateY(-4px); }

.service h3 { font-size: 20px; letter-spacing: -0.01em; margin-bottom: 12px; }

.service p { font-size: 15px; color: rgba(255, 255, 255, 0.62); line-height: 1.65; }

.service .tag {
  position: absolute;
  top: 40px; right: 34px;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}

.service .more {
  display: inline-block;
  margin-top: 20px;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}

@media (max-width: 960px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .service-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Why Upraise (light section)
   -------------------------------------------------------------------------- */

.light { background: var(--white); color: var(--dark); }
.light h2 { color: var(--dark); }

.why-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 80px; align-items: center; }

.why-list { border-top: 1px solid var(--line-dark); }

.why-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line-dark);
}

.why-item .mark {
  width: 44px; height: 44px;
  background: var(--navy);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.why-item .mark::before {
  content: "";
  width: 0; height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 14px solid var(--green);
}

.why-item h3 { font-size: 18px; margin-bottom: 6px; }
.why-item p { font-size: 15px; color: rgba(8, 15, 30, 0.62); }

.why-visual {
  position: relative;
  background: var(--deep);
  border-radius: 8px;
  padding: 56px 48px;
  color: var(--white);
  overflow: hidden;
}

.why-visual .pattern span { opacity: 0.12; }

.why-visual blockquote {
  position: relative;
  z-index: 2;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: bold;
}

.why-visual blockquote .accent { color: var(--green); }

.why-visual cite {
  display: block;
  margin-top: 28px;
  font-style: normal;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  position: relative;
  z-index: 2;
}

.why-visual cite b { color: var(--white); display: block; font-size: 15px; }

@media (max-width: 960px) { .why-grid { grid-template-columns: 1fr; gap: 48px; } }

/* --------------------------------------------------------------------------
   Engagement model
   -------------------------------------------------------------------------- */

.model { background: var(--deep); }

.model-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 36px 28px;
  position: relative;
  counter-increment: step;
  transition: border-color 0.25s, transform 0.2s;
}

.step:hover { border-color: var(--green); transform: translateY(-4px); }

.step::before {
  content: "0" counter(step);
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.18em;
  color: var(--green);
}

.step h3 { font-size: 19px; margin: 14px 0 10px; }
.step p { font-size: 14px; color: rgba(255, 255, 255, 0.6); line-height: 1.6; }

.step .role {
  display: inline-block;
  margin-top: 18px;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.12);
  padding: 5px 10px;
  border-radius: 3px;
}

.step .role.primary { background: var(--green); color: var(--dark); }

@media (max-width: 960px) { .model-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .model-steps { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   AI Data Ops highlight / detail panels
   -------------------------------------------------------------------------- */

.ai { background: var(--navy); }

.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

.ai-grid h2 {
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-top: 16px;
}

.ai-grid > div > p { margin-top: 22px; font-size: 16px; color: rgba(255, 255, 255, 0.75); }

.check-list { margin-top: 34px; display: grid; gap: 14px; }

.check-list li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
}

.check-list li::before {
  content: "";
  width: 0; height: 0;
  flex-shrink: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 10px solid var(--green);
  transform: translateY(1px);
}

.ai-grid .btn { margin-top: 40px; }

.panel {
  background: var(--dark);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 44px 40px;
  position: relative;
  overflow: hidden;
}

.panel .panel-title {
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 10px;
}

.panel .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.panel .row:last-child { border-bottom: none; }
.panel .row span { color: rgba(255, 255, 255, 0.55); }
.panel .row b { color: var(--green); letter-spacing: 0.02em; text-align: right; }

@media (max-width: 960px) { .ai-grid { grid-template-columns: 1fr; gap: 48px; } }

/* --------------------------------------------------------------------------
   Service detail pages
   -------------------------------------------------------------------------- */

.detail-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 72px; align-items: start; }

.detail-grid h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.detail-grid .detail-copy > p { margin-top: 20px; font-size: 16px; color: rgba(255, 255, 255, 0.72); }

@media (max-width: 960px) { .detail-grid { grid-template-columns: 1fr; gap: 48px; } }

.deliver { background: var(--deep); }

.deliver-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.deliver-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px 28px;
  transition: border-color 0.25s;
}

.deliver-card:hover { border-color: var(--green); }

.deliver-card .tri-lg {
  width: 0; height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 15px solid var(--green);
  margin-bottom: 20px;
}

.deliver-card h3 { font-size: 18px; margin-bottom: 8px; }
.deliver-card p { font-size: 14px; color: rgba(255, 255, 255, 0.62); line-height: 1.6; }

@media (max-width: 700px) { .deliver-grid { grid-template-columns: 1fr; } }

/* Prev / next service navigation */
.service-nav { border-top: 1px solid var(--line); background: var(--dark); }

.service-nav .wrap {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 40px;
  padding-bottom: 40px;
  flex-wrap: wrap;
}

.service-nav a { font-size: 15px; font-weight: bold; color: rgba(255, 255, 255, 0.75); transition: color 0.2s; }
.service-nav a:hover { color: var(--green); }
.service-nav a small { display: block; font-weight: normal; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.4); margin-bottom: 6px; }
.service-nav .next { text-align: right; margin-left: auto; }

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }

.contact-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px 28px;
  margin-bottom: 20px;
}

.contact-card h3 {
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 10px;
}

.contact-card a, .contact-card p { font-size: 17px; color: var(--white); }
.contact-card a:hover { color: var(--green); }

.form label {
  display: block;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin: 22px 0 8px;
}

.form input, .form textarea, .form select {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 14px 16px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  color: var(--white);
  transition: border-color 0.2s;
}

.form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  border-color: var(--green);
}

.form select option { color: var(--dark); }
.form textarea { min-height: 140px; resize: vertical; }
.form .btn { margin-top: 28px; }

.form-note { margin-top: 16px; font-size: 13px; color: rgba(255, 255, 255, 0.45); }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 48px; } }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta {
  background: linear-gradient(150deg, var(--dark), var(--deep));
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta .wrap { position: relative; z-index: 2; }

.cta h2 { font-size: clamp(36px, 5.6vw, 64px); letter-spacing: -0.02em; line-height: 1.05; }

.cta p { margin: 24px auto 44px; max-width: 520px; font-size: 17px; color: rgba(255, 255, 255, 0.7); }

.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

footer { background: var(--dark); border-top: 1px solid var(--line); padding: 72px 0 40px; }

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.foot-grid h4 {
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 20px;
}

.foot-grid ul { display: grid; gap: 12px; }
.foot-grid a, .foot-grid li { font-size: 14px; color: rgba(255, 255, 255, 0.7); }
.foot-grid a:hover { color: var(--green); }

.foot-brand p { margin-top: 18px; font-size: 14px; color: rgba(255, 255, 255, 0.55); max-width: 280px; }

.foot-bottom {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
