/* =========================================================
   Assignment_Assist_desk — landing page styles
   Brand: navy + amber, geometric sans, rounded cards.
   Animations: transform/opacity only (GPU-cheap).
   ========================================================= */

:root {
  --navy-900: #0b1531;
  --navy-800: #0f1b3d;
  --navy-700: #16244f;
  --navy-600: #1b2a5c;
  --navy-500: #2a3f82;
  --navy-400: #3b52a0;
  --amber: #f5b83d;
  --amber-600: #e9a417;
  --amber-soft: rgba(245, 184, 61, .14);
  --ink: #ffffff;
  --muted: #b8c2e3;
  --muted-2: #8e9acb;
  --green: #22c55e;
  --card: rgba(27, 42, 92, .72);
  --card-border: rgba(91, 115, 201, .35);
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .55);
  --font-head: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--navy-800);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--amber); color: var(--navy-800); }

.container { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 2.5rem); }
.hl { color: var(--amber); }

/* ---------- Background ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(91, 115, 201, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 115, 201, .08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 80%);
}
.bg-glow {
  position: fixed; z-index: -1; pointer-events: none; border-radius: 50%;
  filter: blur(80px); opacity: .55; will-change: transform;
}
.bg-glow--1 { width: 520px; height: 520px; top: -160px; right: -140px; background: #4b5fa8; animation: drift 22s ease-in-out infinite alternate; }
.bg-glow--2 { width: 460px; height: 460px; bottom: -200px; left: -160px; background: #2a3f82; animation: drift 26s ease-in-out infinite alternate-reverse; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-60px, 80px) scale(1.1); }
  100% { transform: translate(40px, 30px) scale(.95); }
}

/* ---------- Buttons & pills ---------- */
.btn {
  --bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.4rem; border-radius: 999px; border: 0;
  font: 700 1rem/1 var(--font-head); letter-spacing: -.01em;
  background: var(--bg); color: inherit; cursor: pointer;
  transition: transform .25s var(--ease-bounce), box-shadow .25s, background-color .2s;
}
.btn--primary { --bg: var(--amber); color: var(--navy-800); box-shadow: 0 10px 30px -8px rgba(245, 184, 61, .55); }
.btn--primary:hover { transform: translateY(-3px) rotate(-1.5deg); box-shadow: 0 16px 36px -8px rgba(245, 184, 61, .7); }
.btn--primary:active { transform: translateY(0) scale(.97); }
.btn--ghost { border: 1.5px solid var(--card-border); background: rgba(255, 255, 255, .04); }
.btn--ghost:hover { border-color: var(--amber); transform: translateY(-3px); }
.btn--sm { padding: .6rem 1.05rem; font-size: .9rem; }
.btn--lg { padding: 1rem 1.7rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn__icon { width: 1.25rem; height: 1.25rem; }
.btn[disabled] { opacity: .6; cursor: progress; }
.arrow { display: inline-block; transition: transform .25s var(--ease-bounce); }
.btn:hover .arrow, .channel:hover .arrow { transform: translateX(5px); }

.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .45rem 1rem; border-radius: 999px;
  font: 600 .9rem/1.2 var(--font-body); color: var(--amber);
}
.pill--outline { border: 1.5px solid var(--amber); background: rgba(245, 184, 61, .06); }
.pill--sm { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; padding: .38rem .85rem; font-weight: 700; }
.pill__icon { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.badge-pass {
  display: inline-block; padding: .25rem .6rem; border-radius: 8px;
  background: #dcfce7; color: #15803d; font: 700 .72rem/1.2 var(--font-body); letter-spacing: .04em; white-space: nowrap;
}

/* ---------- Brand / logo ---------- */
.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand__logo { width: 42px; height: 42px; flex: none; }
.brand__name { font: 700 1.08rem/1 var(--font-head); letter-spacing: -.01em; }
.brand__name em { font-style: normal; color: var(--amber); }
.brand--sm .brand__logo { width: 36px; height: 36px; }
.logo-bg { fill: var(--navy-600); stroke: var(--navy-500); stroke-width: 3; }
.logo-a { fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.logo-check {
  fill: none; stroke: var(--amber); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 40; stroke-dashoffset: 40;
  animation: draw-check .7s .4s var(--ease-out) forwards;
}
.brand:hover .logo-check { animation: redraw-check .7s var(--ease-out); }
@keyframes draw-check { to { stroke-dashoffset: 0; } }
@keyframes redraw-check { 0% { stroke-dashoffset: 40; } 100% { stroke-dashoffset: 0; } }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  transition: background-color .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(11, 21, 49, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(91, 115, 201, .2);
  box-shadow: 0 10px 30px -20px rgba(0, 0, 0, .6);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav__links { display: flex; align-items: center; gap: 1.8rem; font-weight: 600; font-size: .95rem; }
.nav__links > a:not(.btn) { color: var(--muted); position: relative; transition: color .2s; }
.nav__links > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
  background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out);
}
.nav__links > a:not(.btn):hover { color: #fff; }
.nav__links > a:not(.btn):hover::after { transform: scaleX(1); }
.nav__toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav__toggle span { display: block; width: 24px; height: 2.5px; margin: 5px 0; background: #fff; border-radius: 2px; transition: transform .3s, opacity .2s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 3.5rem 0 0; position: relative; overflow-x: clip; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.hero__title { font-size: clamp(2.6rem, 6.4vw, 5rem); font-weight: 800; letter-spacing: -.035em; }
.hero__title .hl { display: block; }
.hero__sub { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 34rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero__ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .55rem; }
.hero__ticks li {
  padding: .4rem .85rem; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--muted);
  background: rgba(27, 42, 92, .6); border: 1px solid rgba(91, 115, 201, .25);
}
.hero__ticks li::before { content: "✓ "; color: var(--amber); font-weight: 800; }

/* Rotating word */
.rotator { display: grid; justify-items: start; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; } /* own line: title is always 3 lines, so nothing below jumps */
.rotator__word { grid-area: 1 / 1; white-space: nowrap; }
.rotator__word::after { content: ","; }
.rotator__word.is-in { animation: word-in .55s var(--ease-bounce) both; }
.rotator__word.is-out { animation: word-out .35s ease-in both; }
@keyframes word-in { from { transform: translateY(105%) rotate(4deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes word-out { to { transform: translateY(-105%) rotate(-4deg); opacity: 0; } }
.hero__title .hl { transform-origin: left bottom; }
.hero__title .hl.is-pop { animation: pop .6s var(--ease-bounce); }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.06) rotate(-2deg); } 100% { transform: scale(1); } }

/* Hero visual */
.hero__visual { position: relative; min-height: 440px; display: grid; place-items: center; }
.order-card {
  position: relative; z-index: 2; width: min(100%, 380px);
  padding: 1.5rem; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(36, 54, 115, .95), rgba(22, 36, 79, .95));
  border: 1px solid var(--card-border); box-shadow: var(--shadow);
  transform: rotate(-3deg);
  animation: bob 6s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(-2deg) translateY(-12px); } }
.order-card__head { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--muted-2); font-weight: 600; }
.order-card__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); animation: blink 1.6s ease-in-out infinite; }
.order-card__dot.is-done { background: var(--green); box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); animation: none; }
@keyframes blink { 50% { opacity: .35; } }
.order-card__status {
  margin-left: auto; padding: .2rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 700;
  background: var(--amber-soft); color: var(--amber); transition: background-color .3s, color .3s;
}
.order-card__status.is-done { background: rgba(34, 197, 94, .18); color: #4ade80; }
.order-card__title { font-size: 1.25rem; margin: .9rem 0 .25rem; }
.order-card__meta { font-size: .85rem; color: var(--muted-2); }
.progress { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); margin: 1.1rem 0 1rem; overflow: hidden; }
.progress__bar {
  height: 100%; width: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--amber-600), var(--amber));
  transform-origin: left; transform: scaleX(.05); transition: transform .9s var(--ease-out);
}
.order-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .88rem; color: var(--muted-2); }
.order-steps li { display: flex; align-items: center; gap: .6rem; transition: color .3s; }
.order-steps li::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  border: 2px solid rgba(255, 255, 255, .2); transition: background-color .3s, border-color .3s, transform .4s var(--ease-bounce);
}
.order-steps li.is-done { color: #fff; }
.order-steps li.is-done::before {
  background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f1b3d' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat;
  border-color: var(--amber); transform: scale(1.15);
}

.mini-report {
  position: absolute; z-index: 3; right: 0; bottom: 30px;
  display: flex; align-items: center; gap: .8rem;
  padding: .85rem 1rem; border-radius: 18px; background: #fff; color: #1f2a44; box-shadow: var(--shadow);
  font-size: .85rem; line-height: 1.25;
  transform: rotate(4deg);
  animation: bob2 7s ease-in-out infinite;
}
.mini-report strong { display: block; font-family: var(--font-head); }
.mini-report small { color: #6b7280; }
@keyframes bob2 { 0%, 100% { transform: rotate(4deg) translateY(0); } 50% { transform: rotate(2deg) translateY(10px); } }
.mini-report__ring {
  --p: 4; width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(#10b981 calc(var(--p) * 1%), #e5e7eb 0);
}
.mini-report__ring span {
  width: 36px; height: 36px; border-radius: 50%; background: #fff; display: grid; place-items: center;
  font: 800 .78rem/1 var(--font-head); color: #111827;
}

.float-chip {
  position: absolute; z-index: 4; display: grid; place-items: center;
  width: 58px; height: 58px; border-radius: 16px; font-size: 1.6rem;
  background: rgba(27, 42, 92, .85); border: 1.5px solid rgba(245, 184, 61, .45);
  box-shadow: var(--shadow);
  animation: float 5s ease-in-out infinite;
}
.float-chip--1 { top: 8%; left: 6%; --r: -10deg; animation-delay: -1s; }
.float-chip--2 { top: 2%; right: 12%; --r: 8deg; animation-duration: 6s; }
.float-chip--3 { bottom: 4%; left: 12%; --r: 12deg; animation-duration: 5.5s; animation-delay: -2s; }
.float-chip--4 { top: 46%; right: -2%; --r: -6deg; animation-duration: 6.5s; animation-delay: -3s; width: 50px; height: 50px; font-size: 1.35rem; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--r)); }
  50% { transform: translateY(-16px) rotate(calc(var(--r) * -1)); }
}

/* Marquee */
.marquee {
  margin-top: 4rem; padding: 1rem 0; overflow: hidden; white-space: nowrap;
  background: var(--amber); color: var(--navy-800);
  transform: rotate(-1.5deg) scale(1.02);
  font: 800 1.15rem/1 var(--font-head); letter-spacing: -.01em;
}
.marquee__track { display: inline-flex; gap: 1.6rem; animation: marquee 32s linear infinite; padding-right: 1.6rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section--tight { padding-block: 1rem 2rem; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 3rem; display: grid; gap: .9rem; justify-items: center; }
.section__head h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; }
.section__head p { color: var(--muted); font-size: 1.1rem; }
.handle { color: var(--amber); font-weight: 700; border-bottom: 2px solid rgba(245, 184, 61, .35); transition: border-color .2s; }
.handle:hover { border-color: var(--amber); }
.eyebrow { font: 700 .8rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); }

/* Services */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem; align-items: stretch; }
.service-card > .btn { margin-top: auto; }
.subjects { width: 100%; }
.subjects__title { display: block; font: 700 .78rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: .7rem; }
.subjects__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.subjects__list li {
  padding: .35rem .75rem; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--muted);
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(91, 115, 201, .3);
  transition: transform .3s var(--ease-bounce), color .2s, border-color .2s;
}
.subjects__list li:hover { transform: translateY(-3px) rotate(-3deg); color: var(--amber); border-color: var(--amber); }
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; width: 100%; }
.level {
  display: grid; justify-items: center; gap: .3rem; padding: 1rem .5rem; border-radius: var(--radius-sm); text-align: center;
  background: linear-gradient(160deg, rgba(245, 184, 61, .12), rgba(245, 184, 61, .02)); border: 1px dashed rgba(245, 184, 61, .4);
  font-weight: 700; font-size: .9rem;
}
.level b { font-size: 1.5rem; line-height: 1; transition: transform .4s var(--ease-bounce); }
.level:hover b { transform: translateY(-4px) scale(1.15) rotate(8deg); }
.service-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 1.2rem;
  padding: clamp(1.5rem, 3vw, 2.4rem); border-radius: 28px;
  background: var(--card); border: 1px solid var(--card-border); box-shadow: var(--shadow);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.service-card h3 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); font-weight: 800; }
.service-card > p { color: var(--muted); }
.tilt { transition: transform .5s var(--ease-out), border-color .3s; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.tilt:hover { border-color: rgba(245, 184, 61, .45); }

.tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; width: 100%; }
.tile {
  display: flex; align-items: center; gap: .8rem; padding: 1rem; border-radius: var(--radius-sm);
  background: rgba(15, 27, 61, .6); border: 1px solid var(--card-border);
  font: 700 1rem/1.2 var(--font-head); transition: transform .3s var(--ease-bounce), border-color .3s;
}
.tile:hover { transform: translateY(-4px) rotate(-1deg); border-color: var(--amber); }
.tile:hover .tile__icon { transform: rotate(-12deg) scale(1.12); }
.tile__icon {
  display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 11px; font-size: 1.25rem;
  background: rgba(255, 255, 255, .06); border: 1.5px solid rgba(245, 184, 61, .45);
  transition: transform .35s var(--ease-bounce);
}

/* Originality report mock */
.report { width: 100%; padding: 1.2rem 1.3rem; border-radius: 18px; background: #fff; color: #1f2a44; box-shadow: 0 16px 40px -18px rgba(0, 0, 0, .6); }
.report__head { display: flex; justify-content: space-between; align-items: center; font: 700 .78rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: #64748b; }
.report__rings { display: flex; justify-content: space-around; margin: 1rem 0 .6rem; }
.ring {
  --p: 0; --c: #10b981;
  position: relative; width: 104px; height: 104px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), #e5e7eb 0);
  font: 800 1.6rem/1 var(--font-head); color: #0f172a;
  margin-bottom: 1.6rem;
}
.ring::before { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: #fff; }
.ring > * { position: relative; }
.ring__pct { font-size: 1.1rem; }
.ring small { position: absolute; top: calc(100% + .45rem); left: 50%; transform: translateX(-50%); white-space: nowrap; font: 600 .85rem/1 var(--font-body); color: #475569; }
.report__rows { display: grid; gap: .55rem; }
.report__row { display: grid; grid-template-columns: 1fr auto; gap: .3rem; font-size: .85rem; color: #475569; }
.report__row b { color: #334155; font-weight: 600; }
.report__row i {
  grid-column: 1 / -1; height: 7px; border-radius: 99px; background: #eef0f6; position: relative; overflow: hidden;
}
.report__row i::after {
  content: ""; position: absolute; inset: 0; width: var(--w); border-radius: inherit;
  background: linear-gradient(90deg, #1b2a5c, var(--amber));
  transform: scaleX(0); transform-origin: left; transition: transform 1.1s .3s var(--ease-out);
}
.report.is-live .report__row i::after { transform: scaleX(1); }

.feature-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; width: 100%; }
.feature-list li {
  display: flex; align-items: center; gap: .6rem; padding: .8rem .95rem; border-radius: var(--radius-sm);
  background: rgba(15, 27, 61, .6); border: 1px solid var(--card-border); font-weight: 700; font-size: .95rem;
}
.powered { font-size: .9rem; color: var(--muted); display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.turnitin { display: inline-block; padding: .35rem .8rem; border-radius: 10px; background: #fff; color: #0f172a; font: 800 1rem/1.2 var(--font-head); }
.turnitin em { font-style: normal; color: var(--amber); }

/* Why us */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.why__item {
  padding: 1.6rem 1.4rem; border-radius: var(--radius);
  background: rgba(27, 42, 92, .45); border: 1px solid rgba(91, 115, 201, .22);
  transition: transform .35s var(--ease-bounce), background-color .3s;
}
.why__item:hover { transform: translateY(-6px); background: rgba(27, 42, 92, .75); }
.why__item:hover .why__emoji { animation: wiggle .6s ease-in-out; }
.why__emoji { display: inline-block; font-size: 2rem; margin-bottom: .7rem; }
.why__item h4 { font-size: 1.15rem; margin-bottom: .4rem; }
.why__item p { font-size: .95rem; color: var(--muted); }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg) scale(1.1); } 50% { transform: rotate(10deg); } 75% { transform: rotate(-6deg); } }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; counter-reset: s; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 34px; left: 12%; right: 12%; height: 2px;
  background: repeating-linear-gradient(90deg, rgba(245, 184, 61, .5) 0 10px, transparent 10px 20px);
}
.step { position: relative; text-align: center; padding: 0 1rem; }
.step__num {
  display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 1.2rem; border-radius: 20px;
  background: var(--amber); color: var(--navy-800); font: 800 1.7rem/1 var(--font-head);
  box-shadow: 0 0 0 8px var(--navy-800), 0 14px 30px -10px rgba(245, 184, 61, .6);
  transform: rotate(-6deg); transition: transform .4s var(--ease-bounce);
}
.step:nth-child(2) .step__num { transform: rotate(5deg); }
.step:hover .step__num { transform: rotate(0) scale(1.1); }
.step h4 { font-size: 1.3rem; margin-bottom: .5rem; }
.step p { color: var(--muted); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.gallery__item {
  display: block; border-radius: 20px; overflow: hidden; border: 1px solid var(--card-border); box-shadow: var(--shadow);
  transition: transform .45s var(--ease-bounce), box-shadow .3s;
}
.gallery__item:nth-child(1) { --rot: -2deg; }
.gallery__item:nth-child(2) { --rot: 1.5deg; }
.gallery__item:nth-child(3) { --rot: -1deg; }
.gallery__item:hover { transform: rotate(var(--rot)) scale(1.035); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); }
.gallery__item img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }

/* FAQ */
.faq { display: grid; gap: .9rem; }
.faq details {
  border-radius: 18px; background: rgba(27, 42, 92, .55); border: 1px solid rgba(91, 115, 201, .28);
  transition: border-color .3s, background-color .3s;
}
.faq details[open] { border-color: rgba(245, 184, 61, .5); background: rgba(27, 42, 92, .8); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.2rem 1.4rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font: 700 1.05rem/1.35 var(--font-head);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px;
  background: var(--amber-soft); color: var(--amber); font-size: 1.4rem; font-weight: 600;
  transition: transform .35s var(--ease-bounce);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { padding: 0 1.4rem 1.3rem; color: var(--muted); animation: faq-in .35s var(--ease-out); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }

/* Contact */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: 1.8rem; align-items: start; }
.contact__channels { display: grid; gap: 1rem; }
.channel {
  display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.3rem; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--card-border);
  transition: transform .35s var(--ease-bounce), border-color .3s;
}
.channel:hover { transform: translateY(-4px) rotate(-.6deg); border-color: var(--c); }
.channel:hover .channel__icon { transform: rotate(-10deg) scale(1.08); }
.channel__icon {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; flex: none;
  background: var(--c); color: #fff; transition: transform .35s var(--ease-bounce);
}
.channel__icon svg { width: 27px; height: 27px; }
.channel__text { display: grid; gap: .1rem; min-width: 0; }
.channel__text strong { font: 700 1.1rem/1.2 var(--font-head); }
.channel__text small { color: var(--muted); font-size: .92rem; overflow-wrap: anywhere; }
.channel .arrow { margin-left: auto; color: var(--muted); font-size: 1.3rem; }
.channel--wa { --c: #25d366; }
.channel--mail { --c: #f5b83d; }
.channel--mail .channel__icon { color: var(--navy-800); }
.channel--ig { --c: #e1306c; }
.channel--ig .channel__icon { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }

.form {
  display: grid; gap: 1rem; padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: 28px;
  background: var(--card); border: 1px solid var(--card-border); box-shadow: var(--shadow);
}
.form h3 { font-size: 1.5rem; margin-bottom: .2rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .4rem; font-size: .88rem; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border-radius: 12px;
  border: 1.5px solid rgba(91, 115, 201, .35); background: rgba(11, 21, 49, .6); color: #fff;
  font: 500 1rem/1.4 var(--font-body); transition: border-color .2s, box-shadow .2s;
  color-scheme: dark;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #6f7cae; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); }
.field .is-invalid { border-color: #f87171; animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__status { min-height: 1.4em; font-weight: 600; font-size: .95rem; text-align: center; }
.form__status.is-ok { color: #4ade80; }
.form__status.is-err { color: #f87171; }

/* Footer */
.footer { padding: 3rem 0 6rem; border-top: 1px solid rgba(91, 115, 201, .2); background: rgba(11, 21, 49, .6); }
.footer__inner { display: grid; justify-items: center; gap: 1rem; text-align: center; }
.footer__tag { color: var(--muted); }
.footer__social { display: flex; gap: .8rem; }
.footer__social a {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--card-border); transition: transform .3s var(--ease-bounce), color .2s, border-color .2s;
}
.footer__social a:hover { transform: translateY(-4px) rotate(-8deg); color: var(--amber); border-color: var(--amber); }
.footer__social svg { width: 22px; height: 22px; }
.footer__copy { color: var(--muted-2); font-size: .85rem; }

/* Floating WhatsApp button */
.fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .7);
  transition: transform .3s var(--ease-bounce);
  transform: scale(0);
}
.fab.is-visible { transform: scale(1); }
.fab::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1;
  animation: ping 2.4s cubic-bezier(0, 0, .2, 1) infinite;
}
.fab:hover { transform: scale(1.1) rotate(-10deg); }
.fab svg { width: 30px; height: 30px; }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(1.7); opacity: 0; } }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.tilt.reveal.is-in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero__visual { min-height: 400px; max-width: 480px; width: 100%; margin-inline: auto; }
  .services { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav__toggle { display: block; position: relative; z-index: 2; }
  .nav__links {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; justify-content: center; gap: 1.6rem;
    font-size: 1.3rem; background: rgba(11, 21, 49, .97);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; }
  .nav__links > a { transform: translateY(12px); transition: transform .4s var(--ease-bounce), color .2s; }
  .nav__links.is-open > a { transform: none; }
  .brand__name { font-size: .98rem; }
  .hero { padding-top: 1.5rem; }
  .steps { grid-template-columns: 1fr; gap: 2.4rem; }
  .steps::before { display: none; }
  .gallery { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .form__row { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 1rem; }
  .hero__title { font-size: clamp(2.1rem, 10vw, 2.6rem); }
  .why { grid-template-columns: 1fr; }
  .tile-grid, .feature-list { grid-template-columns: 1fr; }
  .hero__cta { width: 100%; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__visual { min-height: 380px; }
  .float-chip { width: 46px; height: 46px; font-size: 1.25rem; border-radius: 13px; }
  .mini-report { right: -4px; bottom: 6px; }
  .ring { width: 92px; height: 92px; font-size: 1.4rem; }
  .brand__logo { width: 38px; height: 38px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}
