/* Azyntis: Apple-inspired design system */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --link: #0066cc;
  --grad-a: #0071e3;
  --grad-b: #8e44ec;
  --nav-bg: rgba(255, 255, 255, 0.72);
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.06);
  --radius: 22px;
  --max: 1080px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #101012;
    --surface: #1c1c1e;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --line: #38383d;
    --accent: #0a84ff;
    --accent-hover: #409cff;
    --link: #2997ff;
    --grad-a: #2997ff;
    --grad-b: #b37cff;
    --nav-bg: rgba(22, 22, 23, 0.72);
    --shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.1; letter-spacing: -0.025em; font-weight: 700; }
h3 { font-size: 1.3rem; letter-spacing: -0.015em; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 10px; }

/* Typography */
.display { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; }
.headline { font-size: clamp(2rem, 4.6vw, 3.2rem); letter-spacing: -0.035em; }
.lead { font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.45; max-width: 680px; }
.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow { font-size: 0.85rem; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-bottom: 0.8em; }
.gradient-text {
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tagline { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.6em; }

/* Buttons & links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff; border: 0; cursor: pointer;
  font: inherit; font-weight: 500; font-size: 1rem;
  padding: 12px 24px; border-radius: 980px;
  transition: background 0.2s, transform 0.2s;
}
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn-sm { padding: 6px 14px; font-size: 0.85rem; }
.btn-block { width: 100%; padding: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; color: var(--link); }
.link-arrow .icon { transition: transform 0.2s; }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover .icon { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-top: 32px; }
.actions.center { justify-content: center; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 1.15rem; color: var(--text); letter-spacing: -0.03em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 24px; height: 24px; border-radius: 7px; background: url("../img/favicon.197205cb812f.svg") center / cover; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { color: var(--text); font-size: 0.9rem; opacity: 0.8; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { opacity: 1; text-decoration: none; }
.nav-links a[aria-current="page"] { font-weight: 600; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 6px; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 56px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 22px 20px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 16px; padding: 12px; font-size: 1rem; }
}

/* Sections */
.hero { padding: clamp(80px, 14vw, 160px) 0 clamp(64px, 10vw, 120px); }
.hero-sm { padding: clamp(64px, 10vw, 120px) 0 clamp(40px, 6vw, 72px); }
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-tight { padding-top: 0; }
.alt { background: var(--bg-alt); }
.section-head { margin-bottom: 48px; }
.section-head:not(.center) { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.section-head .lead { margin-top: 12px; }

/* Grids & cards */
.grid-3, .grid-2 { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card {
  background: var(--surface); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
}
.alt .card { box-shadow: none; }
@media (prefers-color-scheme: dark) { .alt .card { box-shadow: var(--shadow); } }
.card-link { display: flex; flex-direction: column; color: var(--text); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card-link:hover { text-decoration: none; transform: translateY(-4px) scale(1.01); box-shadow: 0 20px 48px rgba(0, 0, 0, 0.1); }
.card-link .link-arrow { margin-top: auto; }
.card-icon {
  display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; margin-bottom: 22px;
  color: #fff; background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } }

.checklist { list-style: none; margin: 0; display: grid; gap: 18px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.checklist .icon { color: var(--accent); flex: none; margin-top: 2px; }
.price { margin: 8px 0 24px; color: var(--muted); }
.price strong { color: var(--text); font-size: 1.2rem; }

/* Chat demo */
.chat-demo {
  background: var(--surface); border-radius: 28px; padding: 28px 22px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px;
}
.alt .chat-demo { box-shadow: none; }
.bubble { max-width: 80%; padding: 10px 16px; border-radius: 20px; font-size: 0.97rem; line-height: 1.4; }
.bubble.in { align-self: flex-start; background: var(--bg-alt); border-bottom-left-radius: 6px; }
.bubble.out { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 6px; }
@media (prefers-color-scheme: dark) { .bubble.in { background: #2c2c2e; } }
.chat-caption { text-align: center; margin: 10px 0 0; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { padding: 8px 4px; }
.step-num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--line); font-weight: 600; margin-bottom: 18px;
}

/* Projects */
.project { display: flex; flex-direction: column; }
.project-thumb {
  aspect-ratio: 16 / 10; border-radius: 14px; margin-bottom: 22px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
}
.project-thumb span { font-size: 4rem; font-weight: 700; color: rgba(255, 255, 255, 0.9); letter-spacing: -0.05em; }
.project .eyebrow { margin-bottom: 0.4em; }
.result { font-weight: 600; margin-top: auto; }
.tags { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 0.78rem; padding: 4px 10px; border-radius: 980px; background: var(--bg-alt); color: var(--muted); }
.alt .tags li { background: var(--bg); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; text-align: center; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-value { font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 700; letter-spacing: -0.04em; }

/* FAQ */
.faq { margin-top: 40px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.5rem; line-height: 1; color: var(--muted); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; }

/* CTA */
.cta { background: var(--bg-alt); }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-side { display: grid; gap: 20px; }
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } .card { padding: 24px; } }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--bg-alt); border: 1px solid transparent; border-radius: 12px;
  padding: 12px 14px; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: var(--surface); border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent);
}
.has-error input, .has-error select, .has-error textarea { border-color: #e30000; }
.field-error { color: #e30000; font-size: 0.85rem; margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.mini-steps { padding-left: 20px; margin: 0; display: grid; gap: 8px; }

.messages { padding-top: 20px; }
.msg { padding: 12px 16px; border-radius: 12px; background: var(--bg-alt); }
.msg-error { background: color-mix(in srgb, #e30000 10%, var(--bg)); color: #c00000; }

/* Footer */
.footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 56px 0 24px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }
.footer h4 { font-size: 0.8rem; font-weight: 600; margin-bottom: 12px; }
.footer-grid a:not(.brand) { display: block; color: var(--muted); margin-bottom: 8px; }
.footer-grid a:not(.brand):hover { color: var(--text); }
.footer .brand { margin-bottom: 12px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--line); margin-top: 40px; padding-top: 20px; }
.footer-bottom p { margin: 0; }

/* WhatsApp float */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.07); }

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card-link, .btn, .wa-float { transition: none; }
}
