/* =========================================================
   App Flow Studio · styles.css
   Light mode only. Brand colors come from the logo.
   ========================================================= */

:root {
  /* Brand */
  --blue: #2077ba;
  --blue-dark: #1d6aae;
  --teal: #33b6b4;
  --teal-dark: #2a8e9d;
  --grad: linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%);
  --grad-deep: linear-gradient(135deg, var(--blue-dark) 0%, var(--teal-dark) 100%);

  /* Neutrals (tinted toward the brand blue) */
  --ink: #0e2a45;
  --text: #3a5068;
  --muted: #6b7f94;
  --line: #e2ebf3;
  --bg: #ffffff;
  --bg-tint: #f3f9fb;
  --bg-blue: #eef5fb;

  /* Status */
  --ok: #1f9d74;
  --ok-bg: #e6f6f0;
  --warn: #b7791f;
  --warn-bg: #fdf3e2;
  --err: #c53b3b;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(14, 42, 69, .06), 0 2px 6px rgba(14, 42, 69, .05);
  --shadow: 0 10px 30px -12px rgba(14, 42, 69, .18), 0 2px 6px rgba(14, 42, 69, .05);
  --shadow-lg: 0 30px 60px -20px rgba(29, 106, 174, .30);

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid rgba(32, 119, 186, .45); outline-offset: 2px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 700; font-size: .98rem; line-height: 1.2;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px -8px rgba(32, 119, 186, .6); }
.btn-primary:hover { color: #fff; box-shadow: 0 12px 26px -8px rgba(32, 119, 186, .65); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { color: var(--blue); border-color: rgba(32, 119, 186, .4); }
.btn-light { background: #fff; color: var(--blue-dark); }
.btn-light:hover { color: var(--blue-dark); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .35); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-outline-light:hover { color: #fff; background: rgba(255, 255, 255, .12); border-color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px -12px rgba(14, 42, 69, .2); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 1.08rem; letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }
.brand strong { font-weight: 800; }
.brand img { width: 36px; height: auto; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { color: var(--text); font-weight: 600; font-size: .95rem; position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .2s; border-radius: 2px; }
.nav a:not(.btn):hover { color: var(--ink); }
.nav a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 12px; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.site-header.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 72px 0 96px; overflow: hidden;
  background:
          radial-gradient(800px 420px at 85% 10%, rgba(51, 182, 180, .14), transparent 60%),
          radial-gradient(700px 400px at 0% 100%, rgba(32, 119, 186, .10), transparent 60%);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  padding: 6px 14px 6px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  color: var(--blue-dark); font-weight: 700; font-size: .85rem; letter-spacing: .02em; box-shadow: var(--shadow-sm);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px rgba(51, 182, 180, .18); }
.lead { font-size: 1.15rem; max-width: 34em; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.trust-row { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--ink); font-weight: 600; font-size: .92rem; }
.trust-row li { display: inline-flex; align-items: center; gap: 8px; }
.trust-row svg { width: 18px; height: 18px; color: var(--teal-dark); stroke-width: 2.6; }

/* Hero visual: radar + alerts */
.hero-visual { position: relative; height: 460px; }
.radar {
  position: absolute; width: 400px; height: 400px; left: 50%; top: 50%; transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(51, 182, 180, .10) 0%, rgba(32, 119, 186, .06) 55%, transparent 70%);
}
.ring { position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 1.5px dashed rgba(32, 119, 186, .22); }
.ring.r1 { width: 100%; height: 100%; }
.ring.r2 { width: 66%; height: 66%; border-style: solid; border-color: rgba(51, 182, 180, .25); }
.ring.r3 { width: 32%; height: 32%; border-color: rgba(32, 119, 186, .3); }
.sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(51, 182, 180, .35), rgba(51, 182, 180, 0) 22%, transparent 100%);
  animation: sweep 5s linear infinite;
  -webkit-mask: radial-gradient(circle, #000 69%, transparent 70%); mask: radial-gradient(circle, #000 69%, transparent 70%);
}
.blip { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 6px rgba(51, 182, 180, .18); animation: blip 5s ease-in-out infinite; }
.blip.b1 { top: 22%; left: 64%; animation-delay: .4s; }
.blip.b2 { top: 60%; left: 78%; background: var(--blue); box-shadow: 0 0 0 6px rgba(32, 119, 186, .16); animation-delay: 1.4s; }
.blip.b3 { top: 70%; left: 30%; animation-delay: 3s; }

.alert-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px;
  box-shadow: var(--shadow); min-width: 300px;
  animation: float 6s ease-in-out infinite;
}
.alert-card p { margin: 0; line-height: 1.3; }
.alert-title { color: var(--ink); font-weight: 700; font-size: .95rem; }
.alert-meta { color: var(--muted); font-size: .82rem; }
.alert-card .status { margin-left: auto; }
.alert-card.a1 { top: 6%; left: 0; }
.alert-card.a2 { top: 40%; right: -4%; animation-delay: -2s; }
.alert-card.a3 { bottom: 6%; left: 8%; animation-delay: -4s; }
.alert-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.alert-icon svg { width: 20px; height: 20px; }
.ic-blue { background: var(--blue); }
.ic-teal { background: var(--teal); }
.ic-navy { background: var(--grad-deep); }
.status { font-size: .76rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.status.ok { color: var(--ok); background: var(--ok-bg); }

@keyframes sweep { to { transform: rotate(360deg); } }
@keyframes blip { 0%, 100% { opacity: .25; transform: scale(.8); } 15% { opacity: 1; transform: scale(1.15); } 40% { opacity: .6; transform: scale(1); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-tint { background: var(--bg-tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-sub { font-size: 1.1rem; margin: 0 auto; max-width: 42em; }
.kicker { color: var(--blue); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; margin-bottom: 12px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px;
  padding: 7px 16px; border-radius: 999px; background: #fff; border: 1px solid rgba(51, 182, 180, .4);
  color: var(--teal-dark); font-weight: 700; font-size: .85rem;
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--teal); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

/* ---------- Product (Order Radar) ---------- */

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(51, 182, 180, .45); }
.feature p { margin: 0; font-size: .93rem; }
.feature h3 { margin-bottom: .4em; }
.f-icon, .p-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; color: #fff; background: var(--grad); box-shadow: 0 8px 16px -8px rgba(32, 119, 186, .6); }

.steps { list-style: none; padding: 0; margin: 64px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; padding: 26px 24px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.steps li p { margin: 0; font-size: .95rem; }
.step-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-weight: 800; color: var(--blue-dark); background: var(--bg-blue); border: 1.5px solid rgba(32, 119, 186, .25); margin-bottom: 14px; }
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 42px; right: -21px; width: 22px; height: 2px; background: var(--grad); z-index: 1;
}

.cta-card {
  margin-top: 48px; padding: 40px 44px; border-radius: var(--radius-lg);
  background: var(--grad); color: rgba(255, 255, 255, .9);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.cta-card::before {
  content: ""; position: absolute; width: 380px; height: 380px; right: -120px; top: -180px; border-radius: 50%;
  border: 50px solid rgba(255, 255, 255, .08);
}
.cta-card > * { position: relative; }
.cta-card h3 { color: #fff; font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.cta-card p { margin: 0; max-width: 34em; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }

/* ---------- Principles ---------- */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.principle { padding: 28px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; transition: transform .2s, box-shadow .2s; }
.principle:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.principle p { margin: 0; font-size: .95rem; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: center; }
.about-copy p { font-size: 1.05rem; }
.about-copy strong { color: var(--ink); }
.about-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); }
.about-card img { width: 80px; height: auto; margin-bottom: 20px; }
.about-card dl { margin: 0; display: grid; gap: 0; }
.about-card dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: .93rem; }
.about-card dt { color: var(--muted); font-weight: 600; }
.about-card dd { margin: 0; color: var(--ink); font-weight: 700; text-align: right; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.contact-copy p { font-size: 1.05rem; }
.contact-points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.contact-points li { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; }
.contact-points svg { color: #fff; background: var(--teal); border-radius: 50%; padding: 4px; width: 22px; height: 22px; stroke-width: 3; }

.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; align-content: start; }
.field label { font-weight: 700; color: var(--ink); font-size: .9rem; }
.optional { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .97rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fbfdff;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7f94' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field input::placeholder, .field textarea::placeholder { color: #9aabbc; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(32, 119, 186, .12); }
.field.invalid input, .field.invalid textarea { border-color: var(--err); }
.field .error-msg { color: var(--err); font-size: .82rem; font-weight: 600; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { min-height: 65px; }

.contact-form button .spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: spin .8s linear infinite; }
.contact-form.is-sending button { pointer-events: none; opacity: .85; }
.contact-form.is-sending button .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status { margin: 0; font-weight: 600; font-size: .93rem; min-height: 1.5em; }
.form-status.success { color: var(--ok); }
.form-status.error { color: var(--err); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .7); padding: 56px 0 28px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.site-footer .brand { color: #fff; }
.site-footer .brand img { background: #fff; border-radius: 10px; padding: 4px; width: 40px; }
.footer-brand p { margin: 12px 0 0; font-size: .93rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.footer-nav a { color: rgba(255, 255, 255, .8); font-weight: 600; font-size: .93rem; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; font-size: .84rem; }
.footer-bottom p { margin: 0; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .principles { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .alert-card { min-width: 280px; }
}

@media (max-width: 900px) {
  .hero-inner, .about, .contact { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 48px 0 72px; }
  .hero-visual { height: 420px; max-width: 520px; width: 100%; margin: 0 auto; }
  .cta-card { flex-direction: column; align-items: flex-start; padding: 32px; }
  .steps { grid-template-columns: 1fr; }
  .steps li:not(:last-child)::after { display: none; }

  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 16px 20px;
    box-shadow: 0 20px 30px -20px rgba(14, 42, 69, .25);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav a:not(.btn) { padding: 12px 8px; font-size: 1rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 8px; padding: 13px 20px; }
  .site-header.is-open { background: #fff; }
  .site-header.is-open .nav { opacity: 1; visibility: visible; transform: none; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .lead { font-size: 1.05rem; }
  .hero-actions .btn { flex: 1 1 auto; }
  .features, .principles, .field-row { grid-template-columns: 1fr; }
  .hero-visual { height: 380px; }
  .radar { width: 300px; height: 300px; }
  .alert-card { min-width: 0; width: calc(100% - 24px); max-width: 320px; padding: 10px 12px; }
  .alert-card.a1 { left: 0; }
  .alert-card.a2 { right: 0; }
  .alert-card.a3 { left: 4%; }
  .contact-form { padding: 22px; }
  .cta-card { padding: 28px 22px; }
  .cta-actions, .cta-actions .btn { width: 100%; }
  .about-card { padding: 24px; }
}

/* ---------- Email typo hint ---------- */
.email-hint { font-size: .85rem; color: var(--text); }
.email-hint button {
  font: inherit; font-weight: 700; color: var(--blue); background: none; border: 0; padding: 0;
  cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
}
.email-hint button:hover { color: var(--blue-dark); }