/* ===== Velez Dev — site styles ===== */
:root {
  --bg: #0B1120;
  --bg-2: #111a2e;
  --line: rgba(255, 255, 255, 0.12);
  --text: #E8ECF3;
  --muted: #8A94A8;
  --green: #10B981;
  --green-soft: rgba(16, 185, 129, 0.14);
  --radius: 14px;
  --max: 1180px;
  --display: "Space Grotesk", Inter, system-ui, sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, canvas { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-weight: 400; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ----- Cursor glow (desktop only) ----- */
.cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 100;
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px 4px rgba(16, 185, 129, 0.55);
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0; transition: opacity .3s, width .2s, height .2s;
}
@media (hover: hover) and (pointer: fine) {
  .cursor-dot.on { opacity: 1; }
  .cursor-dot.big { width: 14px; height: 14px; }
}

/* ----- Accessibility ----- */
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--green); color: #04130d; padding: 10px 16px; border-radius: 8px;
  font-weight: 500; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* ----- Buttons & shared bits ----- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px;
  background: var(--green); color: #04130d;
  font-weight: 500; text-decoration: none;
  border: 1px solid var(--green);
  transition: transform .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); background: #34d399; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.3); }
.btn-small { padding: 9px 18px; font-size: 14px; }

.label {
  font-family: var(--display); font-size: 12px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 18px;
}
.num { font-family: var(--display); font-size: 13px; color: var(--green); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tags li {
  border: 1px solid var(--line); border-radius: 4px;
  padding: 4px 10px; font-size: 13px; color: var(--text);
}
.dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none;
  box-shadow: 0 0 0 0 rgba(16,185,129,.6); animation: pulse 2s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }

/* ----- Nav ----- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 48px);
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(11, 17, 32, .82); backdrop-filter: blur(12px); border-color: var(--line); }
.logo {
  font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -0.03em;
  text-decoration: none; display: inline-flex; align-items: baseline;
}
.logo span { color: var(--green); }
.cursor { display: inline-block; width: 11px; height: 4px; background: var(--green); margin-left: 3px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: 15px; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: transform .3s; }

/* ----- Hero ----- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px clamp(20px, 4vw, 48px) 100px;
  overflow: hidden;
}
.hero .particles { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner { position: relative; max-width: min(640px, 56%); z-index: 2; }
.eyebrow { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.hero h1 { font-size: clamp(42px, 6.4vw, 84px); font-weight: 400; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--green); }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); margin-top: 28px; max-width: 540px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.founding-pill {
  margin-top: 56px;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; text-decoration: none; background: rgba(11,17,32,.6); backdrop-filter: blur(6px);
}

/* ----- Statement (scroll-lit words) ----- */
.statement { padding: clamp(80px, 14vw, 180px) clamp(20px, 4vw, 48px); max-width: var(--max); margin: 0 auto; }
.reveal-words { font-size: clamp(28px, 3.8vw, 52px); line-height: 1.22; letter-spacing: -0.025em; font-weight: 400; }
.reveal-words .w { color: rgba(232, 236, 243, .16); transition: color .35s; }
.reveal-words .w.lit { color: var(--text); }

/* ----- Sections ----- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(70px, 10vw, 130px) clamp(20px, 4vw, 48px); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(32px, 4.2vw, 56px); }
.sub { color: var(--muted); margin-top: 18px; font-size: 18px; }

.services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.service { padding: 36px 32px 40px 0; border-right: 1px solid var(--line); }
.service + .service { padding-left: 32px; }
.service:last-child { border-right: 0; }
.service h3 { font-size: 28px; margin: 14px 0 14px; }
.service p { color: var(--muted); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { border-top: 1px solid var(--line); padding-top: 22px; position: relative; }
.steps li::before { content: ""; position: absolute; top: -1px; left: 0; width: 36px; height: 1px; background: var(--green); }
.steps h3 { font-size: 22px; margin: 12px 0 10px; }
.steps p { color: var(--muted); font-size: 15px; }

/* ----- Pricing ----- */
.founding {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 16px 22px; border-radius: var(--radius); text-align: center;
  background: var(--green-soft); border: 1px solid rgba(16,185,129,.35);
  margin-bottom: 28px;
}
.founding strong { font-weight: 600; color: #6ee7b7; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan {
  position: relative; padding: 34px 30px; border-radius: var(--radius);
  border: 1px solid var(--line); background: rgba(255,255,255,.02);
  display: flex; flex-direction: column;
}
.plan-featured { border-color: rgba(16,185,129,.6); background: linear-gradient(180deg, rgba(16,185,129,.09), rgba(16,185,129,.01)); }
.badge {
  position: absolute; top: -12px; left: 30px;
  background: var(--green); color: #04130d; font-size: 12px; font-weight: 600;
  padding: 4px 12px; border-radius: 999px;
}
.plan h3 { font-size: 22px; color: var(--muted); }
.price { font-family: var(--display); font-size: 52px; font-weight: 500; letter-spacing: -0.03em; margin-top: 10px; }
.price small { font-size: 18px; color: var(--muted); font-weight: 400; }
.founding-price { color: #6ee7b7; font-size: 14px; margin-top: 4px; }
.plan ul { margin: 26px 0 30px; display: grid; gap: 10px; flex: 1; }
.plan li { padding-left: 24px; position: relative; color: var(--text); font-size: 15px; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--green); }
.plan .btn { justify-content: center; }

.care { margin-top: 64px; }
.care-title { font-size: 26px; margin-bottom: 22px; }
.care-title span { color: var(--muted); font-size: 16px; }
.care-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.care-plan { padding: 26px 28px; border: 1px solid var(--line); border-radius: var(--radius); }
.care-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.care-plan h4 { font-size: 20px; }
.care-plan p { color: var(--muted); font-size: 15px; }
.price-sm { font-family: var(--display); font-size: 30px; color: var(--text) !important; }
.price-sm small { font-size: 15px; color: var(--muted); }
.terms { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.terms li { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 14px; color: var(--muted); }
.terms strong { color: var(--text); font-weight: 500; }

/* ----- Work (horizontal strip) ----- */
.work-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 42%);
  gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.work-card { scroll-snap-align: start; }
.work-thumb {
  aspect-ratio: 4 / 3; border-radius: var(--radius); border: 1px solid var(--line);
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.work-thumb span { font-family: var(--display); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); z-index: 1; }
.work-thumb::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 14px 14px; mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 70%);
}
.t1 { background: radial-gradient(circle at 30% 20%, rgba(16,185,129,.22), transparent 60%), var(--bg-2); }
.t2 { background: radial-gradient(circle at 70% 30%, rgba(245,158,11,.18), transparent 60%), var(--bg-2); }
.t3 { background: radial-gradient(circle at 50% 80%, rgba(236,72,153,.16), transparent 60%), var(--bg-2); }
.work-card p { margin-top: 14px; font-size: 20px; display: flex; gap: 10px; align-items: baseline; }

/* ----- About ----- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-visual { aspect-ratio: 4 / 5; position: relative; border-radius: var(--radius); overflow: hidden; }
.about-visual .particles { position: absolute; inset: 0; width: 100%; height: 100%; }
.about-copy h2 { font-size: clamp(36px, 4.6vw, 60px); margin-bottom: 24px; }
.about-copy p:not(.label) { color: var(--muted); font-size: 18px; margin-bottom: 16px; }

/* ----- FAQ ----- */
.faq-list { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 24px 40px 24px 0; position: relative;
  font-size: 20px; font-weight: 400;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 20px; font-size: 26px; color: var(--green); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 40px 26px 0; max-width: 700px; }

/* ----- Contact ----- */
.contact { padding: clamp(60px, 10vw, 140px) clamp(20px, 4vw, 48px); display: grid; place-items: center; }
.contact-frame {
  position: relative; text-align: center;
  padding: clamp(60px, 8vw, 100px) clamp(28px, 7vw, 110px);
  width: min(100%, 1000px);
}
.contact-frame .particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.contact-frame > *:not(canvas) { position: relative; }
.big-email {
  display: inline-block; text-decoration: none;
  font-size: clamp(30px, 6.4vw, 76px); letter-spacing: -0.035em; line-height: 1.1;
  background: linear-gradient(90deg, var(--text) 0%, var(--text) 50%, var(--green) 50%, var(--green) 100%);
  background-size: 200% 100%; background-position: 0 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: background-position .6s ease;
  overflow-wrap: anywhere;
}
.big-email:hover { background-position: -100% 0; }
.contact-sub { color: var(--muted); margin-top: 22px; }
.contact-sub a { color: var(--text); }

/* ----- Footer ----- */
.footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding: 28px clamp(20px, 4vw, 48px);
  font-family: var(--display); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}

/* ----- Scroll fade-in ----- */
.fade { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.fade.in { opacity: 1; transform: none; }

/* ----- Responsive ----- */
@media (max-width: 960px) {
  .services, .plans { grid-template-columns: 1fr; }
  .service { border-right: 0; border-bottom: 1px solid var(--line); padding: 30px 0 !important; }
  .steps { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .care-grid, .about { grid-template-columns: 1fr; }
  .about-visual { max-width: 460px; }
  .work-strip { grid-auto-columns: 82%; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 28px;
    background: var(--bg); font-size: 22px;
    opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .nav.open .nav-links { opacity: 1; pointer-events: auto; }
  /* backdrop-filter would trap the fixed menu inside the nav bar, so drop it while open */
  .nav.open { backdrop-filter: none; background: var(--bg); }
  .nav-toggle, .logo { position: relative; z-index: 2; }
  .nav.open .nav-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav.open .nav-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .hero { flex-direction: column; align-items: flex-start; justify-content: flex-start; padding-top: calc(30svh + 70px); padding-bottom: 60px; }
  .hero .particles { height: calc(30svh + 70px); }
  .hero-inner { max-width: none; }
  .steps { grid-template-columns: 1fr; }
  .founding-pill { margin-top: 32px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .fade { opacity: 1; transform: none; }
}
