/* =============================================
   NATI MENDEZ — natimendez.com
   Design: Sharp. Grounded. Deliberate.
   ============================================= */

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

/* ===== TOKENS ===== */
:root {
  --yellow:  #FCDF4C;
  --cyan:    #15E8E8;
  --white:   #F1F1F1;
  --black:   #000000;
  --dim:     rgba(241, 241, 241, 0.68);
  --border:  rgba(241, 241, 241, 0.08);
  --font:    'Poppins', sans-serif;
  --max:     1080px;
  --pad-x:   clamp(24px, 6vw, 80px);
  --pad-y:   clamp(80px, 10vw, 140px);
}

/* ===== BASE ===== */
html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== UTILITIES ===== */
.accent-yellow { color: var(--yellow); font-style: normal; }

/* ===== LAYOUT ===== */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

/* ===== LANGUAGE TOGGLE ===== */
.lang-toggle { display: flex; align-items: center; gap: 4px; }

.lang-btn {
  background: none;
  border: none;
  color: rgba(241, 241, 241, 0.3);
  font-family: var(--font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 10px 8px;
  min-height: 44px;
  min-width: 44px;
  transition: color 0.15s;
}

.lang-btn.active,
.lang-btn:hover { color: var(--white); }
.lang-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.lang-sep {
  color: rgba(241, 241, 241, 0.18);
  font-size: 11px;
  pointer-events: none;
}

/* ===== BUTTON ===== */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--yellow);
  color: var(--black);
  font-family: var(--font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 11px 22px;
  transition: background 0.18s, transform 0.15s;
  white-space: nowrap;
}

.btn-cta::after {
  content: '';
  position: absolute;
  inset: -50% 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.22) 50%, transparent 70%);
  transform: translateX(-200%);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.btn-cta:hover::after { transform: translateX(200%); }

.btn-cta:hover { background: #ffe854; transform: translateY(-1px); }
.btn-cta:active { background: #f5d200; transform: translateY(0); }
.btn-cta:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.btn-cta--large { font-size: 11px; padding: 16px 44px; letter-spacing: 0.16em; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 82svh;
  display: flex;
  align-items: center;
  padding: calc(72px + clamp(48px, 7vw, 96px)) 0 clamp(48px, 7vw, 96px);
  overflow: hidden;
}

/* Canvas lives in the background, right half */
.hero-bg {
  position: absolute;
  inset: 0 0 0 50%;
  pointer-events: none;
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--black) 0%, transparent 40%);
  z-index: 1;
  pointer-events: none;
}

#hero-canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.7;
}

.hero .container {
  position: relative;
  z-index: 1;
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-headline {
  font-size: clamp(36px, 6vw, 76px);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  max-width: 720px;
}

.hero-sub {
  font-size: clamp(15px, 1.5vw, 17px);
  font-weight: 400;
  color: var(--dim);
  max-width: 480px;
  margin-bottom: 44px;
  line-height: 1.7;
}

/* ===== SHARED SECTION STYLES ===== */
.section {
  padding: var(--pad-y) 0;
  border-top: 1px solid var(--border);
}

.label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 20px;
}

.section-headline {
  font-size: clamp(24px, 3.5vw, 44px);
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: -0.025em;
  max-width: 640px;
  margin-bottom: 24px;
}

.section-body {
  font-size: clamp(15px, 1.5vw, 17px);
  font-weight: 400;
  color: var(--dim);
  max-width: 580px;
  line-height: 1.8;
}

/* ===== CAPABILITIES GRID ===== */
.grid-caps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 56px;
}

.cap {
  background: var(--black);
  padding: clamp(28px, 4vw, 52px);
  transition: background 0.2s;
}

.cap:hover {
  background: rgb(4, 8, 8);
  box-shadow: inset 3px 0 0 var(--cyan);
}

.cap-num {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--cyan);
  margin-bottom: 18px;
}

.cap h3 {
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 12px;
}

.cap p {
  font-size: 14px;
  font-weight: 400;
  color: rgba(241, 241, 241, 0.65);
  line-height: 1.8;
}

/* ===== ICP FLOW ===== */
.flow {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 60px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.flow-step {
  flex: 1;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
}

.flow-icon {
  width: 72px;
  height: 72px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  transition: border-color 0.2s, background 0.2s;
}

.flow-step:hover .flow-icon {
  border-color: rgba(21, 232, 232, 0.35);
  background: rgba(21, 232, 232, 0.03);
}

.flow-icon svg {
  width: 40px;
  height: 40px;
}

.flow-step h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
  color: var(--white);
}

.flow-step p {
  font-size: 13px;
  font-weight: 400;
  color: rgba(241, 241, 241, 0.82);
  line-height: 1.7;
}

.flow-arrow {
  display: flex;
  align-items: flex-start;
  padding-top: 24px;
  flex-shrink: 0;
}

.flow-arrow svg {
  width: 32px;
  height: 24px;
}

@keyframes arrowSlide {
  0%   { transform: translateX(-5px); opacity: 0.2; }
  50%  { transform: translateX(3px);  opacity: 0.75; }
  100% { transform: translateX(-5px); opacity: 0.2; }
}

.arrow-svg {
  animation: arrowSlide 1.8s ease-in-out infinite;
}

/* ===== WHO THIS IS FOR ===== */
.for-list {
  list-style: none;
  margin-top: 44px;
  max-width: 580px;
}

.for-list li {
  display: flex;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  font-size: clamp(15px, 1.5vw, 17px);
  font-weight: 400;
  color: rgba(241, 241, 241, 0.85);
  line-height: 1.6;
  align-items: flex-start;
}

.for-list li::before {
  content: '·';
  color: var(--cyan);
  font-weight: 700;
  font-size: 22px;
  flex-shrink: 0;
  line-height: 1.4;
}

/* ===== STEPS ===== */
.steps {
  margin-top: 56px;
  max-width: 680px;
}

.step {
  display: flex;
  gap: clamp(24px, 5vw, 60px);
  align-items: flex-start;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}

.step:first-child { border-top: 1px solid var(--border); }

.step-num {
  font-size: clamp(44px, 5.5vw, 64px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  flex-shrink: 0;
  width: clamp(56px, 7vw, 80px);
}

.step-body h3 {
  font-size: clamp(17px, 1.7vw, 20px);
  font-weight: 600;
  margin-bottom: 10px;
  padding-top: 4px;
}

.step-body p {
  font-size: 15px;
  font-weight: 400;
  color: var(--dim);
  line-height: 1.78;
}

/* ===== ABOUT ===== */
.about-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-badge {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-photo-wrap {
  width: 164px;
  height: 164px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  z-index: 2;
  border: 2px solid rgba(252, 223, 76, 0.35);
  background: rgba(21, 232, 232, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.about-initial {
  font-size: 64px;
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: -0.04em;
  line-height: 1;
}

.about-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(21, 232, 232, 0.2);
  border-radius: 50%;
  animation: ringPulse 3s ease-in-out infinite;
}

.about-ring--2 {
  inset: -20px;
  border-color: rgba(21, 232, 232, 0.08);
  animation-delay: 1s;
}

@keyframes ringPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.04); }
}

.about-links {
  margin-top: 28px;
  display: flex;
  gap: 16px;
}

.about-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(241, 241, 241, 0.5);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.about-social:hover { color: var(--cyan); }
.about-social svg { width: 18px; height: 18px; }

/* ===== ABOUT NAME ===== */
.about-name {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 20px;
}

/* ===== TECH STACK ===== */
.section--stack {
  padding: clamp(40px, 5vw, 72px) 0;
}

.stack-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stack-inner .label { margin-bottom: 0; }

.stack-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.tool {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(241, 241, 241, 0.72);
  text-transform: uppercase;
  transition: color 0.2s;
}

.tool:hover {
  color: var(--white);
}

.tool-sep {
  color: rgba(241, 241, 241, 0.25);
  font-size: 16px;
}

.stack-note {
  font-size: 12px;
  font-weight: 400;
  color: rgba(241, 241, 241, 0.45);
  letter-spacing: 0.02em;
}

/* ===== CLAY TRAINING ===== */
.section--training {
  background: rgba(252, 223, 76, 0.04);
  border-top: 1px solid rgba(252, 223, 76, 0.18);
  border-bottom: 1px solid rgba(252, 223, 76, 0.18);
}

.training-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(32px, 6vw, 80px);
}

.training-text {
  flex: 1;
}

.training-headline {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--yellow);
}

.training-body {
  font-size: clamp(14px, 1.4vw, 16px);
  font-weight: 400;
  color: var(--dim);
  line-height: 1.75;
  max-width: 560px;
}

@media (max-width: 640px) {
  .training-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== FINAL CTA ===== */
.section--cta { text-align: center; }

.cta-headline {
  font-size: clamp(24px, 3.8vw, 48px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
  max-width: 660px;
  margin: 0 auto 48px;
}

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-name { font-size: 13px; font-weight: 700; letter-spacing: 0.02em; }

.footer-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-social {
  color: rgba(241, 241, 241, 0.35);
  text-decoration: none;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.footer-social:hover { color: var(--cyan); }
.footer-social svg { width: 18px; height: 18px; }

.footer-year { font-size: 12px; color: rgba(241, 241, 241, 0.3); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-bg { inset: 0 0 0 30%; }

  .about-container {
    grid-template-columns: 1fr;
  }

  .about-visual { display: none; }
}

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

  .nav-right .btn-cta { display: none; }

  .flow {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .flow-step {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    padding: 20px 0;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    min-width: unset;
    width: 100%;
  }

  .flow-step:last-child { border-bottom: none; }

  .flow-icon {
    flex-shrink: 0;
    margin-bottom: 0;
  }

  .flow-arrow {
    display: none;
  }
}

@media (max-width: 480px) {
  .step-num { font-size: 36px; width: 44px; }
  .hero-bg { opacity: 0.3; }
}

/* ===== SCROLL REVEAL ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .hero .container { animation: none; }
  .about-ring      { animation: none; }
  .arrow-svg       { animation: none; }
  .btn-cta:hover   { transform: none; }
}
