/* ============================================
   DECAGROWTH — styles.css
   Premium AI Systems Website
   ============================================ */

/* --- BRAND TOKENS --- */
:root {
  --gold:        #f4c937;   /* logo gold — "DECA" */
  --green:       #3f8f52;   /* logo green — "GROWTH" */
  --accent:      #14cf93;   /* bright cyan-green — CTAs, labels, highlights */
  --lime:        #caff33;   /* lime-yellow — secondary accent */

  --bg:          #0c0c0c;
  --bg-2:        #111111;
  --bg-3:        #181818;
  --border:      #1e1e1e;
  --border-2:    #2a2a2a;

  --text:        #e8e8e8;
  --text-muted:  #888888;
  --text-dim:    #555555;
}

/* --- RESET & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p { color: var(--text-muted); max-width: 65ch; }

a { color: inherit; text-decoration: none; }
address { font-style: normal; }

/* --- LAYOUT --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 6rem 0; }

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { margin: 0 auto; color: var(--text-muted); }

/* --- LABEL --- */
.label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1.75rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #0c0c0c;
  border: 2px solid var(--accent);
}
.btn-primary:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-secondary:hover {
  background: var(--accent);
  color: #0c0c0c;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border-2);
}
.btn-ghost:hover {
  border-color: #555;
  color: #fff;
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  border: 2px solid #25d366;
}
.btn-whatsapp:hover {
  background: #1da851;
  border-color: #1da851;
}

.link-arrow {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
}
.link-arrow:hover { opacity: 0.8; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 12, 12, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo img {
  display: block;
  height: 36px;
  width: auto;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
.site-nav a:hover { color: #fff; }

.nav-cta {
  padding: 0.55rem 1.2rem;
  border: 1.5px solid var(--accent);
  border-radius: 5px;
  color: var(--accent) !important;
  font-weight: 600 !important;
}
.nav-cta:hover {
  background: var(--accent);
  color: #0c0c0c !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: #050505;
  border-top: 1px solid var(--border);
  padding-top: 4rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-brand img {
  height: 32px;
  width: auto;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-nav a {
  color: #777;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--text); }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-contact a, .footer-contact address {
  color: #777;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-contact a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
}
.footer-bottom p {
  color: var(--text-dim);
  font-size: 0.85rem;
  text-align: center;
  max-width: none;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 8rem 0 7rem;
  background: radial-gradient(ellipse at 50% 0%, rgba(20,207,147,0.07) 0%, transparent 60%);
}

.hero-inner { max-width: 780px; }

.hero h1 { margin: 0.5rem 0 1.25rem; }

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  max-width: 55ch;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================
   PROBLEM
   ============================================ */
.problem-section { background: var(--bg-2); }

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.problem-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-3);
}
.problem-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: #fff;
}
.problem-card p { font-size: 0.95rem; max-width: none; }

/* ============================================
   SOLUTION
   ============================================ */
.solution-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.solution-text h2 { margin-bottom: 1.25rem; }
.solution-text p { margin-bottom: 1rem; }
.solution-text .btn { margin-top: 0.5rem; }

.system-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.diagram-node {
  padding: 1.2rem 1.8rem;
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
  background: rgba(20, 207, 147, 0.05);
}

.diagram-arrow {
  color: var(--border-2);
  font-size: 1.5rem;
}

/* ============================================
   PILLARS
   ============================================ */
.pillars-section { background: var(--bg-2); }

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.pillar-card {
  padding: 2.25rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-3);
  transition: border-color 0.2s;
  display: flex;
  flex-direction: column;
}
.pillar-card:hover { border-color: var(--border-2); }
.pillar-card .link-arrow { margin-top: auto; }

.pillar-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 1rem;
}

.pillar-card h3 { margin-bottom: 0.4rem; }
.pillar-tagline {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.pillar-card p { font-size: 0.95rem; margin-bottom: 1.25rem; max-width: none; }

/* ============================================
   PORTFOLIO
   ============================================ */
.portfolio-section { background: var(--bg); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.portfolio-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-3);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.portfolio-card-top { margin-bottom: 0.25rem; }

.portfolio-category {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.portfolio-card h3 { font-size: 1.15rem; color: #fff; }

.portfolio-description {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: none;
  flex: 1;
}

.portfolio-outcome {
  font-size: 0.9rem;
  color: #aaa;
  max-width: none;
}
.portfolio-outcome strong { color: var(--accent); }

.portfolio-testimonial {
  border-left: 2px solid var(--green);
  padding-left: 1rem;
  margin-top: 0.5rem;
}
.portfolio-testimonial p {
  font-size: 0.88rem;
  color: #999;
  font-style: italic;
  max-width: none;
}
.portfolio-testimonial cite {
  font-size: 0.8rem;
  color: var(--text-dim);
  display: block;
  margin-top: 0.4rem;
}

.portfolio-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.stat { text-align: center; }
.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, #0c1a14 0%, var(--bg) 100%);
  border-top: 1px solid #1a2e22;
  border-bottom: 1px solid #1a2e22;
  padding: 5rem 0;
}

.cta-inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-inner h2 { margin-bottom: 1rem; }
.cta-inner p {
  margin: 0 auto 2rem;
  color: var(--text-muted);
}

/* ============================================
   USE CASES
   ============================================ */
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.use-case-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-3);
}

.use-case-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.75rem;
}

.use-case-card h3 { margin-bottom: 1rem; }

.use-case-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.use-case-card li {
  font-size: 0.92rem;
  color: var(--text-muted);
  padding-left: 1.25rem;
  position: relative;
}
.use-case-card li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8rem;
}

.use-cases-cta { text-align: center; margin-top: 1rem; }

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-section { background: var(--bg-2); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.step {
  padding: 2.25rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-3);
}

.step-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--border-2);
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.step h3 { margin-bottom: 0.75rem; }
.step p { font-size: 0.95rem; max-width: none; }

/* ============================================
   PROOF / TESTIMONIALS
   ============================================ */
.proof-section { background: var(--bg); }

.proof-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-bottom: 3.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.proof-stat { text-align: center; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  border-radius: 10px;
  background: var(--bg-3);
}

.testimonial-card p {
  font-size: 1rem;
  color: #bbb;
  font-style: italic;
  margin-bottom: 1rem;
  max-width: none;
}

.testimonial-card cite {
  font-size: 0.85rem;
  color: var(--text-dim);
  display: block;
}

/* ============================================
   FAQ
   ============================================ */
.faq-section { background: var(--bg-2); }

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-3);
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--text);
  list-style: none;
  user-select: none;
}
.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--gold);
  font-weight: 400;
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 1rem;
}

details[open] .faq-question::after { transform: rotate(45deg); }

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  border-top: 1px solid var(--border);
}
.faq-answer p { font-size: 0.93rem; color: var(--text-muted); max-width: none; }

/* ============================================
   PAGE HERO
   ============================================ */
.page-hero {
  padding: 6rem 0 4rem;
  background: radial-gradient(ellipse at 50% 0%, rgba(20,207,147,0.05) 0%, transparent 55%);
  border-bottom: 1px solid var(--border);
}

.page-hero .label { margin-bottom: 0.75rem; }
.page-hero h1 { margin-bottom: 1rem; max-width: 18ch; }
.page-hero p { font-size: 1.05rem; color: var(--text-muted); max-width: 58ch; }

/* ============================================
   SERVICES PAGE
   ============================================ */
.services-detail { background: var(--bg); }

.service-block {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}
.service-block:last-child { border-bottom: none; }

.service-block-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.service-icon {
  font-size: 2rem;
  line-height: 1;
  padding-top: 0.2rem;
}

.service-block h2 { margin-bottom: 0.3rem; }

.service-tagline {
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.service-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 65ch;
}

.service-capabilities {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.service-capabilities li {
  font-size: 0.92rem;
  color: var(--text-muted);
  padding-left: 1.4rem;
  position: relative;
}
.service-capabilities li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8rem;
}

.services-entry {
  background: var(--bg-2);
  padding: 5rem 0;
}

.services-entry-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.services-entry h2 { margin-bottom: 0.75rem; max-width: 22ch; }
.services-entry p { color: var(--text-muted); max-width: 50ch; }

/* ============================================
   SERVICE USE CASES (sub-sections on services page)
   ============================================ */
.service-use-cases {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.service-uc-heading {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.service-uc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.service-uc-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-2);
}

.service-uc-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.service-uc-header h4 {
  font-size: 1rem;
  color: #fff;
}

.service-uc-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.service-uc-card li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 1.25rem;
  position: relative;
}

.service-uc-card li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.78rem;
}

/* ============================================
   WORK SECTION (combined portfolio + proof)
   ============================================ */
.work-section { background: var(--bg); }

.work-section .proof-stats {
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-proof { background: var(--bg); padding: 4rem 0; }

.about-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
}

.about-stat { text-align: center; }

.about-content { background: var(--bg-2); }

.about-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 4rem;
}

.about-text h2 { margin-bottom: 1.25rem; }
.about-text p { margin-bottom: 1rem; }

.about-principles {
  list-style: none;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.about-principles li {
  font-size: 0.95rem;
  color: var(--text-muted);
  padding-left: 1.4rem;
  position: relative;
}
.about-principles li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.about-principles strong { color: var(--text); }

.about-stack h2 { margin-bottom: 1.25rem; }

.stack-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stack-list li {
  font-size: 0.92rem;
  color: var(--text-muted);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}

.about-portfolio { background: var(--bg); }

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-section { background: var(--bg); }

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

.contact-primary h2 { margin-bottom: 1rem; }
.contact-primary p { margin-bottom: 2rem; }

.contact-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-3);
}

.contact-item { display: flex; flex-direction: column; gap: 0.3rem; }

.contact-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.contact-item a, .contact-item address {
  font-size: 0.95rem;
  color: #aaa;
  transition: color 0.2s;
}
.contact-item a:hover { color: #fff; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .problem-grid,
  .pillars-grid,
  .portfolio-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .solution-inner,
  .about-grid,
  .contact-grid,
  .services-entry-inner {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .use-cases-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .service-capabilities,
  .service-uc-grid {
    grid-template-columns: 1fr;
  }

  .proof-stats,
  .portfolio-stats,
  .about-stats {
    gap: 2rem;
    flex-wrap: wrap;
  }
}

@media (max-width: 680px) {
  section { padding: 4rem 0; }
  .hero { padding: 5rem 0 4rem; }

  .site-nav { display: none; }
  .site-nav.is-open {
    display: block;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
  }
  .site-nav.is-open ul {
    flex-direction: column;
    gap: 1rem;
  }
  .nav-toggle { display: flex; }

  .hero-actions { flex-direction: column; }
  .contact-actions { flex-direction: column; }

  .proof-stats { justify-content: space-around; }
}

/* ============================================
   FLOATING WHATSAPP BUTTON
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 999;
  width: 54px;
  height: 54px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}

@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4), 0 0 0 0 rgba(37,211,102,0.3); }
  50%       { box-shadow: 0 4px 20px rgba(37,211,102,0.4), 0 0 0 12px rgba(37,211,102,0); }
}
.whatsapp-float {
  animation: waPulse 2.8s ease infinite;
}
.whatsapp-float:hover {
  animation: none;
}

/* ============================================
   ANIMATIONS
   ============================================ */

/* --- Hero canvas --- */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero { position: relative; overflow: hidden; }
.hero-inner { position: relative; z-index: 1; }

/* --- Hero entrance animations --- */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-label-anim {
  animation: heroFadeUp 0.6s ease both;
  animation-delay: 0.1s;
}
.hero-title-anim {
  animation: heroFadeUp 0.7s ease both;
  animation-delay: 0.25s;
}
.hero-sub {
  animation: heroFadeUp 0.7s ease both;
  animation-delay: 0.4s;
}
.hero-actions-anim {
  animation: heroFadeUp 0.7s ease both;
  animation-delay: 0.55s;
}

/* --- Typed line — fixed height prevents layout shift --- */
.hero-typed-wrap {
  display: block;
  height: 2rem;
  line-height: 2rem;
  font-size: 1.15rem;
  margin-bottom: 2rem;
  margin-top: -0.5rem;
}

.hero-typed { color: var(--accent); font-weight: 600; }

.hero-cursor {
  color: var(--accent);
  font-weight: 300;
  margin-left: 1px;
  will-change: opacity;
}

/* --- Scroll reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1), transform 0.6s cubic-bezier(0.22,1,0.36,1);
  will-change: opacity, transform;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

.reveal-child {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.22,1,0.36,1), transform 0.5s cubic-bezier(0.22,1,0.36,1);
  will-change: opacity, transform;
}
.reveal-child.revealed {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

/* --- Card hover lift — transform only (GPU, no repaint) --- */
.pillar-card,
.portfolio-card,
.problem-card,
.use-case-card,
.step,
.testimonial-card,
.service-uc-card {
  transition: transform 0.22s ease, border-color 0.22s ease;
  will-change: transform;
}

.pillar-card:hover,
.portfolio-card:hover,
.use-case-card:hover,
.step:hover,
.service-uc-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-2);
}

.problem-card:hover,
.testimonial-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-2);
}

/* --- FAQ hover --- */
.faq-item {
  transition: border-color 0.2s ease;
}
.faq-item:hover {
  border-color: var(--border-2);
}

/* --- Diagram node pulse on hover --- */
.diagram-node {
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.diagram-node:hover {
  background: rgba(20, 207, 147, 0.12);
  box-shadow: 0 0 20px rgba(20, 207, 147, 0.15);
}

/* --- CTA section button pulse --- */
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(20, 207, 147, 0.35); }
  50%       { box-shadow: 0 0 0 10px rgba(20, 207, 147, 0); }
}
.cta-inner .btn-primary {
  animation: ctaPulse 2.5s ease infinite;
}
.cta-inner .btn-primary:hover {
  animation: none;
}

/* --- Nav link underline slide --- */
.site-nav a:not(.nav-cta) {
  position: relative;
}
.site-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.25s ease;
}
.site-nav a:not(.nav-cta):hover::after {
  width: 100%;
}

/* --- Logo hover --- */
.logo {
  transition: opacity 0.2s ease;
}
.logo:hover { opacity: 0.85; }

/* --- Stat number glow on count reveal --- */
.stat-number, .proof-stat .stat-number, .about-stat .stat-number {
  transition: color 0.3s ease;
}

/* --- Floating animation for diagram nodes --- */
@keyframes floatNode {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

.diagram-node:nth-child(1) { animation: floatNode 3s ease-in-out infinite; animation-delay: 0s; }
.diagram-node:nth-child(3) { animation: floatNode 3s ease-in-out infinite; animation-delay: 0.6s; }
.diagram-node:nth-child(5) { animation: floatNode 3s ease-in-out infinite; animation-delay: 1.2s; }

/* --- Pillar icon float --- */
@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-4px); }
}
.pillar-icon {
  display: inline-block;
  animation: iconFloat 3.5s ease-in-out infinite;
}
.pillar-card:nth-child(2) .pillar-icon { animation-delay: 0.6s; }
.pillar-card:nth-child(3) .pillar-icon { animation-delay: 1.2s; }
