:root {
  --ink: #13202b;
  --ink-soft: #3a4a56;
  --paper: #eef2ef;
  --paper-deep: #dfe7e2;
  --forest: #1f6b57;
  --forest-deep: #145244;
  --sand: #c4a574;
  --line: rgba(19, 32, 43, 0.12);
  --radius: 14px;
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Sora", "Segoe UI", sans-serif;
  --shadow-soft: 0 24px 60px rgba(19, 32, 43, 0.18);
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.dynaweb-body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(31, 107, 87, 0.12), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(196, 165, 116, 0.16), transparent 50%),
    linear-gradient(180deg, #f5f7f5 0%, var(--paper) 40%, #e8eee9 100%);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.shell {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(238, 242, 239, 0.82);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.nav a:hover {
  color: var(--ink);
}

.nav-cta {
  color: #fff !important;
  background: var(--forest);
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
}

.nav-cta:hover {
  background: var(--forest-deep);
}

.nav-toggle {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  display: grid;
  place-content: center;
  gap: 6px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
}

.mobile-nav {
  display: grid;
  gap: 0.75rem;
  padding: 0 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

.mobile-nav a {
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
}

.mobile-nav[hidden] {
  display: none;
}

@media (min-width: 860px) {
  .nav {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
  .mobile-nav {
    display: none !important;
  }
}

/* Hero — one composition, brand first, full-bleed visual plane */
.hero {
  position: relative;
  min-height: min(100vh, 920px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(120deg, rgba(19, 32, 43, 0.72) 0%, rgba(19, 32, 43, 0.35) 45%, rgba(31, 107, 87, 0.45) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cpath fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='1' d='M0 80h160M80 0v160'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 70% 40%, #2a6f5c 0%, #13202b 55%, #0c151c 100%);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(19, 32, 43, 0.75) 100%);
}

.phone {
  position: absolute;
  width: min(42vw, 220px);
  aspect-ratio: 9 / 19;
  border-radius: 28px;
  padding: 10px;
  background: linear-gradient(160deg, #1c2a35, #0d141a);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.phone-a {
  right: 14%;
  bottom: 18%;
  transform: rotate(-8deg);
}

.phone-b {
  right: 4%;
  bottom: 8%;
  transform: rotate(7deg);
  width: min(36vw, 180px);
  opacity: 0.95;
}

.phone-screen {
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(180deg, #f4f7f5, #d9e5df);
  display: grid;
  place-content: center;
  gap: 0.65rem;
  text-align: center;
  padding: 1rem;
  color: var(--ink);
}

.phone-screen img {
  margin-inline: auto;
  border-radius: 18px;
}

.phone-screen-alt {
  background: linear-gradient(165deg, #1f6b57, #0f3d33);
  color: #f2f7f4;
}

.phone-app {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.phone-meta,
.phone-kicker {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.8;
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 6rem 0 4.5rem;
  color: #f4f7f5;
  max-width: 38rem;
  margin-left: max(1rem, calc((100% - var(--max)) / 2));
  margin-right: auto;
  width: min(100% - 2rem, 38rem);
}

.brand-mark {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.hero-title {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: rgba(244, 247, 245, 0.92);
}

.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 32rem;
  color: rgba(244, 247, 245, 0.78);
  font-size: 1.05rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: #f4f7f5;
  color: var(--ink);
}

.btn-primary:hover {
  background: #fff;
}

.btn-ghost {
  border-color: rgba(244, 247, 245, 0.35);
  color: #f4f7f5;
  background: transparent;
}

.btn-ghost:hover {
  border-color: #f4f7f5;
}

.contact-section .btn-ghost {
  color: var(--ink);
  border-color: var(--line);
}

.contact-section .btn-primary {
  background: var(--forest);
  color: #fff;
}

.contact-section .btn-primary:hover {
  background: var(--forest-deep);
}

@media (max-width: 720px) {
  .phone-a {
    right: -2%;
    bottom: 28%;
    width: 38vw;
  }
  .phone-b {
    right: 18%;
    bottom: 12%;
    width: 32vw;
  }
  .hero-copy {
    padding-top: 5rem;
    padding-bottom: 3.5rem;
  }
}

/* Sections */
.section {
  padding: 5.5rem 0;
}

.section-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.section-lead {
  margin: 0 0 2.5rem;
  max-width: 36rem;
  color: var(--ink-soft);
}

.stack-section {
  background: rgba(255, 255, 255, 0.35);
  border-block: 1px solid var(--line);
}

.stack-split {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .stack-split {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

.stack-block h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
}

.stack-block p {
  margin: 0;
  color: var(--ink-soft);
}

.stack-block + .stack-block {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

@media (min-width: 800px) {
  .stack-block + .stack-block {
    border-top: 0;
    border-left: 1px solid var(--line);
    padding-top: 0;
    padding-left: 2.5rem;
  }
}

/* Work */
.work-feature {
  display: grid;
  gap: 1.75rem;
  align-items: center;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.work-feature:last-child {
  border-bottom: 1px solid var(--line);
}

@media (min-width: 860px) {
  .work-feature {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
    padding: 2.75rem 0;
  }
  .work-feature-flip .work-visual {
    order: 2;
  }
}

.work-visual {
  min-height: 240px;
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(31, 107, 87, 0.18), rgba(196, 165, 116, 0.2)),
    var(--paper-deep);
  display: grid;
  place-items: center;
}

.work-visual img {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.work-visual-fidelizi {
  background:
    radial-gradient(circle at 50% 45%, rgba(244, 247, 245, 0.9) 0 18%, transparent 19%),
    linear-gradient(145deg, #1f6b57, #13202b);
}

.qr-mark {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  background:
    linear-gradient(#f4f7f5 0 0) 0 0 / 30% 30%,
    linear-gradient(#f4f7f5 0 0) 100% 0 / 30% 30%,
    linear-gradient(#f4f7f5 0 0) 0 100% / 30% 30%,
    linear-gradient(#f4f7f5 0 0) 100% 100% / 30% 30%,
    repeating-linear-gradient(90deg, #f4f7f5 0 8px, transparent 8px 16px),
    repeating-linear-gradient(#f4f7f5 0 8px, transparent 8px 16px);
  background-repeat: no-repeat;
  opacity: 0.92;
}

.work-platforms {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest);
  font-weight: 600;
}

.work-body h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.85rem;
}

.work-body p {
  margin: 0 0 1.1rem;
  color: var(--ink-soft);
}

.work-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.9rem;
  color: var(--ink);
}

.work-tags li::before {
  content: "";
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: var(--sand);
  vertical-align: 0.15em;
}

/* Approach */
.approach-section {
  background: rgba(255, 255, 255, 0.4);
  border-block: 1px solid var(--line);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 860px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.steps li {
  display: grid;
  gap: 0.75rem;
}

.step-num {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--forest);
  font-weight: 700;
}

.steps h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}

.steps p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* Contact */
.contact-panel {
  padding: 2.5rem 0 1rem;
}

.contact-meta {
  margin: 1.5rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2rem;
  background: #e6ebe7;
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-brand {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
}

.footer-note,
.footer-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.footer-label {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.footer-grid a {
  display: block;
  margin-top: 0.35rem;
  text-decoration: none;
  color: var(--ink-soft);
}

.footer-grid a:hover {
  color: var(--ink);
}

.footer-copy {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

/* Simple pages */
.page-simple {
  padding: 4rem 0 5rem;
}

.page-article h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0 0 1.5rem;
}

.page-content {
  color: var(--ink-soft);
  max-width: 42rem;
}

/* Motion */
.reveal,
.reveal-phone {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s ease forwards;
}

.reveal-phone {
  animation-name: rise-phone;
  animation-duration: 1.1s;
}

.delay {
  animation-delay: 0.18s;
}
.delay-1 {
  animation-delay: 0.12s;
}
.delay-2 {
  animation-delay: 0.24s;
}
.delay-3 {
  animation-delay: 0.36s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes rise-phone {
  to {
    opacity: 1;
    transform: rotate(var(--phone-rot, -8deg)) translateY(0);
  }
}

.phone-a {
  --phone-rot: -8deg;
}
.phone-b {
  --phone-rot: 7deg;
}

.phone-b.reveal-phone {
  animation-name: rise-phone-b;
}

@keyframes rise-phone-b {
  from {
    opacity: 0;
    transform: rotate(7deg) translateY(22px);
  }
  to {
    opacity: 0.95;
    transform: rotate(7deg) translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-phone,
  .phone-b.reveal-phone {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .phone-a {
    transform: rotate(-8deg);
  }
  .phone-b {
    transform: rotate(7deg);
  }
  html {
    scroll-behavior: auto;
  }
}
