/* ===========================================================
   Pando Technologies — Official Site Stylesheet
   Modern tech aesthetic · dark/blue theme · responsive
   =========================================================== */

:root {
  --bg: #0a0e1a;
  --bg-alt: #0f1626;
  --surface: #131c30;
  --surface-2: #1a2540;
  --line: #243049;
  --text: #e8edf7;
  --muted: #9aa7c2;
  --brand: #4f8cff;
  --brand-2: #7c5cff;
  --accent: #25e6c8;
  --grad: linear-gradient(120deg, #4f8cff 0%, #7c5cff 50%, #25e6c8 100%);
  --radius: 16px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --maxw: 1140px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .brand-text { font-family: 'Space Grotesk', 'Inter', sans-serif; letter-spacing: -0.02em; }

a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 13px 26px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; cursor: pointer;
  border: 1px solid transparent; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn-sm { padding: 9px 18px; font-size: .85rem; }
.btn-primary { background: var(--grad); color: #06101f; box-shadow: 0 10px 30px -10px rgba(79,140,255,.7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(79,140,255,.9); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--brand); color: #fff; transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 14, 26, .82);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark { color: var(--brand); display: inline-flex; }
.brand-text { font-size: 1.25rem; font-weight: 700; }
.brand-accent { color: var(--brand); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); font-size: .95rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 160px 0 100px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; }
.blob-1 { width: 480px; height: 480px; background: #2a5bff; top: -120px; left: -80px; }
.blob-2 { width: 420px; height: 420px; background: #7c5cff; bottom: -140px; right: -60px; opacity: .4; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 54px 54px; opacity: .06; mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
}
.hero-inner { position: relative; z-index: 1; max-width: 880px; }
.eyebrow {
  display: inline-block; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); background: rgba(37,230,200,.08); border: 1px solid rgba(37,230,200,.25);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero-title { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.08; font-weight: 700; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin: 24px 0 34px; font-size: 1.12rem; color: var(--muted); max-width: 640px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 48px; margin-top: 64px; flex-wrap: wrap; }
.stat strong { display: block; font-size: 2.2rem; font-family: 'Space Grotesk'; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: .9rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: linear-gradient(180deg, #0b1120, #101a30); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 16px 0 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.tag {
  display: inline-block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px;
}
.tag-light { color: var(--accent); border-color: rgba(37,230,200,.3); }
.section-head.light h2 { color: #fff; }
.section-head.light p { color: #c3cde0; }

/* ---------- Cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-6px); border-color: var(--brand); }
.card-icon { font-size: 1.8rem; margin-bottom: 14px; }
.card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.card p { color: var(--muted); }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; position: relative; overflow: hidden; transition: transform .3s var(--ease), border-color .3s;
}
.service::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.service:hover { transform: translateY(-6px); border-color: var(--brand); }
.service:hover::before { transform: scaleX(1); }
.service-num { font-family: 'Space Grotesk'; font-size: 2.4rem; font-weight: 700; color: var(--surface-2); }
.service h3 { font-size: 1.25rem; margin: 6px 0 12px; }
.service p { color: var(--muted); margin-bottom: 16px; }
.ticks { list-style: none; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 24px; color: #cdd6ea; font-size: .95rem; }
.ticks li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ---------- Clients ---------- */
.client-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.client {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 26px 22px; text-align: center; font-weight: 600; color: #d4dcee;
  transition: transform .25s var(--ease), color .25s, border-color .25s;
}
.client:hover { transform: translateY(-4px); border-color: var(--brand); color: #fff; }

/* ---------- Values ---------- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value {
  text-align: center; padding: 36px 28px; border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius); background: rgba(255,255,255,.02);
}
.value h3 { font-size: 1.5rem; margin-bottom: 10px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.value p { color: #c3cde0; }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-info h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 16px 0 14px; }
.contact-info p { color: var(--muted); margin-bottom: 26px; }
.contact-list { list-style: none; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; color: #d4dcee; }
.contact-list span { font-size: 1.1rem; }
.contact-form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; display: grid; gap: 18px; box-shadow: var(--shadow);
}
.field { display: grid; gap: 7px; }
.field label { font-size: .9rem; color: var(--muted); font-weight: 500; }
.field input, .field textarea {
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; color: var(--text); font: inherit; resize: vertical; transition: border-color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); }
.form-note { color: var(--accent); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 36px; background: var(--bg-alt); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: center; }
.footer-brand p { color: var(--muted); margin-top: 8px; font-size: .92rem; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: .92rem; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.copyright { color: var(--muted); font-size: .85rem; width: 100%; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 8px; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; bottom: 28px; right: 28px; width: 46px; height: 46px;
  display: grid; place-items: center; border-radius: 50%; background: var(--grad);
  color: #06101f; font-size: 1.3rem; font-weight: 700; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; z-index: 90;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards-3, .services-grid, .values-grid, .client-grid { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; gap: 36px; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0;
    background: rgba(10,14,26,.97); backdrop-filter: blur(12px); padding: 12px 0;
    border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .35s var(--ease);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 24px; width: 100%; }
  .nav-toggle { display: flex; }
  .hero-stats { gap: 32px; }
}
@media (max-width: 560px) {
  .section { padding: 70px 0; }
  .hero { padding: 130px 0 70px; }
}
