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

:root {
  --white: #ffffff;
  --ice: #f7f8fc;
  --ink: #1a1a1a;
  --grey: #888888;
  --lt-grey: #bbbbbb;
  --electric: #4a7cff;
  --ultraviolet: #6c5ce7;
  --obsidian: #0a0a0a;
  --gradient: linear-gradient(135deg, #4a7cff, #6c5ce7);
  --radius: 8px;
  --radius-lg: 16px;
  --font-heading: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --max-width: 1200px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ==================== NAVIGATION ==================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: var(--transition);
}
.nav.scrolled { box-shadow: 0 1px 20px rgba(0,0,0,0.06); }
.nav-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo .mark {
  width: 32px; height: 32px;
  background: var(--gradient); border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 16px; font-weight: 800; color: #fff;
}
.nav-logo .wordmark {
  font-family: var(--font-heading); font-size: 20px; font-weight: 700;
  color: var(--ink); letter-spacing: -0.5px;
}
.nav-logo .wordmark span { color: var(--electric); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  color: var(--grey); transition: color var(--transition);
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--gradient); border-radius: 1px;
}
.nav-cta {
  padding: 10px 24px !important;
  background: var(--gradient) !important;
  color: #fff !important; border-radius: var(--radius);
  font-weight: 600 !important; font-size: 13px !important;
  letter-spacing: 0.3px;
  transition: opacity var(--transition), transform var(--transition) !important;
}
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

/* Hamburger */
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  width: 28px; height: 20px; position: relative; z-index: 1001;
}
.hamburger span {
  display: block; width: 100%; height: 2px; background: var(--ink);
  position: absolute; left: 0; transition: var(--transition);
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }
.hamburger.open span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none; position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
  background: var(--white); z-index: 999;
  flex-direction: column; align-items: center; justify-content: center; gap: 32px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--font-heading); font-size: 24px; font-weight: 600;
  color: var(--ink);
}

/* ==================== HERO ==================== */
.hero {
  padding: 180px 0 120px; text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(74,124,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero h1 {
  font-family: var(--font-heading); font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700; letter-spacing: -2px; line-height: 1.1;
  color: var(--ink); margin-bottom: 20px;
  max-width: 700px; margin-left: auto; margin-right: auto;
}
.hero p {
  font-size: clamp(1rem, 2vw, 1.125rem); color: var(--grey);
  font-weight: 300; max-width: 560px; margin: 0 auto 40px;
  line-height: 1.7;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius);
  font-family: var(--font-heading); font-size: 14px; font-weight: 600;
  letter-spacing: 0.3px; cursor: pointer; border: none;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--gradient); color: #fff;
  box-shadow: 0 4px 16px rgba(74,124,255,0.2);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(74,124,255,0.3); }
.btn-secondary {
  background: transparent; color: var(--ink);
  border: 1.5px solid #ddd;
}
.btn-secondary:hover { border-color: var(--ink); }
.btn-group { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ==================== SECTIONS ==================== */
.section { padding: 100px 0; }
.section-ice { background: var(--ice); }
.section-dark { background: var(--obsidian); color: #fff; }
.section-dark .section-label { color: #555; }
.section-dark p { color: #888; }
.section-dark h2 { color: #fff; }

.section-label {
  font-family: var(--font-heading); font-size: 11px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--lt-grey); margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-heading); font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700; letter-spacing: -1.5px; line-height: 1.15;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 17px; color: var(--grey); font-weight: 300;
  max-width: 600px; line-height: 1.65;
}
.section-header { margin-bottom: 60px; }
.section-header.center { text-align: center; }
.section-header.center .section-subtitle { margin: 0 auto; }

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

/* ==================== CARDS ==================== */
.card {
  background: var(--white); border: 1px solid #eee;
  border-radius: var(--radius-lg); padding: 40px;
  transition: all var(--transition);
}
.card:hover { border-color: #ddd; box-shadow: 0 8px 32px rgba(0,0,0,0.04); transform: translateY(-2px); }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--gradient); display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 20px; color: #fff;
}
.card h3 {
  font-family: var(--font-heading); font-size: 18px; font-weight: 600;
  letter-spacing: -0.3px; margin-bottom: 8px;
}
.card p { font-size: 15px; color: var(--grey); line-height: 1.6; }

/* Dark cards */
.card-dark {
  background: #111; border-color: #222; color: #fff;
}
.card-dark:hover { border-color: #333; }
.card-dark h3 { color: #fff; }
.card-dark p { color: #888; }

/* ==================== STATS ==================== */
.stats { display: flex; gap: 60px; justify-content: center; flex-wrap: wrap; padding: 40px 0; }
.stat { text-align: center; }
.stat-number {
  font-family: var(--font-heading); font-size: 48px; font-weight: 800;
  letter-spacing: -2px;
  background: var(--gradient); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { font-size: 14px; color: var(--grey); margin-top: 4px; }

/* ==================== TESTIMONIAL ==================== */
.testimonial {
  background: var(--ice); border-radius: var(--radius-lg);
  padding: 60px; text-align: center; max-width: 800px; margin: 0 auto;
}
.testimonial blockquote {
  font-family: var(--font-heading); font-size: 22px; font-weight: 500;
  letter-spacing: -0.5px; line-height: 1.5; color: var(--ink);
  margin-bottom: 24px;
}
.testimonial cite {
  font-style: normal; font-size: 14px; color: var(--grey);
}

/* ==================== ABOUT PAGE ==================== */
.about-hero { padding: 160px 0 80px; }
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.about-text h2 {
  font-family: var(--font-heading); font-size: 28px; font-weight: 700;
  letter-spacing: -1px; margin-bottom: 16px;
}
.about-text p { font-size: 16px; color: #555; line-height: 1.75; margin-bottom: 16px; }
.highlight-box {
  background: var(--ice); border-radius: var(--radius-lg);
  padding: 40px; border-left: 3px solid var(--electric);
}
.highlight-box p { font-size: 16px; color: #555; line-height: 1.7; margin: 0; }

.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: #eee;
}
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-item::before {
  content: ''; position: absolute; left: -37px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gradient); border: 2px solid var(--white);
}
.timeline-item h3 {
  font-family: var(--font-heading); font-size: 16px; font-weight: 600;
  margin-bottom: 4px;
}
.timeline-item .year {
  font-size: 12px; color: var(--electric); font-weight: 600;
  letter-spacing: 1px; margin-bottom: 4px;
}
.timeline-item p { font-size: 14px; color: var(--grey); line-height: 1.6; }

/* ==================== SERVICES PAGE ==================== */
.service-card {
  background: var(--white); border: 1px solid #eee;
  border-radius: var(--radius-lg); padding: 36px;
  transition: all var(--transition);
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--gradient);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { border-color: #ddd; box-shadow: 0 8px 32px rgba(0,0,0,0.04); }
.service-card .service-num {
  font-family: var(--font-heading); font-size: 12px; font-weight: 700;
  color: var(--electric); margin-bottom: 12px;
}
.service-card h3 {
  font-family: var(--font-heading); font-size: 18px; font-weight: 600;
  letter-spacing: -0.3px; margin-bottom: 8px;
}
.service-card p { font-size: 14px; color: var(--grey); line-height: 1.65; }

/* ==================== RESULTS PAGE ==================== */
.result-card {
  background: var(--white); border: 1px solid #eee;
  border-radius: var(--radius-lg); padding: 48px;
  transition: all var(--transition);
}
.result-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.04); }
.result-card .result-category {
  font-size: 11px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--electric); margin-bottom: 16px;
}
.result-card h3 {
  font-family: var(--font-heading); font-size: 22px; font-weight: 700;
  letter-spacing: -0.5px; margin-bottom: 12px;
}
.result-card p { font-size: 15px; color: var(--grey); line-height: 1.65; margin-bottom: 20px; }
.result-metrics { display: flex; gap: 32px; padding-top: 20px; border-top: 1px solid #eee; }
.result-metric .number {
  font-family: var(--font-heading); font-size: 28px; font-weight: 800;
  color: var(--electric);
}
.result-metric .label { font-size: 12px; color: var(--grey); }

/* ==================== CONTACT PAGE ==================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-info h2 {
  font-family: var(--font-heading); font-size: 28px; font-weight: 700;
  letter-spacing: -1px; margin-bottom: 16px;
}
.contact-info p { font-size: 16px; color: #555; line-height: 1.7; margin-bottom: 32px; }
.contact-detail {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid #eee;
}
.contact-detail .icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--ice); display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--electric); flex-shrink: 0;
}
.contact-detail .label { font-size: 12px; color: var(--grey); }
.contact-detail .value { font-size: 15px; font-weight: 500; color: var(--ink); }

.contact-form { background: var(--ice); border-radius: var(--radius-lg); padding: 48px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--ink); margin-bottom: 6px;
  font-family: var(--font-heading);
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; border: 1px solid #ddd;
  border-radius: var(--radius); font-family: var(--font-body);
  font-size: 15px; color: var(--ink); background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--electric);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ==================== CTA BANNER ==================== */
.cta-banner {
  background: var(--gradient); border-radius: var(--radius-lg);
  padding: 80px 60px; text-align: center; color: #fff;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.1), transparent);
  pointer-events: none;
}
.cta-banner h2 {
  font-family: var(--font-heading); font-size: 32px; font-weight: 700;
  letter-spacing: -1px; margin-bottom: 12px;
}
.cta-banner p { font-size: 17px; opacity: 0.8; margin-bottom: 32px; font-weight: 300; }
.btn-white {
  background: #fff; color: var(--ink);
  padding: 14px 32px; border-radius: var(--radius);
  font-family: var(--font-heading); font-size: 14px; font-weight: 600;
  display: inline-block; transition: all var(--transition);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }

/* ==================== FOOTER ==================== */
.footer {
  background: var(--obsidian); color: #fff; padding: 80px 0 40px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px; margin-bottom: 60px;
}
.footer-brand .wordmark {
  font-family: var(--font-heading); font-size: 24px; font-weight: 800;
  letter-spacing: -1px; margin-bottom: 12px;
}
.footer-brand .wordmark span { color: var(--electric); }
.footer-brand p { font-size: 14px; color: #666; line-height: 1.6; max-width: 280px; }
.footer-col h4 {
  font-family: var(--font-heading); font-size: 13px; font-weight: 600;
  color: #fff; margin-bottom: 20px; letter-spacing: 0.5px;
}
.footer-col a {
  display: block; font-size: 14px; color: #666;
  padding: 4px 0; transition: color var(--transition);
}
.footer-col a:hover { color: var(--electric); }
.footer-bottom {
  border-top: 1px solid #1a1a1a; padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom p { font-size: 12px; color: #444; }

/* ==================== ANIMATIONS ==================== */
.fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .nav-inner { padding: 0 24px; }
  .nav-links { display: none; }
  .hamburger { display: block; }

  .hero { padding: 140px 0 80px; }
  .hero h1 { font-size: 2rem; letter-spacing: -1px; }

  .section { padding: 60px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .about-content { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .stats { gap: 32px; }
  .stat-number { font-size: 36px; }

  .cta-banner { padding: 48px 24px; }
  .cta-banner h2 { font-size: 24px; }

  .testimonial { padding: 32px; }
  .testimonial blockquote { font-size: 18px; }
}
