:root{
  --bg:#0b0f19;
  --card:#121829;
  --text:#e6e9f2;
  --muted:#aab3c5;
  --brand:#6c8cff;
  --brand-2:#00d1b2;
  --border:#1f2740;
  --shadow:0 10px 30px rgba(0,0,0,.25);
  --radius:14px;
  --radius-sm:10px;
  --maxw:1200px;
  --speed:260ms;
  --ease:cubic-bezier(.2,.7,.2,1);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  color:var(--text);
  background:linear-gradient(180deg,#0b0f19 0%,#0a1328 100%);
}

a{color:inherit; text-decoration:none}
img{max-width:100%; display:block}

/* Image fit helpers */
img.fit-cover{width:100%; height:100%; object-fit:cover}    /* crops to fill */
img.fit-contain{width:100%; height:100%; object-fit:contain}/* no crop */
img.fit-scale{width:100%; height:100%; object-fit:scale-down}
.object-center{object-position:50% 50%}
.object-top{object-position:50% 0%}
.object-bottom{object-position:50% 100%}
.object-left{object-position:0% 50%}
.object-right{object-position:100% 50%}

/* Shared containers */
.container{width:100%; max-width:var(--maxw); margin:0 auto; padding:0 20px}

.header{
  position:sticky; top:0; z-index:1000;
  backdrop-filter:saturate(140%) blur(12px);
  background:rgba(11,15,25,.6);
  border-bottom:1px solid var(--border);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
}
.brand{
  display:flex; align-items:center; gap:12px;
}
.brand img{width:40px; height:40px; object-fit:contain} /* logo never crops */
.brand span{font-weight:700; letter-spacing:.3px}

.nav-links{
  display:flex; gap:18px; align-items:center;
}
.nav-links a{
  padding:10px 14px; border-radius:10px; color:var(--muted);
  transition:color var(--speed) var(--ease), background var(--speed) var(--ease), transform var(--speed) var(--ease);
}
.nav-links a:hover{color:var(--text); background:rgba(108,140,255,.1)}
.nav-links a.active{color:#fff; background:rgba(0,209,178,.12); box-shadow:inset 0 0 0 1px rgba(0,209,178,.25)}

.nav-toggle{
  display:none; background:none; border:0; color:var(--text); font-size:22px; padding:8px; border-radius:10px;
}
.nav-toggle[aria-expanded="true"]{background:rgba(108,140,255,.15)}

.hero{
  padding:80px 0 40px;
}
.hero-inner{
  display:grid; grid-template-columns:1.1fr .9fr; gap:32px; align-items:center;
}
.tag{
  display:inline-flex; gap:8px; align-items:center; padding:6px 10px;
  border:1px solid var(--border); border-radius:999px; color:var(--muted);
  background:rgba(108,140,255,.08)
}
.tag i{width:8px; height:8px; background:var(--brand-2); border-radius:50%}
h1{font-size:40px; line-height:1.15; margin:14px 0 10px}
.lead{color:var(--muted); font-size:18px}

.cta-row{display:flex; gap:12px; margin-top:18px}
.btn{
  display:inline-flex; align-items:center; gap:10px; padding:12px 16px; border-radius:12px; border:1px solid var(--border);
  background:linear-gradient(180deg,#1a2240, #121a33); color:#fff; box-shadow:var(--shadow);
  transition:transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), background var(--speed) var(--ease);
}
.btn:hover{transform:translateY(-2px); box-shadow:0 16px 40px rgba(0,0,0,.35)}
.btn.secondary{background:transparent; color:var(--text)}
.btn .dot{width:8px; height:8px; background:var(--brand); border-radius:50%}

.section{padding:56px 0}
.section h2{font-size:28px; margin:0 0 8px}
.section p.section-lead{color:var(--muted); margin:0 0 24px}

/* Grids and cards */
.grid{display:grid; gap:18px}
.grid.cards{grid-template-columns:repeat(3, 1fr)}
.card{
  background:linear-gradient(180deg,#121829, #0f1626); border:1px solid var(--border); border-radius:var(--radius);
  box-shadow:var(--shadow); padding:18px; position:relative; overflow:hidden;
  transition:transform var(--speed) var(--ease), border-color var(--speed) var(--ease)
}
.card:hover{transform:translateY(-4px); border-color:rgba(108,140,255,.35)}
.card .thumb{
  border-radius:var(--radius-sm); overflow:hidden; border:1px solid var(--border); aspect-ratio:16/9; background:#0a0f1e;
}
.card .thumb > img{width:100%; height:100%; object-fit:cover} /* uniform 16:9 fill */
.card h3{margin:14px 0 6px}
.card p{color:var(--muted); margin:0}

/* KPI */
.kpis{display:grid; grid-template-columns:repeat(4, 1fr); gap:18px}
.kpi{
  background:linear-gradient(180deg,#11182a,#0c1322); border:1px solid var(--border); border-radius:var(--radius); padding:16px; text-align:center
}
.kpi .num{font-size:28px; font-weight:800}
.kpi .label{color:var(--muted)}

/* Footer */
.footer{border-top:1px solid var(--border); padding:24px 0; color:var(--muted)}

/* Page hero and breadcrumbs */
.page-hero{padding:64px 0 28px; background:linear-gradient(180deg, rgba(108,140,255,.08), rgba(0,0,0,0)); border-bottom:1px solid var(--border)}
.breadcrumbs{color:var(--muted); font-size:14px}

/* Forms */
.form{display:grid; gap:12px; max-width:720px}
.input,.textarea{width:100%; padding:12px 14px; border-radius:12px; border:1px solid var(--border); background:#0b1120; color:var(--text)}
.textarea{min-height:140px; resize:vertical}

/* Team */
.team-grid{grid-template-columns:repeat(4, 1fr)}
.team-card .avatar{
  width:100%; aspect-ratio:1; border-radius:14px; overflow:hidden; border:1px solid var(--border); background:#0a0f1e
}
.team-card .avatar > img{width:100%; height:100%; object-fit:cover}

/* Screenshots that must not crop (optional utility) */
.screenshot{aspect-ratio:16/9; background:#0a0f1e; border:1px solid var(--border); border-radius:var(--radius-sm); overflow:hidden}
.screenshot > img{width:100%; height:100%; object-fit:contain}

/* Responsive */
@media (max-width:980px){
  .hero-inner{grid-template-columns:1fr}
  .grid.cards{grid-template-columns:repeat(2, 1fr)}
  .kpis{grid-template-columns:repeat(2,1fr)}
  .team-grid{grid-template-columns:repeat(2, 1fr)}
  .pricing{grid-template-columns:1fr}
  .nav-toggle{display:inline-block}
  .nav-links{position:fixed; inset:64px 16px auto 16px; background:rgba(11,15,25,.98); border:1px solid var(--border); border-radius:16px; padding:12px; flex-direction:column; gap:8px; transform:translateY(-10px); opacity:0; pointer-events:none; transition:opacity var(--speed) var(--ease), transform var(--speed) var(--ease)}
  .nav-links.open{opacity:1; pointer-events:auto; transform:translateY(0)}
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *{animation:none !important; transition:none !important; scroll-behavior:auto !important}
}
/* Social icon list for team cards */
.team-card .socials{
  display:flex; gap:10px; list-style:none; padding:12px 0 0; margin:0;
}
.team-card .socials a{
  width:36px; height:36px; display:inline-flex; align-items:center; justify-content:center;
  border:1px solid var(--border); border-radius:10px; color:var(--muted);
  background:rgba(108,140,255,.06); transition:background var(--speed) var(--ease), color var(--speed) var(--ease), border-color var(--speed) var(--ease), transform var(--speed) var(--ease);
}
.team-card .socials a:hover{
  color:#fff; background:rgba(108,140,255,.18); border-color:rgba(108,140,255,.4); transform:translateY(-2px);
}
.team-card .socials svg{width:18px; height:18px}
/* Dropdown menu styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background: rgba(11,15,25,0.95);
  min-width: 220px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 10px;
  z-index: 1000;
  flex-direction: column;
}

.dropdown-content a {
  padding: 10px 14px;
  display: block;
  color: var(--muted);
  transition: background var(--speed) var(--ease), color var(--speed) var(--ease);
}

.dropdown-content a:hover {
  color: var(--text);
  background: rgba(108,140,255,0.1);
}

/* Show menu on hover */
.dropdown:hover .dropdown-content {
  display: flex;
}
