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

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

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --grey-100: #f7f7f7;
  --grey-200: #e8e8e8;
  --grey-400: #9a9a9a;
  --grey-600: #555;
  --glass: rgba(255, 255, 255, 0.78);
  --g200: #e5e5e5;
  --g500: #777;
  --border: rgba(0, 0, 0, 0.08);
  --radius: 14px;
  --radius-pill: 999px;
  --nav-h: 72px;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --max-w: 1200px;
  --section-pad: 80px;
}

html {
  scroll-behavior: smooth;
  font-size: 17px;
}

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}

::selection {
  background: var(--black);
  color: var(--white);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
}

p {
  line-height: 1.75;
  color: var(--grey-600);
}

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

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-400);
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

@media(max-width:768px) {
  .container {
    padding: 0 20px;
  }
}

.divider {
  width: 40px;
  height: 1px;
  background: var(--black);
  margin: 20px 0;
}

/* ── NAVBAR ── */
.nav-wrap {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 999;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.nav {
  pointer-events: auto;
  width: calc(100% - 40px);
  max-width: 1200px;
  height: var(--nav-h);
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--g200);
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.09), 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
}

.nav-inner {
  width: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--black);
}

.nav-brand img {
  height: 34px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  font-size: 0.85rem;
  color: var(--black);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  transition: all 0.22s ease;
  font-weight: 500;
}

.nav-links a:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--black);
}

.nav-contact-outline {
  font-size: 0.85rem;
  color: var(--black);
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  transition: all 0.22s ease;
  font-weight: 500;
}

.nav-contact-outline:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--black);
  border-color: rgba(0, 0, 0, 0.18);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--black);
  transition: transform .3s, opacity .3s;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-drawer {
  display: none;
  position: fixed;
  top: calc(16px + var(--nav-h) + 8px);
  left: 20px;
  right: 20px;
  background: rgba(250, 250, 250, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--g200);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  z-index: 998;
  padding: 12px 16px 16px;
  flex-direction: column;
  gap: 2px;
}

.mobile-drawer.open {
  display: flex;
}

.mobile-drawer a {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--grey-600);
  padding: 13px 12px;
  border-bottom: 1px solid var(--border);
  display: block;
  transition: color .2s;
  border-radius: 8px;
}

.mobile-drawer a:last-child {
  border-bottom: none;
}

.nav-spacer {
  height: 0;
}

/* ── HERO ── */
#hero {
  position: relative;
  background: linear-gradient(-45deg, #ffffff, #f5f7fa, #ffffff, #eef2f5);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-bg-text {
  position: absolute;
  font-family: var(--font-display);
  font-size: 25vw;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.015);
  white-space: nowrap;
  user-select: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: slow-pan 40s linear infinite alternate;
  z-index: 0;
}

@keyframes slow-pan {
  0% { transform: translate(-45%, -50%); }
  100% { transform: translate(-55%, -50%); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 80px) 40px 80px;
  color: var(--black);
}

.hero-content h1 {
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 300;
  color: var(--black);
  line-height: 1.05;
  margin-bottom: 20px;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey-600);
  margin: 0 auto 40px;
  line-height: 1.8;
  max-width: 600px;
}

/* ── TYPEWRITER ── */
.typewriter-container {
  display: inline-block;
  margin-bottom: 24px;
}

.typewriter {
  overflow: hidden;
  border-right: .05em solid var(--black);
  white-space: nowrap;
  margin: 0 auto;
  letter-spacing: .05em;
  animation:
    typing 2s steps(40, end),
    blink-caret .75s step-end infinite;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: var(--black); }
}

/* ── CARDS (General Usage) ── */
.sp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media(max-width:900px) {
  .sp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width:768px) {
  .sp-grid {
    grid-template-columns: 1fr;
  }
}

.sp-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none !important;
  overflow: hidden;
}

.sp-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
}

.sp-img-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--grey-100);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.sp-card:hover .sp-img-wrap img {
  transform: scale(1.05);
}

.sp-card h3 {
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--black);
}

.sp-cat {
  font-size: 0.75rem;
  color: var(--grey-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.sp-action-btn {
  display: inline-block;
  margin-top: auto;
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--black);
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  align-self: flex-start;
  margin-top: 24px;
}

.sp-action-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  transition: border-color 0.4s ease;
}

.sp-action-btn::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 999px;
  border: 1.5px solid var(--black);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.sp-card:hover .sp-action-btn::after {
  clip-path: inset(0 0 0 0);
}

/* ── SECTIONS ── */
.section {
  padding: var(--section-pad) 0;
  background: var(--white);
}

.section.grey {
  background: var(--grey-100);
}

.section.dark {
  background: var(--black);
  color: var(--white);
}

.section-header {
  max-width: 640px;
  margin-bottom: 60px;
}

.section-header.center {
  margin: 0 auto 60px auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-header h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin: 14px 0 18px;
}

.section-header.dark h2 {
  color: var(--white);
}

/* ── INSIGHTS PREVIEW ON HOME ── */
.insights-banner {
  padding: 120px 0;
  background: linear-gradient(145deg, #08080c 0%, #151722 50%, #08080c 100%);
  color: var(--white);
  text-align: center;
  border-top: 1px solid var(--border);
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 18px 42px;
  background: var(--black);
  color: var(--white);
  font-weight: 600;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  border: 1px solid var(--black);
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.btn-light:hover {
  box-shadow: 0 10px 30px rgba(255,255,255,0.15);
  color: var(--black);
}

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

@media(max-width:900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* ── FOOTER ── */
footer {
  background: var(--white);
  padding: 56px 0 32px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 48px;
}

@media(max-width:1100px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media(max-width:768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 10px;
  display: block;
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--grey-600);
  line-height: 1.7;
  max-width: 280px;
}

.footer-col-title {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-400);
  margin-bottom: 16px;
}

.footer-col-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-links a {
  font-size: 0.8rem;
  color: var(--grey-600);
  letter-spacing: 0.03em;
  transition: color .2s;
}

.footer-col-links a:hover {
  color: var(--black);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--grey-400);
}

/* ── REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ── PAGE HEADER CONTENT ── */
.page-header {
  padding: calc(var(--nav-h) + 100px) 0 80px;
  background: var(--grey-100);
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 20px;
}

.page-header p {
  font-size: 1.1rem;
  max-width: 700px;
}

.content-block {
  max-width: 800px;
  margin: 0 auto;
}

.content-block h2 {
  font-size: 2rem;
  margin: 40px 0 20px;
}

.content-block p {
  margin-bottom: 20px;
}

.content-block ul {
  margin: 20px 0 20px 20px;
}

.content-block li {
  margin-bottom: 10px;
  color: var(--grey-600);
  line-height: 1.6;
}

@media(max-width:768px) {
  :root {
    --section-pad: 50px;
    --nav-h: 64px;
  }

  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  /* Make tap targets larger and full width for easier use */
  .btn, .sp-action-btn {
    width: 100%;
    text-align: center;
    padding: 16px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  /* Give cards slightly less padding so content breathes more */
  .sp-card {
    padding: 24px;
  }
  
  /* Reduce excessive padding on mobile headers */
  .page-header {
    padding: calc(var(--nav-h) + 60px) 0 40px;
  }
  
  .section-header {
    margin-bottom: 40px;
  }
  
  .section-header.center {
    margin: 0 auto 40px auto;
  }
  
  /* Enlarge mobile navigation links for thumbs */
  .mobile-drawer a {
    padding: 16px 12px;
    font-size: 1.05rem;
  }
}
