/* ============ TOKENS ============ */
:root {
  --blue: #2563EB;
  --blue-dark: #1d4ed8;
  --dark: #0F172A;
  --light: #F8FAFC;
  --white: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;

  --max: 1140px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lift: 0 12px 32px rgba(37, 99, 235, .14);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }

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

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font); font-weight: 500; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn--outline { background: transparent; color: var(--dark); border-color: var(--border); }
.btn--outline:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn--block { width: 100%; }

/* ============ BRAND / LOGO ============ */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { flex: none; }
.brand__word { font-weight: 700; font-size: 1.35rem; letter-spacing: -0.04em; }
.brand__near { color: var(--dark); }
.brand__near--light { color: var(--white); }
.brand__wit { color: var(--blue); }

/* ============ NAVBAR ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.nav.scrolled { border-bottom-color: var(--border); box-shadow: 0 1px 12px rgba(15, 23, 42, .04); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__links a { font-weight: 500; color: var(--text); font-size: .98rem; transition: color .2s ease; }
.nav__links a:hover { color: var(--blue); }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav__toggle span { width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.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); }

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  background: var(--light); overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(37, 99, 235, .14) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 35%, transparent 78%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 35%, transparent 78%);
  animation: drift 30s linear infinite;
}
@keyframes drift { from { background-position: 0 0; } to { background-position: 26px 26px; } }

.hero__watermark {
  position: absolute; right: -8%; top: 50%; transform: translateY(-50%);
  width: 620px; height: 620px; max-width: 90vw;
  color: var(--blue); opacity: .05; pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; max-width: 760px; }
.hero__title { font-size: clamp(2.2rem, 6vw, 4rem); }
.hero__sub { margin-top: 22px; font-size: clamp(1.05rem, 2.5vw, 1.3rem); color: var(--muted); max-width: 620px; }
.hero__cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }

/* ============ SECTION TITLE ============ */
.section__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem); text-align: center; margin-bottom: 48px;
}
.section__title--left { text-align: left; margin-bottom: 20px; }

/* ============ SERVICES ============ */
.services { padding: 100px 0; background: var(--white); }
.services__grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 34px 30px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: rgba(37, 99, 235, .35); }
.card__icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(37, 99, 235, .1); color: var(--blue); margin-bottom: 20px;
}
.card__title { font-size: 1.3rem; margin-bottom: 10px; }
.card__text { color: var(--muted); }

/* ============ WHY ============ */
.why { padding: 100px 0; background: var(--light); }
.why__grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
.why__copy { color: var(--muted); font-size: 1.1rem; max-width: 460px; }
.why__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.why__list li {
  position: relative; padding-left: 38px; font-size: 1.08rem; font-weight: 500; color: var(--dark);
}
.why__list li::before {
  content: ""; position: absolute; left: 0; top: 2px;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(37, 99, 235, .12);
}
.why__list li::after {
  content: ""; position: absolute; left: 8px; top: 9px;
  width: 8px; height: 4px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}

/* ============ WORK ============ */
.work { padding: 100px 0; background: var(--white); }
.work .section__title { margin-bottom: 14px; }
.work__intro { text-align: center; color: var(--muted); max-width: 560px; margin: 0 auto 52px; font-size: 1.08rem; }
.work__grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.work__card {
  position: relative; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.work__card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: rgba(37, 99, 235, .35); }
.work__card--soon { border-style: dashed; }
.work__tag {
  display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue);
  background: rgba(37, 99, 235, .1); padding: 5px 11px; border-radius: 999px; margin-bottom: 16px;
}
.work__tag--soon { color: #b45309; background: rgba(245, 158, 11, .14); }
.work__title { font-size: 1.3rem; margin-bottom: 10px; }
.work__text { color: var(--muted); }

@media (min-width: 720px) {
  .work__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* ============ FOUNDER ============ */
.founder { padding: 100px 0; background: var(--light); }
.founder__grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: start; }

.founder__avatar {
  width: 148px; height: 148px; border-radius: 50%;
  display: block;
  margin: 0 auto;
  object-fit: cover;
  object-position: center 10%;
  border: 4px solid rgba(37, 99, 235, .18);
  box-shadow: 0 8px 28px rgba(15, 23, 42, .14);
}

.founder__label {
  font-size: .78rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 12px;
}
.founder__name { font-size: clamp(1.9rem, 4vw, 2.5rem); color: var(--dark); margin-bottom: 4px; }
.founder__role { color: var(--muted); font-size: 1rem; font-weight: 500; margin-bottom: 26px; }

.founder__copy { color: var(--muted); font-size: 1.05rem; line-height: 1.78; }
.founder__copy p + p { margin-top: 18px; }

.founder__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.founder__badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .85rem; font-weight: 500; color: var(--text);
  background: var(--white); border: 1px solid var(--border);
  padding: 7px 15px; border-radius: 999px;
  transition: border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.founder__badge:hover { border-color: var(--blue); color: var(--blue); box-shadow: 0 2px 10px rgba(37,99,235,.1); }

@media (min-width: 720px) {
  .founder__grid { grid-template-columns: 180px 1fr; gap: 72px; align-items: start; }
  .founder__avatar { width: 164px; height: 164px; margin: 0; }
}

/* ============ CONTACT ============ */
.contact { padding: 100px 0; background: var(--dark); color: var(--white); }
.contact__inner { max-width: 640px; margin: 0 auto; text-align: center; }
.contact__title { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.contact__sub { margin-top: 16px; color: #94a3b8; font-size: 1.1rem; }

.form { margin-top: 40px; text-align: left; }
.form__row { display: grid; grid-template-columns: 1fr; gap: 18px; }
.form__group { margin-bottom: 18px; display: flex; flex-direction: column; }
.form__group label { font-size: .9rem; font-weight: 500; margin-bottom: 8px; color: #cbd5e1; }
.form input, .form textarea {
  font-family: var(--font); font-size: 1rem; font-weight: 300; color: var(--white);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px; padding: 13px 15px; transition: border-color .2s ease, background .2s ease;
}
.form input:focus, .form textarea:focus {
  outline: none; border-color: var(--blue); background: rgba(255, 255, 255, .1);
}
.form textarea { resize: vertical; }

/* honeypot — visually removed, kept in DOM for bots */
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__error { margin-top: 14px; text-align: center; color: #fca5a5; font-size: .95rem; }

.form__thanks { margin-top: 40px; text-align: center; padding: 40px 20px; }
.form__thanks h3 { font-size: 1.5rem; color: var(--white); }
.form__thanks p { margin-top: 10px; color: #94a3b8; }

.contact__meta {
  margin-top: 36px; display: flex; flex-wrap: wrap; gap: 8px 28px;
  justify-content: center; color: #94a3b8;
}
.contact__meta a { color: var(--blue); font-weight: 500; }
.contact__meta a:hover { color: #60a5fa; }

/* ============ FOOTER ============ */
.footer { background: var(--dark); color: var(--white); padding: 32px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer__links { display: flex; align-items: center; gap: 12px; color: #64748b; font-size: .95rem; }
.footer__links a { color: #cbd5e1; transition: color .2s ease; }
.footer__links a:hover { color: var(--blue); }
.footer__copy { color: #64748b; font-size: .9rem; }

/* ============ REVEAL ANIM ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (min-width: 640px) {
  .form__row { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .why__grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .why__list { align-self: center; }
}

@media (min-width: 960px) {
  .services__grid { grid-template-columns: repeat(3, 1fr); }
}

/* mobile nav */
@media (max-width: 768px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    padding: 8px 24px 16px;
    transform: translateY(-12px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
  }
  .nav__links.open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
  .nav__links a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav__links a:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__bg { animation: none; }
}
