/* ===== TOKENS ===== */
:root {
  --primary: #2f54f4;
  --primary-dark: #1e3bd6;
  --ink: #0d1330;
  --ink-soft: #5a6184;
  --line: #e7eaf3;
  --bg: #ffffff;
  --bg-soft: #f4f6fc;
  --bg-tint: #eef1fb;
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1240px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --shadow: 0 24px 60px -28px rgba(20,32,86,.28);
  --shadow-sm: 0 14px 34px -20px rgba(20,32,86,.30);
  --surface: #ffffff;
  --invert-bg: #0d1330;
  --header-bg: rgba(255,255,255,.86);
  background-color: var(--bg);
}

/* ===== DARK THEME ===== */
[data-theme="dark"] {
  --primary: #5b78ff;
  --primary-dark: #4561f2;
  --ink: #eef1fb;
  --ink-soft: #98a1c6;
  --line: rgba(255,255,255,.10);
  --bg: #090d20;
  --bg-soft: #0d1230;
  --bg-tint: #1b2350;
  --surface: #11162f;
  --invert-bg: #161d44;
  --header-bg: rgba(10,14,34,.82);
  --shadow: 0 24px 60px -28px rgba(0,0,0,.65);
  --shadow-sm: 0 14px 34px -20px rgba(0,0,0,.6);
}

body, .site-header, .service-card, .project-card, .testi-card,
.price-card, .news-card, .side-panel, .burger, .contact-inner,
.subscribe-form input, .hero-badge {
  transition: background-color .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--ink-soft);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Jost", sans-serif;
  color: var(--ink);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -.01em;
}

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

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--primary);
  display: inline-block;
}
.eyebrow.light { color: #fff; }
.eyebrow.light::before { background: #fff; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 100px;
  font-family: "Jost", sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .01em;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .35s var(--ease), background .3s var(--ease), color .3s var(--ease), box-shadow .35s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 14px 30px -12px rgba(47,84,244,.6); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 20px 38px -12px rgba(47,84,244,.7); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-light { background: #fff; color: #0d1330; }
.btn-light:hover { background: var(--bg-tint); }

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: padding .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.scrolled {
  padding: 12px 0;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px -22px rgba(20,32,86,.5);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), #6f86ff);
  position: relative;
  flex: none;
}
.logo-mark::after {
  content: ""; position: absolute; inset: 8px 8px auto auto;
  width: 8px; height: 8px; border-radius: 50%; background: #fff;
}
.logo-text { font-family: "Jost", sans-serif; font-weight: 700; font-size: 23px; color: var(--ink); }
.logo-text em { color: var(--primary); font-style: normal; }

.main-nav ul { display: flex; gap: 6px; list-style: none; }
.main-nav a {
  display: block;
  padding: 10px 16px;
  font-family: "Jost", sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
  border-radius: 100px;
  position: relative;
  transition: color .25s var(--ease);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 6px;
  height: 2px; background: var(--primary);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.main-nav a:hover { color: var(--primary); }
.main-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.theme-toggle {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink);
  transition: border-color .3s var(--ease), color .3s var(--ease), background .3s var(--ease);
}
.theme-toggle:hover { border-color: var(--primary); color: var(--primary); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.burger {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--surface);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px; cursor: pointer;
  transition: border-color .3s var(--ease);
}
.burger:hover { border-color: var(--primary); }
.burger span {
  width: 18px; height: 2px; background: var(--ink);
  transition: .3s var(--ease);
}

/* ===== SIDE PANEL ===== */
.panel-overlay {
  position: fixed; inset: 0;
  background: rgba(13,19,48,.5);
  backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s var(--ease);
  z-index: 200;
}
.panel-overlay.open { opacity: 1; visibility: visible; }
.side-panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 420px; max-width: 88vw;
  background: var(--surface);
  z-index: 201;
  padding: 38px 44px;
  display: flex; flex-direction: column;
  gap: 26px;
  transform: translateX(100%);
  transition: transform .5s var(--ease);
  overflow-y: auto;
}
.side-panel.open { transform: translateX(0); }
.panel-close {
  position: absolute; top: 26px; right: 30px;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--surface);
  font-size: 26px; line-height: 1; color: var(--ink);
  cursor: pointer; transition: .3s var(--ease);
}
.panel-close:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.logo-panel { margin-top: 6px; }
.panel-nav ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.panel-nav a {
  font-family: "Jost", sans-serif;
  font-size: 26px; font-weight: 500; color: var(--ink);
  padding: 8px 0; display: inline-block;
  transition: color .25s var(--ease), padding-left .3s var(--ease);
}
.panel-nav a:hover { color: var(--primary); padding-left: 12px; }
.panel-dark {
  align-self: flex-start;
  font-weight: 600; font-family: "Jost", sans-serif;
  color: var(--ink); padding: 8px 20px;
  border: 1.5px solid var(--line); border-radius: 100px;
  transition: .3s var(--ease);
}
.panel-dark:hover { background: var(--ink); color: #fff; }
.panel-contact { display: flex; flex-direction: column; gap: 7px; font-size: 15px; }
.panel-contact a:hover { color: var(--primary); }
.panel-social { display: flex; gap: 10px; }
.panel-social a, .footer-social a {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  color: var(--ink-soft);
  transition: .3s var(--ease);
}
.panel-social a:hover, .footer-social a:hover {
  background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-3px);
}
.panel-cta { margin-top: auto; }

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 180px 0 100px;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  overflow: hidden;
}
.hero-wave {
  position: absolute; top: 0; right: 0;
  width: 60%; max-width: 820px;
  opacity: .5; pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 60px;
  align-items: center;
}
.hero-text h1 {
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 600;
  margin-bottom: 24px;
}
.hero-text h1 .accent { color: var(--primary); }
.hero-sub { font-size: 19px; max-width: 480px; margin-bottom: 40px; }
.hero-meta { display: flex; align-items: center; gap: 44px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 4px; max-width: 230px; }
.stat-num { font-family: "Jost", sans-serif; font-size: 56px; font-weight: 700; color: var(--ink); line-height: 1; }
.stat-label { font-size: 14px; line-height: 1.4; }
.read-more {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: "Jost", sans-serif; font-weight: 600; color: var(--ink);
}
.read-more img { width: 64px; height: 64px; transition: transform .5s var(--ease); }
.read-more:hover img { transform: rotate(45deg); }

.hero-media { position: relative; }
.hero-image {
  border-radius: 28px; overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-image img { width: 100%; height: 520px; object-fit: cover; }
.hero-badge {
  position: absolute; left: -28px; bottom: 44px;
  background: var(--surface); padding: 24px 26px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  max-width: 270px;
  border-left: 4px solid var(--primary);
}
.hero-badge h4 { font-size: 18px; margin-bottom: 8px; }
.hero-badge p { font-size: 13.5px; line-height: 1.5; }

/* ===== ABOUT ===== */
.about { padding: 110px 0; }
.about-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.about-img img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-intro h2 { font-size: clamp(30px, 3.3vw, 44px); margin-bottom: 22px; }
.about-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-top: 70px;
  padding-top: 60px;
  border-top: 1px solid var(--line);
}
.check-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.check-list li {
  position: relative; padding-left: 40px;
  font-family: "Jost", sans-serif; font-size: 19px; font-weight: 500; color: var(--ink);
}
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-tint); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
}
.about-copy p { margin-bottom: 18px; }
.about-copy .btn { margin-top: 12px; }

/* ===== SECTION HEAD ===== */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px; margin-bottom: 56px;
}
.section-head h2 { font-size: clamp(30px, 3.4vw, 46px); }
.section-head > p { max-width: 420px; font-size: 16px; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }

/* ===== SERVICES ===== */
.services { padding: 110px 0; background: var(--bg-soft); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.service-card {
  background: var(--surface); border-radius: var(--radius);
  padding: 26px; position: relative;
  border: 1px solid var(--line);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), background .45s var(--ease);
  overflow: hidden;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.service-media { border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 22px; }
.service-media img { width: 100%; height: 180px; object-fit: cover; transition: transform .6s var(--ease); }
.service-card:hover .service-media img { transform: scale(1.08); }
.service-num {
  font-family: "Jost", sans-serif; font-size: 14px; font-weight: 700;
  color: var(--primary); letter-spacing: .1em;
}
.service-card h3 { font-size: 21px; margin: 10px 0 10px; }
.service-card p { font-size: 14.5px; }
.card-arrow {
  position: absolute; top: 26px; right: 26px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-tint); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; opacity: 0; transform: translate(-6px,6px);
  transition: .4s var(--ease);
}
.service-card:hover .card-arrow { opacity: 1; transform: translate(0,0); background: var(--primary); color: #fff; }
.services-foot { text-align: center; margin-top: 50px; }

/* ===== PROJECTS ===== */
.projects { padding: 110px 0; }
.projects-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.project-card {
  border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.project-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.project-media { overflow: hidden; }
.project-media img { width: 100%; height: 280px; object-fit: cover; transition: transform .7s var(--ease); }
.project-card:hover .project-media img { --ps: 1.18; }
.project-body { padding: 26px 28px 30px; }
.tag {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary); background: var(--bg-tint);
  padding: 6px 14px; border-radius: 100px; margin-bottom: 14px;
}
.project-body h3 { font-size: 22px; margin-bottom: 12px; transition: color .25s var(--ease); }
.project-card:hover .project-body h3 { color: var(--primary); }
.date { font-size: 13.5px; color: var(--ink-soft); }

/* ===== CONTACT ===== */
.contact { padding: 110px 0; }
.contact-inner {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px;
  background: var(--invert-bg);
  border-radius: 34px; padding: 64px;
  position: relative; overflow: hidden;
}
.contact-text h2 { color: #fff; font-size: clamp(32px, 3.6vw, 48px); margin-bottom: 18px; }
.contact-text p { color: rgba(255,255,255,.7); max-width: 320px; }
.contact-deco { width: 130px; margin-top: 34px; opacity: .9; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 16px 20px;
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.14);
  border-radius: 12px; color: #fff;
  font-family: inherit; font-size: 15px;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255,255,255,.5); }
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--primary); background: rgba(255,255,255,.1);
}
.contact-form .btn { align-self: flex-start; margin-top: 4px; }

/* ===== TESTIMONIALS ===== */
.testimonials { padding: 110px 0; background: var(--bg-soft); }
.testi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.testi-card {
  background: var(--surface); border-radius: var(--radius);
  padding: 40px; border: 1px solid var(--line);
  position: relative;
}
.testi-card .quote {
  font-family: "Jost", sans-serif; font-size: 80px; line-height: .6;
  color: var(--primary); opacity: .18; height: 40px;
}
.testi-card > p { font-size: 18px; color: var(--ink); line-height: 1.6; margin-bottom: 28px; }
.testi-person { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--bg-tint); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-family: "Jost", sans-serif; font-weight: 700; font-size: 16px;
}
.testi-person strong { display: block; font-family: "Jost", sans-serif; color: var(--ink); font-size: 17px; }
.testi-person small { color: var(--ink-soft); font-size: 13.5px; }
.clients {
  margin-top: 56px; padding-top: 50px;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px;
  align-items: center;
}
.clients a { opacity: .55; transition: opacity .3s var(--ease), transform .3s var(--ease); filter: grayscale(1); }
.clients a:hover { opacity: 1; transform: scale(1.05); filter: grayscale(0); }
.clients img { width: 100%; max-height: 44px; object-fit: contain; }

/* ===== PRICING ===== */
.pricing { padding: 110px 0; }
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 900px; margin: 0 auto; }
.price-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 44px;
  position: relative; overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.price-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.price-dots { position: absolute; top: 26px; right: 26px; width: 70px; opacity: .5; }
.price-card.featured { background: var(--invert-bg); border-color: var(--invert-bg); }
.price-card.featured .plan-name, .price-card.featured .plan-price { color: #fff; }
.price-card.featured .plan-price small { color: rgba(255,255,255,.6); }
.price-card.featured .plan-list li { color: rgba(255,255,255,.82); }
.price-card.featured .plan-list li::before { background: rgba(255,255,255,.14); color: #fff; }
.plan-badge {
  position: absolute; top: 30px; left: 44px;
  background: var(--primary); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 100px;
}
.featured .plan-name { margin-top: 26px; }
.plan-name { font-family: "Jost", sans-serif; font-weight: 600; font-size: 18px; color: var(--ink-soft); display: block; margin-bottom: 8px; }
.plan-price { font-family: "Jost", sans-serif; font-size: 44px; font-weight: 700; color: var(--ink); margin-bottom: 26px; }
.plan-price small { font-size: 15px; font-weight: 500; color: var(--ink-soft); }
.price-card .btn { width: 100%; margin-bottom: 30px; }
.plan-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.plan-list li { position: relative; padding-left: 32px; font-size: 15px; }
.plan-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg-tint); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}

/* ===== NEWS ===== */
.news { padding: 110px 0; background: var(--bg-soft); }
.news-subscribe { max-width: 440px; }
.news-subscribe p { font-size: 15px; margin-bottom: 16px; }
.subscribe-form { display: flex; gap: 10px; }
.subscribe-form input {
  flex: 1; padding: 14px 18px; border-radius: 100px;
  border: 1.5px solid var(--line); background: var(--surface);
  font-family: inherit; font-size: 14px;
}
.subscribe-form input:focus { outline: none; border-color: var(--primary); }
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.news-card {
  display: flex; gap: 24px; align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.news-media { position: relative; flex: none; width: 200px; border-radius: var(--radius-sm); overflow: hidden; }
.news-media img { width: 100%; height: 170px; object-fit: cover; }
.news-date {
  position: absolute; left: 12px; bottom: 12px;
  background: #fff; color: #0d1330; font-size: 11.5px; font-weight: 600;
  padding: 5px 12px; border-radius: 100px;
}
.news-body h3 { font-size: 21px; margin-bottom: 16px; line-height: 1.3; }
.news-body h3 a { transition: color .25s var(--ease); }
.news-card:hover .news-body h3 a { color: var(--primary); }
.read-link { font-family: "Jost", sans-serif; font-weight: 600; font-size: 14px; color: var(--primary); }

/* ===== CTA ===== */
.cta { padding: 0 0 110px; }
.cta-inner {
  background: linear-gradient(120deg, var(--primary) 0%, #5a78ff 100%);
  border-radius: 34px; padding: 64px 70px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-inner::before {
  content: ""; position: absolute; top: -40%; right: -10%;
  width: 420px; height: 420px; border-radius: 50%;
  background: rgba(255,255,255,.1);
}
.cta-text { position: relative; }
.cta-text h2 { color: #fff; font-size: clamp(30px, 3.6vw, 46px); margin-bottom: 14px; }
.cta-text p { color: rgba(255,255,255,.85); }
.cta-btn { position: relative; padding: 18px 38px; font-size: 16px; }

/* ===== FOOTER ===== */
.site-footer { background: var(--invert-bg); color: rgba(255,255,255,.66); padding: 80px 0 30px; }
.footer-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.logo-footer .logo-text { color: #fff; }
.footer-brand { max-width: 320px; }
.footer-brand p { margin: 22px 0 14px; font-size: 14.5px; }
.footer-brand a { display: block; color: rgba(255,255,255,.8); font-size: 14.5px; }
.footer-brand a:hover { color: #fff; }
.footer-phone { font-family: "Jost", sans-serif; font-size: 20px !important; font-weight: 600; color: #fff !important; margin-bottom: 6px; }
.footer-col h4 { color: #fff; font-size: 18px; margin-bottom: 22px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14.5px; transition: color .25s var(--ease), padding-left .25s var(--ease); }
.footer-col a:hover { color: #fff; padding-left: 6px; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; padding-top: 28px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a { border-color: rgba(255,255,255,.18); color: rgba(255,255,255,.7); }
.footer-legal { list-style: none; display: flex; gap: 24px; }
.footer-legal a { font-size: 14px; }
.footer-legal a:hover { color: #fff; }
.copyright { font-size: 14px; }

/* ===== SCROLL TOP ===== */
.scroll-top {
  position: fixed; bottom: 30px; right: 30px;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--primary); color: #fff; border: none;
  font-size: 20px; cursor: pointer; z-index: 90;
  opacity: 0; visibility: hidden; transform: translateY(16px);
  box-shadow: 0 14px 30px -10px rgba(47,84,244,.6);
  transition: .4s var(--ease);
}
.scroll-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.services-grid .service-card:nth-child(2), .projects-grid .project-card:nth-child(2),
.news-grid .news-card:nth-child(2) { transition-delay: .1s; }
.services-grid .service-card:nth-child(3) { transition-delay: .2s; }
.services-grid .service-card:nth-child(4) { transition-delay: .3s; }
.projects-grid .project-card:nth-child(3) { transition-delay: .2s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1080px) {
  .main-nav, .header-cta { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 50px; }
  .hero-image img { height: 420px; }
}
@media (max-width: 820px) {
  .container { padding: 0 22px; }
  .about-top, .about-bottom, .contact-inner, .testi-grid, .pricing-grid,
  .news-grid, .section-head, .projects-grid, .footer-top { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .about-bottom { margin-top: 44px; padding-top: 44px; }
  .contact-inner { padding: 40px 28px; }
  .news-card { flex-direction: column; align-items: stretch; }
  .news-media { width: 100%; }
  .clients { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
  .footer-top { gap: 36px; }
  .cta-inner { padding: 44px 32px; }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .hero { padding: 140px 0 70px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-badge { left: 12px; right: 12px; max-width: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ===== CORDUS ADDITIONS (loaded last; override above) ===== */

/* Logo images + theme swap */
.logo img { height: 34px; width: auto; display: block; }
.logo .logo-dark { display: none; }
[data-theme="dark"] .logo .logo-light { display: none; }
[data-theme="dark"] .logo .logo-dark { display: block; }
.logo-footer img { height: 40px; }
.logo-panel img { height: 34px; }

/* Tech stack band */
.tech { padding: 96px 0; }
.tech-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 30px; align-items: center; margin-top: 4px;
}
.tech-logo { display: flex; align-items: center; justify-content: center; padding: 10px; }
.tech-logo img {
  width: 100%; max-height: 58px; object-fit: contain;
  filter: grayscale(1); opacity: .55;
  transition: filter .3s var(--ease), opacity .3s var(--ease), transform .3s var(--ease);
}
.tech-logo:hover img { filter: none; opacity: 1; --hy: -6px; }
[data-theme="dark"] .tech-logo img { filter: grayscale(1) brightness(1.7); }
[data-theme="dark"] .tech-logo:hover img { filter: brightness(1.7); opacity: 1; }

/* Service cards: icon/number variant (no photo) */
.services-grid { grid-template-columns: repeat(3, 1fr); }
.service-ic {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--bg-tint); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-family: "Jost", sans-serif; font-weight: 700; font-size: 21px;
  margin-bottom: 20px; transition: background .4s var(--ease), color .4s var(--ease), transform .4s var(--ease);
}
.service-card:hover .service-ic { background: var(--primary); color: #fff; transform: rotate(-6deg); }
.services-grid .service-card:nth-child(3n+2) { transition-delay: .08s; }
.services-grid .service-card:nth-child(3n+3) { transition-delay: .16s; }

/* Partners */
.partners { padding: 110px 0; background: var(--bg-soft); }
.partners-top { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.partners-img img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.partners-intro h2 { font-size: clamp(30px, 3.3vw, 44px); margin-bottom: 22px; }
.partners-intro .btn { margin-top: 22px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 64px; }
.step {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 28px;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.step:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.step-num {
  font-family: "Jost", sans-serif; font-size: 46px; font-weight: 700;
  color: var(--primary); opacity: .22; line-height: 1; margin-bottom: 16px;
}
.step h4 { font-size: 18px; margin-bottom: 10px; }
.step p { font-size: 14.5px; }
.steps .step:nth-child(2) { transition-delay: .08s; }
.steps .step:nth-child(3) { transition-delay: .16s; }
.steps .step:nth-child(4) { transition-delay: .24s; }

/* Testimonials → 3 columns */
.testi-grid { grid-template-columns: repeat(3, 1fr); }
.testi-grid .testi-card:nth-child(2) { transition-delay: .1s; }
.testi-grid .testi-card:nth-child(3) { transition-delay: .2s; }

/* Contact: two office addresses */
.contact-offices { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 30px; }
.office h5 { color: #fff; font-family: "Jost", sans-serif; font-size: 14px; letter-spacing: .04em; margin-bottom: 6px; }
.office p { color: rgba(255,255,255,.62); font-size: 13.5px; line-height: 1.5; }
.contact-meta { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 26px; }
.contact-meta a { color: #fff; font-family: "Jost", sans-serif; font-weight: 600; font-size: 15px; }
.contact-meta a:hover { color: var(--primary); }

@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(3, 1fr); row-gap: 34px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .partners-top, .contact-offices { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== SCROLL PARALLAX ON IMAGES ===== */
.hero-image img, .about-img img, .project-media img,
.partners-img img, .tech-logo img, .cta-bg {
  transform: translate3d(var(--px, 0px), calc(var(--py, 0px) + var(--hy, 0px)), 0) scale(var(--ps, 1));
  transition: transform .55s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
/* extra scale so movement never reveals a gap inside clipped frames */
.hero-image img, .project-media img { --ps: 1.12; }

/* CTA background image + darken + parallax */
.cta-inner { background: var(--invert-bg); }
.cta-bg {
  position: absolute; inset: -8% -6%;
  width: 112%; height: 124%;
  object-fit: cover; z-index: 0;
}
.cta-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(115deg, rgba(28,42,120,.82) 0%, rgba(13,19,48,.9) 100%);
}
.cta-inner::before { z-index: 1; }
.cta-text, .cta-btn { position: relative; z-index: 2; }

@media (prefers-reduced-motion: reduce) {
  .hero-image img, .about-img img, .project-media img,
  .partners-img img, .tech-logo img, .cta-bg {
    transform: scale(var(--ps, 1)); transition: none;
  }
}
