/* ── Reset & Base ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: #0A0A0A; background: #fff; line-height: 1.6; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Design Tokens ────────────────────────────── */
:root {
  --blue: #3B5BFF;
  --blue-dark: #2a4ae8;
  --blue-light: #EEF1FF;
  --dark: #0A0A0A;
  --gray: #6B7280;
  --light-bg: #F4F5F7;
  --border: #E5E7EB;
  --font-mono: 'Space Mono', monospace;
  --r-btn: 8px;
  --r-card: 12px;
  --r-tag: 4px;
  --shadow: 0 2px 8px rgba(0,0,0,.06);
  --shadow-h: 0 8px 30px rgba(0,0,0,.12);
  --max: 1280px;
}

/* ── Utilities ────────────────────────────────── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.mono { font-family: var(--font-mono); }
.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-light);
  padding: 5px 12px;
  border-radius: var(--r-tag);
  margin-bottom: 1rem;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: .75rem 1.75rem;
  background: var(--dark); color: #fff;
  font-size: .9rem; font-weight: 600;
  border-radius: var(--r-btn);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn-primary:hover { background: #1a1a1a; transform: translateY(-2px); box-shadow: var(--shadow-h); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: .75rem 1.75rem;
  border: 1.5px solid var(--border); color: var(--dark);
  font-size: .9rem; font-weight: 600;
  border-radius: var(--r-btn);
  transition: border-color .2s;
}
.btn-outline:hover { border-color: var(--dark); }
.btn-blue {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 1rem 2rem;
  background: var(--blue); color: #fff;
  font-size: .95rem; font-weight: 600;
  border-radius: var(--r-btn);
  transition: background .2s, transform .2s;
}
.btn-blue:hover { background: var(--blue-dark); transform: translateY(-2px); }

/* ── Scroll Animation ─────────────────────────── */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.visible { opacity: 1; transform: none; }

/* ── Navbar ───────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-color: var(--border);
  box-shadow: var(--shadow);
}
.navbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.navbar__logo img { height: 36px; }
.navbar__links {
  display: flex; align-items: center; gap: 2rem;
  list-style: none;
}
.navbar__links a {
  font-size: .9rem; font-weight: 500; color: var(--gray);
  transition: color .2s;
}
.navbar__links a:hover, .navbar__links a.active { color: var(--blue); }
.navbar__right { display: flex; align-items: center; gap: 1rem; }
.lang-toggle {
  display: flex; align-items: center; gap: 2px;
  border: 1.5px solid var(--border); border-radius: 999px; padding: 3px;
}
.lang-toggle button {
  padding: 4px 10px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  text-transform: uppercase; color: var(--gray);
  transition: background .2s, color .2s;
}
.lang-toggle button.active { background: var(--dark); color: #fff; }
.navbar__cta {
  padding: .55rem 1.25rem;
  background: var(--dark); color: #fff;
  font-size: .85rem; font-weight: 600;
  border-radius: var(--r-btn);
  transition: background .2s;
}
.navbar__cta:hover { background: #1a1a1a; }

/* Mobile menu button */
.navbar__burger {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; cursor: pointer;
}
.navbar__burger span {
  display: block; width: 22px; height: 2px;
  background: var(--dark); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.navbar__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__burger.open span:nth-child(2) { opacity: 0; }
.navbar__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 99;
  pointer-events: none;
}
.mobile-menu.open { display: block; pointer-events: all; }
.mobile-menu__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.4); backdrop-filter: blur(4px);
}
.mobile-menu__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: 280px;
  background: #fff; padding: 5rem 1.5rem 2rem;
  display: flex; flex-direction: column; gap: 1rem;
  transform: translateX(100%); transition: transform .3s;
  box-shadow: -4px 0 20px rgba(0,0,0,.1);
}
.mobile-menu.open .mobile-menu__panel { transform: none; }
.mobile-menu__panel a {
  display: block; padding: .75rem 0;
  font-size: 1rem; font-weight: 600; color: var(--dark);
  border-bottom: 1px solid var(--border);
}
.mobile-menu__panel .lang-toggle { margin-top: auto; }
.mobile-menu__panel .navbar__cta { display: block; text-align: center; margin-top: .5rem; }

/* ── Hero ─────────────────────────────────────── */
.hero {
  min-height: 100svh; display: flex; align-items: center;
  position: relative; overflow: hidden; background: #fff;
  padding-top: 72px;
}
.hero__bg {
  position: absolute; top: 0; right: 0;
  width: 700px; height: 700px; pointer-events: none;
  opacity: .6;
}
.hero__content { position: relative; max-width: 860px; padding: 5rem 0; }
.hero__h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900; line-height: 1.05;
  letter-spacing: -.04em; margin-bottom: 1.5rem;
}
.hero__h1 .accent { color: var(--blue); }
.hero__desc { font-size: 1.1rem; color: var(--gray); max-width: 580px; margin-bottom: 2.5rem; line-height: 1.7; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 4rem; }
.hero__trusted p {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--gray); margin-bottom: 1rem;
}
.hero__logos { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__logo-chip {
  padding: .3rem 1rem;
  background: var(--light-bg); border-radius: var(--r-tag);
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--gray);
  opacity: .6; transition: opacity .2s;
}
.hero__logo-chip:hover { opacity: 1; }

/* ── Stats ────────────────────────────────────── */
.stats { background: var(--light-bg); padding: 4rem 0; }
.stats__grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 2rem; }
.stat-item { text-align: center; }
.stat-item__number {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 700;
  letter-spacing: -.04em; color: var(--dark); line-height: 1;
  margin-bottom: .5rem;
}
.stat-item__label { font-size: .82rem; color: var(--gray); font-weight: 500; max-width: 200px; margin: 0 auto; line-height: 1.5; }

/* ── Services Cards (home) ────────────────────── */
.services-section { padding: 5rem 0; background: #fff; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800;
  letter-spacing: -.04em; margin-bottom: 1rem;
}
.section-header p { font-size: 1.05rem; color: var(--gray); max-width: 560px; margin: 0 auto; }
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
.service-card {
  background: #fff; border: 1.5px solid var(--border); border-radius: var(--r-card);
  padding: 1.5rem; display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-h); border-color: var(--blue); }
.service-card__icon {
  width: 48px; height: 48px; border-radius: var(--r-card);
  background: var(--blue-light); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  transition: transform .2s;
}
.service-card__icon svg { width: 22px; height: 22px; stroke: var(--blue); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.service-card:hover .service-card__icon { transform: scale(1.1); }
.service-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; line-height: 1.3; }
.service-card p { font-size: .85rem; color: var(--gray); flex: 1; line-height: 1.6; margin-bottom: 1.25rem; }
.service-card__link { font-size: .85rem; font-weight: 600; color: var(--blue); transition: gap .2s; }
.service-card__link:hover { text-decoration: underline; }

/* ── TechStack ────────────────────────────────── */
.techstack { padding: 5rem 0; background: #fff; }
.tools-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.tool-chip {
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  padding: 1rem; border-radius: var(--r-card); border: 1.5px solid var(--border);
  background: var(--light-bg); cursor: default;
  transition: border-color .3s, background .3s;
}
.tool-chip:hover { border-color: var(--blue); background: var(--blue-light); }
.tool-chip__icon {
  width: 40px; height: 40px; border-radius: var(--r-btn);
  background: #fff; box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 700; color: var(--gray);
  transition: color .3s;
}
.tool-chip:hover .tool-chip__icon { color: var(--blue); }
.tool-chip span {
  font-family: var(--font-mono); font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; color: var(--gray);
  text-align: center; line-height: 1.3;
  transition: color .3s;
}
.tool-chip:hover span { color: var(--blue); }

/* ── FAQ ──────────────────────────────────────── */
.faq-section { padding: 5rem 0; background: #fff; }
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item { border-bottom: 1.5px solid var(--border); }
.faq-item__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 0; text-align: left; gap: 1rem;
  font-size: .95rem; font-weight: 600; color: var(--dark);
  transition: color .2s;
}
.faq-item__btn:hover { color: var(--blue); }
.faq-item__chevron {
  width: 20px; height: 20px; flex-shrink: 0;
  transition: transform .3s; color: var(--gray);
}
.faq-item.open .faq-item__chevron { transform: rotate(180deg); color: var(--blue); }
.faq-item__body {
  overflow: hidden; max-height: 0;
  transition: max-height .35s ease, padding .35s ease;
}
.faq-item.open .faq-item__body { max-height: 500px; padding-bottom: 1.25rem; }
.faq-item__body p { font-size: .875rem; color: var(--gray); line-height: 1.7; }

/* ── CTA ──────────────────────────────────────── */
.cta-section { background: var(--dark); padding: 6rem 0; }
.cta-section__inner { text-align: center; max-width: 700px; margin: 0 auto; }
.cta-badge {
  display: inline-block;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue); background: #1a1f3a;
  padding: 5px 12px; border-radius: var(--r-tag); margin-bottom: 1.5rem;
}
.cta-section h2 {
  font-size: clamp(1.8rem, 4vw, 3.5rem); font-weight: 900;
  letter-spacing: -.04em; color: #fff; margin-bottom: 1rem; line-height: 1.1;
}
.cta-section p { font-size: 1rem; color: rgba(255,255,255,.6); margin-bottom: 2.5rem; }
.cta-section__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.btn-white-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 1rem 2rem; border: 1.5px solid rgba(255,255,255,.3);
  color: #fff; font-size: .95rem; font-weight: 600;
  border-radius: var(--r-btn); transition: border-color .2s, background .2s;
}
.btn-white-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* ── Footer ───────────────────────────────────── */
.footer { background: var(--dark); color: #fff; padding: 4rem 0 2rem; }
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem; padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__brand img { height: 32px; filter: brightness(0) invert(1); margin-bottom: 1rem; }
.footer__brand p { font-size: .85rem; color: rgba(255,255,255,.6); max-width: 240px; line-height: 1.6; }
.footer__col h3 {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.4); margin-bottom: 1.25rem;
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: .75rem; }
.footer__col ul a, .footer__col ul button {
  font-size: .85rem; color: rgba(255,255,255,.7);
  transition: color .2s; background: none; border: none; cursor: pointer;
  font-family: inherit; padding: 0; text-align: left;
}
.footer__col ul a:hover, .footer__col ul button:hover { color: #fff; }
.footer__col.double h3:not(:first-child) { margin-top: 1.5rem; }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 2rem; flex-wrap: wrap; gap: 1rem;
}
.footer__bottom p { font-size: .75rem; color: rgba(255,255,255,.4); }
.footer__bottom-links { display: flex; gap: 1.5rem; }
.footer__bottom-links a { font-size: .75rem; color: rgba(255,255,255,.4); transition: color .2s; }
.footer__bottom-links a:hover { color: rgba(255,255,255,.7); }

/* ── Services Page ────────────────────────────── */
.page-hero { padding: 8rem 0 4rem; background: #fff; text-align: center; }
.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900;
  letter-spacing: -.04em; margin-bottom: 1rem;
}
.page-hero p { font-size: 1.15rem; color: var(--gray); max-width: 560px; margin: 0 auto; }

.service-detail { padding: 4rem 0; }
.service-detail:nth-child(even) { background: var(--light-bg); }
.service-detail:nth-child(odd) { background: #fff; }
.service-detail__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: start;
}
.service-detail__icon {
  width: 52px; height: 52px; border-radius: var(--r-card);
  background: var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.service-detail__icon svg { width: 22px; height: 22px; stroke: var(--blue); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.service-detail h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800;
  letter-spacing: -.03em; margin-bottom: 1rem;
}
.service-detail__desc { font-size: .95rem; color: var(--gray); line-height: 1.7; margin-bottom: 1.5rem; }
.stack-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.stack-chip {
  padding: .25rem .75rem;
  font-family: var(--font-mono); font-size: .7rem; font-weight: 700;
  background: var(--light-bg); color: var(--gray);
  border: 1px solid var(--border); border-radius: var(--r-tag);
}
.service-detail__included h3,
.service-detail__deliverables h3 {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--gray); margin-bottom: 1rem;
}
.service-detail__included ul { list-style: none; display: flex; flex-direction: column; gap: .75rem; margin-bottom: 2rem; }
.service-detail__included li { display: flex; align-items: flex-start; gap: .75rem; font-size: .875rem; }
.service-detail__included li::before {
  content: '✓'; color: var(--blue); font-weight: 700;
  flex-shrink: 0; margin-top: 1px;
}
.service-detail__deliverables ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.service-detail__deliverables li { display: flex; align-items: center; gap: .5rem; font-size: .875rem; color: var(--gray); }
.service-detail__deliverables li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }

/* ── Contact Page ─────────────────────────────── */
.contact-page { min-height: 100svh; padding: 7rem 0 4rem; }
.contact-grid { display: grid; grid-template-columns: 2fr 3fr; gap: 3rem; align-items: start; }
.contact-info h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 1.5rem; }
.contact-info-items { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-info-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-info-item__icon {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: var(--r-card); background: var(--blue-light);
  color: var(--blue); display: flex; align-items: center; justify-content: center;
}
.contact-info-item__label {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--gray); margin-bottom: 2px;
}
.contact-info-item__value { font-size: .875rem; font-weight: 500; }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--gray);
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: .75rem 1rem;
  font-family: var(--font-mono); font-size: .8rem;
  color: var(--dark); background: #fff;
  border: 1.5px solid var(--border); border-radius: var(--r-btn);
  outline: none; transition: border-color .2s;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #9ca3af; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--blue); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-checkbox { display: flex; align-items: flex-start; gap: .75rem; }
.form-checkbox input { width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; accent-color: var(--blue); }
.form-checkbox label { font-size: .8rem; color: var(--gray); line-height: 1.5; }
.form-checkbox a { color: var(--blue); text-decoration: underline; }
.form-error { font-size: .8rem; color: #dc2626; }
.form-success {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 4rem 2rem; gap: 1rem;
}
.form-success__icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: #dcfce7; color: #16a34a;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
}
.form-success h3 { font-size: 1.5rem; font-weight: 700; }
.form-success p { color: var(--gray); }
.btn-submit {
  padding: 1rem; background: var(--dark); color: #fff;
  font-size: .9rem; font-weight: 600; border-radius: var(--r-btn);
  transition: background .2s; display: flex; align-items: center; justify-content: center; gap: .5rem;
}
.btn-submit:hover { background: #1a1a1a; }
.btn-submit:disabled { opacity: .5; cursor: not-allowed; }

/* PHP feedback banners */
.alert { padding: 1rem 1.25rem; border-radius: var(--r-btn); margin-bottom: 1.5rem; font-size: .875rem; font-weight: 500; }
.alert-success { background: #dcfce7; color: #166534; }
.alert-error { background: #fee2e2; color: #991b1b; }

/* ── Legal Page ───────────────────────────────── */
.legal-page { min-height: 100svh; padding: 7rem 0 4rem; }
.legal-content { max-width: 700px; }
.legal-content h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; letter-spacing: -.04em; margin-bottom: 3rem; }
.legal-content h2 { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: .75rem; }
.legal-content h3 { font-size: .95rem; font-weight: 700; color: var(--dark); margin-bottom: .5rem; }
.legal-content p { font-size: .875rem; color: var(--gray); line-height: 1.7; margin-bottom: 1rem; }
.legal-content a { color: var(--blue); text-decoration: underline; }
.legal-content section { margin-bottom: 2.5rem; }
.legal-content hr { border: none; border-top: 1.5px solid var(--border); margin: 2.5rem 0; }

/* ── 404 Page ─────────────────────────────────── */
.not-found {
  min-height: 100svh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 4rem 1.5rem;
}
.not-found h1 { font-size: 6rem; font-weight: 900; color: var(--blue); letter-spacing: -.04em; }
.not-found h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: .75rem; }
.not-found p { color: var(--gray); margin-bottom: 2rem; }

/* ── Responsive ───────────────────────────────── */
@media (min-width: 640px) {
  .tools-grid { grid-template-columns: repeat(4,1fr); }
  .stats__grid { grid-template-columns: repeat(4,1fr); }
}
@media (min-width: 1024px) {
  .tools-grid { grid-template-columns: repeat(6,1fr); }
}

@media (max-width: 1023px) {
  .navbar__links, .navbar__right { display: none; }
  .navbar__burger { display: flex; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .service-detail__grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 639px) {
  .hero__h1 { font-size: 2.4rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .cta-section { padding: 4rem 0; }
}
