/* ===== Design tokens ===== */
:root {
  --bg:        #0a0b0c;
  --bg-2:      #101315;
  --bg-3:      #161a1d;
  --line:      rgba(255,255,255,.08);
  --text:      #f4f6f5;
  --muted:     #9aa3a0;
  --green:     #29d67a;
  --green-2:   #14b866;
  --green-dim: rgba(41,214,122,.14);
  --blue:      #7fc8ff;
  --radius:    18px;
  --maxw:      1160px;
  --ease:      cubic-bezier(.22,.61,.36,1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .brand__text { font-family: "Sora", "Inter", sans-serif; line-height: 1.1; letter-spacing: -.02em; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }

/* ===== Reusable type ===== */
.h2 { font-size: clamp(1.7rem, 4vw, 2.7rem); font-weight: 800; margin-bottom: 18px; }
.kicker {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--green); margin-bottom: 14px;
}
.section__head { max-width: 640px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section__sub { color: var(--muted); font-size: 1.05rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-size: .98rem; padding: 14px 26px; border-radius: 999px;
  cursor: pointer; border: 1px solid transparent; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  will-change: transform;
}
.btn--primary {
  background: linear-gradient(135deg, var(--green), var(--green-2));
  color: #03130a; box-shadow: 0 10px 30px -10px rgba(41,214,122,.6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -10px rgba(41,214,122,.75); }
.btn--ghost {
  background: rgba(255,255,255,.04); color: var(--text); border-color: var(--line);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { transform: translateY(-2px); border-color: rgba(41,214,122,.5); background: rgba(41,214,122,.08); }
.btn--block { width: 100%; }

/* ===== Navbar ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(10,11,12,.82); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav__inner { max-width: var(--maxw); margin: 0 auto; padding: 14px 22px; display: flex; align-items: center; justify-content: space-between; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.brand__mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--green-dim); color: var(--green); border: 1px solid rgba(41,214,122,.3);
}
.brand__text { font-size: 1.12rem; letter-spacing: -.01em; }
.brand__two { color: var(--green); }

.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { font-size: .94rem; color: var(--muted); font-weight: 500; transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__links .nav__cta { color: var(--green); border: 1px solid rgba(41,214,122,.35); padding: 8px 18px; border-radius: 999px; transition: background .2s, color .2s; }
.nav__links .nav__cta:hover { background: var(--green); color: #03130a; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile { display: none; flex-direction: column; padding: 0 22px; background: rgba(10,11,12,.96); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.nav__mobile.open { max-height: 420px; }
.nav__mobile a { padding: 15px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-weight: 500; }
.nav__mobile a:last-child { border-bottom: 0; }
.nav__mobile .nav__cta { color: var(--green); }

/* ===== Hero ===== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__img { width: 100%; height: 100%; object-fit: cover; animation: slowZoom 22s ease-in-out infinite alternate; }
@keyframes slowZoom { from { transform: scale(1.04); } to { transform: scale(1.16); } }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 10%, rgba(10,11,12,.25), rgba(10,11,12,.85) 70%),
    linear-gradient(180deg, rgba(10,11,12,.55), rgba(10,11,12,.92));
}
.hero__content { position: relative; z-index: 2; padding: 100px 22px 80px; max-width: 820px; }
.eyebrow {
  display: inline-block; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green); background: var(--green-dim); border: 1px solid rgba(41,214,122,.28);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 26px; font-weight: 600;
}
.hero__title { font-size: clamp(2.8rem, 9vw, 6rem); font-weight: 800; letter-spacing: -.03em; }
.hero__title { background: linear-gradient(180deg, #fff 30%, #cfe9da); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__subtitle { font-size: clamp(1.1rem, 3vw, 1.6rem); color: #e7efea; margin: 16px 0 32px; font-weight: 500; }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__tags { margin-top: 30px; color: var(--muted); font-size: .95rem; letter-spacing: .02em; }
.hero__tags span { color: var(--green); margin: 0 6px; }

.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; }
.hero__mouse { display: block; width: 24px; height: 38px; border: 2px solid rgba(255,255,255,.4); border-radius: 14px; position: relative; }
.hero__mouse::after { content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 4px; height: 7px; background: var(--green); border-radius: 2px; animation: scrollDot 1.6s ease-in-out infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%, 12px); } }

/* ===== About ===== */
.about { background: var(--bg); }
.about__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(34px, 5vw, 70px); align-items: center; }
.about__text p { color: var(--muted); margin-bottom: 16px; max-width: 56ch; }
.about__stats { display: flex; gap: 30px; margin-top: 30px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat__num { font-family: "Sora", sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--green); }
.stat__label { font-size: .85rem; color: var(--muted); }
.about__photo { position: relative; }
.about__photo img { width: 100%; height: 100%; max-height: 480px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.about__photo::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); box-shadow: inset 0 0 0 1px rgba(41,214,122,.15); }

/* ===== Services ===== */
.services { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.card__img { aspect-ratio: 16/11; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card__body { padding: 24px 24px 28px; }
.card__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--green-dim); color: var(--green); border: 1px solid rgba(41,214,122,.25); margin: -46px 0 16px; position: relative; }
.card__icon svg { width: 24px; height: 24px; }
.card__title { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.card__desc { color: var(--muted); font-size: .96rem; }
.card:hover { transform: translateY(-6px); border-color: rgba(41,214,122,.45); box-shadow: 0 24px 50px -24px rgba(41,214,122,.4); }
.card:hover .card__img img { transform: scale(1.08); }

/* ===== Before / After ===== */
.results { background: var(--bg-2); }
.ba { max-width: 920px; margin: 0 auto; }
.ba__frame { position: relative; aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); user-select: none; touch-action: pan-y; cursor: ew-resize; }
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__before { position: absolute; inset: 0; width: 50%; overflow: hidden; will-change: width; }
/* before image is pinned to the full frame width (set in JS) so it never squashes */
.ba__before .ba__img { right: auto; left: 0; max-width: none; }
.ba__tag {
  position: absolute; top: 14px; z-index: 4; font-size: .72rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(6px);
}
.ba__tag--before { left: 14px; background: rgba(0,0,0,.55); color: #fff; }
.ba__tag--after { right: 14px; background: var(--green); color: #03130a; }
.ba__handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; z-index: 5; transform: translateX(-50%); }
.ba__line { position: absolute; inset: 0; width: 3px; left: 50%; transform: translateX(-50%); background: #fff; box-shadow: 0 0 14px rgba(0,0,0,.5); }
.ba__grip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%; background: #fff; color: #0a0b0c;
  display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.45); cursor: ew-resize;
}
.ba__handle:focus-visible { outline: none; }
.ba__handle:focus-visible .ba__grip { box-shadow: 0 0 0 4px rgba(41,214,122,.6); }

/* ===== Why ===== */
.why { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.why__grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.why__item {
  display: flex; gap: 14px; align-items: flex-start; padding: 24px; border-radius: var(--radius);
  background: var(--bg-3); border: 1px solid var(--line); transition: transform .3s var(--ease), border-color .3s;
}
.why__item:hover { transform: translateY(-4px); border-color: rgba(41,214,122,.35); }
.why__check { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: var(--green-dim); color: var(--green); display: grid; place-items: center; font-weight: 700; border: 1px solid rgba(41,214,122,.3); }
.why__item h3 { font-size: 1.06rem; font-weight: 700; margin-bottom: 4px; }
.why__item p { color: var(--muted); font-size: .92rem; }

/* ===== Area ===== */
.area { background: var(--bg); }
.area__inner { max-width: 680px; margin: 0 auto; text-align: center; padding: clamp(40px,6vw,64px) 30px; background: var(--bg-3); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); position: relative; overflow: hidden; }
.area__inner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 120% at 50% -10%, rgba(41,214,122,.16), transparent 60%); pointer-events: none; }
.area__pin { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--green-dim); color: var(--green); border: 1px solid rgba(41,214,122,.3); margin-bottom: 18px; }
.area__inner p { color: var(--muted); margin: 12px auto 26px; max-width: 48ch; }

/* ===== Contact ===== */
.contact { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 5vw, 64px); align-items: start; }
.contact__lead { color: var(--muted); margin-bottom: 30px; max-width: 46ch; }
.contact__items { display: flex; flex-direction: column; gap: 14px; }
.contact__item { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 14px; background: var(--bg-3); border: 1px solid var(--line); transition: transform .25s var(--ease), border-color .25s; }
.contact__item:not(.contact__item--static):hover { transform: translateX(4px); border-color: rgba(41,214,122,.4); }
.contact__ico { flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--green-dim); color: var(--green); border: 1px solid rgba(41,214,122,.25); }
.contact__ico svg { width: 22px; height: 22px; }
.contact__item span { display: flex; flex-direction: column; line-height: 1.3; }
.contact__item strong { font-weight: 600; font-size: .98rem; }
.contact__item em { font-style: normal; color: var(--muted); font-size: .9rem; }

.contact__form { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact__form-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .82rem; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 11px; background: var(--bg); color: var(--text);
  border: 1px solid var(--line); font-family: inherit; font-size: .95rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-dim); }
.field__opt { color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.contact__note { margin-top: 14px; font-size: .9rem; }
.contact__note.is-success { color: var(--green); }
.contact__note.is-error { color: #ff7a7a; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* ===== Footer ===== */
.footer { background: var(--bg); border-top: 1px solid var(--line); padding: 50px 0 110px; text-align: center; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.brand--footer .brand__text { font-size: 1.3rem; }
.footer p { color: var(--muted); font-size: .92rem; max-width: 46ch; }
.footer__copy { font-size: .82rem; opacity: .7; margin-top: 6px; }

/* ===== Sticky mobile CTA ===== */
.sticky-cta {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40; display: none;
  text-align: center; padding: 15px; border-radius: 14px; font-weight: 700; color: #03130a;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  box-shadow: 0 14px 34px -10px rgba(41,214,122,.7);
  transform: translateY(140%); transition: transform .4s var(--ease);
}
.sticky-cta.show { transform: translateY(0); }

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__mobile { display: flex; }
  .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__photo { order: -1; }
  .cards { grid-template-columns: 1fr 1fr; }
  .why__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .cards { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: 1fr; }
  .sticky-cta { display: block; }
  .hero__actions .btn { flex: 1 1 auto; }
  .about__stats { gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__img { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; }
}
