/* --- NAV --- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: all 0.3s;
}

nav.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-m {
  width: 38px;
  height: 38px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 17px;
  color: #fff;
}

.logo-n {
  font-weight: 700;
  font-size: 19px;
  color: var(--text);
  letter-spacing: -0.3px;
}

.logo-n span {
  font-weight: 400;
  color: var(--text-lt);
}

.mn {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.mn > li {
  position: relative;
}

.mn > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sec);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s;
}

.mn > li > a:hover {
  color: var(--text);
  background: var(--border-lt);
}

.mn > li > a .arr {
  font-size: 10px;
  opacity: 0.5;
  transition: transform 0.2s;
}

.mn > li:hover > a .arr {
  transform: rotate(180deg);
}

/* --- DROPDOWN --- */
.dd {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s;
}

.mn > li:hover .dd {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dd a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
}

.dd a:hover {
  background: var(--accent-subtle);
}

.ddi {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.ddi.bl { background: var(--accent-light); }
.ddi.pu { background: var(--purple-lt); }
.ddi.gn { background: var(--success-bg); }

.ddt h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.ddt p {
  font-size: 11px;
  color: var(--text-lt);
  line-height: 1.4;
  margin-top: 1px;
}

.dd-div {
  height: 1px;
  background: var(--border-lt);
  margin: 6px 0;
}

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 9px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600 !important;
  text-decoration: none;
  transition: all 0.2s;
}

.nav-cta:hover {
  background: var(--accent-hover) !important;
  transform: translateY(-1px);
}

/* --- FOOTER --- */
footer {
  padding: 64px 0 32px;
  background: var(--bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ft-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.ft-spacer {
  min-height: 1px;
}

.ft-brand p {
  font-size: 15px;
  color: #94a3b8;
  margin-top: 12px;
  line-height: 1.8;
}

.ft-c h5 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #e2e8f0;
  margin-bottom: 16px;
}

.ft-c a {
  display: block;
  font-size: 15px;
  color: #94a3b8;
  text-decoration: none;
  margin-bottom: 10px;
  line-height: 1.6;
  transition: color 0.2s;
}

.ft-c a:hover {
  color: #fff;
}

.ft-bot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  color: #64748b;
}

/* --- MOBILE HAMBURGER & MENU --- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  background: none;
  border: none;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s;
}

.mobile-overlay.active { display: block; opacity: 1; }

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background: var(--white);
  z-index: 999;
  padding: 80px 24px 24px;
  overflow-y: auto;
  transition: right 0.35s ease;
  box-shadow: var(--shadow-xl);
}

.mobile-menu.active { right: 0; }

.mobile-menu a {
  display: block;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border-lt);
}

.mobile-menu a:hover { color: var(--accent); }

.mm-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-lt);
  margin: 20px 0 8px;
  padding-top: 8px;
}

.mm-label:first-child { margin-top: 0; }

.mm-cta {
  display: block;
  text-align: center;
  margin-top: 24px;
  background: var(--accent);
  color: #fff !important;
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
}

/* MOBILE RESPONSIVE NAV/FOOTER */
@media (max-width: 1024px) {
  .mn { display: none; }
  .hamburger { display: flex; }
  .mobile-menu, .mobile-overlay { display: block; }
}

@media (max-width: 900px) {
  .ft-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .ft-bottom-cols { display: none; }
  .ft-spacer { display: none; }
}

@media (max-width: 600px) {
  .ft-top { grid-template-columns: 1fr; gap: 28px; }
  .ft-bottom-cols { grid-template-columns: 1fr; gap: 28px; }
  .ft-bot { flex-direction: column; gap: 8px; text-align: center; }
}

/* --- GLOBAL UTILITIES --- */
.ctr {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.sec { padding: 100px 0; position: relative; }
.sec.alt { background: #f8fafc; }
.sec.dark { background: #0f172a; color: #fff; }

.eyb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 16px;
}

.hdg {
  font-family: 'Playfair Display', serif;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 20px;
}

.sub {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-sec);
  max-width: 720px;
  margin-bottom: 40px;
}

.hl { color: var(--accent); }

/* --- BUTTONS --- */
.btn-p, .btn-o, .nav-cta, .mm-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
}

.btn-p { background: var(--accent); color: #fff; }
.btn-p:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-o { 
  background: transparent; 
  color: var(--text); 
  border: 1px solid var(--border); 
}
.btn-o:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-subtle); }

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: gap 0.2s;
}

.btn-text:hover { gap: 12px; }

/* --- TECH & INTEGRATION --- */
.tech-stack-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.tech-item {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  font-size: 15px;
  color: var(--text-sec);
}

.tech-item strong { display: block; color: var(--text); margin-bottom: 4px; }

@media (max-width: 600px) {
  .tech-stack-row { grid-template-columns: 1fr; }
}
