/* ==========================================================
   Unlock Digital Marketing — main stylesheet
   ========================================================== */

:root {
  --primary: #5b3df5;
  --primary-dark: #3d1fd1;
  --primary-light: #efebff;
  --accent: #ffb020;
  --ink: #16113a;
  --text: #4a4766;
  --muted: #7a7794;
  --bg: #ffffff;
  --bg-soft: #f7f6fc;
  --border: #e7e4f3;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(22, 17, 58, 0.08);
  --shadow-lg: 0 24px 60px rgba(22, 17, 58, 0.14);
  --container: 1180px;
  --font: 'Plus Jakarta Sans', 'Segoe UI', Roboto, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
p + p { margin-top: 1rem; }

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

.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }

.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head p { margin-top: 14px; font-size: 1.075rem; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.text-gradient {
  background: linear-gradient(90deg, var(--primary), #a64dff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 10px 24px rgba(91, 61, 245, .35);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(91, 61, 245, .45); }
.btn-outline { border-color: var(--border); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-light { background: #fff; color: var(--primary-dark); }
.btn-light:hover { color: var(--primary); transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--border); box-shadow: 0 4px 20px rgba(22, 17, 58, .06); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.logo img { height: 46px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: .97rem; position: relative; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--primary); border-radius: 2px; transition: width .25s;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--primary); }
.nav-links .btn { padding: 11px 22px; font-size: .93rem; color: #fff; }
.nav-links .btn::after { display: none; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 50%; width: 20px; height: 2px; background: var(--ink);
  border-radius: 2px; transform: translateX(-50%); transition: .25s;
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before { content: ''; top: -6px; }
.nav-toggle span::after { content: ''; top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: translateX(-50%) rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: translateX(-50%) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 80px 0 100px;
  background:
    radial-gradient(900px 500px at 90% -10%, rgba(124, 92, 255, .16), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(255, 176, 32, .12), transparent 60%);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero-lead { font-size: 1.15rem; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; }
.hero-points li { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); font-size: .95rem; }
.hero-points li::before {
  content: ''; width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%2316113a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}

.hero-visual { position: relative; }
.hero-visual .main-img {
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 10 / 7;
  object-fit: cover;
  width: 100%;
}
.hero-visual::before {
  content: ''; position: absolute; inset: 24px -24px -24px 24px;
  border-radius: 28px; background: linear-gradient(135deg, var(--primary), #a64dff);
  z-index: -1; opacity: .9;
}
.float-card {
  position: absolute;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 12px 16px 12px 12px;
  display: flex; align-items: center; gap: 12px;
  font-size: .88rem; line-height: 1.35;
  animation: float 5s ease-in-out infinite;
}
.float-card img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.float-card strong { display: block; color: var(--ink); font-size: .95rem; }
.float-card.one { left: -28px; bottom: 34px; }
.float-card.two { right: -18px; top: 26px; animation-delay: -2.5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Page header (inner pages) ---------- */
.page-header {
  position: relative;
  padding: 110px 0 90px;
  color: #fff;
  text-align: center;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.page-header::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(135deg, rgba(22, 17, 58, .92), rgba(61, 31, 209, .78));
}
.page-header h1 { color: #fff; }
.page-header p { max-width: 640px; margin: 16px auto 0; color: rgba(255, 255, 255, .85); font-size: 1.1rem; }
.breadcrumb { display: flex; justify-content: center; gap: 8px; margin-top: 22px; font-size: .9rem; color: rgba(255, 255, 255, .7); }
.breadcrumb a { color: #fff; font-weight: 600; }

/* ---------- Image cards (services, why-us, etc.) ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-img { position: relative; overflow: hidden; aspect-ratio: 3 / 2; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card-img img { transform: scale(1.06); }
.card-tag {
  position: absolute; left: 14px; top: 14px;
  background: rgba(255, 255, 255, .95); color: var(--primary-dark);
  font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
}
.card-body { padding: 24px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 10px; }
.card-body p { font-size: .97rem; }
.card-link { margin-top: auto; padding-top: 18px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.card-link .arrow { transition: transform .2s; }
.card:hover .card-link .arrow { transform: translateX(4px); }

/* Compact image cards (why-us / values) */
.feature { text-align: left; }
.feature .card-img { aspect-ratio: 7 / 5; }
.feature .card-body { padding: 22px; }
.feature h3 { font-size: 1.12rem; }

/* ---------- Split sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { border-radius: 24px; box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 10 / 7; object-fit: cover; }
.split-media .badge-img {
  position: absolute; right: -20px; bottom: -28px; width: 46%;
  border: 6px solid #fff; border-radius: 20px; box-shadow: var(--shadow-lg); aspect-ratio: 3 / 2;
}
.split-content h2 { margin-bottom: 18px; }
.check-list { margin-top: 24px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-weight: 500; }
.check-list li::before {
  content: ''; width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; margin-top: 2px;
  background: var(--primary-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%235b3df5' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.split-content .btn { margin-top: 30px; }

/* ---------- Process ---------- */
.process { counter-reset: step; }
.process .card { position: relative; }
.process .card-img::after {
  counter-increment: step;
  content: '0' counter(step);
  position: absolute; left: 16px; bottom: 14px;
  font-size: 2.2rem; font-weight: 800; color: #fff; line-height: 1;
  text-shadow: 0 4px 16px rgba(0, 0, 0, .35);
}
.process .card-img::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent 45%, rgba(22, 17, 58, .65));
}
.process .card-img::after { z-index: 2; }

/* ---------- Industries ---------- */
.industry {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 320px;
  display: flex; align-items: flex-end; color: #fff; isolation: isolate;
}
.industry img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s; }
.industry::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(22, 17, 58, .05) 20%, rgba(22, 17, 58, .88)); }
.industry:hover img { transform: scale(1.06); }
.industry-body { padding: 26px; }
.industry h3 { color: #fff; margin-bottom: 6px; }
.industry p { color: rgba(255, 255, 255, .85); font-size: .95rem; }

/* ---------- CTA ---------- */
.cta {
  position: relative; border-radius: 28px; overflow: hidden; padding: 72px 56px;
  color: #fff; isolation: isolate; background-size: cover; background-position: center;
}
.cta::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, rgba(61, 31, 209, .96) 35%, rgba(91, 61, 245, .55)); }
.cta h2 { color: #fff; max-width: 620px; }
.cta p { color: rgba(255, 255, 255, .88); max-width: 560px; margin-top: 14px; font-size: 1.08rem; }
.cta .btn { margin-top: 30px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 24px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 0; font-weight: 700; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.5rem; font-weight: 400; color: var(--primary); transition: transform .2s; flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 22px; }

/* ---------- Service detail rows ---------- */
.service-row + .service-row { margin-top: 96px; }
.service-row .split-media img { aspect-ratio: 3 / 2; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: start; }
.contact-cards { display: grid; gap: 18px; }
.contact-card {
  display: flex; gap: 16px; align-items: center; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; transition: box-shadow .2s;
}
.contact-card:hover { box-shadow: var(--shadow); }
.contact-card img { width: 96px; height: 76px; object-fit: cover; border-radius: 12px; flex-shrink: 0; }
.contact-card h3 { font-size: 1.02rem; margin-bottom: 2px; }
.contact-card p, .contact-card a { font-size: .95rem; word-break: break-word; }

.form-card { background: #fff; border: 1px solid var(--border); border-radius: 24px; padding: 40px; box-shadow: var(--shadow); }
.form-card h2 { font-size: 1.7rem; margin-bottom: 6px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; color: var(--ink); font-size: .9rem; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: 14px 16px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--bg-soft);
  transition: border-color .2s, background .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%237a7794' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(91, 61, 245, .12);
}
.form-note { font-size: .85rem; color: var(--muted); margin-top: 14px; }
.form-card .btn { width: 100%; margin-top: 8px; }
.form-success {
  display: none; margin-top: 18px; padding: 14px 16px; border-radius: 12px;
  background: #ecfdf3; color: #166534; font-weight: 600; font-size: .95rem;
}
.form-success.show { display: block; }

/* ---------- Legal pages ---------- */
.legal { max-width: 820px; margin: 0 auto; }
.legal .updated { color: var(--muted); font-size: .92rem; margin-bottom: 32px; }
.legal h2 { font-size: 1.45rem; margin: 40px 0 12px; }
.legal ul { list-style: disc; padding-left: 22px; margin-top: 10px; }
.legal li + li { margin-top: 6px; }

/* ---------- 404 ---------- */
.not-found { text-align: center; padding: 110px 0; }
.not-found .code { font-size: clamp(5rem, 18vw, 9rem); font-weight: 800; line-height: 1; }
.not-found img { max-width: 420px; margin: 0 auto 30px; border-radius: 24px; box-shadow: var(--shadow-lg); }
.not-found p { margin: 14px auto 28px; max-width: 460px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .72); padding: 80px 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 44px; }
.footer-logo img { height: 46px; width: auto; margin-bottom: 18px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer a { color: rgba(255, 255, 255, .72); }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  margin-top: 60px; padding: 24px 0; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .88rem;
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-card { animation: none; }
  html { scroll-behavior: auto; }
}

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

@media (max-width: 960px) {
  .section { padding: 76px 0; }
  .hero { padding: 48px 0 80px; }
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-content { text-align: center; }
  .hero-lead { margin: 0 auto; }
  .hero-actions, .hero-points { justify-content: center; }
  .hero-visual { max-width: 620px; margin: 0 auto; width: 100%; }
  .split.reverse .split-media { order: 0; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .service-row + .service-row { margin-top: 72px; }

  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 78px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 12px 20px 24px;
    border-bottom: 1px solid var(--border); box-shadow: 0 20px 40px rgba(22, 17, 58, .1);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .25s;
  }
  .nav-open .nav-links { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { padding: 14px 4px; border-bottom: 1px solid var(--border); font-size: 1.05rem; }
  .nav-links a::after { display: none; }
  .nav-links .btn { margin-top: 16px; padding: 15px; border-bottom: 0; font-size: 1rem; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 38px; }
  .nav { height: 68px; }
  .nav-links { top: 68px; }
  .logo img { height: 38px; }

  .hero-actions .btn { width: 100%; }
  .hero-visual::before { inset: 14px -10px -14px 14px; }
  .float-card { padding: 8px 12px 8px 8px; font-size: .78rem; }
  .float-card img { width: 40px; height: 40px; }
  .float-card strong { font-size: .84rem; }
  .float-card.one { left: -6px; bottom: 16px; }
  .float-card.two { right: -6px; top: 14px; }

  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; gap: 22px; }
  .split { gap: 40px; }
  .split-media .badge-img { right: -6px; bottom: -20px; width: 44%; border-width: 4px; }
  .split-content .btn { width: 100%; }

  .page-header { padding: 76px 0 64px; }
  .industry { min-height: 260px; }
  .cta { padding: 48px 24px; border-radius: 22px; text-align: center; }
  .cta h2, .cta p { margin-left: auto; margin-right: auto; }
  .cta .btn { width: 100%; }

  .form-card { padding: 26px 20px; border-radius: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-card img { width: 84px; height: 68px; }

  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; text-align: center; align-items: center; }
  .footer-bottom nav { justify-content: center; }
}
