:root {
  --ck-bg: #f4f9ff;
  --ck-surface: #eaf4ff;
  --ck-card: #ffffff;
  --ck-line: #c8dbf2;
  --ck-text: #0f2f57;
  --ck-sub: #486489;
  --ck-primary: #0ea5e9;
  --ck-primary-2: #2563eb;
  --ck-success: #22c55e;
  --ck-radius: 16px;
  --ck-shadow: 0 14px 34px -18px rgba(17, 74, 142, 0.28);
  --ck-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: var(--ck-bg);
  color: var(--ck-text);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.icon {
  display: inline-block;
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  vertical-align: middle;
  opacity: 1 !important;
  visibility: visible !important;
}

.icon--lg {
  width: 1.35rem;
  height: 1.35rem;
}

.title-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(900px 440px at 12% 0%, rgba(14, 165, 233, 0.14), transparent 60%),
    radial-gradient(700px 360px at 90% 10%, rgba(34, 197, 94, 0.12), transparent 58%);
  z-index: -1;
}

.wrap {
  max-width: 1120px;
  margin: auto;
  padding: 0 20px;
}

.site-header,
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 0;
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(15, 47, 87, 0.12);
  backdrop-filter: blur(12px);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
}

body.menu-open {
  overflow: hidden;
}

.site-header__inner,
.header {
  max-width: 1120px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  height: 4rem;
  padding: 0 20px;
}

.logo-img,
.logo {
  height: 92px;
  width: auto;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(14, 165, 233, 0.28);
  border-radius: 10px;
  background: transparent;
  color: #0f3d70;
  cursor: pointer;
  padding: 0;
}

.nav-toggle svg {
  width: 1.2rem;
  height: 1.2rem;
}

.nav-toggle__close {
  display: none;
}

.site-header.is-open .nav-toggle__open {
  display: none;
}

.site-header.is-open .nav-toggle__close {
  display: block;
}

.mobile-drawer {
  display: none;
  border-top: 1px solid rgba(14, 165, 233, 0.18);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
}

.mobile-drawer .wrap {
  padding-top: 12px;
  padding-bottom: 14px;
}

.mobile-drawer a {
  display: block;
  padding: 11px 12px;
  border-radius: 10px;
  color: #2f527d;
  font-weight: 600;
  text-decoration: none;
}

.mobile-drawer a:hover {
  color: #0f2f57;
  background: rgba(14, 165, 233, 0.12);
}

.mobile-drawer .btn {
  margin-top: 8px;
  width: 100%;
}

.site-header.is-open .mobile-drawer {
  display: block;
}

.nav-desktop a {
  margin: 0 10px;
  color: #2f527d;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 7px 10px;
  border-radius: 10px;
  transition: all 0.25s var(--ck-ease);
}

.nav-desktop a:hover {
  color: #0f2f57;
  background: rgba(14, 165, 233, 0.13);
}

.btn,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 12px;
  border: 0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--ck-primary-2), var(--ck-success));
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.25);
  transition: transform 0.25s var(--ck-ease), box-shadow 0.25s var(--ck-ease), filter 0.25s var(--ck-ease);
}

.btn:hover,
button:hover {
  transform: translateY(-3px);
  filter: brightness(1.04);
  box-shadow: 0 14px 34px rgba(14, 165, 233, 0.34);
}

.hero,
.tech-hero {
  padding-top: 120px;
  padding-bottom: 80px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.hero h1,
.tech-hero h1 {
  margin: 0;
  font-family: Poppins, Inter, sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #0b315f;
}

.hero p,
.hero__lead,
.tech-hero p {
  color: var(--ck-sub);
  line-height: 1.65;
}

.mock-ui,
.hero__mock-wrap,
.phone {
  background: linear-gradient(180deg, #ffffff, #eef7ff);
  border: 1px solid var(--ck-line);
  border-radius: 24px;
  box-shadow: var(--ck-shadow);
}

.mock-ui {
  padding: 18px;
}

.phone {
  max-width: 280px;
  margin: 0 auto;
  padding: 20px;
}

.screen {
  border-radius: 14px;
  border: 1px solid var(--ck-line);
  background: #f7fbff;
  color: var(--ck-text);
  padding: 22px 16px;
}

.screen .success {
  color: #0f9a52;
  font-weight: 700;
}

.section {
  padding: 78px 0;
}

.section--surface {
  background: var(--ck-surface);
}

.section-head {
  text-align: center;
  margin-bottom: 38px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #0b315f;
  font-family: Poppins, Inter, sans-serif;
}

.grid,
.grid-2,
.grid-4,
.grid-use,
.grid-3x,
.tech-grid,
.security-grid,
.stack-grid,
.advanced-grid {
  display: grid;
  gap: 20px;
}

.grid {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

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

.grid-use {
  grid-template-columns: repeat(4, 1fr);
}

.tech-grid,
.security-grid {
  grid-template-columns: repeat(3, 1fr);
}

.grid-3x {
  grid-template-columns: repeat(3, 1fr);
}

.stack-grid {
  grid-template-columns: repeat(4, 1fr);
}

.advanced-grid {
  grid-template-columns: repeat(2, 1fr);
}

.panel,
.mini-card,
.use-card,
.card,
.tech-box,
.sec-card,
.stack-card,
.adv-card,
.flow-box,
.form-box,
.social-item,
.gain-list > div {
  position: relative;
  background: linear-gradient(180deg, #ffffff, #f5faff);
  border: 1px solid var(--ck-line);
  border-radius: var(--ck-radius);
  box-shadow: var(--ck-shadow);
  color: var(--ck-text);
}

.panel,
.card,
.tech-box,
.sec-card,
.stack-card,
.adv-card,
.form-box {
  padding: 22px;
}

.mini-card,
.use-card,
.social-item,
.gain-list > div {
  padding: 20px;
}

.panel--danger {
  border-color: rgba(239, 68, 68, 0.25);
  background: linear-gradient(180deg, #fff6f6, #fff);
}

.panel--neutral {
  background: linear-gradient(180deg, #ffffff, #f3f9ff);
}

ul.benefit li,
.benefit li,
.card p,
.tech-box p,
.sec-card p,
.stack-card p,
.adv-card p,
.timeline li,
.flow-arrow,
.section-sub {
  color: var(--ck-sub);
}

.tech-icon {
  font-size: 2rem;
}

.sec-card h4 {
  color: #13975a;
}

.gain-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  margin: 18px 0;
  padding-left: 16px;
  border-left: 2px solid var(--ck-success);
}

.flow-steps,
.flow-diagram {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}

.data-flow h2 {
  text-align: center;
  margin-bottom: 10px;
}

.flow-box {
  min-width: 170px;
  padding: 12px 16px;
  border-radius: 14px;
}

.flow-box .title-with-icon {
  justify-content: center;
  width: 100%;
  font-weight: 600;
  color: #123f70;
}

.flow-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  color: #0e5e9b;
  font-weight: 700;
}

.step {
  background: #fff;
  border: 1px solid var(--ck-line);
  border-radius: 999px;
  padding: 10px 14px;
  color: #174777;
  font-size: 13px;
}

.cta,
.tech-cta {
  margin-top: 38px;
  text-align: center;
  padding: 74px 20px;
  color: #fff;
  background: linear-gradient(135deg, #0284c7, #22c55e);
  background-size: 170% 170%;
  animation: gradientShift 8s ease infinite;
}

.cta p,
.tech-cta p {
  color: rgba(255, 255, 255, 0.92);
}

.problem-hero-actions {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.problem-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.problem-note {
  margin-top: 18px;
  text-align: center;
  color: #1c4d82;
  font-weight: 600;
}

.problem-core {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 24px;
}

.problem-core h2 {
  margin: 0;
  color: #0b315f;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.problem-core p {
  margin-top: 12px;
  color: var(--ck-sub);
}

input,
textarea {
  width: 100%;
  margin-top: 10px;
  border-radius: 10px;
  border: 1px solid var(--ck-line);
  background: #fff;
  color: var(--ck-text);
  padding: 12px;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: var(--ck-primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.social-box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.social-item img {
  width: 30px;
  margin-bottom: 8px;
}

.social-item span {
  display: block;
  color: #1f4a7c;
  font-size: 14px;
}

.contact-hero {
  text-align: center;
  max-width: 760px;
}

.contact-kicker {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(14, 165, 233, 0.25);
  background: rgba(14, 165, 233, 0.08);
  color: #0f4b81;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-hero h1 {
  margin-top: 14px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-card .btn {
  margin-top: auto;
  width: fit-content;
}

.contact-form-box {
  max-width: 760px;
  margin: 0 auto;
}

.contact-form {
  margin-top: 18px;
}

.form-field {
  margin-top: 12px;
}

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #1c4d82;
  margin-bottom: 6px;
}

.whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  box-shadow: 0 14px 24px rgba(37, 211, 102, 0.35);
  animation: floatY 2.4s ease-in-out infinite;
}

.whatsapp img {
  width: 28px;
}

.reveal {
  opacity: 0;
  transform: translateY(34px) scale(0.985);
  transition: transform 0.75s var(--ck-ease), opacity 0.75s var(--ck-ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.panel:hover,
.mini-card:hover,
.use-card:hover,
.card:hover,
.tech-box:hover,
.sec-card:hover,
.stack-card:hover,
.adv-card:hover,
.social-item:hover,
.gain-list > div:hover,
.flow-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px -18px rgba(14, 165, 233, 0.46);
  transition: transform 0.3s var(--ck-ease), box-shadow 0.3s var(--ck-ease);
}

.hero,
.section,
.tech-hero,
.tech-flow,
.tech-security,
.tech-stack,
.advanced-tech,
.data-flow {
  position: relative;
}

.hero::after,
.section::after,
.tech-hero::after,
.tech-flow::after,
.tech-security::after,
.tech-stack::after,
.advanced-tech::after,
.data-flow::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: radial-gradient(460px 140px at 50% 0%, rgba(56, 189, 248, 0.12), transparent 66%);
  animation: pulseGlow 7s ease-in-out infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

@media (max-width: 1024px) {
  .grid-4,
  .grid-use,
  .grid-3x,
  .stack-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .hero__grid,
  .grid,
  .grid-2,
  .grid-4,
  .grid-use,
  .grid-3x,
  .tech-grid,
  .security-grid,
  .stack-grid,
  .advanced-grid,
  .gain-list,
  .problem-stats {
    grid-template-columns: 1fr;
  }

  .social-box {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-diagram {
    flex-direction: column;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }

  .site-header,
  .header {
    padding: 0;
  }

  .site-header__inner,
  .header {
    flex-wrap: nowrap;
    justify-content: space-between;
    row-gap: 0;
    padding: 0 12px;
  }

  .logo-img,
  .logo {
    height: 72px;
  }

  .site-header .btn,
  .header .btn {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-desktop {
    display: none;
  }

  .hero,
  .tech-hero {
    padding-top: 110px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ID Card Page Styles */
.plan-card {
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(14, 165, 233, 0.15);
}

.plan-card.featured {
  border-color: var(--ck-primary);
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.05), rgba(14, 165, 233, 0.02));
  transform: scale(1.02);
}

.plan-card .badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(14, 165, 233, 0.15);
  color: var(--ck-primary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.plan-card .price {
  font-size: 24px;
  font-weight: 700;
  color: var(--ck-primary);
  margin: 8px 0;
}

.plan-card .price span {
  font-size: 14px;
  font-weight: 500;
  color: var(--ck-sub);
}

.plan-card .desc {
  font-size: 12px;
  color: var(--ck-sub);
  margin-bottom: 12px;
}

.plan-card .benefit {
  flex-grow: 1;
  margin-bottom: 20px;
}

.plan-card .btn {
  margin-top: auto;
}

.comparison-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.comparison-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.comparison-item {
  background: linear-gradient(180deg, #ffffff, #f5faff);
  border: 1px solid var(--ck-line);
  border-radius: var(--ck-radius);
  padding: 28px;
  transition: all 0.3s ease;
}

.comparison-old {
  background: linear-gradient(180deg, #fef8f8, #fff);
  border-color: rgba(239, 68, 68, 0.15);
}

.comparison-new {
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.06), rgba(14, 165, 233, 0.02));
  border-color: var(--ck-primary);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.1);
}

.comparison-item h3 {
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--ck-text);
  font-size: 18px;
  font-weight: 700;
}

.comparison-subtitle {
  color: var(--ck-sub);
  font-size: 13px;
  margin-bottom: 20px;
  font-weight: 500;
}

.comparison-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comparison-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--ck-text);
  font-size: 13px;
  line-height: 1.5;
}

.comparison-list li:last-child {
  margin-bottom: 0;
}

.icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  margin-top: 2px;
}

.icon-wrapper.positive {
  background: rgba(34, 197, 94, 0.15);
  color: var(--ck-success);
}

.icon-wrapper.negative {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.icon-wrapper .icon {
  width: 14px;
  height: 14px;
}

.note {
  text-align: center;
  color: var(--ck-sub);
  font-size: 12px;
  margin-top: 16px;
  padding: 12px;
  background: rgba(14, 165, 233, 0.08);
  border-radius: 8px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .plan-card.featured {
    transform: scale(1);
  }

  .comparison-row {
    grid-template-columns: 1fr;
  }

  .comparison-table {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .grid-3x {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    flex-direction: column;
  }

  .cta-actions .btn {
    width: 100%;
  }

  .comparison-item {
    padding: 20px;
  }

  .comparison-list li {
    font-size: 12px;
    gap: 10px;
    margin-bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
