/* ==========================================================================
   SKC Technologies — Design System
   Hand-coded, dependency-free. Dark "advanced tech" theme.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --bg: #070b16;
  --bg-2: #0b1120;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e7ecf5;
  --text-muted: #9aa7bd;
  --text-dim: #6b7791;
  --accent: #22d3ee;      /* cyan */
  --accent-2: #7c3aed;    /* violet */
  --accent-3: #2563eb;    /* blue */
  --glow: rgba(34, 211, 238, 0.35);
  --grad: linear-gradient(120deg, #22d3ee 0%, #6366f1 50%, #a855f7 100%);
  --grad-soft: linear-gradient(120deg, rgba(34,211,238,.14), rgba(168,85,247,.14));
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --maxw: 1200px;
  --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4, h5 { font-family: var(--font); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }

/* ---------- Animated background ---------- */
.bg-canvas {
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 50% at 80% -10%, rgba(124, 58, 237, 0.22), transparent 60%),
    radial-gradient(50% 45% at 10% 0%, rgba(34, 211, 238, 0.18), transparent 55%),
    var(--bg);
}
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 40%, transparent 100%);
}
.orb {
  position: fixed; border-radius: 50%; filter: blur(70px); z-index: -1;
  opacity: .5; pointer-events: none; animation: float 18s ease-in-out infinite;
}
.orb.a { width: 420px; height: 420px; background: #22d3ee; top: -120px; right: -80px; }
.orb.b { width: 380px; height: 380px; background: #7c3aed; bottom: -140px; left: -100px; animation-delay: -6s; }
@keyframes float {
  0%,100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(40px) translateX(-30px); }
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.section.tight { padding: 64px 0; }
.grid { display: grid; gap: 24px; }
@media (min-width: 720px){ .g-2 { grid-template-columns: repeat(2,1fr);} }
@media (min-width: 940px){ .g-3 { grid-template-columns: repeat(3,1fr);} .g-4 { grid-template-columns: repeat(4,1fr);} }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-size: .78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .16em; color: var(--accent);
  padding: 7px 14px; border: 1px solid var(--border-strong);
  border-radius: 100px; background: var(--surface); backdrop-filter: blur(8px);
}
.eyebrow::before { content:""; width:6px; height:6px; border-radius:50%; background: var(--accent); box-shadow: 0 0 12px var(--glow); }
h1.display { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2.title { font-size: clamp(1.9rem, 4vw, 3rem); }
.lead { color: var(--text-muted); font-size: clamp(1rem, 1.6vw, 1.18rem); max-width: 62ch; }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head .lead { margin: 16px auto 0; }
.muted { color: var(--text-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font); font-weight: 600; font-size: .96rem;
  padding: 14px 26px; border-radius: 100px; border: 1px solid transparent;
  cursor: pointer; transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  position: relative; overflow: hidden;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--grad); color: #05070d; box-shadow: 0 10px 30px -8px var(--glow); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -10px var(--glow); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); backdrop-filter: blur(8px); }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--accent); color: #fff; }

/* ---------- Header ---------- */
.topbar {
  font-size: .82rem; color: var(--text-muted);
  border-bottom: 1px solid var(--border); background: rgba(5,7,13,.6);
}
.topbar .container { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; justify-content: space-between; padding-top: 9px; padding-bottom: 9px; }
.topbar a:hover { color: var(--accent); }
.topbar .tb-right { display: flex; gap: 18px; align-items: center; }
@media (max-width: 720px){ .topbar { display: none; } }

.site-header { position: sticky; top: 0; z-index: 100; transition: background .3s, box-shadow .3s, border-color .3s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(7,11,22,.82); backdrop-filter: blur(14px); border-bottom-color: var(--border); box-shadow: 0 10px 30px -20px #000; }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font); font-weight: 700; font-size: 1.15rem; }
.brand img { height: 40px; width: auto; }
.brand .mark { width: 38px; height: 38px; border-radius: 11px; background: var(--grad); display: grid; place-items: center; color: #05070d; font-weight: 800; box-shadow: 0 8px 20px -6px var(--glow); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > li { position: relative; }
.nav-links > li > a { display: block; padding: 10px 14px; font-size: .93rem; font-weight: 500; color: var(--text-muted); border-radius: 10px; transition: color .2s, background .2s; }
.nav-links > li > a:hover, .nav-links > li.active > a { color: #fff; background: var(--surface); }
.has-drop > a::after { content: "▾"; font-size: .7rem; margin-left: 6px; opacity: .7; }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 230px;
  background: rgba(11,17,32,.97); backdrop-filter: blur(16px);
  border: 1px solid var(--border); border-radius: 14px; padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s; box-shadow: var(--shadow);
}
.has-drop:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 10px 14px; border-radius: 9px; font-size: .9rem; color: var(--text-muted); transition: background .18s, color .18s; }
.dropdown a:hover { background: var(--surface-2); color: #fff; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.hamburger { display: none; width: 44px; height: 44px; border: 1px solid var(--border-strong); background: var(--surface); border-radius: 12px; cursor: pointer; }
.hamburger span { display: block; width: 20px; height: 2px; background: var(--text); margin: 4px auto; transition: .3s; }

@media (max-width: 1040px){
  .nav-links, .nav-cta .btn { display: none; }
  .hamburger { display: block; }
}

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.6); opacity: 0; transition: opacity .3s; }
.drawer.open .drawer-overlay { opacity: 1; }
.drawer-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(340px, 86vw);
  background: var(--bg-2); border-left: 1px solid var(--border); padding: 24px;
  transform: translateX(100%); transition: transform .35s cubic-bezier(.4,0,.2,1); overflow-y: auto;
}
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-close { float: right; width: 42px; height: 42px; border: 1px solid var(--border-strong); background: var(--surface); border-radius: 11px; color: var(--text); font-size: 1.3rem; cursor: pointer; }
.drawer-nav { margin-top: 60px; }
.drawer-nav a { display: block; padding: 13px 12px; border-radius: 10px; color: var(--text-muted); font-weight: 500; border-bottom: 1px solid var(--border); }
.drawer-nav a:hover { color: #fff; background: var(--surface); }
.drawer-nav .sub a { padding-left: 26px; font-size: .9rem; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 90px 0 80px; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px){ .hero-grid { grid-template-columns: 1.1fr .9fr; } }
.hero h1 { margin: 22px 0 20px; }
.hero .lead { margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { display: flex; gap: 30px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats .num { font-family: var(--font); font-size: 1.9rem; font-weight: 700; }
.hero-stats .lbl { font-size: .82rem; color: var(--text-dim); }
.hero-visual { position: relative; }
.hero-card {
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow); position: relative;
}
.hero-card img { width: 100%; }
.floating-badge {
  position: absolute; background: rgba(11,17,32,.9); backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong); border-radius: 14px; padding: 12px 16px;
  display: flex; align-items: center; gap: 10px; font-size: .84rem; box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.floating-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: #2ee6a6; box-shadow: 0 0 10px #2ee6a6; }
.floating-badge.one { top: 18px; left: -18px; }
.floating-badge.two { bottom: 22px; right: -14px; animation-delay: -3s; }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--border); overflow: hidden; padding: 22px 0; background: rgba(255,255,255,.015); }
.marquee-track { display: flex; gap: 60px; width: max-content; animation: scroll 26s linear infinite; }
.marquee-track span { font-family: var(--font); font-weight: 600; color: var(--text-dim); font-size: 1.05rem; white-space: nowrap; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; transition: transform .3s, border-color .3s, background .3s;
  position: relative; overflow: hidden;
}
.card::before {
  content:""; position:absolute; inset:0; border-radius: inherit; padding:1px;
  background: var(--grad); opacity: 0; transition: opacity .3s;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events:none;
}
.card:hover { transform: translateY(-6px); background: var(--surface-2); }
.card:hover::before { opacity: 1; }
.card .ico {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--border-strong); margin-bottom: 18px; color: var(--accent);
}
.card .ico svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: .95rem; }
.card .more { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; color: var(--accent); font-weight: 600; font-size: .9rem; }
.card .more svg { width: 16px; height: 16px; transition: transform .25s; }
.card:hover .more svg { transform: translateX(4px); }

/* ---------- Process ---------- */
.step { position: relative; padding-top: 14px; }
.step .n { font-family: var(--font); font-size: 3rem; font-weight: 700; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .9; }
.step h3 { margin: 12px 0 8px; font-size: 1.15rem; }
.step p { color: var(--text-muted); font-size: .93rem; }

/* ---------- Stats band ---------- */
.stats-band { border-block: 1px solid var(--border); background: var(--grad-soft); }
.stat { text-align: center; }
.stat .num { font-family: var(--font); font-size: clamp(2.2rem,5vw,3.2rem); font-weight: 700; }
.stat .num.gradient-text { }
.stat .lbl { color: var(--text-muted); font-size: .92rem; margin-top: 4px; }

/* ---------- Feature split ---------- */
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px){ .split { grid-template-columns: 1fr 1fr; } .split.rev > :first-child { order: 2; } }
.split img { border-radius: var(--radius-lg); border: 1px solid var(--border); }
.check-list li { display: flex; gap: 12px; padding: 9px 0; color: var(--text-muted); }
.check-list li::before { content: "✓"; color: #05070d; background: var(--grad); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700; flex: 0 0 22px; margin-top: 3px; }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--border); border-radius: 14px; margin-bottom: 14px; background: var(--surface); overflow: hidden; transition: border-color .3s; }
.faq-item.open { border-color: var(--border-strong); }
.faq-q { width: 100%; text-align: left; background: none; border: none; color: var(--text); font-family: var(--font); font-weight: 600; font-size: 1.02rem; padding: 20px 24px; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-q .pm { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--border-strong); display: grid; place-items: center; transition: .3s; color: var(--accent); }
.faq-item.open .pm { background: var(--grad); color: #05070d; border-color: transparent; transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 24px 22px; color: var(--text-muted); font-size: .95rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 70px 0 54px; text-align: center; border-bottom: 1px solid var(--border); position: relative; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 18px 0 14px; }
.breadcrumb { display: inline-flex; gap: 8px; font-size: .86rem; color: var(--text-dim); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: .5; }

/* ---------- Team ---------- */
.member { text-align: center; }
.member .ph { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); margin-bottom: 16px; aspect-ratio: 1/1; background: var(--grad-soft); }
.member .ph img { width: 100%; height: 100%; object-fit: cover; }
.member h3 { font-size: 1.1rem; }
.member .role { color: var(--accent); font-size: .88rem; }

/* ---------- Blog ---------- */
.post { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.post .thumb { aspect-ratio: 16/10; overflow: hidden; }
.post .thumb img { width:100%; height:100%; object-fit: cover; transition: transform .4s; }
.post:hover .thumb img { transform: scale(1.06); }
.post .body { padding: 24px; }
.post .tag { font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); font-weight: 600; }
.post h3 { font-size: 1.16rem; margin: 10px 0; }
.post .meta { color: var(--text-dim); font-size: .82rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 900px){ .contact-grid { grid-template-columns: 1fr 1.2fr; } }
.info-row { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.info-row .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--grad-soft); border: 1px solid var(--border-strong); display: grid; place-items: center; color: var(--accent); flex: 0 0 46px; }
.info-row h4 { font-size: 1rem; }
.info-row p { color: var(--text-muted); font-size: .92rem; }
.form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .85rem; margin-bottom: 7px; color: var(--text-muted); font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border-radius: 11px; border: 1px solid var(--border-strong);
  background: rgba(0,0,0,.25); color: var(--text); font: inherit; font-size: .95rem; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34,211,238,.15); }
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .82rem; color: var(--text-dim); margin-top: 6px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; border-radius: var(--radius-lg); overflow: hidden; padding: 60px 40px; text-align: center; border: 1px solid var(--border-strong); background: linear-gradient(120deg, rgba(34,211,238,.12), rgba(124,58,237,.16)); }
.cta-band h2 { font-size: clamp(1.8rem,4vw,2.6rem); margin-bottom: 14px; }
.cta-band .lead { margin: 0 auto 28px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 72px 0 0; margin-top: 40px; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 720px){ .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.footer-brand p { color: var(--text-muted); font-size: .92rem; margin: 16px 0; max-width: 34ch; }
.footer-col h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--text-dim); margin-bottom: 18px; }
.footer-col a { display: block; color: var(--text-muted); padding: 6px 0; font-size: .92rem; transition: color .2s, transform .2s; }
.footer-col a:hover { color: var(--accent); transform: translateX(3px); }
.footer-contact li { display: flex; gap: 10px; color: var(--text-muted); font-size: .9rem; padding: 6px 0; }
.footer-contact .ico { color: var(--accent); flex: 0 0 18px; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--border-strong); background: var(--surface); display: grid; place-items: center; color: var(--text-muted); transition: .25s; }
.social a:hover { color: #fff; border-color: var(--accent); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 56px; padding: 24px 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: var(--text-dim); font-size: .86rem; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.scroll-top { position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%; background: var(--grad); color: #05070d; display: grid; place-items: center; cursor: pointer; opacity: 0; visibility: hidden; transition: .3s; z-index: 90; box-shadow: 0 10px 24px -8px var(--glow); border: none; }
.scroll-top.show { opacity: 1; visibility: visible; }

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