/* ── RESET & ROOT ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple:     #7C3AED;
  --purple-h:   #6D28D9;
  --purple-mid: #8B5CF6;
  --purple-lt:  #A78BFA;
  --purple-pale:#EDE9FE;
  --purple-bg:  #F5F3FF;
  --dark:       #1E1033;
  --muted:      #6B5B9A;
  --white:      #FFFFFF;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--white); color: var(--dark); overflow-x: hidden; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 68px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(124,58,237,0.08);
  transition: box-shadow .3s;
}
nav.scrolled { box-shadow: 0 2px 24px rgba(124,58,237,0.12); }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--purple); text-decoration: none; flex-shrink: 0; }
.nav-logo img { width: 34px; height: 34px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--dark); text-decoration: none; position: relative; transition: color .2s; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--purple); transition: width .3s; }
.nav-links a:hover, .nav-links a.active { color: var(--purple); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* ── BUTTONS ── */
.btn-primary { background: var(--purple); color: var(--white); border: none; border-radius: 8px; padding: 11px 26px; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .2s, transform .15s, box-shadow .2s; display: inline-block; white-space: nowrap; }
.btn-primary:hover { background: var(--purple-h); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(124,58,237,0.35); }
.btn-outline { background: transparent; color: var(--purple); border: 1.5px solid var(--purple); border-radius: 8px; padding: 11px 26px; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .2s, color .2s, transform .15s; display: inline-block; white-space: nowrap; }
.btn-outline:hover { background: var(--purple); color: var(--white); transform: translateY(-1px); }
.btn-white { background: var(--white); color: var(--purple); border: none; border-radius: 8px; padding: 14px 34px; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .2s; display: inline-block; }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,0.2); }

/* ── HAMBURGER ── */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--dark); border-radius: 2px; transition: all .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); }

/* ── MOBILE MENU ── */
.mobile-menu { display: none; position: fixed; top: 68px; left: 0; right: 0; background: var(--white); z-index: 199; padding: 16px 24px 28px; border-bottom: 1px solid rgba(124,58,237,0.1); flex-direction: column; box-shadow: 0 8px 32px rgba(0,0,0,0.08); }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 16px; font-weight: 500; color: var(--dark); text-decoration: none; padding: 13px 0; border-bottom: 1px solid rgba(124,58,237,0.07); transition: color .2s; }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover, .mobile-menu a.active { color: var(--purple); }
.mobile-menu .btn-primary { margin-top: 16px; text-align: center; border-bottom: none !important; padding: 13px 26px; }

/* ── LAYOUT ── */
.page-wrap { padding-top: 68px; }
section { padding: 88px 48px; }
.max-wrap { max-width: 1200px; margin: 0 auto; }
.section-tag { font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--purple); margin-bottom: 14px; display: block; }
.section-title { font-size: clamp(30px, 4vw, 56px); font-weight: 900; color: var(--purple); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 18px; }
.section-sub { font-size: 16px; color: var(--muted); line-height: 1.6; max-width: 540px; margin-bottom: 48px; }

/* ── HERO (index) ── */
#hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 120px 48px 80px; background: var(--white); position: relative; overflow: hidden; }
#hero::before { content: ''; position: absolute; right: -200px; top: 10%; width: 700px; height: 700px; background: radial-gradient(circle, rgba(124,58,237,0.07) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.hero-label { display: inline-flex; align-items: center; gap: 8px; background: var(--purple-pale); color: var(--purple); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 5px 13px; border-radius: 999px; margin-bottom: 28px; width: fit-content; }
.hero-dot { width: 6px; height: 6px; background: var(--purple); border-radius: 50%; animation: pulse 2s infinite; flex-shrink: 0; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.4)} }
.hero-title { font-size: clamp(40px, 6.5vw, 90px); font-weight: 900; line-height: 1.03; letter-spacing: -0.02em; color: var(--purple); }
.changing-wrapper { display: inline-flex; align-items: center; overflow: hidden; height: 1.05em; vertical-align: bottom; }
.changing-text { display: block; font-style: italic; color: var(--purple-lt); animation: slideUp 3s infinite; }
@keyframes slideUp { 0%{transform:translateY(100%);opacity:0} 15%{transform:translateY(0);opacity:1} 75%{transform:translateY(0);opacity:1} 90%{transform:translateY(-100%);opacity:0} 100%{transform:translateY(-100%);opacity:0} }
.hero-sub { max-width: 560px; font-size: 17px; color: var(--muted); line-height: 1.65; margin-top: 24px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── STATS ── */
.stats-section { background: var(--purple-bg); padding: 72px 48px; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 40px; max-width: 1100px; margin: 0 auto; }
.stat-item { text-align: center; }
.stat-number { font-size: clamp(40px, 5.5vw, 76px); font-weight: 900; color: var(--purple); line-height: 1; display: block; }
.stat-label { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 10px; display: block; }

/* ── PAGE HERO (inner pages) ── */
.page-hero { background: var(--purple-bg); padding: 72px 48px 56px; }
.page-hero .section-tag { margin-bottom: 12px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 900; color: var(--purple); letter-spacing: -0.02em; margin-bottom: 14px; line-height: 1.05; }
.page-hero p { font-size: 17px; color: var(--muted); max-width: 520px; line-height: 1.6; }

/* ── ABOUT ── */
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-bottom: 72px; }
.about-intro-text h2 { font-size: clamp(28px, 3.5vw, 46px); font-weight: 900; color: var(--purple); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 20px; }
.about-intro-text p { font-size: 16px; color: var(--muted); line-height: 1.7; margin-bottom: 14px; }
.about-visual { background: var(--purple-pale); border-radius: 20px; height: 360px; display: flex; align-items: center; justify-content: center; }
.about-visual img { width: 120px; height: 120px; object-fit: contain; opacity: .7; }
.about-pillars { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.pillar { padding: 28px; background: var(--purple-pale); border-radius: 14px; transition: transform .2s, box-shadow .2s; }
.pillar:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(124,58,237,0.12); }
.pillar-icon { font-size: 28px; margin-bottom: 12px; }
.pillar h3 { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.pillar p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ── SERVICES ── */
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.service-card { border: 1.5px solid rgba(124,58,237,0.12); border-radius: 20px; padding: 40px 36px; transition: border-color .25s, box-shadow .25s, transform .25s; position: relative; overflow: hidden; }
.service-card:hover { border-color: var(--purple); box-shadow: 0 16px 48px rgba(124,58,237,0.13); transform: translateY(-5px); }
.service-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--purple-pale); display: flex; align-items: center; justify-content: center; margin-bottom: 24px; font-size: 24px; }
.service-title { font-size: 20px; font-weight: 700; color: var(--dark); margin-bottom: 12px; }
.service-desc { font-size: 15px; color: var(--muted); line-height: 1.65; margin-bottom: 20px; }
.service-features { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.service-features li { font-size: 13px; color: var(--muted); padding-left: 18px; position: relative; }
.service-features li::before { content: '✓'; position: absolute; left: 0; color: var(--purple); font-weight: 700; }

/* ── PARTNERS ── */
.partners-section { background: var(--white); padding: 72px 0 56px; border-top: 1px solid rgba(124,58,237,0.08); }
.partners-header { text-align: center; margin-bottom: 44px; padding: 0 48px; }
.partners-eyebrow { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--purple); margin-bottom: 12px; }
.partners-title { font-size: clamp(22px,3vw,38px); font-weight: 900; color: var(--dark); line-height: 1.1; letter-spacing: -0.01em; margin-bottom: 12px; }
.partners-sub { font-size: 15px; color: var(--muted); max-width: 500px; margin: 0 auto; line-height: 1.6; }
.marquee-outer { overflow: hidden; position: relative; }
.marquee-outer::before, .marquee-outer::after { content: ''; position: absolute; top: 0; bottom: 0; width: 100px; z-index: 2; pointer-events: none; }
.marquee-outer::before { left: 0; background: linear-gradient(to right, var(--white), transparent); }
.marquee-outer::after { right: 0; background: linear-gradient(to left, var(--white), transparent); }
.marquee-logos-inner { display: flex; align-items: center; gap: 56px; padding: 0 28px; animation: logoMarq 28s linear infinite; width: max-content; }
.marquee-logos-inner:hover { animation-play-state: paused; }
@keyframes logoMarq { from{transform:translateX(0)} to{transform:translateX(-50%)} }
.logo-item { display: flex; align-items: center; justify-content: center; height: 40px; flex-shrink: 0; filter: grayscale(100%) opacity(0.42); transition: filter .3s, transform .3s; }
.logo-item:hover { filter: grayscale(0%) opacity(1); transform: scale(1.08); }
.logo-item img { height: 40px; width: auto; max-width: 130px; object-fit: contain; display: block; }

/* ── PORTFOLIO ── */
.portfolio-section { background: var(--purple-bg); padding: 88px 48px; }
.portfolio-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; flex-wrap: wrap; gap: 16px; }
.pf-grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.pf-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.pf-card { background: var(--white); border: 1.5px solid rgba(124,58,237,0.10); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s, border-color .3s; }
.pf-card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(124,58,237,0.16); border-color: rgba(124,58,237,0.32); }
.pf-logo-wrap { width: 100%; height: 180px; display: flex; align-items: center; justify-content: center; padding: 28px; }
.pf-logo-wrap img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.pf-body { padding: 18px 22px 22px; border-top: 1px solid rgba(124,58,237,0.08); flex: 1; }
.pf-cat { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--purple); margin-bottom: 5px; display: block; }
.pf-name { font-size: 17px; font-weight: 800; color: var(--dark); margin-bottom: 7px; }
.pf-desc { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ── TESTIMONIALS ── */
.testi-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.testi-card { border: 1.5px solid rgba(124,58,237,0.12); border-radius: 16px; padding: 32px; transition: border-color .25s, box-shadow .25s; }
.testi-card:hover { border-color: var(--purple); box-shadow: 0 8px 32px rgba(124,58,237,0.10); }
.testi-stars { color: var(--purple); font-size: 15px; margin-bottom: 14px; }
.testi-text { font-size: 15px; color: var(--dark); line-height: 1.65; margin-bottom: 22px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--purple-pale); display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 700; color: var(--purple); flex-shrink: 0; }
.testi-name { font-size: 13px; font-weight: 700; color: var(--dark); }
.testi-role { font-size: 12px; color: var(--muted); }

/* ── CTA ── */
.cta-section { background: var(--purple); text-align: center; padding: 88px 48px; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; top: -100px; left: 50%; transform: translateX(-50%); width: 600px; height: 600px; background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 65%); border-radius: 50%; pointer-events: none; }
.cta-section > * { position: relative; z-index: 1; }
.cta-title { font-size: clamp(30px, 4.5vw, 58px); font-weight: 900; color: var(--white); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 16px; }
.cta-sub { font-size: 16px; color: rgba(255,255,255,0.72); margin-bottom: 36px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-white-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.6); border-radius: 8px; padding: 14px 28px; font-size: 15px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: background .2s, border-color .2s, transform .15s; }
.btn-white-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); transform: translateY(-1px); }

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-info h2 { font-size: clamp(26px,3vw,40px); font-weight: 900; color: var(--purple); margin-bottom: 16px; }
.contact-info p { font-size: 16px; color: var(--muted); line-height: 1.7; margin-bottom: 36px; }
.contact-methods { display: flex; flex-direction: column; gap: 16px; }
.contact-method { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border: 1.5px solid rgba(124,58,237,0.12); border-radius: 12px; text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.contact-method:hover { border-color: var(--purple); box-shadow: 0 6px 24px rgba(124,58,237,0.12); transform: translateX(4px); }
.contact-method-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--purple-pale); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.contact-method-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 3px; }
.contact-method-value { font-size: 15px; font-weight: 600; color: var(--dark); }
.contact-form { background: var(--purple-pale); border-radius: 20px; padding: 40px; }
.contact-form h3 { font-size: 22px; font-weight: 800; color: var(--dark); margin-bottom: 28px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--dark); margin-bottom: 7px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; background: var(--white); border: 1.5px solid rgba(124,58,237,0.15); border-radius: 10px; padding: 12px 16px; font-size: 14px; font-family: 'Inter', sans-serif; color: var(--dark); outline: none; transition: border-color .2s, box-shadow .2s; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(124,58,237,0.1); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit { width: 100%; padding: 14px; font-size: 15px; font-weight: 700; }

/* ── PRIVACY ── */
.privacy-content { max-width: 800px; margin: 0 auto; padding: 72px 48px; }
.privacy-content h2 { font-size: 26px; font-weight: 800; color: var(--purple); margin: 40px 0 12px; }
.privacy-content h2:first-child { margin-top: 0; }
.privacy-content p, .privacy-content li { font-size: 15px; color: var(--muted); line-height: 1.75; margin-bottom: 12px; }
.privacy-content ul { padding-left: 20px; margin-bottom: 12px; }
.privacy-content li { margin-bottom: 6px; }
.privacy-content a { color: var(--purple); }

/* ── FOOTER ── */
footer { background: var(--dark); color: rgba(255,255,255,0.6); padding: 60px 48px 28px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 28px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--white); text-decoration: none; margin-bottom: 14px; }
.footer-logo img { width: 30px; height: 30px; object-fit: contain; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 13px; line-height: 1.65; max-width: 250px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,0.07); display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 16px; transition: background .2s; }
.footer-social a:hover { background: var(--purple); }
.footer-col h4 { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--white); margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 13px; color: rgba(255,255,255,0.5); text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12px; }
.footer-bottom a { color: rgba(255,255,255,0.45); text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ── ANIMATIONS ── */
.fade-in { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-d1 { transition-delay: .1s; }
.fade-in-d2 { transition-delay: .2s; }
.fade-in-d3 { transition-delay: .3s; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .pf-grid-3 { grid-template-columns: repeat(2,1fr); }
  .about-pillars { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links, nav > .btn-primary { display: none; }
  .hamburger { display: flex; }
  section, .portfolio-section { padding: 56px 20px; }
  .stats-section { padding: 52px 20px; }
  .page-hero { padding: 48px 20px 36px; }
  .privacy-content { padding: 48px 20px; }
  .cta-section { padding: 60px 20px; }
  footer { padding: 48px 20px 24px; }
  #hero { padding: 100px 20px 56px; }
  .hero-actions { flex-direction: column; }
  .hero-actions a { text-align: center; }
  .pf-grid-2, .pf-grid-3 { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .stats-grid { grid-template-columns: repeat(2,1fr); gap: 28px; }
  .about-pillars { grid-template-columns: 1fr; }
  .about-intro { grid-template-columns: 1fr; gap: 36px; }
  .about-visual { height: 220px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .portfolio-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .partners-header { padding: 0 20px; }
  .cta-buttons { flex-direction: column; align-items: center; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2,1fr); gap: 20px; }
  .stat-number { font-size: 36px; }
  .pf-logo-wrap { height: 150px; }
  .services-grid { grid-template-columns: 1fr; }
}
