/* ============================================================
   Comtis — modern, light, friendly. 2 pages, 1 stylesheet.
   ============================================================ */

:root {
  --bg: #f6f8fc;
  --card: #ffffff;
  --ink: #101828;
  --muted: #51607a;
  --line: #e4e9f2;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --grad: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  --grad-soft: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(6, 182, 212, 0.08));
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 12px 32px -8px rgba(16, 24, 40, 0.1);
  --shadow-lg: 0 24px 60px -16px rgba(37, 99, 235, 0.22);
  --radius: 20px;
  --head: "Plus Jakarta Sans", "Inter", -apple-system, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max-w: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  font-size: 1.04rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  animation: page-in 0.5s ease both;
}
@keyframes page-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* scroll-reveal (classes added by JS; without JS everything stays visible) */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

a { color: var(--blue); text-decoration: none; }

h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.18; letter-spacing: -0.02em; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

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

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  margin-bottom: 1.3rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(228, 233, 242, 0.8);
}

.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 80px; }

.brand { display: inline-flex; align-items: center; gap: 0.8rem; position: relative; }
.brand img, .brand svg {
  width: 58px;
  height: 58px;
  filter: drop-shadow(0 5px 12px rgba(37, 99, 235, 0.38));
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.35s;
}
.brand:hover svg {
  transform: scale(1.08);
  filter: drop-shadow(0 7px 16px rgba(6, 182, 212, 0.5));
}
.brand-name {
  font-family: var(--head);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(105deg, #0b1730 0%, #16306b 30%, #2563eb 62%, #06b6d4 100%);
  background-size: 200% 100%;
  background-position: 0% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 8px rgba(37, 99, 235, 0.28));
  transition: background-position 0.6s ease;
}
.brand:hover .brand-name { background-position: 95% 0; }

.main-nav { display: flex; align-items: center; gap: 1.8rem; }
.main-nav a { color: var(--muted); font-size: 0.94rem; font-weight: 500; transition: color 0.15s; }
.main-nav a:hover { color: var(--ink); }
.main-nav a[href^="#"]:not(.nav-cta) { position: relative; }
.main-nav a[href^="#"]:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.main-nav a.active { color: var(--blue); }
.main-nav a.active::after { transform: scaleX(1); }

.nav-cta {
  background: var(--grad);
  color: #fff !important;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  box-shadow: 0 8px 20px -6px rgba(37, 99, 235, 0.45);
  transition: transform 0.15s, box-shadow 0.15s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -6px rgba(37, 99, 235, 0.5); }

.lang-switch {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 0.38rem 0.85rem;
  color: var(--muted) !important;
  transition: border-color 0.15s, color 0.15s;
}
.lang-switch:hover { border-color: var(--blue); color: var(--blue) !important; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--ink); margin: 5px 0; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 6rem 0 6.5rem; }

.hero-bg {
  position: absolute;
  inset: -6%;
  pointer-events: none;
  background:
    radial-gradient(560px 420px at 12% 0%, rgba(37, 99, 235, 0.13), transparent 65%),
    radial-gradient(640px 480px at 92% 18%, rgba(6, 182, 212, 0.14), transparent 65%),
    radial-gradient(500px 420px at 60% 110%, rgba(124, 58, 237, 0.08), transparent 70%);
  animation: bg-drift 38s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes bg-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-2.5%, 2%) scale(1.07); }
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items: center;
}

.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; }
.hero .lead { margin-top: 1.5rem; color: var(--muted); font-size: 1.13rem; max-width: 54ch; }
.hero-actions { margin-top: 2.4rem; display: flex; gap: 0.9rem; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 0.99rem;
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s, color 0.15s;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 24px -6px rgba(37, 99, 235, 0.45);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -8px rgba(37, 99, 235, 0.5); }
.btn-quiet { background: #fff; border: 1.5px solid var(--line); color: var(--ink); }
.btn-quiet:hover { border-color: var(--blue); color: var(--blue); }

.hero-trust {
  margin-top: 2.6rem;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
}
.trust-pill {
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  box-shadow:
    0 8px 18px -6px rgba(37, 99, 235, 0.28),
    0 2px 5px rgba(16, 24, 40, 0.06);
}

.hero-art { display: flex; justify-content: center; }
.hero-art svg { width: 100%; max-width: 440px; height: auto; }

/* hero illustration animations */
.hero-art .art-glow {
  animation: art-pulse 5s ease-in-out infinite;
  transform-box: view-box;
  transform-origin: 220px 200px;
}
.hero-art .orbit-spin {
  animation: art-spin 60s linear infinite;
  transform-box: view-box;
  transform-origin: 220px 200px;
}
.hero-art .shield-float {
  animation: art-float 6s ease-in-out infinite;
}
.hero-art .badge-float-1 { animation: art-float 7s ease-in-out infinite; animation-delay: 0.8s; }
.hero-art .badge-float-2 { animation: art-float 8s ease-in-out infinite; animation-delay: 1.6s; }

/* shield self-drawing on load (paths carry pathLength="1") */
.sh-outline {
  animation: sh-draw 1.1s ease 0.2s both, sh-fill 0.6s ease 1.1s both;
}
.sh-inner { animation: sh-draw 0.9s ease 0.7s both; }
.sh-c { animation: sh-draw 0.7s ease 1.2s both; }
.sh-dot { animation: sh-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 1.8s both; }
@keyframes sh-draw {
  from { stroke-dasharray: 1; stroke-dashoffset: 1; }
  to { stroke-dasharray: 1; stroke-dashoffset: 0; }
}
@keyframes sh-fill {
  from { fill-opacity: 0; }
  to { fill-opacity: 1; }
}
@keyframes sh-pop {
  from { opacity: 0; transform: scale(0); transform-box: fill-box; transform-origin: center; }
  to { opacity: 1; transform: scale(1); transform-box: fill-box; transform-origin: center; }
}

@keyframes art-pulse {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.045); }
}
@keyframes art-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes art-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* ---------- Standards bar ---------- */
.standards {
  padding: 2.6rem 0;
  border-bottom: 1px solid var(--line);
}
.standards-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.4rem;
}
.standards-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.standard {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.6rem 1.15rem 0.6rem 0.7rem;
  font-family: var(--head);
  font-weight: 700;
  font-size: 0.97rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.standard:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.35);
}
.standard-ico {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px -3px rgba(37, 99, 235, 0.5);
}
.standard-ico svg { width: 17px; height: 17px; stroke: #fff; }
/* delicate sheen sweeping across each badge, staggered */
.standard::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -70%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(37, 99, 235, 0.07) 45%, rgba(6, 182, 212, 0.09) 55%, transparent);
  transform: skewX(-18deg);
  animation: standard-sheen 7s ease-in-out infinite;
  pointer-events: none;
}
.standard:nth-child(2)::after { animation-delay: 0.7s; }
.standard:nth-child(3)::after { animation-delay: 1.4s; }
.standard:nth-child(4)::after { animation-delay: 2.1s; }
.standard:nth-child(5)::after { animation-delay: 2.8s; }
@keyframes standard-sheen {
  0% { left: -70%; }
  32%, 100% { left: 140%; }
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  padding: 1.25rem 1.6rem;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.04rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--grad-soft);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1;
  transition: transform 0.3s ease, background 0.3s, color 0.3s;
}
.faq-icon::before { content: "+"; }
.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  background: var(--grad);
  color: #fff;
}
.faq-item p {
  padding: 0 3.4rem 1.4rem 1.6rem;
  color: var(--muted);
  font-size: 0.97rem;
}

/* ---------- Sections ---------- */
section { padding: 5.5rem 0; }

.section-head { max-width: 660px; margin: 0 auto 3.2rem; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; }
.section-head p { margin-top: 1rem; color: var(--muted); }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

.service {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 2.1rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
/* cursor spotlight (--mx/--my set by JS) */
.service::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(37, 99, 235, 0.09), transparent 65%);
}
.service:hover::after { opacity: 1; }

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
  box-shadow: 0 8px 18px -6px rgba(37, 99, 235, 0.45);
}
.service-icon svg { width: 26px; height: 26px; stroke: #fff; }

.service h3 { font-size: 1.22rem; margin-bottom: 0.7rem; }
.service p { color: var(--muted); font-size: 0.97rem; }

.service-tags { margin-top: 1.3rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--blue);
  background: rgba(37, 99, 235, 0.07);
  border-radius: 999px;
  padding: 0.26rem 0.75rem;
}

/* ---------- Approach ---------- */
.approach { background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); border-top: 1px solid var(--line); }

.approach-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: start; }
.approach-text h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 800; }
.approach-text > p { margin-top: 1.1rem; color: var(--muted); }

.points { list-style: none; margin-top: 1.9rem; display: grid; gap: 0.8rem; }
.points li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.95rem 1.2rem;
  font-size: 0.96rem;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.points li::before {
  content: "✓";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.15rem;
}

.milestones {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  position: relative;
}
.milestones h3 { font-size: 1.05rem; margin-bottom: 1.4rem; }
/* progress line: grey track + gradient fill that grows on scroll (--mprog set by JS) */
.milestones::before,
.milestones::after {
  content: "";
  position: absolute;
  left: calc(2rem + 4px);
  top: 6rem;
  bottom: 3.4rem;
  width: 2px;
  border-radius: 2px;
  background: var(--line);
}
.milestones::after {
  background: var(--grad);
  transform: scaleY(var(--mprog, 0));
  transform-origin: top;
  transition: transform 0.2s linear;
}
.milestone { display: flex; gap: 1.2rem; padding: 0.9rem 0 0.9rem 1.8rem; border-bottom: 1px solid var(--line); position: relative; }
.milestone::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--blue);
  z-index: 1;
}
.milestone:last-child { border-bottom: none; padding-bottom: 0; }
.milestone-year {
  flex-shrink: 0;
  font-family: var(--head);
  font-weight: 800;
  font-size: 0.95rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  width: 52px;
}
.milestone div h4 { font-family: var(--head); font-size: 0.99rem; font-weight: 700; }
.milestone div p { color: var(--muted); font-size: 0.88rem; margin-top: 0.15rem; }

/* ---------- Contact ---------- */
.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 3.2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(420px 260px at 8% 0%, rgba(37, 99, 235, 0.07), transparent 70%),
    radial-gradient(420px 260px at 95% 100%, rgba(6, 182, 212, 0.08), transparent 70%);
  pointer-events: none;
}
.contact-card > * { position: relative; }
.contact-card h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 800; }
.contact-card > p { margin: 1rem auto 2.2rem; color: var(--muted); max-width: 52ch; }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; text-align: left; }
.contact-item {
  background: rgba(246, 248, 252, 0.8);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.4rem 1.5rem;
}
.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 7px 16px -5px rgba(37, 99, 235, 0.45);
}
.contact-icon svg { width: 22px; height: 22px; stroke: #fff; }
.contact-item h3 {
  font-family: var(--body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.contact-item a, .contact-item span { font-size: 0.99rem; font-weight: 600; color: var(--ink); }
.contact-item a:hover { color: var(--blue); }

/* ---------- Footer ---------- */
.site-footer { padding: 3rem 0 2.2rem; border-top: 1px solid var(--line); background: #fff; }
.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.footer-brand img, .footer-brand svg { width: 30px; height: 30px; }
.footer-brand strong { font-family: var(--head); font-weight: 800; font-size: 1.1rem; }
.footer-meta { color: var(--muted); font-size: 0.86rem; }
.footer-links { display: flex; gap: 1.4rem; }
.footer-links a { color: var(--muted); font-size: 0.9rem; font-weight: 500; }
.footer-links a:hover { color: var(--blue); }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero .container { grid-template-columns: 1fr; gap: 3rem; }
  .hero-trust { flex-wrap: wrap; }
  .hero-art { order: -1; }
  .hero-art svg { max-width: 300px; }
  .services-grid { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 2.2rem 1.6rem; }
  .hero { padding: 3.5rem 0 4.5rem; }
  section { padding: 4rem 0; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px -12px rgba(16, 24, 40, 0.12);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.4rem 1.5rem;
    gap: 1.1rem;
    display: none;
  }
  .main-nav.open { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body { animation: none; }
  .btn, .service, .nav-cta { transition: none; }
  .hero-art .art-glow,
  .hero-art .orbit-spin,
  .hero-art .shield-float,
  .hero-art .badge-float-1,
  .hero-art .badge-float-2,
  .sh-outline, .sh-inner, .sh-c, .sh-dot,
  .standard::after,
  .hero-bg { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .milestones::after { transition: none; }
  .service::after { display: none; }
}
