/* ── Variables ─────────────────────────────────────── */
:root {
  --cyan: #00E5FF;
  --violet: #7C3AED;
  --magenta: #E91E8C;
  --gold: #FFD700;
  --silver: #C0C0C0;
  --bg: #050508;
  --bg-card: #0d0d14;
  --bg-card-hover: #13131e;
  --border: rgba(124,58,237,0.2);
  --border-hover: rgba(0,229,255,0.4);
  --text-primary: #f0f0f8;
  --text-secondary: #9090b0;
  --gradient: linear-gradient(135deg, var(--cyan), var(--violet), var(--magenta));
}

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Scrollbar ─────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--violet), var(--magenta)); border-radius: 3px; }

/* ── Utilities ─────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.text-center { text-align: center; }

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

.grid-bg {
  background-image:
    linear-gradient(rgba(124,58,237,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  transition: all .3s;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #fff;
}
.btn-primary:hover {
  box-shadow: 0 0 30px rgba(0,229,255,.4);
  transform: translateY(-1px);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--cyan);
}
.btn-outline:hover {
  background: rgba(0,229,255,.1);
  box-shadow: 0 0 20px rgba(0,229,255,.2);
}
.btn-magenta {
  background: linear-gradient(135deg, var(--magenta), var(--violet));
  color: #fff;
}
.btn-magenta:hover {
  box-shadow: 0 0 30px rgba(233,30,140,.4);
  transform: translateY(-1px);
  color: #fff;
}

/* ── Badges ────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: .2rem .7rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.badge-cyan   { background: rgba(0,229,255,.1);   color: var(--cyan);    border: 1px solid rgba(0,229,255,.3);  }
.badge-violet { background: rgba(124,58,237,.15); color: #a78bfa;        border: 1px solid rgba(124,58,237,.3); }
.badge-magenta{ background: rgba(233,30,140,.1);  color: var(--magenta); border: 1px solid rgba(233,30,140,.3); }
.badge-gold   { background: rgba(255,215,0,.1);   color: var(--gold);    border: 1px solid rgba(255,215,0,.3);  }
.badge-silver { background: rgba(192,192,192,.1); color: var(--silver);  border: 1px solid rgba(192,192,192,.3);}

/* ── Cards ─────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all .3s;
}
.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,229,255,.1);
}

/* ── Forms ─────────────────────────────────────────── */
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  margin-bottom: .4rem;
  font-size: .85rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.form-control {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .75rem 1rem;
  color: var(--text-primary);
  font-size: .95rem;
  font-family: inherit;
  transition: all .2s;
}
.form-control:focus {
  border-color: var(--cyan);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,229,255,.1);
}
.form-control::placeholder { color: var(--text-secondary); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control option { background: var(--bg-card); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media(max-width:600px){ .form-row { grid-template-columns: 1fr; } }

/* ── Navbar ────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: all .3s;
  padding: 0 1.5rem;
}
.navbar.scrolled {
  background: rgba(5,5,8,.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.navbar-brand img { width: 36px; height: 36px; object-fit: contain; }
.brand-name { font-weight: 800; font-size: 1.15rem; }
.brand-sub  { display: block; font-size: .7rem; color: var(--text-secondary); line-height: 1; }
.nav-links { display: flex; align-items: center; gap: .25rem; }
.nav-links a {
  padding: .5rem .85rem;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all .2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--cyan);
  background: rgba(0,229,255,.08);
}
.nav-links .btn { padding: .45rem 1.1rem; font-size: .85rem; margin-left: .5rem; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 1.5rem;
}
@media(max-width:768px){
  .nav-links { display: none; flex-direction: column; gap: .25rem;
    position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(5,5,8,.97); border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem; }
  .nav-links.open { display: flex; }
  .nav-links .btn { width: 100%; justify-content: center; margin: .5rem 0 0; }
  .nav-toggle { display: block; }
}

/* ── Footer ────────────────────────────────────────── */
.footer {
  background: rgba(0,0,0,.6);
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  padding: 3rem 0 2rem;
}
@media(max-width:768px){ .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img.logo { width: 28px; height: 28px; object-fit: contain; }
.footer-brand .name { font-size: 1.2rem; font-weight: 800; }
.footer-brand p { color: var(--text-secondary); font-size: .88rem; line-height: 1.7; max-width: 300px; margin: .75rem 0 1rem; }
.footer-brand .csol-logo { height: 28px; width: auto; border-radius: 4px; }
.footer h4 { font-size: .85rem; font-weight: 700; margin-bottom: 1rem; color: var(--text-primary); }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: .6rem; }
.footer ul a { color: var(--text-secondary); font-size: .88rem; transition: color .2s; }
.footer ul a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: .75rem;
}
.footer-bottom p { color: var(--text-secondary); font-size: .78rem; }
.footer-bottom-links { display: flex; gap: 1.25rem; }
.footer-bottom-links a { color: var(--text-secondary); font-size: .78rem; transition: color .2s; }
.footer-bottom-links a:hover { color: #fff; }

/* ── Hero ──────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}
.hero-content { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 900; line-height: 1.1; margin-bottom: 1.25rem; }
.hero p { font-size: 1.15rem; color: var(--text-secondary); max-width: 580px; margin-bottom: 2rem; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: .5;
}

/* ── Page hero ─────────────────────────────────────── */
.page-hero { padding: 8rem 0 4rem; text-align: center; }
.page-hero h1 { font-size: clamp(2rem,4vw,3.5rem); font-weight: 900; margin: .75rem 0 1rem; }
.page-hero p { color: var(--text-secondary); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* ── Grid layouts ──────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
@media(max-width:900px){ .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media(max-width:600px){ .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ── Section headings ──────────────────────────────── */
.section-label { display: block; margin-bottom: .75rem; }
.section-title { font-size: clamp(1.75rem,3vw,2.5rem); font-weight: 900; margin-bottom: 1rem; }
.section-sub { color: var(--text-secondary); font-size: 1.05rem; max-width: 600px; }

/* ── App cards ─────────────────────────────────────── */
.app-card { display: block; }
.app-card-cover {
  height: 180px;
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg,rgba(0,229,255,.08),rgba(124,58,237,.15));
  overflow: hidden;
}
.app-card-cover img { max-height: 120px; max-width: 80%; object-fit: contain; }
.app-card-cover .initials { font-size: 3rem; font-weight: 900; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.app-card-body { padding: 1.25rem; }
.app-card-body h3 { font-size: 1.1rem; font-weight: 700; margin: .5rem 0 .25rem; }
.app-card-body .tagline { color: var(--cyan); font-size: .85rem; margin-bottom: .5rem; }
.app-card-body p { color: var(--text-secondary); font-size: .88rem; line-height: 1.6; margin-bottom: .75rem; }
.app-card-body .tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .75rem; }
.tag { font-size: .7rem; padding: .15rem .5rem; border-radius: 999px; background: rgba(124,58,237,.12); color: var(--text-secondary); border: 1px solid var(--border); }
.app-card-link { color: var(--cyan); font-size: .88rem; font-weight: 600; display: inline-flex; align-items: center; gap: .3rem; transition: gap .2s; }
.app-card:hover .app-card-link { gap: .6rem; }

/* ── News cards ────────────────────────────────────── */
.news-card-cover {
  height: 180px;
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.news-card-body { padding: 1.25rem; }
.news-card-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; }
.news-card-date { color: var(--text-secondary); font-size: .8rem; }
.news-card-body h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; line-height: 1.4; }
.news-card-body p { color: var(--text-secondary); font-size: .88rem; line-height: 1.6; margin-bottom: .75rem; }

/* ── Service card ──────────────────────────────────── */
.service-card { padding: 1.75rem; }
.service-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem; font-size: 1.5rem; }
.service-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.service-card p { color: var(--text-secondary); font-size: .9rem; line-height: 1.7; margin-bottom: 1rem; }
.service-card ul { list-style: none; }
.service-card ul li { color: var(--text-secondary); font-size: .85rem; padding: .25rem 0; display: flex; align-items: flex-start; gap: .5rem; }
.service-card ul li::before { content: '▸'; color: var(--cyan); flex-shrink: 0; margin-top: 1px; }

/* ── Alert ─────────────────────────────────────────── */
.alert { padding: .9rem 1.1rem; border-radius: 8px; font-size: .9rem; margin-bottom: 1rem; }
.alert-success { background: rgba(0,229,255,.08); color: var(--cyan); border: 1px solid rgba(0,229,255,.3); }
.alert-error   { background: rgba(233,30,140,.08); color: var(--magenta); border: 1px solid rgba(233,30,140,.3); }

/* ── Contact layout ────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; }
@media(max-width:768px){ .contact-grid { grid-template-columns: 1fr; } }
.info-card { padding: 1.25rem; margin-bottom: 1rem; }
.info-card .info-icon { font-size: 1.4rem; margin-bottom: .6rem; }
.info-card h4 { font-size: .9rem; font-weight: 600; margin-bottom: .25rem; }
.info-card a, .info-card p { color: var(--text-secondary); font-size: .88rem; }
.info-card a:hover { color: #fff; }

/* ── Founder card ──────────────────────────────────── */
.founder-card { padding: 2rem; display: flex; gap: 1.75rem; align-items: flex-start; max-width: 700px; margin: 0 auto; }
@media(max-width:600px){ .founder-card { flex-direction: column; align-items: center; text-align: center; } }
.founder-photo { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; object-position: top; flex-shrink: 0; border: 2px solid rgba(0,229,255,.4); box-shadow: 0 0 24px rgba(0,229,255,.15); }
.founder-info h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: .2rem; }
.founder-title { color: var(--cyan); font-size: .9rem; font-weight: 600; margin-bottom: .15rem; }
.founder-sub { color: var(--text-secondary); font-size: .8rem; margin-bottom: .85rem; }
.founder-bio { color: var(--text-secondary); font-size: .9rem; line-height: 1.75; margin-bottom: 1rem; }
.skill-tags { display: flex; flex-wrap: wrap; gap: .4rem; }

/* ── CTA box ───────────────────────────────────────── */
.cta-box {
  background: linear-gradient(135deg,rgba(0,229,255,.05),rgba(124,58,237,.08));
  border: 1px solid rgba(0,229,255,.15);
  border-radius: 16px;
  padding: 3.5rem 2rem;
  text-align: center;
}
.cta-box h2 { font-size: clamp(1.5rem,3vw,2.2rem); font-weight: 900; margin-bottom: .75rem; }
.cta-box p { color: var(--text-secondary); margin-bottom: 1.75rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-box .btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Prose (article) ───────────────────────────────── */
.prose h1,.prose h2,.prose h3 { color: var(--text-primary); margin: 1.75rem 0 .75rem; font-weight: 800; }
.prose h1 { font-size: 2rem; } .prose h2 { font-size: 1.5rem; } .prose h3 { font-size: 1.2rem; }
.prose p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 1rem; }
.prose a { color: var(--cyan); }
.prose ul,.prose ol { color: var(--text-secondary); padding-left: 1.5rem; margin-bottom: 1rem; }
.prose li { margin-bottom: .4rem; line-height: 1.7; }
.prose strong { color: var(--text-primary); }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* ── Animations ────────────────────────────────────── */
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-18px)} }
@keyframes fadeUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }
.fade-up { animation: fadeUp .7s ease both; }
.fade-up-1 { animation-delay: .1s; }
.fade-up-2 { animation-delay: .2s; }
.fade-up-3 { animation-delay: .3s; }

/* ── Responsive helpers ────────────────────────────── */
@media(max-width:768px){
  .section { padding: 3rem 0; }
  .page-hero { padding: 6rem 0 3rem; }
  .hero { min-height: auto; padding: 7rem 0 4rem; }
}
