/* ─────────────────────────────────────
   UniLabs Tech — Global Stylesheet
   ───────────────────────────────────── */

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

:root {
  --primary:       #0a1628;
  --primary-light: #0d2045;
  --accent:        #1a6ef5;
  --accent-hover:  #1557d6;
  --accent-light:  #eff6ff;
  --cyan:          #06b6d4;
  --text:          #1a1a2e;
  --text-muted:    #64748b;
  --bg:            #ffffff;
  --bg-alt:        #f8fafc;
  --border:        #e2e8f0;
  --radius-sm:     6px;
  --radius:        12px;
  --radius-lg:     20px;
  --shadow-sm:     0 1px 4px rgba(0,0,0,0.06);
  --shadow:        0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:     0 12px 40px rgba(0,0,0,0.12);
  --transition:    0.22s ease;
}

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4, h5 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--primary);
}

/* ─── UTILITIES ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }

.label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.8;
}

.section-header { margin-bottom: 3.5rem; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26,110,245,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: white;
}

.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: white;
  border: 1px solid rgba(255,255,255,0.15);
}
.btn-ghost:hover { background: rgba(255,255,255,0.15); }

.btn-lg { padding: 0.95rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.82rem; }

/* ─── NAV ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.nav.scrolled { box-shadow: var(--shadow); }

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-mark svg { width: 20px; height: 20px; fill: white; }

.logo-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
}
.logo-name span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 0.45rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: var(--accent-light);
}

.nav-links .nav-cta a {
  background: var(--accent);
  color: white;
  padding: 0.5rem 1.1rem;
}
.nav-links .nav-cta a:hover {
  background: var(--accent-hover);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px; height: 32px;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 100%; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 120px 0 70px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(26,110,245,0.18) 0%, transparent 65%);
  top: -120px; right: -80px;
  border-radius: 50%;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
}

.page-hero .label { color: #60a5fa; }

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 1.1rem;
  color: #94a3b8;
  max-width: 540px;
  line-height: 1.75;
}

/* ─── CARDS ─── */
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all var(--transition);
}

.card:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 28px rgba(26,110,245,0.1);
  transform: translateY(-2px);
}

/* ─── ICON BOX ─── */
.icon-box {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-box svg { width: 24px; height: 24px; }
.icon-box.blue  { background: #dbeafe; } .icon-box.blue svg  { fill: var(--accent); }
.icon-box.amber { background: #fef3c7; } .icon-box.amber svg { fill: #d97706; }
.icon-box.green { background: #d1fae5; } .icon-box.green svg { fill: #059669; }
.icon-box.purple{ background: #ede9fe; } .icon-box.purple svg{ fill: #7c3aed; }
.icon-box.cyan  { background: #cffafe; } .icon-box.cyan svg  { fill: #0891b2; }
.icon-box.grad  { background: linear-gradient(135deg, var(--accent), var(--cyan)); }
.icon-box.grad svg { fill: white; }

/* ─── BADGE ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
}

.badge-blue   { background: #dbeafe; color: var(--accent); }
.badge-amber  { background: #fef3c7; color: #b45309; }
.badge-green  { background: #d1fae5; color: #065f46; }
.badge-purple { background: #ede9fe; color: #5b21b6; }

/* ─── DIVIDER ─── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* ─── FOOTER ─── */
.footer {
  background: var(--primary);
  color: #94a3b8;
  padding: 4.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-brand .logo-name { color: white; }

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.75;
  margin-top: 1rem;
  max-width: 260px;
}

.footer-col h5 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 1.25rem;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }

.footer-col ul a {
  font-size: 0.875rem;
  color: #94a3b8;
  transition: color var(--transition);
}
.footer-col ul a:hover { color: white; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  font-size: 0.8rem;
  gap: 1rem;
}

/* ─── FORM ─── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.form-group label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--primary);
}

.form-control {
  padding: 0.72rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text);
  background: white;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
  resize: vertical;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26,110,245,0.1);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.checkbox-wrap input[type="checkbox"] {
  width: 15px; height: 15px;
  margin-top: 2px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.checkbox-wrap label { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.animate-up { animation: fadeUp 0.5s ease forwards; }

/* ─── LOGO IMAGE ─── */
.nav-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}

.footer-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
  background: white;
  padding: 5px 10px;
  display: block;
}

/* ─── PARTNER LOGO ─── */
.partner-logo-wrap {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.partner-logo-img {
  max-height: 52px;
  max-width: 140px;
  width: auto;
  object-fit: contain;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .section { padding: 60px 0; }
  .container { padding: 0 1.25rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: white;
    padding: 1rem 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    gap: 0.25rem;
    z-index: 199;
  }

  .nav-links.mobile-open li { width: 100%; }
  .nav-links.mobile-open a { display: block; padding: 0.65rem 0.85rem; }
  .nav-links .nav-cta a { text-align: center; justify-content: center; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }

  .page-hero { padding: 100px 0 50px; }
}
