/* =============================================
   DEV-SHREE — GLOBAL STYLESHEET
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Sora:wght@400;600;700;800&display=swap');

/* ---------- TOKENS ---------- */
:root {
  --blue-900: #0D1B40;
  --blue-700: #1740A6;
  --blue-500: #2D66E8;
  --blue-400: #4F87F5;
  --blue-100: #E8EFFF;
  --slate-900: #0F172A;
  --slate-700: #334155;
  --slate-500: #64748B;
  --slate-300: #CBD5E1;
  --slate-100: #F1F5F9;
  --white: #FFFFFF;
  --surface: #F8FAFF;

  --grad-primary: linear-gradient(135deg, #1740A6 0%, #2D66E8 60%, #4F87F5 100%);
  --grad-hero: linear-gradient(150deg, #0D1B40 0%, #1740A6 55%, #2D66E8 100%);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --shadow-card: 0 2px 16px rgba(13,27,64,.07), 0 1px 4px rgba(13,27,64,.04);
  --shadow-hover: 0 8px 32px rgba(45,102,232,.18);

  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;

  --max-w: 1180px;
  --section-pad: 96px 24px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--slate-900); background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); border: none; background: none; }

/* ---------- LAYOUT ---------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-pad); }
.section--gray { background: var(--surface); }
.section--dark { background: var(--blue-900); color: var(--white); }

/* ---------- TYPOGRAPHY ---------- */
.display-xl { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 4.2rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; }
.display-lg { font-family: var(--font-display); font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 700; line-height: 1.18; letter-spacing: -0.015em; }
.display-md { font-family: var(--font-display); font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 700; line-height: 1.25; }
.section-eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-500); margin-bottom: 12px; display: block; }
.section-title { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.22; letter-spacing: -0.01em; color: var(--slate-900); margin-bottom: 16px; }
.section-sub { font-size: 1.05rem; color: var(--slate-500); max-width: 560px; line-height: 1.7; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header .section-sub { margin: 0 auto; }
.text-white .section-title,
.text-white .section-eyebrow,
.text-white .section-sub { color: var(--white); }
.text-white .section-eyebrow { color: rgba(255,255,255,.7); }
.text-white .section-sub { color: rgba(255,255,255,.7); }

/* ---------- BUTTONS ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; border-radius: var(--radius-md); font-size: .95rem; font-weight: 600; transition: all .2s ease; white-space: nowrap; }
.btn-primary { background: var(--grad-primary); color: var(--white); box-shadow: 0 4px 16px rgba(45,102,232,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(45,102,232,.45); }
.btn-outline { background: transparent; color: var(--blue-500); border: 2px solid var(--blue-500); }
.btn-outline:hover { background: var(--blue-100); }
.btn-ghost-white { background: rgba(255,255,255,.12); color: var(--white); border: 1.5px solid rgba(255,255,255,.35); backdrop-filter: blur(4px); }
.btn-ghost-white:hover { background: rgba(255,255,255,.22); }
.btn-lg { padding: 15px 34px; font-size: 1rem; }
.btn-sm { padding: 9px 18px; font-size: .85rem; }

/* ---------- CARDS ---------- */
.card { background: var(--white); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-card); border: 1px solid rgba(203,213,225,.5); transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }

/* ---------- BADGE ---------- */
.badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: .75rem; font-weight: 600; background: var(--blue-100); color: var(--blue-700); }

/* ---------- ICON CIRCLE ---------- */
.icon-circle { width: 52px; height: 52px; border-radius: 14px; background: var(--blue-100); display: flex; align-items: center; justify-content: center; color: var(--blue-500); margin-bottom: 20px; flex-shrink: 0; }
.icon-circle svg { width: 24px; height: 24px; }
.icon-circle--sm { width: 40px; height: 40px; border-radius: 10px; margin-bottom: 0; }
.icon-circle--sm svg { width: 18px; height: 18px; }

/* ---------- GRID HELPERS ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* =============================================
   NAVIGATION
   ============================================= */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255,255,255,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(203,213,225,.4); transition: box-shadow .2s; }
.nav.scrolled { box-shadow: 0 2px 20px rgba(13,27,64,.08); }
.nav-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; height: 68px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--blue-900); }
.nav-logo-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--grad-primary); display: flex; align-items: center; justify-content: center; color: white; font-weight: 800; font-size: 1rem; font-family: var(--font-display); flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { padding: 8px 14px; border-radius: 8px; font-size: .9rem; font-weight: 500; color: var(--slate-700); transition: all .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--blue-500); background: var(--blue-100); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 6px; cursor: pointer; }
.nav-toggle span { width: 22px; height: 2px; background: var(--slate-700); border-radius: 2px; transition: all .2s; }

/* Mobile nav */
.nav-mobile { display: none; position: fixed; top: 68px; left: 0; right: 0; background: white; border-bottom: 1px solid var(--slate-300); padding: 16px 24px 24px; box-shadow: 0 8px 24px rgba(13,27,64,.1); z-index: 999; }
.nav-mobile.open { display: block; }
.nav-mobile a { display: block; padding: 12px 0; font-size: .95rem; font-weight: 500; color: var(--slate-700); border-bottom: 1px solid var(--slate-100); }
.nav-mobile a:last-of-type { border-bottom: none; }
.nav-mobile .btn { display: inline-flex; margin-top: 16px; }

/* =============================================
   FOOTER
   ============================================= */
.footer { background: var(--blue-900); color: rgba(255,255,255,.8); padding: 72px 24px 32px; }
.footer-grid { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 48px; margin-bottom: 56px; }
.footer-brand { }
.footer-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: white; margin-bottom: 16px; }
.footer-logo-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--grad-primary); display: flex; align-items: center; justify-content: center; color: white; font-weight: 800; font-size: 1rem; font-family: var(--font-display); flex-shrink: 0; }
.footer-tagline { font-size: .9rem; line-height: 1.7; color: rgba(255,255,255,.55); max-width: 280px; margin-bottom: 24px; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.6); transition: all .2s; }
.footer-socials a:hover { background: var(--blue-500); color: white; }
.footer-socials a svg { width: 16px; height: 16px; }
.footer-col h4 { font-family: var(--font-display); font-size: .85rem; font-weight: 700; color: white; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 20px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: .88rem; color: rgba(255,255,255,.55); transition: color .15s; }
.footer-col a:hover { color: white; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; color: rgba(255,255,255,.55); margin-bottom: 12px; }
.footer-contact-item svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--blue-400); margin-top: 2px; }
.footer-bottom { max-width: var(--max-w); margin: 0 auto; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; justify-content: space-between; font-size: .82rem; color: rgba(255,255,255,.35); }

/* =============================================
   PAGE HERO (inner pages)
   ============================================= */
.page-hero { background: var(--grad-hero); color: white; padding: 140px 24px 80px; text-align: center; }
.page-hero .badge { background: rgba(255,255,255,.15); color: white; margin-bottom: 20px; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; line-height: 1.15; margin-bottom: 16px; }
.page-hero p { font-size: 1.1rem; color: rgba(255,255,255,.75); max-width: 560px; margin: 0 auto; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --section-pad: 64px 20px; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 480px) {
  .btn-lg { padding: 13px 22px; font-size: .92rem; }
}

/* =============================================
   SCROLL-TO-TOP
   ============================================= */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-500);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(45,102,232,.4);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .25s, transform .25s;
  z-index: 900;
  border: none;
}
.scroll-top.visible { opacity: 1; transform: none; }
.scroll-top:hover { background: var(--blue-700); }
.scroll-top svg { width: 18px; height: 18px; }

/* =============================================
   NAV TOGGLE TRANSITION (bars)
   ============================================= */
.nav-toggle span { transition: transform .22s ease, opacity .22s ease; }

/* =============================================
   GLOBAL LINK & FOCUS STYLES
   ============================================= */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 3px;
}

/* =============================================
   PRINT & REDUCED MOTION
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .fade-up { opacity: 1 !important; transform: none !important; }
}

/* =============================================
   UTILITY
   ============================================= */
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-0  { margin-bottom: 0; }
