/* ============================================================
   Viso Apps — shared stylesheet
   Palette: navy #0A1F44, blue #1B5FFF, cyan #17C1E8,
            bg #F4F7FC, white #FFFFFF, text #2B3A55
   Type: Sora (display) / Inter (body)
   ============================================================ */

:root{
  --navy: #0A1F44;
  --blue: #1B5FFF;
  --blue-dark: #164FD1;
  --cyan: #17C1E8;
  --bg: #F4F7FC;
  --white: #FFFFFF;
  --text: #23304D;
  --text-muted: #647192;
  --border: #E1E8F5;
  --shadow: 0 10px 30px -12px rgba(10, 31, 68, 0.18);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --max: 1140px;
}

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

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4{
  font-family: "Sora", "Inter", sans-serif;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1{ font-size: clamp(2.1rem, 4vw, 3.1rem); font-weight: 700; }
h2{ font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; }
h3{ font-size: 1.2rem; font-weight: 600; }

p{ margin: 0 0 1em; color: var(--text); }
a{ color: var(--blue); text-decoration: none; }
a:hover{ color: var(--blue-dark); }

ul{ padding-left: 1.3em; }
li{ margin-bottom: 0.5em; }

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

:focus-visible{
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}

.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Sora", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(27,95,255,0.08);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}

/* ---------- Header / Nav ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 247, 252, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max);
  margin: 0 auto;
}

.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
}

.brand-mark{
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-family: "Sora", sans-serif;
  flex-shrink: 0;
}

.nav-links{
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a{
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 9px 14px;
  border-radius: 100px;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover{ background: rgba(27,95,255,0.08); color: var(--blue-dark); }
.nav-links a.active{ background: var(--blue); color: white; }

.nav-toggle{
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  position: relative;
  transition: 0.2s;
}
.nav-toggle span::before{ position: absolute; top: -6px; }
.nav-toggle span::after{ position: absolute; top: 6px; }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary{
  background: var(--blue);
  color: white;
  box-shadow: 0 8px 20px -6px rgba(27,95,255,0.55);
}
.btn-primary:hover{ background: var(--blue-dark); color: white; transform: translateY(-2px); }
.btn-ghost{
  background: white;
  color: var(--navy);
  border-color: var(--border);
}
.btn-ghost:hover{ border-color: var(--blue); color: var(--blue-dark); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero{
  padding: 88px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero::before{
  content: "";
  position: absolute;
  top: -180px;
  right: -160px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27,95,255,0.16), rgba(23,193,232,0.06) 60%, transparent 70%);
  pointer-events: none;
}
.hero-inner{
  position: relative;
  max-width: 760px;
}
.hero p.lead{
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 620px;
}
.hero-actions{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.page-hero{
  padding: 64px 0 40px;
}
.page-hero p.lead{ font-size: 1.05rem; color: var(--text-muted); max-width: 640px; }

/* ---------- Sections ---------- */
section{ padding: 56px 0; }
.section-tight{ padding: 32px 0; }

.section-head{
  max-width: 620px;
  margin-bottom: 36px;
}
.section-head p{ color: var(--text-muted); }

/* ---------- App cards ---------- */
.app-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.app-card{
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.app-card:hover{ transform: translateY(-4px); box-shadow: 0 18px 40px -14px rgba(10,31,68,0.24); }

.app-icon{
  width: 64px;
  height: 64px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg);
  border: 1px solid var(--border);
}
.app-icon img{ width: 100%; height: 100%; object-fit: cover; }

.app-card h3{ margin-bottom: 6px; }
.app-card p{ color: var(--text-muted); font-size: 0.95rem; margin-bottom: 14px; }
.app-card a.btn{ padding: 9px 20px; font-size: 0.85rem; }

.dev-cta{
  margin-top: 32px;
  background: linear-gradient(135deg, var(--navy), #12305F);
  border-radius: var(--radius-lg);
  padding: 34px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.dev-cta h3{ color: white; margin-bottom: 6px; }
.dev-cta p{ color: rgba(255,255,255,0.75); margin-bottom: 0; }

/* ---------- Feature / info cards ---------- */
.feature-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.feature-card{
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}
.feature-icon{
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(27,95,255,0.1);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-weight: 700;
  font-family: "Sora", sans-serif;
}

/* ---------- Policy / legal content ---------- */
.policy-card{
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 8px 40px;
}
.policy-card h2{
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.policy-card > h2:first-of-type{ border-top: none; padding-top: 0; margin-top: 8px; }
.policy-card h3{ margin-top: 20px; color: var(--blue-dark); }
.policy-card ul{ color: var(--text); }
.policy-meta{
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.toc{
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin-bottom: 32px;
}
.toc h3{ margin-bottom: 10px; }
.toc ol{ margin: 0; padding-left: 1.2em; columns: 2; column-gap: 24px; }
.toc a{ color: var(--text); font-size: 0.93rem; }
.toc a:hover{ color: var(--blue); }

.callout{
  background: rgba(23,193,232,0.08);
  border: 1px solid rgba(23,193,232,0.3);
  border-left: 4px solid var(--cyan);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 0.95rem;
}
.callout strong{ color: var(--navy); }

/* ---------- Network grid (ad networks list) ---------- */
.network-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 20px 0 8px;
}
.network-pill{
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
}

.network-list{
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0 8px;
}
.network-item{
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}
.network-item .network-name{
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy);
  flex: 0 0 200px;
}
.network-item .network-desc{
  color: var(--text-muted);
  font-size: 0.85rem;
  flex: 1 1 280px;
  margin: 0;
}
.network-item .network-link{
  flex: 0 0 auto;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  background: white;
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 100px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.network-item .network-link:hover{ border-color: var(--blue); color: var(--blue-dark); }

@media (max-width: 640px){
  .network-item{ flex-direction: column; align-items: flex-start; }
  .network-item .network-link{ align-self: flex-start; }
}

/* ---------- Contact ---------- */
.contact-grid{
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 800px){ .contact-grid{ grid-template-columns: 1fr; } }

.contact-card{
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 30px;
}
.contact-row{
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.contact-row:last-child{ border-bottom: none; }
.contact-icon{
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(27,95,255,0.1);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-row h4{ margin: 0 0 4px; font-family: "Sora", sans-serif; font-size: 0.95rem; color: var(--navy); }
.contact-row a, .contact-row span{ color: var(--text-muted); font-size: 0.95rem; }
.contact-row a:hover{ color: var(--blue); }

/* ---------- Careers ---------- */
.role-card{
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.role-tag{
  display: inline-block;
  background: rgba(27,95,255,0.1);
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 6px;
}

/* ---------- Footer ---------- */
.site-footer{
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  margin-top: 72px;
}
.footer-top{
  padding: 56px 0 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 800px){ .footer-top{ grid-template-columns: 1fr 1fr; } }

.footer-brand .brand{ color: white; }
.footer-top p{ color: rgba(255,255,255,0.55); font-size: 0.92rem; }
.footer-col h4{ color: white; font-family: "Sora", sans-serif; font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col ul{ list-style: none; padding: 0; margin: 0; }
.footer-col li{ margin-bottom: 10px; }
.footer-col a{ color: rgba(255,255,255,0.65); font-size: 0.93rem; }
.footer-col a:hover{ color: var(--cyan); }

.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 20px 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* ---------- Responsive nav ---------- */
@media (max-width: 860px){
  .nav-links{
    position: fixed;
    top: 70px;
    left: 16px;
    right: 16px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    display: none;
  }
  .nav-links.open{ display: flex; }
  .nav-links a{ padding: 12px 16px; }
  .nav-toggle{ display: flex; }
}

@media (max-width: 600px){
  .policy-card{ padding: 6px 20px; }
  .toc ol{ columns: 1; }
}

@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; scroll-behavior: auto !important; }
}
