:root {
  --ink: #0c2b30;
  --ink-2: #123c42;
  --ink-soft: #4d6b70;
  --paper: #fff6ea;
  --paper-tint: #ffe9cf;
  --white: #ffffff;
  --turquoise: #12a99c;
  --turquoise-deep: #0b7d74;
  --coral: #ff6b4a;
  --coral-deep: #e2502f;
  --whatsapp: #25d366;
  --whatsapp-dark: #1ebe5b;
  --radius: 18px;
  --shadow: 0 16px 40px rgba(12, 43, 48, 0.12);
  --shadow-dark: 0 20px 50px rgba(0, 0, 0, 0.35);
  --ease: cubic-bezier(.22,.68,0,1.02);
  font-size: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  margin: 0 0 0.5em;
  color: var(--ink);
  text-wrap: balance;
  font-weight: 600;
}

h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.12; font-weight: 500; }
h1 em {
  font-style: normal;
  color: inherit;
  display: inline-block;
  padding-bottom: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 10'%3E%3Cpath d='M0,6 Q10,0 20,6 T40,6' fill='none' stroke='%23ff6b4a' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: 0 100%;
  background-size: 34px 10px;
}
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); text-align: center; }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--ink-soft); max-width: 62ch; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--turquoise-deep);
  outline-offset: 3px;
}

.light { color: var(--paper); }
.light-soft { color: rgba(255, 246, 234, 0.72); margin-left: auto; margin-right: auto; }
.center { text-align: center; }

.eyebrow {
  font-family: 'Space Mono', 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--turquoise-deep);
  font-size: 0.72rem;
  margin: 0 0 10px;
}
.section-dark .eyebrow { color: var(--turquoise); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 246, 234, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(12, 43, 48, 0.08);
}

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

.brand {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.4rem;
}
.brand span { color: var(--turquoise-deep); font-style: italic; }

.nav {
  display: flex;
  gap: 28px;
}
.nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color .2s var(--ease);
}
.nav a:hover { color: var(--turquoise-deep); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.32);
}
.btn-whatsapp:hover { background: var(--whatsapp-dark); }

.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.btn-ghost-light {
  border-color: rgba(255,246,234,0.5);
  color: var(--paper);
  background: transparent;
}
.btn-ghost-light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.btn-small { padding: 9px 18px; font-size: 0.85rem; }
.btn-large { padding: 17px 34px; font-size: 1.05rem; }

.link-arrow {
  color: var(--turquoise-deep);
  font-weight: 700;
  display: inline-block;
  transition: transform .2s var(--ease);
}
.link-arrow:hover { transform: translateX(4px); }

/* Hero */
.hero {
  position: relative;
  padding: 76px 0 60px;
  background: var(--ink);
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 120%;
  background:
    radial-gradient(42% 55% at 18% 20%, rgba(18,169,156,0.38), transparent 70%),
    radial-gradient(38% 50% at 85% 8%, rgba(11,125,116,0.30), transparent 70%);
  filter: blur(10px);
  animation: drift 22s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes drift {
  0% { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(2%, 3%, 0) scale(1.06); }
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero h1, .hero .eyebrow, .hero .lead { color: var(--paper); }
.hero .eyebrow { color: var(--turquoise); }
.hero .lead { color: rgba(255,246,234,0.75); }

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 26px 0;
}
.hero-badges {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.76rem;
}
.hero-badges li {
  font-family: 'Space Mono', 'Courier New', monospace;
  background: rgba(255,246,234,0.08);
  border: 1px dashed rgba(255,246,234,0.35);
  padding: 7px 14px;
  border-radius: 6px;
  color: var(--paper);
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Intro sequence (hero load animation) */
.intro-in {
  opacity: 0;
  transform: translateY(18px);
  animation: intro-rise .8s var(--ease) forwards;
  animation-delay: calc(var(--d, 0) * 120ms + 120ms);
}
@keyframes intro-rise {
  to { opacity: 1; transform: translateY(0); }
}

/* Polaroid / phone mockup */
.polaroid {
  background: var(--white);
  padding: 16px 16px 26px;
  border-radius: 12px;
  box-shadow: var(--shadow-dark);
  max-width: 420px;
  margin: 0 auto;
  transform: rotate(-3deg);
  transition: transform .4s var(--ease);
}
.polaroid:hover { transform: rotate(0deg) translateY(-4px); }
.polaroid-lg { max-width: 460px; }
.polaroid-caption {
  font-family: 'Fraunces', serif;
  font-style: italic;
  text-align: center;
  color: var(--ink-soft);
  margin: 10px 0 0;
  font-size: 0.95rem;
}
.stamp-date {
  font-family: 'Space Mono', 'Courier New', monospace;
  font-style: normal;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.phone-frame {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background: var(--paper);
}
.phone-frame iframe, .phone-frame img, .phone-frame video {
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* Wave dividers */
.wave-divider {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 70px;
  color: var(--paper);
  line-height: 0;
}
.wave-divider svg { width: 100%; height: 100%; fill: currentColor; }
.wave-divider-up { bottom: auto; top: -1px; color: var(--paper); }
.wave-divider-ink { color: var(--ink); }

/* Sections */
.section { padding: 88px 0; position: relative; }
.section-tint { background: var(--paper-tint); }
.section-dark {
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.section-lead {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 44px;
}

.grid {
  display: grid;
  gap: 24px;
}
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(12,43,48,0.16); }
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(18,169,156,0.12);
  color: var(--turquoise-deep);
  margin-bottom: 14px;
}
.card-icon svg { width: 22px; height: 22px; }
.card-quiet {
  background: transparent;
  box-shadow: none;
  border: 2px dashed rgba(12,43,48,0.18);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Portfolio carousel */
.portfolio-carousel { position: relative; overflow: hidden; }
.portfolio-track {
  display: flex;
  transition: transform .6s var(--ease);
}
.portfolio-slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 56px;
  align-items: center;
  justify-items: center;
  padding: 0 4px;
}
.portfolio-info { max-width: 420px; }
.portfolio-info .eyebrow { color: var(--turquoise); }

.portfolio-tags {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.portfolio-tags li {
  font-family: 'Space Mono', 'Courier New', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: var(--paper);
  background: rgba(255,246,234,0.08);
  border: 1px dashed rgba(255,246,234,0.3);
  padding: 5px 11px;
  border-radius: 6px;
}

.portfolio-gallery {
  display: flex;
  gap: 12px;
  margin: 20px 0 4px;
}
.portfolio-gallery a {
  display: block;
  width: 84px;
  text-align: center;
}
.portfolio-gallery img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid rgba(255,246,234,0.25);
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.portfolio-gallery a:hover img {
  transform: translateY(-3px);
  border-color: var(--turquoise);
}
.portfolio-gallery span {
  display: block;
  margin-top: 6px;
  font-size: 0.7rem;
  color: rgba(255,246,234,0.6);
}

.portfolio-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}
.portfolio-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,246,234,0.3);
  background: transparent;
  color: var(--paper);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.portfolio-arrow:hover { background: rgba(255,246,234,0.1); transform: translateY(-2px); }
.portfolio-dots { display: flex; gap: 10px; }
.portfolio-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,246,234,0.25);
  cursor: pointer;
  padding: 0;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.portfolio-dot.is-active { background: var(--turquoise); transform: scale(1.2); }

@media (max-width: 900px) {
  .portfolio-slide { grid-template-columns: 1fr; }
}

/* Steps */
.steps .step { text-align: center; }
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--turquoise);
  color: #fff;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  margin-bottom: 14px;
}

/* Pricing */
.price-card {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible;
}
.price-card::before, .price-card::after {
  content: "";
  position: absolute;
  top: -15px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--paper-tint);
  box-shadow: inset 0 2px 4px rgba(12,43,48,0.18);
}
.price-card::before { left: -15px; }
.price-card::after { right: -15px; }
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  border-top: 3px dashed var(--turquoise-deep);
  opacity: 1;
  padding-top: 8px;
}
.price-card li {
  padding: 9px 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.price-card li:not(:first-child) { border-top: 1px solid rgba(12,43,48,0.08); }
.price {
  font-family: 'Fraunces', serif;
  font-size: 2.1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--turquoise-deep);
  margin-bottom: 18px;
}
.price span { font-size: 0.8rem; font-weight: 700; color: var(--ink-soft); font-family: 'Space Mono', 'Courier New', monospace; letter-spacing: 0.03em; }
.price-featured {
  border: 2px solid var(--coral);
  transform: scale(1.03);
}
.price-featured .price { color: var(--coral-deep); }
.price-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--coral);
  color: var(--ink);
  padding: 5px 16px;
  border-radius: 999px;
  font-family: 'Space Mono', 'Courier New', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0;
}
.pricing-note {
  text-align: center;
  font-style: italic;
  margin: 36px auto 0;
}

/* CTA */
.cta-section { text-align: center; }
.cta-inner p { max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-inner .btn { margin-top: 10px; }

/* Footer */
.site-footer {
  background: var(--ink-2);
  color: rgba(255,246,234,0.65);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
}
.footer-inner span { color: #3fc7ba; font-style: italic; }
.footer-legal {
  font-family: 'Space Mono', 'Courier New', monospace;
  letter-spacing: 0.03em;
  font-size: 0.78rem;
}
.footer-legal span { font-style: normal; color: inherit; }

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: var(--whatsapp);
  color: var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
  z-index: 60;
  animation: pulse 2.6s infinite;
  transition: transform .2s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.08); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .intro-in, .hero-glow, .polaroid, .whatsapp-float {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .portfolio-showcase { grid-template-columns: 1fr; }
  .price-featured { transform: none; }
}

@media (max-width: 640px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .header-inner.open .nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    padding: 18px 24px;
    gap: 18px;
    border-bottom: 1px solid rgba(12,43,48,0.1);
  }
  .header-inner.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .header-inner.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .header-inner.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .grid-4 { grid-template-columns: 1fr; }
  #nav-whatsapp { display: none; }
}
