/* ==========================================================================
   AGPixels landing page styles
   ========================================================================== */

:root {
  --brand: #6B5DF7;
  --brand-dark: #4F3FE0;
  --brand-light: #EFEDFF;
  --ink: #0F0E1A;
  --ink-2: #3B3A4A;
  --ink-3: #6B6A78;
  --line: #E6E5EE;
  --bg: #FFFFFF;
  --bg-alt: #FAFAFC;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(15, 14, 26, 0.04), 0 2px 6px rgba(15, 14, 26, 0.04);
  --shadow-md: 0 6px 16px rgba(15, 14, 26, 0.06), 0 12px 32px rgba(15, 14, 26, 0.06);
  --shadow-brand: 0 8px 24px rgba(107, 93, 247, 0.28);

  --container: 1120px;
  --gap: 24px;

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

* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.18rem; font-weight: 600; }
p  { margin: 0; }

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

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  cursor: pointer;
  border: 1.5px solid transparent;
  white-space: nowrap;
}

.btn-lg { padding: 14px 26px; font-size: 1rem; }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover {
  background: var(--brand-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  background: var(--bg-alt);
  color: var(--ink);
  border-color: var(--ink-3);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 28px; width: auto; }
.brand-logo-sm { height: 22px; }

.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  margin-right: 8px;
}
.nav a {
  color: var(--ink-2);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav a:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  width: 40px;
  height: 40px;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 4px auto;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* WhatsApp link in header */
.header-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f0fdf6;
  color: #128C7E;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1.5px solid #25D366;
  transition: background 0.15s ease, transform 0.15s ease;
}
.header-whatsapp:hover {
  background: #25D366;
  color: #fff;
  transform: translateY(-1px);
}
.header-whatsapp svg { width: 16px; height: 16px; }

/* Mobile nav */
@media (max-width: 760px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 0;
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav a {
    padding: 16px 24px;
    border-top: 1px solid var(--line);
    font-size: 1rem;
  }
  .nav-cta { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  /* Hide WhatsApp text label on mobile, keep just the icon */
  .header-whatsapp { padding: 8px 10px; }
  .header-whatsapp span { display: none; }
  body.nav-open .nav { max-height: 70vh; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: clamp(64px, 10vw, 120px) 0 clamp(64px, 9vw, 110px);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 80% at 80% 0%, rgba(107, 93, 247, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 70% at 0% 30%, rgba(107, 93, 247, 0.12), transparent 60%);
}
.hero-inner { max-width: 880px; }
.hero-title { margin-bottom: 22px; }
.accent { color: var(--brand); }
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-2);
  max-width: 640px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ==========================================================================
   Sections
   ========================================================================== */

.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-alt { background: var(--bg-alt); }

.section-header { max-width: 720px; margin-bottom: 48px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand);
  font-weight: 600;
  font-size: 0.78rem;
  margin-bottom: 12px;
}

/* ==========================================================================
   Service cards
   ========================================================================== */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--brand-light);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 24px; height: 24px; }

.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 0.97rem; }

/* ==========================================================================
   Process steps
   ========================================================================== */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.steps li { padding: 8px 4px 0; }

.step-num {
  display: inline-block;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--brand);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--ink-2); font-size: 0.97rem; }

/* ==========================================================================
   Portfolio grid
   ========================================================================== */

.portfolio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 980px) { .portfolio { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .portfolio { grid-template-columns: 1fr; } }

.project {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.project:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
  color: inherit;
}
.project:hover .project-link { color: var(--brand-dark); }
.project:hover .project-image img { transform: scale(1.04); }

.project-image {
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
  overflow: hidden;
}
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.project-meta { padding: 22px 24px 24px; }
.project-meta h3 { margin-bottom: 4px; }
.project-meta p { color: var(--ink-3); font-size: 0.93rem; margin-bottom: 14px; }
.project-link {
  color: var(--brand);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

/* ==========================================================================
   Contact section
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-intro h2 { margin-bottom: 14px; }
.contact-sub {
  color: var(--ink-2);
  font-size: 1.05rem;
  margin-bottom: 24px;
  max-width: 480px;
}
.contact-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.contact-points li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-2);
  font-size: 0.97rem;
}
.contact-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand-light);
  border: 2px solid var(--brand);
}

/* Form card */
.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.5vw, 36px);
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 16px;
}
.field { display: grid; gap: 6px; }
.field label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.97rem;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(107, 93, 247, 0.15);
}
.field textarea { resize: vertical; min-height: 110px; }

/* Honeypot — visually hidden, accessible */
.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-submit { width: 100%; margin-top: 4px; }
.form-submit[disabled] { opacity: 0.6; cursor: not-allowed; }

.form-status {
  font-size: 0.92rem;
  margin: 4px 0 0;
  min-height: 1.2em;
  color: var(--ink-2);
}
.form-status.ok    { color: #14a865; font-weight: 500; }
.form-status.error { color: #d92626; font-weight: 500; }

.form-fineprint {
  font-size: 0.82rem;
  color: var(--ink-3);
  margin: 2px 0 0;
  text-align: center;
}
.form-fineprint a { color: var(--ink-3); text-decoration: underline; }
.form-fineprint a:hover { color: var(--brand); }

/* ==========================================================================
   Legal pages (privacy, terms)
   ========================================================================== */

.legal {
  padding: clamp(48px, 7vw, 90px) 0;
}
.legal-container {
  max-width: 760px;
}
.legal h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: 8px;
}
.legal-effective {
  color: var(--ink-3);
  font-size: 0.92rem;
  margin-bottom: 32px;
}
.legal h2 {
  font-size: 1.3rem;
  margin: 32px 0 12px;
}
.legal p, .legal ul {
  color: var(--ink-2);
  margin-bottom: 14px;
}
.legal ul {
  padding-left: 24px;
}
.legal li {
  margin-bottom: 8px;
  line-height: 1.55;
}
.legal a { word-break: break-word; }

/* ==========================================================================
   404 not-found page
   ========================================================================== */

.not-found {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: clamp(48px, 8vw, 100px) 0;
  background:
    radial-gradient(ellipse 60% 60% at 50% 0%, rgba(107, 93, 247, 0.15), transparent 70%),
    var(--bg);
}
.not-found-inner {
  text-align: center;
  max-width: 580px;
}
.nf-code {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  margin: 0 0 8px;
  letter-spacing: -0.04em;
}
.nf-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 14px;
}
.nf-sub {
  color: var(--ink-2);
  font-size: 1.05rem;
  margin: 0 0 32px;
}
.nf-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  background: #fff;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--ink-3);
  font-size: 0.9rem;
}
.footer-tag { color: var(--ink-2); margin-right: auto; }
.footer-meta { color: var(--ink-3); }
.footer-links {
  display: flex;
  gap: 18px;
  align-items: center;
}
.footer-links a {
  color: var(--ink-3);
  font-size: 0.9rem;
  text-decoration: none;
}
.footer-links a:hover { color: var(--ink); }

@media (max-width: 600px) {
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-tag { margin-right: 0; }
  .footer-links { gap: 14px; }
}
