/* ===========================================
   SUNNYO.TECH — Stylesheet
   Aesthetic: warm-dark editorial × developer tools
   =========================================== */

:root {
  --bg:           #0c0c0e;
  --bg-soft:      #141417;
  --bg-card:      #0f0f12;
  --fg:           #f1ede4;
  --fg-mute:      #9a958c;
  --fg-dim:       #5a5a5e;
  --accent:       #d8ff3c;
  --accent-warm:  #ff7a3d;
  --border:       rgba(241, 237, 228, 0.08);
  --border-strong:rgba(241, 237, 228, 0.18);

  --font-display: 'Instrument Serif', 'Times New Roman', serif;
  --font-body:    'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --max:          1400px;
  --pad-x:        clamp(1.25rem, 4vw, 3rem);
  --section-y:    clamp(5rem, 10vw, 9rem);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  letter-spacing: -0.005em;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; color: inherit; cursor: pointer; }

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* ---------- Utility ---------- */
.mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mono.dim, .dim { color: var(--fg-dim); }

em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

strong { font-weight: 600; color: var(--fg); }

/* ---------- Grain & cursor ---------- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.cursor-glow {
  position: fixed;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 255, 60, 0.08) 0%, rgba(216, 255, 60, 0) 60%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

@media (max-width: 768px) {
  .cursor-glow { display: none; }
}

/* Snow canvas */
#snow-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}


/* ===========================================
   NAV
   =========================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--pad-x);
  background: rgba(12, 12, 14, 0.6);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(12, 12, 14, 0.85);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(216, 255, 60, 0.55);
  animation: heart 2.4s ease-in-out infinite;
}

@keyframes heart {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.18); }
}

.brand-name { font-weight: 500; }
.brand-dim  { color: var(--fg-dim); font-weight: 400; }

.nav-links {
  display: flex;
  gap: 2rem;
  font-size: 0.92rem;
  color: var(--fg-mute);
}
.nav-links a {
  position: relative;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--fg); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }

@media (max-width: 760px) {
  .nav-links { display: none; }
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.25s ease;
}
.nav-cta:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.nav-cta:hover .arrow { transform: translateX(2px) rotate(-45deg); }
.nav-cta .arrow { transition: transform 0.25s ease; }

@media (max-width: 480px) {
  .nav-cta span:first-child { display: none; }
  .nav-cta { padding: 0.55rem 0.8rem; }
}

/* ===========================================
   HERO
   =========================================== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: clamp(7rem, 12vh, 10rem) var(--pad-x) 4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  overflow: hidden;
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--fg-mute);
}
.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.meta-item .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.meta-item .pulse {
  box-shadow: 0 0 0 0 rgba(216, 255, 60, 0.7);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(216, 255, 60, 0.7); }
  70%  { box-shadow: 0 0 0 12px rgba(216, 255, 60, 0); }
  100% { box-shadow: 0 0 0 0 rgba(216, 255, 60, 0); }
}

/* Hero Title */
.hero-title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(2.8rem, 9.5vw, 10rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin: clamp(2.5rem, 6vw, 4rem) 0;
  position: relative;
  z-index: 2;
}
.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.hero-title .hl {
  position: relative;
  display: inline-block;
  color: var(--accent);
}
.hero-title .hl::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0.06em;
  height: 0.08em;
  background: var(--accent);
  opacity: 0.35;
  transform: scaleX(0);
  transform-origin: left;
  animation: underline 1s 1s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
@keyframes underline {
  to { transform: scaleX(1); }
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: end;
  margin-top: 1.5rem;
  position: relative;
  z-index: 2;
}
@media (max-width: 860px) {
  .hero-bottom { grid-template-columns: 1fr; gap: 1.75rem; }
}

.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.5;
  color: var(--fg-mute);
  max-width: 38ch;
}
.hero-sub strong { color: var(--fg); }

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  justify-self: end;
}
@media (max-width: 860px) {
  .hero-actions { justify-self: start; }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-primary:hover {
  background: var(--fg);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -10px rgba(216, 255, 60, 0.25);
}
.btn-primary .arrow { transition: transform 0.3s ease; }
.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-ghost {
  color: var(--fg-mute);
  padding: 1rem 0.5rem;
  transition: color 0.2s ease;
}
.btn-ghost:hover { color: var(--accent); }

/* Decorative orb */
.hero-orb {
  position: absolute;
  right: -20%;
  top: 30%;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(circle at center, rgba(216, 255, 60, 0.07) 0%, rgba(216, 255, 60, 0) 55%);
  pointer-events: none;
  z-index: 0;
  filter: blur(20px);
  animation: orbDrift 20s ease-in-out infinite;
}
@keyframes orbDrift {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-3%, -4%); }
}

/* ===========================================
   MARQUEE
   =========================================== */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 1.5rem 0;
  background: var(--bg-soft);
  position: relative;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  animation: marquee 50s linear infinite;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-style: italic;
  color: var(--fg);
  padding-left: 2.5rem;
}
.marquee-track .star {
  font-style: normal;
  color: var(--accent);
  font-size: 0.7em;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ===========================================
   SECTION HEADS
   =========================================== */
.section-head {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.kicker {
  color: var(--accent);
  font-weight: 500;
}
.section-title {
  font-family: var(--font-body);
  font-size: clamp(2.4rem, 6vw, 5.5rem);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.04em;
  max-width: 14ch;
}
.section-sub {
  color: var(--fg-mute);
  max-width: 50ch;
  font-size: 1.05rem;
  margin-top: 0.5rem;
}

/* ===========================================
   SERVICES
   =========================================== */
.services {
  padding: var(--section-y) 0;
  background: var(--bg);
}

.service-list {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  border-top: 1px solid var(--border);
}

.service {
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
  cursor: default;
  position: relative;
  transition: padding 0.35s ease;
}
.service:hover {
  padding: 3rem 0 2.5rem;
}

.service-row {
  display: grid;
  grid-template-columns: 90px 1fr 2fr 50px;
  gap: 2rem;
  align-items: baseline;
}
@media (max-width: 900px) {
  .service-row {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "num  name  arrow"
      "blurb blurb blurb";
    gap: 0.6rem 1rem;
  }
  .service-num   { grid-area: num; }
  .service-name  { grid-area: name; }
  .service-arrow { grid-area: arrow; }
  .service-blurb { grid-area: blurb; margin-top: 0.5rem; }
}

.service-num {
  color: var(--fg-dim);
  white-space: nowrap;
}
.service:hover .service-num { color: var(--accent); }

.service-name {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.service:hover .service-name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.service-blurb {
  color: var(--fg-mute);
  font-size: 1rem;
  max-width: 50ch;
}

.service-arrow {
  font-size: 1.4rem;
  color: var(--fg-dim);
  text-align: right;
  transition: transform 0.3s ease, color 0.3s ease;
}
.service:hover .service-arrow {
  transform: rotate(45deg);
  color: var(--accent);
}

.service-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-left: calc(90px + 2rem);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.4s ease 0.05s, margin 0.4s ease;
}
.service:hover .service-tools {
  max-height: 200px;
  opacity: 1;
}
@media (max-width: 900px) {
  .service-tools { padding-left: 0; max-height: 200px; opacity: 1; margin-top: 1.25rem; }
}
/* Touch devices: show tools always, no hover dependency */
@media (hover: none) {
  .service-tools {
    max-height: 200px;
    opacity: 1;
    margin-top: 1.25rem;
  }
}

.tool {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--fg-mute);
  background: var(--bg-card);
  transition: all 0.2s ease;
}
.tool:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===========================================
   STACK GRID
   =========================================== */
.stack {
  padding: var(--section-y) 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stack-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
@media (max-width: 900px) {
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .stack-grid { grid-template-columns: 1fr; }
}

.stack-cat {
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}
.stack-cat:hover { background: rgba(216, 255, 60, 0.025); }

.cat-head {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--border);
}
.cat-num {
  color: var(--accent);
  font-size: 0.78rem;
}
.cat-head h4 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
}

.stack-cat ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.stack-cat li {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--fg-mute);
  letter-spacing: -0.01em;
  padding-left: 0.95rem;
  position: relative;
}
.stack-cat li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--fg-dim);
}

/* ===========================================
   PROCESS
   =========================================== */
.process {
  padding: var(--section-y) 0;
}

.steps {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .steps { grid-template-columns: 1fr; }
}

.step {
  padding: 2.5rem 1.5rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background 0.3s ease;
}
.step:hover { background: rgba(216, 255, 60, 0.03); }
.step:last-child { border-right: none; }
@media (max-width: 900px) {
  .step:nth-child(2n) { border-right: none; }
  .step:last-child { border-right: none; }
}
@media (max-width: 540px) {
  .step { border-right: none; }
}

.step-num {
  color: var(--accent);
}
.step h4 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.8rem;
  letter-spacing: -0.01em;
  line-height: 1;
}
.step p {
  color: var(--fg-mute);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ===========================================
   ORIGIN / ABOUT
   =========================================== */
.origin {
  padding: var(--section-y) 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.origin-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
@media (max-width: 860px) {
  .origin-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.origin-zero {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.zero-glyph {
  font-family: var(--font-display);
  font-size: clamp(10rem, 28vw, 22rem);
  font-weight: 400;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
  opacity: 0.35;
  user-select: none;
  animation: zeroFloat 8s ease-in-out infinite;
  filter: drop-shadow(0 0 60px rgba(216, 255, 60, 0.12));
}
@keyframes zeroFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-8px) scale(1.02); }
}

.origin-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.origin-title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.origin-body {
  color: var(--fg-mute);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.6;
  max-width: 48ch;
}
@media (max-width: 860px) {
  .origin-body { max-width: 100%; }
}

.origin-body strong { color: var(--fg); }

.origin-mantra {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  padding: 0.6rem 1.2rem;
  border: 1px solid rgba(216, 255, 60, 0.2);
  border-radius: 999px;
  background: rgba(216, 255, 60, 0.04);
  width: fit-content;
}
@media (max-width: 860px) {
  .origin-mantra { margin: 0.75rem auto 0; }
}

/* ===========================================
   CONTACT
   =========================================== */
.contact {
  padding: var(--section-y) 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(216, 255, 60, 0.08) 0%, rgba(216, 255, 60, 0) 60%);
  filter: blur(40px);
  pointer-events: none;
}

.contact-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  z-index: 1;
}

.contact-title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(2.8rem, 8vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 1rem 0 1.5rem;
}

.contact-sub {
  color: var(--fg-mute);
  font-size: 1.1rem;
  max-width: 50ch;
  margin-bottom: 3.5rem;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (max-width: 760px) {
  .contact-cards { grid-template-columns: 1fr; }
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(216, 255, 60, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.contact-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.contact-card:hover::before { opacity: 1; }
.contact-card.whatsapp:hover { box-shadow: 0 20px 60px -25px rgba(216, 255, 60, 0.4); }

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-label {
  color: var(--accent);
}
.card-arrow {
  font-size: 1.3rem;
  color: var(--fg-mute);
  transition: transform 0.3s ease, color 0.3s ease;
}
.contact-card:hover .card-arrow {
  transform: translate(4px, -4px);
  color: var(--accent);
}

.card-value {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  word-break: break-word;
  position: relative;
}

.card-note {
  color: var(--fg-mute);
  font-size: 0.92rem;
  position: relative;
}

/* ===========================================
   FOOTER
   =========================================== */
.footer {
  padding: 4rem var(--pad-x) 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.foot-top {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 760px) {
  .foot-top { grid-template-columns: 1fr; }
}

.foot-brand .brand-name.big {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1;
  display: block;
  margin-bottom: 1rem;
}
.foot-brand p {
  color: var(--fg-mute);
  max-width: 40ch;
}
.foot-tagline {
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.foot-tagline em {
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.foot-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.foot-head {
  color: var(--fg-dim);
  margin-bottom: 0.5rem;
}
.foot-col a {
  color: var(--fg-mute);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.foot-col a:hover { color: var(--accent); }

.foot-bot {
  max-width: var(--max);
  margin: 2rem auto 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--fg-dim);
}

/* ===========================================
   REVEAL ANIMATIONS — progressive enhancement
   Elements visible by default; only hidden when JS adds .js to body
   =========================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero title lines stagger via inline animation */
.hero-title .line {
  opacity: 0;
  transform: translateY(40px);
  animation: lineUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-title .line:nth-child(1) { animation-delay: 0.15s; }
.hero-title .line:nth-child(2) { animation-delay: 0.30s; }
.hero-title .line:nth-child(3) { animation-delay: 0.45s; }

@keyframes lineUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Section reveal on scroll — only when JS is active */
.js .section-head,
.js .service,
.js .stack-cat,
.js .step,
.js .contact-card,
.js .origin-zero,
.js .origin-content {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.js .section-head.is-visible,
.js .service.is-visible,
.js .stack-cat.is-visible,
.js .step.is-visible,
.js .contact-card.is-visible,
.js .origin-zero.is-visible,
.js .origin-content.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger services */
.js .service:nth-child(2).is-visible { transition-delay: 0.1s; }
.js .service:nth-child(3).is-visible { transition-delay: 0.2s; }
.js .service:nth-child(4).is-visible { transition-delay: 0.3s; }

.js .stack-cat:nth-child(2).is-visible { transition-delay: 0.08s; }
.js .stack-cat:nth-child(3).is-visible { transition-delay: 0.16s; }
.js .stack-cat:nth-child(4).is-visible { transition-delay: 0.24s; }

.js .step:nth-child(2).is-visible { transition-delay: 0.08s; }
.js .step:nth-child(3).is-visible { transition-delay: 0.16s; }
.js .step:nth-child(4).is-visible { transition-delay: 0.24s; }

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

/* ===========================================
   FLOATING WHATSAPP BUTTON
   =========================================== */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 150;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  border-radius: 50%;
  color: #fff;
  box-shadow:
    0 4px 14px rgba(37, 211, 102, 0.45),
    0 0 0 0 rgba(37, 211, 102, 0.4);
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  animation: waFloat 1s 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow:
    0 8px 28px rgba(37, 211, 102, 0.55),
    0 0 0 0 rgba(37, 211, 102, 0);
}

@keyframes waFloat {
  from {
    opacity: 0;
    transform: scale(0.4) translateY(30px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.wa-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

/* Pulsing ping ring */
.wa-ping {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.6);
  animation: waPing 2.5s cubic-bezier(0, 0, 0.2, 1) infinite;
  pointer-events: none;
}

@keyframes waPing {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  80%, 100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* Hover tooltip */
.wa-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: var(--bg-card, #0f0f12);
  color: var(--fg, #f1ede4);
  font-family: var(--font-body, sans-serif);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border-strong, rgba(241, 237, 228, 0.18));
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.wa-tooltip::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: var(--bg-card, #0f0f12);
  border-right: 1px solid var(--border-strong, rgba(241, 237, 228, 0.18));
  border-bottom: 1px solid var(--border-strong, rgba(241, 237, 228, 0.18));
}
.whatsapp-float:hover .wa-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .whatsapp-float {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 52px;
    height: 52px;
  }
  .wa-icon {
    width: 28px;
    height: 28px;
  }
  .wa-tooltip { display: none; }
}
