/* SecureMango Light — single stylesheet, no build step.
   Palette follows the full site (shadcn "neutral"), with a mango accent
   taken from the logo for icon tiles and focus rings. */

:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --muted: #f5f5f5;
  --muted-fg: #636363;
  --border: #e5e5e5;
  --card: #ffffff;
  --primary: #171717;
  --primary-fg: #fafafa;
  --accent: #f59e0b;
  --accent-ink: #b45309;
  --accent-tint: #fff4dc;
  --danger: #b91c1c;
  --radius: 10px;
  --shadow: 0 10px 30px -12px rgb(0 0 0 / 0.18);
  --grid-line: rgb(128 128 128 / 0.06);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter,
    "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --fg: #fafafa;
    --muted: #171717;
    --muted-fg: #a3a3a3;
    --border: #262626;
    --card: #111111;
    --primary: #f5f5f5;
    --primary-fg: #171717;
    --accent-ink: #fbbf24;
    --accent-tint: rgb(245 158 11 / 0.14);
    --danger: #f87171;
    --shadow: 0 10px 30px -12px rgb(0 0 0 / 0.7);
    --grid-line: rgb(255 255 255 / 0.04);
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--primary); color: var(--primary-fg); padding: 8px 14px; border-radius: 6px;
}
.skip:focus { left: 16px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.5) blur(10px);
  -webkit-backdrop-filter: saturate(1.5) blur(10px);
}
.site-header .bar { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 24px; }
@media (min-width: 1024px) { .site-header .bar { padding: 0 48px; } }

.brand { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 700; font-size: 1.25rem; }
.brand img { width: auto; height: 44px; }

.nav { display: flex; align-items: center; gap: 24px; }
.nav a:not(.btn) {
  text-decoration: none; font-size: 0.875rem; font-weight: 500; color: var(--muted-fg);
  padding-bottom: 4px; border-bottom: 2px solid transparent; transition: color .15s;
}
.nav a:not(.btn):hover { color: var(--fg); }
.nav a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--accent); }

.menu-toggle {
  display: none; background: none; border: 0; color: var(--fg); padding: 8px; margin-right: -8px;
  border-radius: 8px; cursor: pointer;
}

@media (max-width: 767px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px 16px 20px; background: var(--bg); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow); display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) {
    font-size: 1.05rem; padding: 10px 12px; border-bottom: 0; border-left: 3px solid transparent;
  }
  .nav a[aria-current="page"] { border-left-color: var(--accent); }
  .nav .btn { margin-top: 8px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 8px; border: 1px solid transparent;
  font: inherit; font-size: 0.875rem; font-weight: 600; text-decoration: none; cursor: pointer;
  background: var(--primary); color: var(--primary-fg); transition: opacity .15s, background .15s, color .15s;
}
.btn:hover { opacity: .88; }
.btn-lg { height: 46px; padding: 0 26px; font-size: 0.95rem; }
.btn-outline { background: transparent; color: var(--fg); border-color: var(--border); }
.btn-outline:hover { background: var(--muted); opacity: 1; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Common pieces ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); background: var(--muted);
  border-radius: 999px; padding: 6px 16px; font-size: .875rem;
}
.pill .icon { color: var(--accent-ink); }

.tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--accent-tint); color: var(--accent-ink);
}
.tile.round { border-radius: 999px; }
.tile.lg { width: 56px; height: 56px; }
.tile.lg .icon { width: 28px; height: 28px; }

.section { padding: 80px 0; }
@media (min-width: 768px) { .section { padding: 112px 0; } }
.section.alt { background: color-mix(in srgb, var(--muted) 60%, var(--bg)); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.875rem, 4vw, 2.25rem); margin-bottom: 14px; }
.lead { font-size: 1.125rem; color: var(--muted-fg); }

.grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 28px; height: 100%; transition: box-shadow .2s, border-color .2s;
}
.card:hover { box-shadow: var(--shadow); }
.card h3 { font-size: 1.2rem; margin: 18px 0 10px; }
.card p { color: var(--muted-fg); }
.card.service { padding: 32px; }
.card.service:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); box-shadow: none; }
.card.service h3 { font-size: 1.25rem; margin-top: 24px; }
.card.service p { margin-bottom: 22px; }

.panel { background: color-mix(in srgb, var(--muted) 60%, var(--bg)); border-radius: 18px; padding: 32px; }
@media (min-width: 768px) { .panel { padding: 48px; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; text-align: center;
  padding: 80px 0;
  background:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px) 0 0 / 14px 24px,
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px) 0 0 / 14px 24px,
    linear-gradient(to bottom, var(--bg), color-mix(in srgb, var(--muted) 40%, var(--bg)));
}
@media (min-width: 768px) { .hero { padding: 128px 0; } }
.hero .inner { display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-size: clamp(2.25rem, 7vw, 4.5rem); max-width: 900px; margin-top: 24px; }
.hero h1 .hl { color: var(--accent-ink); }
.hero .lead { margin-top: 24px; max-width: 680px; }
@media (min-width: 768px) { .hero .lead { font-size: 1.25rem; } }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 32px; }

.hero-features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 64px; width: 100%; max-width: 560px;
}
.hero-features div { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: .875rem; font-weight: 500; }

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden; text-align: center;
  background: var(--primary); color: var(--primary-fg);
  border-radius: 24px; padding: 64px 24px;
}
@media (min-width: 768px) { .cta { padding: 80px 48px; } }
.cta::before {
  content: ""; position: absolute; inset: 0; opacity: .08; pointer-events: none;
  background:
    linear-gradient(to right, currentColor 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(to bottom, currentColor 1px, transparent 1px) 0 0 / 40px 40px;
}
.cta > * { position: relative; }
.cta h2 { font-size: clamp(1.875rem, 4.5vw, 3rem); max-width: 760px; margin: 0 auto; }
.cta p { margin: 24px auto 0; max-width: 640px; font-size: 1.125rem; opacity: .8; }
.cta .btn { background: var(--primary-fg); color: var(--primary); }
.cta .btn-outline { background: transparent; color: var(--primary-fg); border-color: var(--primary-fg); }
.cta .btn-outline:hover { background: var(--primary-fg); color: var(--primary); }

/* ---------- Page heads ---------- */
.page { padding: 64px 0; }
@media (min-width: 768px) { .page { padding: 96px 0; } }
.page-head { text-align: center; margin-bottom: 64px; }
.page-head h1 { font-size: clamp(2.25rem, 5vw, 3rem); margin-bottom: 16px; }
.page-head .pill { margin-bottom: 24px; }
.page-head .lead { max-width: 680px; margin: 0 auto; }

/* Products */
.why { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .why { grid-template-columns: repeat(2, 1fr); } }
.why h3 { font-size: 1.05rem; margin-bottom: 10px; display: flex; gap: 8px; align-items: center; }
.why h3 .icon { color: var(--accent-ink); width: 20px; height: 20px; }
.why p { color: var(--muted-fg); }
.center { text-align: center; }
.mb-64 { margin-bottom: 64px; }
.h2-sm { font-size: 1.5rem; text-align: center; margin-bottom: 32px; }

/* About */
.prose-narrow { max-width: 680px; margin: 0 auto; }
.prose-narrow h2 { font-size: 1.5rem; margin-bottom: 16px; }
.prose-narrow p { color: var(--muted-fg); margin-bottom: 16px; }
.fineprint { font-size: .875rem; font-style: italic; color: var(--muted-fg); border-top: 1px solid var(--border); padding-top: 16px; margin-top: 8px; }

/* Contact */
.contact-grid { display: grid; gap: 48px; grid-template-columns: 1fr; max-width: 1040px; margin: 0 auto; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-grid h2 { font-size: 1.5rem; margin-bottom: 24px; }
.info-row { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.info-row h3 { font-size: 1rem; margin-bottom: 4px; }
.info-row p, .info-row a { color: var(--muted-fg); text-decoration: none; }
.info-row a:hover { color: var(--fg); text-decoration: underline; }
.expect { margin-top: 48px; background: color-mix(in srgb, var(--muted) 60%, var(--bg)); border-radius: 14px; padding: 24px; }
.expect h3 { font-size: 1rem; margin-bottom: 12px; }
.expect ul { list-style: none; margin: 0; padding: 0; color: var(--muted-fg); }
.expect li { display: flex; gap: 10px; align-items: baseline; margin: 6px 0; }
.expect li::before { content: ""; width: 6px; height: 6px; border-radius: 99px; background: var(--accent); flex: none; transform: translateY(-2px); }

.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label { font-size: .875rem; font-weight: 600; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--fg); background: var(--bg);
  border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.field .err { font-size: .85rem; color: var(--danger); min-height: 0; }
.field .err:empty { display: none; }
.form-note { font-size: .85rem; color: var(--muted-fg); }
.form-done { text-align: center; padding: 24px 0; }
.form-done h3 { font-size: 1.25rem; margin: 16px 0 8px; }
.form-done p { color: var(--muted-fg); margin-bottom: 20px; }
.form-done .tile { width: 64px; height: 64px; border-radius: 999px; }
[hidden] { display: none !important; }

/* Legal */
.legal { max-width: 760px; margin: 0 auto; }
.legal h1 { font-size: clamp(2.25rem, 5vw, 3rem); margin-bottom: 32px; }
.legal .updated { color: var(--muted-fg); margin-bottom: 32px; }
.legal section { margin-bottom: 32px; }
.legal h2 { font-size: 1.4rem; margin-bottom: 12px; }
.legal p, .legal li { color: var(--muted-fg); }
.legal p + p, .legal p + ul { margin-top: 12px; }
.legal ul { padding-left: 22px; margin: 12px 0 0; }
.legal li { margin: 6px 0; }
.legal strong { color: var(--fg); }
.legal a { color: var(--fg); text-underline-offset: 3px; }

/* 404 */
.notfound { min-height: 50vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.notfound .big { font-size: clamp(6rem, 20vw, 8rem); font-weight: 800; line-height: 1; color: color-mix(in srgb, var(--accent) 35%, transparent); }
.notfound h1 { font-size: 1.875rem; margin: 16px 0 8px; }
.notfound p { color: var(--muted-fg); max-width: 440px; margin-bottom: 32px; }

/* ---------- Footer ---------- */
.site-footer { background: color-mix(in srgb, var(--muted) 75%, var(--bg)); margin-top: auto; }
.site-footer .cols { display: grid; gap: 32px; grid-template-columns: 1fr; padding: 48px 0 32px; }
@media (min-width: 640px) { .site-footer .cols { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .site-footer .cols { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer .brand img { height: 40px; }
.site-footer .tagline { font-size: .875rem; color: var(--muted-fg); margin-top: 14px; max-width: 280px; }
.site-footer h3 { font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 8px 0; }
.site-footer li a { font-size: .875rem; color: var(--muted-fg); text-decoration: none; }
.site-footer li a:hover { color: var(--fg); }
.site-footer .bottom {
  border-top: 1px solid var(--border); padding: 24px 0 32px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: .875rem; color: var(--muted-fg);
}

/* ---------- Reveal-on-scroll (replaces framer-motion) ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
.js .reveal.d1 { transition-delay: 90ms; }
.js .reveal.d2 { transition-delay: 180ms; }
.js .reveal.d3 { transition-delay: 270ms; }
.js .reveal.d4 { transition-delay: 360ms; }
.js .reveal.d5 { transition-delay: 450ms; }
.h2-sm.tight { margin-bottom: 16px; }
.actions.flush { margin-top: 0; }
.contact-grid .card { height: auto; }

/* Software development: secondary line of business, so a compact strip
   rather than full cards */
.section.section-tight { padding: 56px 0 0; }
@media (min-width: 768px) { .section.section-tight { padding: 72px 0 0; } }
.also { border: 1px solid var(--border); border-radius: 18px; padding: 28px 24px; scroll-margin-top: 88px; }
@media (min-width: 768px) { .also { padding: 36px 40px; } }
.also-head { margin-bottom: 24px; }
.also-head h2 { font-size: 1.375rem; margin-bottom: 6px; }
.also-head p { color: var(--muted-fg); }
.also-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .also-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.also-item { display: flex; gap: 14px; align-items: flex-start; }
.also-item .tile { width: 40px; height: 40px; flex: none; }
.also-item .tile .icon { width: 20px; height: 20px; }
.also-item h3 { font-size: 1rem; margin-bottom: 4px; }
.also-item p { color: var(--muted-fg); font-size: .925rem; line-height: 1.5; }
