/* =========================================================
   AmisysX — light theme
   ========================================================= */

:root {
  --primary: #1E7FE0;
  --primary-dark: #1466B8;
  --accent: #14B8D4;
  --grad: linear-gradient(120deg, var(--primary) 0%, var(--accent) 100%);
  --ink: #0B1B33;
  --body: #4A5A70;
  --muted: #7A889C;
  --bg: #F7FAFE;
  --tint: #EEF5FD;
  --card: #FFFFFF;
  --line: #E3ECF6;
  --navy: #0A2540;
  --radius: 18px;
  --shadow-sm: 0 2px 8px rgba(16, 52, 96, .06);
  --shadow: 0 12px 32px -12px rgba(16, 52, 96, .18);
  --shadow-lg: 0 24px 60px -20px rgba(16, 52, 96, .28);
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
.hidden { display: none !important; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.icon {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.text-grad {
  display: block;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
h2 .text-grad { display: inline; }

.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 18px;
}
.eyebrow span { color: var(--accent); margin: 0 .5em; letter-spacing: 0; }
.eyebrow--center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font: inherit; font-weight: 600; font-size: .95rem;
  padding: .85em 1.5em; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s, border-color .3s;
  will-change: transform;
}
.btn .icon { transition: transform .3s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(30, 127, 224, .7); }
.btn--primary:hover { box-shadow: 0 16px 32px -12px rgba(30, 127, 224, .8); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn--whatsapp { background: #25D366; color: #fff; box-shadow: 0 10px 24px -10px rgba(37, 211, 102, .7); }
.btn--sm { padding: .65em 1.25em; font-size: .9rem; }
.btn--lg { padding: 1em 1.8em; font-size: 1rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .7; cursor: wait; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding: 14px 0;
  transition: background .3s, box-shadow .3s, padding .3s;
}
.header.is-scrolled {
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
  padding: 8px 0;
}
.header__inner { display: flex; align-items: center; gap: 32px; }

.logo { display: flex; align-items: center; gap: 10px; }
.logo__mark { width: 44px; height: 44px; transition: transform .5s var(--ease); }
.logo:hover .logo__mark { transform: rotate(-8deg) scale(1.06); }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__text strong { font-size: 1.45rem; font-weight: 800; color: var(--ink); letter-spacing: .01em; }
.logo__text em { font-style: normal; color: var(--primary); }
.logo__text small { font-size: .62rem; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }

.nav { display: flex; gap: 6px; margin-left: auto; }
.nav__link {
  position: relative; padding: 8px 14px; font-weight: 500; font-size: .95rem; color: var(--ink);
  transition: color .25s;
}
.nav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--primary); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link--mobile { display: none; }

.header__cta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.header__phone { display: flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--ink); }
.header__phone .icon { color: var(--primary); width: 14px; height: 14px; }
.header.is-scrolled .header__phone { display: none; }

.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); cursor: pointer; padding: 12px 11px; flex-direction: column; justify-content: space-between; }
.burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
.burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 0 40px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(30, 127, 224, .16) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 20%, transparent 75%);
}
.hero__glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.hero__glow--a { width: 520px; height: 520px; background: #CDE6FF; top: -120px; right: -80px; }
.hero__glow--b { width: 380px; height: 380px; background: #CFF4F8; bottom: 40px; left: -140px; }

.hero__inner { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 40px; }
.hero__title { font-size: clamp(2.3rem, 4.6vw, 3.75rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: 22px; }
.hero__lead { font-size: 1.12rem; max-width: 500px; color: var(--body); margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Illustration */
.hero__art { position: relative; aspect-ratio: 1 / .86; width: 100%; }
.hero__art > * { position: absolute; transition: transform .6s var(--ease); }
.art-blob {
  inset: 4% 4% 12% 10%; border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
  background: linear-gradient(150deg, #DDEEFF 0%, #D2F4F8 100%);
  animation: morph 14s ease-in-out infinite;
}
.art-ring { width: 46%; aspect-ratio: 1; right: -4%; top: -2%; border-radius: 50%; border: 2px dashed rgba(30, 127, 224, .25); animation: spin 40s linear infinite; }
.art-desk { left: 6%; right: 0; bottom: 14%; height: 12px; border-radius: 8px; background: linear-gradient(#fff, #EAF1F9); box-shadow: 0 12px 30px -10px rgba(16, 52, 96, .25); }

.art-laptop { left: 26%; bottom: calc(14% + 12px); width: 54%; }
.art-laptop__screen {
  aspect-ratio: 16 / 10.4; background: #1A2B45; border-radius: 12px 12px 0 0; padding: 4.5%;
  border: 3px solid #C9D4E2; border-bottom: 0;
}
.art-laptop__base { height: 12px; margin: 0 -8%; background: linear-gradient(#DCE4EE, #B9C6D6); border-radius: 0 0 14px 14px; }

.mini-ui { display: flex; height: 100%; gap: 6%; background: #F4F8FD; border-radius: 6px; padding: 5%; }
.mini-ui__side { width: 16%; display: flex; flex-direction: column; gap: 9%; align-items: center; }
.mini-ui__logo { width: 70%; aspect-ratio: 1; height: auto; }
.mini-ui__side i { width: 80%; height: 5px; border-radius: 4px; background: #D5E2F1; }
.mini-ui__main { flex: 1; display: flex; flex-direction: column; gap: 8%; }
.mini-ui__top { display: flex; gap: 6%; }
.mini-ui__top b { flex: 1; height: 16px; border-radius: 5px; background: #fff; box-shadow: var(--shadow-sm); }
.mini-ui__top b:first-child { background: var(--grad); }
.mini-ui__chart { flex: 1; display: flex; align-items: flex-end; gap: 6%; padding: 6% 4% 0; background: #fff; border-radius: 6px; }
.mini-ui__chart span { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: var(--grad); transform-origin: bottom; animation: grow 2.4s var(--ease) both; }
.mini-ui__chart span:nth-child(2n) { background: #BFDCF7; animation-delay: .15s; }
.mini-ui__rows { display: flex; flex-direction: column; gap: 5px; }
.mini-ui__rows i { height: 5px; border-radius: 4px; background: #D5E2F1; }
.mini-ui__rows i:last-child { width: 60%; }

.art-code {
  left: 4%; top: 12%; width: 36%;
  background: #12223A; border-radius: 12px; box-shadow: var(--shadow-lg); overflow: hidden;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: clamp(.55rem, 1vw, .75rem);
}
.art-code__bar { display: flex; gap: 5px; padding: 8px 10px; background: #0D1A2E; }
.art-code__bar i { width: 8px; height: 8px; border-radius: 50%; background: #FF6B6B; }
.art-code__bar i:nth-child(2) { background: #FFC94D; }
.art-code__bar i:nth-child(3) { background: #3DDC97; }
.art-code__body { padding: 10px 12px 12px; color: #C7D6EA; line-height: 1.8; }
.art-code__body .c1 { color: #7FB8FF; } .art-code__body .c2 { color: #FFFFFF; }
.art-code__body .c3 { color: #5EE0E6; } .art-code__body .c4 { color: #FFC94D; }
.art-code__tag { text-align: right; color: var(--accent); font-weight: 700; font-size: 1.3em; }

.art-chip {
  right: 2%; top: 8%; display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow);
  font-size: clamp(.6rem, 1vw, .78rem); font-weight: 600; color: var(--ink); line-height: 1.3;
}
.art-chip__icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); color: #fff; }

.art-books { left: 8%; bottom: calc(14% + 12px); width: 26%; display: flex; flex-direction: column-reverse; }
.art-books span {
  display: block; padding: 5px 8px; font-size: clamp(.5rem, .9vw, .68rem); font-weight: 600; color: #fff;
  border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: #1F4E79; box-shadow: inset -6px 0 0 rgba(255, 255, 255, .15);
}
.art-books span:nth-child(2) { background: #2B3F5C; margin-left: 6%; }
.art-books span:nth-child(3) { background: #1E7FE0; margin-left: -3%; margin-right: 6%; }

.art-mug {
  right: 12%; bottom: calc(14% + 12px); width: 10%; aspect-ratio: 1 / 1.05;
  background: #fff; border-radius: 4px 4px 10px 10px; box-shadow: var(--shadow-sm);
  display: grid; place-items: center;
}
.art-mug::after { content: ""; position: absolute; right: -32%; top: 22%; width: 38%; height: 45%; border: 4px solid #D5E2F1; border-left: 0; border-radius: 0 40% 40% 0; }
.art-mug svg { width: 60%; height: 60%; }
.art-plant { right: -1%; bottom: calc(14% + 8px); width: 13%; }

.art-badge {
  left: 30%; bottom: 0; display: flex; align-items: center; gap: 8px;
  background: #fff; padding: 8px 14px; border-radius: 999px; box-shadow: var(--shadow);
  font-size: clamp(.6rem, 1vw, .8rem); font-weight: 600; color: var(--ink);
}
.art-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #22C08A; box-shadow: 0 0 0 0 rgba(34, 192, 138, .6); animation: pulse 2s infinite; }

.float-a { animation: float 6s ease-in-out infinite; }
.float-b { animation: float 7s ease-in-out -2s infinite; }
.float-c { animation: float 5.5s ease-in-out -1s infinite; }

/* Stats strip */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 40px; padding: 26px 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
}
.stat { display: flex; align-items: center; gap: 16px; padding: 4px 24px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat__icon {
  width: 54px; height: 54px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--tint); color: var(--primary); font-size: 1.3rem;
  transition: transform .4s var(--ease), background .3s, color .3s;
}
.stat:hover .stat__icon { transform: translateY(-4px) rotate(-6deg); background: var(--grad); color: #fff; }
.stat strong { display: block; font-size: 1.45rem; font-weight: 800; color: var(--ink); line-height: 1.2; }
.stat small { font-size: .85rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.section--tight { padding: 40px 0; }
.section--tint { background: linear-gradient(180deg, var(--bg) 0%, var(--tint) 18%, var(--tint) 82%, var(--bg) 100%); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2, .about__copy h2, .contact__info h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 800; margin-bottom: 18px; }
.section-head h2 .text-grad { display: block; }
.section-head p { font-size: 1.05rem; }

/* Card base with cursor spotlight */
.card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden; isolation: isolate;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(30, 127, 224, .10), transparent 60%);
}
.card:hover { box-shadow: var(--shadow-lg); border-color: #CFE2F7; }
.card:hover::before { opacity: 1; }

/* Services */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 28px 26px 58px; transform-style: preserve-3d; }
.service__icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  color: #fff; font-size: 1.45rem; background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 10px 20px -10px var(--c1); transition: transform .45s var(--ease);
}
.service:hover .service__icon { transform: translateY(-3px) scale(1.06) rotate(-6deg); }
.service h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; }
.service p { font-size: .92rem; }
.service__go {
  position: absolute; right: 20px; bottom: 18px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--tint); color: var(--primary);
  transition: background .3s, color .3s, transform .4s var(--ease);
}
.service:hover .service__go { background: var(--grad); color: #fff; transform: translateX(4px); }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about__copy > p { margin-bottom: 24px; }
.video-card { position: relative; display: block; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 16 / 10; background: var(--navy); }
.video-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.video-card:hover img { transform: scale(1.05); }
.video-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(10, 37, 64, .75)); }
.video-card__play {
  position: absolute; z-index: 1; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px;
  border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--primary);
  box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); animation: pulse-white 2.2s infinite;
}
.video-card__play svg { width: 30px; height: 30px; fill: currentColor; margin-left: 4px; }
.video-card__label { position: absolute; z-index: 1; left: 24px; bottom: 20px; color: #fff; font-weight: 600; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.pillar { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; font-size: .8rem; transition: transform .4s var(--ease), box-shadow .4s; }
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pillar strong { display: block; color: var(--ink); font-size: .88rem; margin-bottom: 4px; }

.checks { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.checks li { position: relative; padding-left: 32px; font-weight: 500; color: var(--ink); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E7FE0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Team */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: 28px; }
.member { padding: 40px 32px 32px; text-align: center; transform-style: preserve-3d; }
.member__avatar {
  position: relative; width: 116px; height: 116px; margin: 0 auto 18px; border-radius: 50%; padding: 4px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 16px 34px -14px var(--c1);
  transition: transform .5s var(--ease);
}
.member__avatar::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px dashed rgba(30, 127, 224, .25); animation: spin 30s linear infinite; }
.member__avatar span {
  width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--c1); font-size: 2rem; font-weight: 800; letter-spacing: .02em;
}
.member:hover .member__avatar { transform: translateY(-4px) scale(1.04); }
.member__role { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: var(--grad); padding: 5px 14px; border-radius: 999px; margin-bottom: 12px; }
.member h3 { font-size: 1.35rem; margin-bottom: 6px; }
.member__title { font-weight: 600; color: var(--primary); font-size: .95rem; margin-bottom: 14px; }
.member p:not(.member__title) { font-size: .93rem; }
.member__skills { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.member__skills li { font-size: .8rem; font-weight: 600; color: var(--ink); background: var(--tint); padding: 5px 12px; border-radius: 999px; }

/* Projects */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.project:hover { transform: translateY(-8px); }
.project { display: flex; flex-direction: column; }
.project__shot {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  aspect-ratio: 3 / 2; overflow: hidden; background: var(--tint); border-bottom: 1px solid var(--line);
}
.project__shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project:hover .project__shot img { transform: scale(1.06); }
.project__zoom {
  position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--primary); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(8px) scale(.9); transition: opacity .35s, transform .35s var(--ease);
}
.project:hover .project__zoom, .project__shot:focus-visible .project__zoom { opacity: 1; transform: none; }
.project__body { padding: 24px 24px 22px; display: flex; flex-direction: column; flex: 1; }
.project__body > .tag { align-self: flex-start; }
.project__tagline { font-weight: 600; color: var(--primary); font-size: .9rem !important; margin-bottom: 8px !important; }
.project__features { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.project__features li { font-size: .76rem; font-weight: 600; color: var(--ink); background: var(--bg); border: 1px solid var(--line); padding: 4px 10px; border-radius: 8px; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); background: var(--tint); padding: 5px 10px; border-radius: 999px; margin-bottom: 12px; }
.project h3 { font-size: 1.15rem; margin-bottom: 10px; }
.project p { font-size: .92rem; margin-bottom: 18px; }
.project__meta { margin-top: auto; display: flex; gap: 10px; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.project__meta b { color: var(--ink); font-weight: 600; margin-left: 4px; }
.status { font-weight: 600; font-size: .78rem; padding: 4px 10px; border-radius: 999px; background: #E9F0FA; color: var(--primary); }
.status--live { background: #E5F8EF; color: #13995F; }
.status--dev { background: #FFF4E0; color: #B26A00; }
.status { white-space: nowrap; }

/* Image lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(10, 37, 64, .82); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .3s; cursor: zoom-out; }
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: min(1200px, 100%); max-height: 88vh; border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .4); transform: scale(.94); transition: transform .4s var(--ease); }
.lightbox.is-open img { transform: none; }
.lightbox__close { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer; }

/* Pricing */
.toggle { display: inline-flex; gap: 4px; padding: 5px; margin-top: 28px; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm); }
.toggle__btn { font: inherit; font-weight: 600; font-size: .9rem; border: 0; padding: .6em 1.3em; border-radius: 999px; background: transparent; color: var(--body); cursor: pointer; transition: background .3s, color .3s; }
.toggle__btn.is-active { background: var(--grad); color: #fff; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 30px 24px 26px; }
.plan:hover { transform: translateY(-8px); }
.plan h3 { font-size: 1.2rem; margin-bottom: 8px; }
.plan__desc { font-size: .88rem; min-height: 3.2em; margin-bottom: 18px; }
.plan__price { font-size: 1.5rem; font-weight: 800; color: var(--ink); padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); letter-spacing: -.02em; }
.price-bd { display: none; }
.plan__list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; font-size: .9rem; flex: 1; }
.plan__list li { position: relative; padding-left: 26px; }
.plan__list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E7FE0' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 9px no-repeat;
}
.plan--featured { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; box-shadow: var(--shadow-lg); }
.plan__badge { position: absolute; top: 18px; right: 18px; font-size: .7rem; font-weight: 700; color: #fff; background: var(--grad); padding: 4px 10px; border-radius: 999px; }

/* CTA band */
.cta {
  position: relative; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 30px;
  padding: 40px 56px; border-radius: 26px; overflow: hidden;
  background: linear-gradient(110deg, #E7F2FE 0%, #DDF5F9 100%); border: 1px solid #D4E7F8;
}
.cta::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.cta__art { position: relative; height: 200px; }
.cta__plant { position: absolute; left: 0; bottom: 0; width: 70px; }
.cta__laptop { position: absolute; left: 60px; right: 0; bottom: 0; max-width: 340px; animation: float 7s ease-in-out infinite; }
.cta__screen { aspect-ratio: 16 / 9.5; background: #fff; border: 6px solid #1A2B45; border-bottom-width: 8px; border-radius: 12px 12px 0 0; padding: 16px; position: relative; overflow: hidden; }
.cta__screen svg { width: 30px; height: 30px; }
.cta__screen span { display: block; font-size: .78rem; font-weight: 700; color: var(--ink); margin-top: 8px; line-height: 1.3; }
.cta__screen i { position: absolute; right: -20px; bottom: -20px; width: 110px; height: 110px; border-radius: 40%; background: var(--grad); opacity: .9; transform: rotate(20deg); }
.cta__base { height: 10px; margin: 0 -7%; background: linear-gradient(#DCE4EE, #B9C6D6); border-radius: 0 0 12px 12px; }
.cta__copy { position: relative; z-index: 1; }
.cta__copy h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 800; margin-bottom: 10px; }
.cta__copy p { margin-bottom: 22px; }
.pill {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px; border-radius: 999px;
  background: #fff; border: 1.5px solid #BFD9F3; color: var(--ink); font-weight: 600; font-size: .95rem;
  transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.pill .icon { color: var(--primary); }
.pill .icon:last-child { transition: transform .3s var(--ease); }
.pill:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.pill:hover .icon:last-child { transform: translateX(4px); }

/* Contact */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.contact__info > p { margin-bottom: 28px; }
.info-list { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 14px; }
.info-list li { display: flex; align-items: center; gap: 16px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; transition: transform .4s var(--ease), box-shadow .4s; }
.info-list li:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.info-list__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--tint); color: var(--primary); font-size: 1.1rem; flex: none; }
.info-list small { display: block; font-size: .78rem; color: var(--muted); }
.info-list a, .info-list span { color: var(--ink); font-weight: 600; }
.info-list a:hover { color: var(--primary); }

.form { padding: 36px; }
.form:hover { transform: none; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field > span { font-size: .86rem; font-weight: 600; color: var(--ink); }
.field em { color: #E5484D; font-style: normal; }
.field small { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: .95rem; color: var(--ink); width: 100%;
  padding: 12px 14px; background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px;
  outline: none; transition: border-color .25s, box-shadow .25s, background .25s; resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(30, 127, 224, .12); }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; margin-bottom: 22px; }
.agree input { margin-top: 4px; accent-color: var(--primary); width: 16px; height: 16px; }
.agree a { color: var(--primary); font-weight: 600; }
.form__success { padding: 14px 16px; margin-bottom: 20px; border-radius: 12px; background: #E5F8EF; color: #0E7A4B; font-weight: 600; font-size: .92rem; }

/* Footer */
.footer { background: var(--navy); color: #B7C6DA; padding: 36px 0 26px; margin-top: 40px; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 28px; padding-bottom: 26px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer__item { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: #D7E2F0; transition: color .25s; }
.footer__item .icon { color: var(--accent); width: 20px; height: 20px; }
.footer__item span { color: var(--accent); }
a.footer__item:hover { color: #fff; }
.footer__mid { display: flex; align-items: center; gap: 20px; padding: 22px 0; text-align: center; font-size: .92rem; letter-spacing: .04em; }
.footer__mid strong { color: var(--accent); }
.footer__mid .sep { margin: 0 10px; opacity: .5; }
.footer__line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(20, 184, 212, .5), transparent); }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; font-size: .82rem; color: #8396AE; }
.footer__links { display: flex; gap: 20px; }
.footer__links a:hover { color: #fff; }
.socials { display: flex; gap: 10px; }
.socials a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .06); color: #D7E2F0; transition: background .3s, transform .3s var(--ease); }
.socials a:hover { background: var(--grad); transform: translateY(-3px); color: #fff; }
.socials svg { width: 16px; height: 16px; fill: currentColor; }

/* Legal pages (privacy / terms) */
.legal__back { margin-left: auto; }
.legal__back:hover .icon { transform: translateX(-4px); }
.legal__hero { padding: 150px 0 50px; text-align: center; background: radial-gradient(ellipse 60% 80% at 50% 0%, #DDEEFF 0%, transparent 70%); }
.legal__hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; margin-bottom: 12px; }
.legal__date { color: var(--muted); font-style: italic; margin-bottom: 28px; }
.legal__tabs { display: inline-flex; gap: 4px; padding: 5px; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm); }
.legal__tabs a { padding: .55em 1.2em; border-radius: 999px; font-weight: 600; font-size: .9rem; transition: background .3s, color .3s; }
.legal__tabs a:hover { color: var(--primary); }
.legal__tabs a.is-current { background: var(--grad); color: #fff; }
.legal__card { max-width: 860px; margin: 0 auto; padding: 56px 60px; box-shadow: var(--shadow); }
.legal__card:hover { box-shadow: var(--shadow); }
.legal__section + .legal__section { margin-top: 44px; }
.legal__section h2 { display: flex; align-items: center; gap: 14px; font-size: 1.35rem; font-weight: 700; margin-bottom: 14px; }
.legal__num { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: .8rem; font-weight: 800; color: var(--primary); background: var(--tint); }
.legal__section p, .legal__section li { font-size: 1.02rem; line-height: 1.8; }
.legal__section p + p, .legal__section p + ul, .legal__section ul + p { margin-top: 12px; }
.legal__section ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.legal__section li { position: relative; padding-left: 22px; }
.legal__section li::before { content: ""; position: absolute; left: 4px; top: .75em; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }
.legal__section strong { color: var(--ink); }
.legal__section a { color: var(--primary); font-weight: 600; }
.legal__section a:hover { text-decoration: underline; }
.legal__note { padding: 28px 30px; border-radius: 16px; background: var(--tint); border-left: 4px solid var(--primary); }
.legal + .footer { margin-top: 80px; }
@media (max-width: 640px) {
  .legal__hero { padding-top: 120px; }
  .legal__card { padding: 30px 20px; }
  .legal__note { padding: 22px 18px; }
}

/* Back to top */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .35s, transform .35s var(--ease);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* Scroll progress */
.scroll-progress { position: fixed; top: 0; left: 0; z-index: 60; height: 3px; width: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); }

/* Leads modal (admin) */
.leads-modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(10, 37, 64, .6); backdrop-filter: blur(4px); }
.leads-modal.is-open { display: flex; }
.leads-modal__box { background: #fff; width: 100%; max-width: 960px; max-height: 82vh; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); }
.leads-modal__head, .leads-modal__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.leads-modal__foot { border: 0; border-top: 1px solid var(--line); justify-content: flex-end; }
.leads-modal__head h3 { font-size: 1.2rem; }
.leads-modal__body { padding: 18px 22px; overflow: auto; }
.leads-modal table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.leads-modal th, .leads-modal td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.leads-modal th { color: var(--ink); background: var(--tint); }
.leads-modal td small { color: var(--muted); }
.leads-modal details summary { cursor: pointer; color: var(--primary); font-weight: 600; }
.btn--danger { background: #E5484D; color: #fff; }

/* ---------- Custom cursor (fine pointers only, enabled by JS) ---------- */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; border-radius: 50%; opacity: 0; transition: opacity .3s; }
.cursor-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--primary); }
.cursor-ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1.5px solid rgba(30, 127, 224, .55); transition: opacity .3s, width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background .3s, border-color .3s; }
.has-cursor .cursor-dot, .has-cursor .cursor-ring { opacity: 1; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor label { cursor: none; }
.has-cursor input, .has-cursor textarea, .has-cursor select { cursor: auto; }
.cursor-ring.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(30, 127, 224, .08); border-color: rgba(30, 127, 224, .3); }
.cursor-ring.is-down { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
.cursor-hidden .cursor-dot, .cursor-hidden .cursor-ring { opacity: 0; }

/* ---------- Scroll reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 110ms); }
.js [data-reveal="left"] { transform: translateX(-48px); }
.js [data-reveal="right"] { transform: translateX(48px); }
.js [data-reveal="zoom"] { transform: scale(.92); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes morph {
  0%, 100% { border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; }
  50% { border-radius: 56% 44% 58% 42% / 42% 58% 44% 56%; }
}
@keyframes grow { from { transform: scaleY(0); } }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(34, 192, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 192, 138, 0); } }
@keyframes pulse-white { 70% { box-shadow: 0 0 0 22px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }
@keyframes dash { to { stroke-dashoffset: -28; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
  .cards, .projects { grid-template-columns: repeat(2, 1fr); }
  .header__phone { display: none; }
}

@media (max-width: 900px) {
  .nav {
    position: fixed; inset: 72px 16px auto; flex-direction: column; gap: 2px; padding: 12px;
    background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg);
    opacity: 0; transform: translateY(-10px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__link { padding: 12px 14px; border-radius: 10px; }
  .nav__link::after { display: none; }
  .nav__link:hover, .nav__link.is-active { background: var(--tint); }
  .nav__link--mobile { display: block; }
  .header__cta { display: none; }
  .burger { display: flex; }

  .hero { padding-top: 120px; }
  .hero__inner, .about, .contact, .cta { grid-template-columns: 1fr; }
  .hero__art { max-width: 560px; margin: 0 auto; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
  .stat:nth-child(3) { border-left: 0; }
  .section { padding: 80px 0; }
  .cta { padding: 32px; text-align: center; }
  .cta__art { height: 170px; max-width: 360px; margin: 0 auto; width: 100%; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .cards, .projects, .plans, .form__grid, .checks, .team { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; padding: 18px 6px; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); padding-top: 16px; }
  .pillars { grid-template-columns: 1fr; }
  .form { padding: 24px 18px; }
  .footer__top { flex-direction: column; }
  .footer__mid { flex-direction: column; gap: 10px; }
  .footer__line { width: 60%; flex: none; }
  .pill { font-size: .85rem; padding: 10px 14px; }
  .art-code { width: 42%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
