/* ============================================================
   SYSLAR — DESIGN SYSTEM
   Dark enterprise theme | Syne + Manrope
   ============================================================ */

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

:root {
  --bg:        #FFFFFF;
  --bg-dark:   #0B0E17;
  --bg1:       #F8FAFC;
  --bg2:       #FFFFFF;
  --bg3:       #F1F5F9;
  --blue:      #10B981; /* Emerald Green Primary */
  --blue-l:    #34D399;
  --blue-d:    rgba(16, 185, 129, 0.08);
  --blue-b:    rgba(16, 185, 129, 0.2);
  --white:     #FFFFFF;
  --t1:        #0F172A; /* Dark slate for headings */
  --t2:        #475569; /* Medium slate for body */
  --t3:        #94A3B8; /* Light slate for details */
  --b1:        #E2E8F0; /* Light borders */
  --b2:        #CBD5E1;
  --green:     #10B981;
  --amber:     #F59E0B;
  --r:         8px;
  --rl:        12px;
  --rx:        20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', sans-serif;
  background: var(--bg);
  color: var(--t2);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Syne', sans-serif;
  line-height: 1.15;
  color: var(--t1);
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: 'Manrope', sans-serif; }

.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'liga';
}

.mat {
  vertical-align: middle;
  line-height: 1;
  position: relative;
  top: -1px;
}

/* Nav specific icon fix */
.nav .mat { font-size: 20px; }
.btn .mat { font-size: 18px; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 72px;
  display: flex;
  align-items: center;
  background: var(--white);
  border-bottom: 1px solid var(--b1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Homepage Hero Nav Override - Simplified to stay white */
.nav-home {
  background: var(--white);
  border-bottom-color: var(--b1);
}
.nav-home .nav-menu > li > a { color: var(--t1); }
.nav-home .nav-logo img { filter: none; }
.nav-home .nav-cta { background: #0F172A; color: #FFFFFF; }
.nav-home .nav-toggle { color: var(--t1); border-color: var(--b2); }

.nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: 64px;
  border-bottom-color: var(--b1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.nav.scrolled .nav-menu > li > a { color: var(--t1); }
.nav.scrolled .nav-logo img { filter: none; }
.nav.scrolled .nav-cta { background: #0F172A; color: #FFFFFF; }
.nav.scrolled .nav-toggle { color: var(--t1); border-color: var(--b2); }

.nav-inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo { flex-shrink: 0; transition: transform 0.2s; }
.nav-logo:hover { transform: scale(1.02); }
.nav-logo img { height: 28px; width: auto; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0 auto 0 40px;
}

.nav-menu li { position: relative; }

.nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--t1);
  border-radius: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
  color: var(--blue);
  background: var(--blue-d);
}

.nav-menu .mat { font-size: 18px; opacity: 0.7; transition: transform 0.3s; }
.nav-menu li:hover .mat { transform: rotate(180deg); opacity: 1; }

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 10px; /* Bridge the gap */
  min-width: 280px;
  background: #FFFFFF;
  border: 1px solid var(--b1);
  border-radius: var(--r);
  padding: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.dropdown::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 10px;
  background: transparent;
}

.nav-menu li:hover .dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.dropdown a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 11px 14px;
  border-radius: 7px;
  color: var(--t2);
  font-size: 13.5px;
  transition: color 0.2s, background 0.2s;
}

.dropdown a .dd-sub {
  font-size: 11.5px;
  color: var(--t3);
  font-weight: 400;
  font-family: 'Manrope', sans-serif;
}

.dropdown a:hover {
  color: var(--blue);
  background: var(--bg1);
}

.nav-cta {
  flex-shrink: 0;
  background: #0F172A;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-cta:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--b2);
  color: var(--t1);
  cursor: pointer;
  padding: 7px;
  border-radius: 8px;
  margin-left: 12px;
  align-items: center;
  justify-content: center;
}

.nav-toggle .mat { font-size: 22px; }

/* Mobile menu */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  padding: 24px;
  overflow-y: auto;
}

.mobile-nav.open { display: block; }

.mobile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}

.mobile-close {
  background: rgba(255,255,255,0.06);
  border: none;
  color: var(--t1);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  display: flex;
}

.mobile-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-links a {
  display: block;
  padding: 13px 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--t1);
  border-radius: 9px;
  transition: background 0.2s;
}

.mobile-links a:hover { background: rgba(255,255,255,0.05); }
.mobile-links .mobile-sub-link { padding-left: 28px; font-size: 14px; color: var(--t2); }
.mobile-nav-cta { margin-top: 24px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  white-space: nowrap;
}

.btn .mat { font-size: 18px; }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-lg { padding: 15px 30px; font-size: 15px; }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 14px rgba(65, 121, 246, 0.25);
}
.btn-primary:hover {
  background: var(--blue-l);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(65, 121, 246, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--t1);
  border: 1px solid var(--b2);
}
.btn-outline:hover {
  border-color: var(--blue-b);
  color: var(--blue-l);
  background: var(--blue-d);
}

/* Hero specific button overrides */
.hero .btn-outline {
  border-color: rgba(255,255,255,0.3);
  color: #FFFFFF !important;
}
.hero .btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #FFFFFF;
}

/* Pre-footer CTA band button overrides */
.cta-band .btn-outline {
  border-color: rgba(255,255,255,0.3);
  color: #FFFFFF !important;
}
.cta-band .btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #FFFFFF;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--t1);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }

.btn-white {
  background: var(--white);
  color: #0D1020;
}
.btn-white:hover { background: #E4EBF8; }

/* ============================================================
   SECTIONS — SHARED
   ============================================================ */
.section { padding: 96px 0; }
.section-alt { background: var(--bg1); }
.section-sm { padding: 64px 0; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
.section-tag::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--blue);
  display: block;
  border-radius: 1px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.section-sub {
  font-size: 17px;
  color: var(--t1);
  max-width: 560px;
  line-height: 1.75;
}

.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; }
.section-head.center .section-tag { justify-content: center; }
.section-head.center .section-sub { margin: 0 auto; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg2);
  border: 1px solid var(--b1);
  border-radius: var(--rl);
  padding: 32px;
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
}
.card:hover {
  border-color: var(--b2);
  background: var(--bg3);
  transform: translateY(-4px);
}

.card-icon {
  width: 46px;
  height: 46px;
  background: var(--blue-d);
  border: 1px solid var(--blue-b);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card-icon .mat { font-size: 22px; color: var(--blue-l); }
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--t2); line-height: 1.7; }

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

/* ============================================================
   PAGE HEADER (inner pages)
   ============================================================ */
.page-header {
  padding: 148px 0 80px;
  background: var(--bg1);
  border-bottom: 1px solid var(--b1);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--b1) 1px, transparent 1px),
    linear-gradient(90deg, var(--b1) 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: 0.35;
  pointer-events: none;
}
.page-header::after {
  content: '';
  position: absolute;
  top: -160px;
  left: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16,185,129,0.08), transparent 70%);
  pointer-events: none;
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.page-header p {
  font-size: 18px;
  color: var(--t2);
  max-width: 580px;
  line-height: 1.75;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-band {
  padding: 0 0 96px;
}
.cta-band-inner {
  background: linear-gradient(135deg, #0E1630 0%, #111E40 100%);
  border: 1px solid var(--blue-b);
  border-radius: var(--rx);
  padding: 72px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band-inner::before {
  content: '';
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(16,185,129,0.12), transparent 70%);
  pointer-events: none;
}
.cta-band-inner h2 {
  font-size: clamp(26px, 3.5vw, 40px);
  margin-bottom: 14px;
  position: relative;
  color: #FFFFFF;
}
.cta-band-inner p {
  color: #94A3B8;
  font-size: 17px;
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.75;
  position: relative;
}
.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #0B0E17;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 80px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand img { height: 27px; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-brand p { font-size: 14px; color: var(--t3); line-height: 1.8; max-width: 280px; }
.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t3);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 14px; color: var(--t3); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-col ul li span { font-size: 14px; color: var(--t3); }
.footer-bottom {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.footer-bottom p { font-size: 13px; color: var(--t3); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 13px; color: var(--t3); transition: color 0.2s; }
.footer-legal a:hover { color: var(--white); }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}
.badge-live {
  background: rgba(74, 222, 128, 0.1);
  color: var(--green);
  border: 1px solid rgba(74, 222, 128, 0.2);
}
.badge-live::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  display: block;
  animation: blink 2s ease-in-out infinite;
}
.badge-soon {
  background: rgba(252, 211, 77, 0.1);
  color: var(--amber);
  border: 1px solid rgba(252, 211, 77, 0.2);
}
.badge-featured {
  background: var(--blue-d);
  color: var(--blue-l);
  border: 1px solid var(--blue-b);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============================================================
   FORM STYLES (contact page)
   ============================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--t2);
  letter-spacing: 0.02em;
}
.form-group label span { color: var(--blue); margin-left: 2px; }
.form-control {
  background: var(--bg2);
  border: 1px solid var(--b2);
  border-radius: 9px;
  padding: 12px 16px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  color: var(--t1);
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
}
.form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(65, 121, 246, 0.12);
}
.form-control::placeholder { color: var(--t3); }
textarea.form-control { resize: vertical; min-height: 110px; }
select.form-control {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234D566A' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: var(--bg2);
  border: 1px solid var(--b1);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  font-size: 13.5px;
  color: var(--t2);
  user-select: none;
}
.checkbox-item:hover { border-color: var(--b2); color: var(--t1); }
.checkbox-item input[type="checkbox"],
.checkbox-item input[type="radio"] { display: none; }
.checkbox-item.checked {
  border-color: var(--blue-b);
  background: var(--blue-d);
  color: var(--blue-l);
}
.checkbox-dot {
  width: 16px; height: 16px;
  border: 1.5px solid var(--b2);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s;
}
.checked .checkbox-dot {
  border-color: var(--blue);
  background: var(--blue);
}
.checked .checkbox-dot::after {
  content: '';
  width: 8px; height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
  display: block;
}
.radio-dot {
  width: 16px; height: 16px;
  border: 1.5px solid var(--b2);
  border-radius: 50%;
  flex-shrink: 0;
  transition: border-color 0.2s;
  position: relative;
}
.checked .radio-dot { border-color: var(--blue); }
.checked .radio-dot::after {
  content: '';
  width: 8px; height: 8px;
  background: var(--blue);
  border-radius: 50%;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.form-section {
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--b1);
}
.form-section:last-child { border-bottom: none; margin-bottom: 0; }
.form-section-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.form-section-num {
  width: 26px; height: 26px;
  background: var(--blue-d);
  border: 1px solid var(--blue-b);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  flex-shrink: 0;
}
.form-section-sub {
  font-size: 13px;
  color: var(--t3);
  margin-bottom: 24px;
  margin-left: 36px;
}

.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.upload-zone {
  border: 2px dashed var(--b2);
  border-radius: var(--r);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.upload-zone:hover {
  border-color: var(--blue-b);
  background: var(--blue-d);
}
.upload-zone .mat { font-size: 32px; color: var(--t3); margin-bottom: 8px; }
.upload-zone p { font-size: 14px; color: var(--t2); }
.upload-zone span { font-size: 12px; color: var(--t3); }

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

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav-menu, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .section { padding: 64px 0; }
  .page-header { padding: 120px 0 56px; }
  .cta-band-inner { padding: 48px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .checkbox-group { grid-template-columns: 1fr; }
}
