/* ===== SULY — shared stylesheet ===== */

:root {
  --green: #48c100;
  --green-dark: #379100;
  --icon-green: #7fff67;
  --navy: #151515;
  --navy-2: #151515;
  --black: #151515;
  --black-2: #17373b;
  --header-h: 78px;
  --header-gap: 14px;
  --white: #ffffff;
  --gray-bg: #f6f7f9;
  --text: #1c1c1c;
  --text-muted: #5a5a5a;
  --text-on-dark: #e9edf3;
  --text-muted-on-dark: #b7c0cf;
  --radius: 14px;
  --max-width: 1240px;
  --service: linear-gradient(90deg, #0f9b7d, #34d399);
  --sales: linear-gradient(90deg, #f59e0b, #ea580c);
  --datawizard: linear-gradient(90deg, #7c3aed, #a855f7);
  --aicall: linear-gradient(90deg, #06b6d4, #0ea5e9);
  --font: 'Poppins', 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.15; }
p { margin: 0 0 1em; }
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--green);
  margin-bottom: 18px;
}
.eyebrow .plus {
  display: inline-block;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  background:
    linear-gradient(var(--green), var(--green)) center / 100% 3px no-repeat,
    linear-gradient(var(--green), var(--green)) center / 3px 100% no-repeat;
}
/* light-background variant: dark label text, green plus, larger */
.eyebrow-light {
  color: var(--text);
  font-size: 16px;
}
.eyebrow-light .plus {
  width: 22px;
  height: 22px;
}
/* on the green banner: dark label text, white plus, same larger size */
.eyebrow-on-green {
  color: var(--text);
  font-size: 16px;
}
.eyebrow-on-green .plus {
  width: 22px;
  height: 22px;
  background:
    linear-gradient(#fff, #fff) center / 100% 3px no-repeat,
    linear-gradient(#fff, #fff) center / 3px 100% no-repeat;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-green {
  background: #050505;
  color: var(--white);
  border: 1px solid var(--white);
  padding: 6px 24px 6px 6px;
}
.btn-green:hover { box-shadow: 0 8px 20px rgba(0,0,0,.4); }
.btn-white { background: var(--white); color: var(--black); }
.btn svg { flex-shrink: 0; }
.btn-icon {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: var(--icon-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.btn-icon svg path { stroke: #050505; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: var(--header-gap);
  left: 0;
  right: 0;
  z-index: 100;
  background: #151515;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.logo {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
}
.logo span { color: var(--green); }
.nav-list {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-list a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-on-dark);
  white-space: nowrap;
}
.nav-list a:hover { color: var(--green); }
.nav-list a.active { color: var(--green); }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  background: #151515;
  color: var(--white);
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(21,21,21,0.92) 0%, rgba(21,21,21,0.55) 32%, rgba(21,21,21,0.05) 60%);
}
.hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 900px;
  max-height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 1;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 92%);
  mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 92%);
}
.hero .container {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--header-h) + var(--header-gap) + 30px);
  padding-bottom: 70px;
}
.hero h1 {
  font-size: 44px;
  max-width: 640px;
  margin-bottom: 20px;
}
.hero h1 em { color: var(--green); font-style: normal; }
.hero p.lead {
  max-width: 520px;
  color: var(--text-muted-on-dark);
  font-size: 16px;
  margin-bottom: 32px;
}
.hero-panel {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-panel img { border-radius: 12px; }
.hero-panel h2 {
  font-size: 26px;
  margin-bottom: 18px;
}
.hero-panel h2 b { color: var(--green); }
.feature-list { margin-top: 4px; }
.feature-list li {
  border-top: 1px solid rgba(255,255,255,0.12);
}
.feature-list li:last-child { border-bottom: 1px solid rgba(255,255,255,0.12); }
.feature-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 4px;
  cursor: pointer;
  text-align: left;
}
.feature-toggle::before {
  content: '+';
  color: var(--green);
  font-size: 18px;
  font-weight: 700;
  transition: transform .2s ease;
}
.feature-toggle[aria-expanded="true"]::before { transform: rotate(45deg); }
.feature-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  font-size: 14px;
  color: var(--text-muted-on-dark);
}
.feature-body p { padding: 0 4px 16px 30px; margin: 0; }
.feature-item.open .feature-body { max-height: 260px; }
.hero-note {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.12);
  color: var(--white);
  font-size: 15px;
  max-width: 1000px;
}

/* subpage hero (simple, no dashboard panel) */
.hero-simple .container { padding-top: calc(var(--header-h) + var(--header-gap) + 30px); padding-bottom: 70px; }
.hero-simple-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-simple-grid img { border-radius: var(--radius); }
.hero-simple h1 { font-size: 38px; margin-bottom: 22px; }

/* ===== Green banner ===== */
.banner-green {
  background: var(--green);
  color: #ffffff;
  padding: 46px 0;
}
.banner-green h2 {
  font-size: 26px;
  max-width: 760px;
}

/* ===== Integration section ===== */
.integration-banner {
  background: var(--green);
  padding: 46px 0;
  border-top: 8px solid #050505;
}
.integration-banner h2 {
  color: #ffffff;
  font-size: 30px;
  max-width: 700px;
}
.integration-body {
  background: var(--white);
  color: var(--text);
  padding: 60px 0 80px;
}
.integration-body p {
  color: var(--text-muted);
  max-width: 900px;
}
.integration-body strong { color: var(--text); }

/* ===== Section generic ===== */
.section { padding: 80px 0; }
.section.bg-gray { background: var(--gray-bg); }
.section.bg-dark {
  position: relative;
  background: #0d1a1c;
  color: var(--text-on-dark);
  overflow: hidden;
}
.section.bg-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/images/hero-bg.webp') center top / cover no-repeat;
  opacity: 0.16;
  pointer-events: none;
}
.section.bg-dark > .container { position: relative; z-index: 1; }
.products-intro {
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  max-width: 760px;
  margin-bottom: 8px;
}
.products-intro-lg { font-size: 27px; }
h2.banner-title-lg {
  font-size: 38px;
  max-width: 820px;
}
.section.bg-black { background: var(--black); color: var(--text-on-dark); }
.section-body p {
  color: var(--text-muted);
  max-width: 900px;
}
.section.bg-dark .section-body p,
.section.bg-black .section-body p { color: var(--text-muted-on-dark); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.split img {
  border-radius: var(--radius);
  width: 100%;
  max-width: 420px;
  height: auto;
  justify-self: center;
}
.split h2 { font-size: 30px; margin-bottom: 20px; }
.split ul { margin-top: 22px; }
.split ul li {
  padding-left: 26px;
  position: relative;
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 500;
}
.split ul li::before {
  content: '•';
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  position: absolute;
  left: 0;
}

.page-hero {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}
.page-hero h1 { font-size: 34px; margin-bottom: 16px; }

/* ===== Integration logos ===== */
.brand-logos { margin: 20px auto 0; max-width: 960px; }
.brand-logos img { border-radius: 10px; }

/* ===== Products ===== */
.products-columns {
  display: flex;
  gap: 22px;
  margin-top: 40px;
  align-items: flex-start;
}
.products-col {
  display: flex;
  flex-direction: column;
  gap: 22px;
  flex: 1;
  min-width: 0;
}
.product-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  padding: 26px 26px 24px;
  background-image: url('../assets/images/candle-chart.webp');
  background-size: cover;
  background-position: center;
  text-align: left;
  font-family: var(--font);
  border: 2px solid transparent;
  transition: border-color .2s ease;
}
.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,12,16,0.72) 0%, rgba(6,12,16,0.55) 45%, rgba(6,12,16,0.8) 100%);
}
.product-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  z-index: 1;
}
.product-card.service::after { background: var(--service); }
.product-card.sales::after { background: var(--sales); }
.product-card.datawizard::after { background: var(--datawizard); }
.product-card.aicall::after { background: var(--aicall); }
.product-card.service.open { border-color: #0f9b7d; }
.product-card.sales.open { border-color: #ea580c; }
.product-card.datawizard.open { border-color: #7c3aed; }
.product-card.aicall.open { border-color: #0ea5e9; }
.product-card > * { position: relative; z-index: 1; }

.product-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}
.product-card h3 { color: var(--white); font-size: 20px; margin-bottom: 4px; }
.product-card .sub { color: var(--text-muted-on-dark); font-size: 13px; }

.card-toggle {
  position: relative;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.5);
  background: transparent;
  cursor: pointer;
}
.card-toggle::before,
.card-toggle::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: #fff;
  border-radius: 1px;
}
.card-toggle::before { width: 12px; height: 2px; transform: translate(-50%,-50%); }
.card-toggle::after {
  width: 2px; height: 12px;
  transform: translate(-50%,-50%);
  transition: transform .2s ease, opacity .2s ease;
}
.card-toggle[aria-expanded="true"]::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }

.learn-more {
  display: inline-flex;
  padding: 11px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--white);
  border: none;
  cursor: pointer;
  font-family: var(--font);
  transition: transform .15s ease, box-shadow .15s ease;
}
.learn-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.4);
}
.product-card.service .learn-more { background: #0f9b7d; }
.product-card.sales .learn-more { background: #ea580c; }
.product-card.datawizard .learn-more { background: #7c3aed; }
.product-card.aicall .learn-more { background: #0ea5e9; }

.product-detail-inline {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, margin-top .4s ease;
}
.product-detail-inline.open { max-height: 850px; margin-top: 18px; }
.detail-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background: #051926;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  padding: 20px;
}
.product-card.service .detail-box { border-color: #0f9b7d; }
.product-card.sales .detail-box { border-color: #ea580c; }
.product-card.datawizard .detail-box { border-color: #7c3aed; }
.product-card.aicall .detail-box { border-color: #0ea5e9; }
.detail-box h4, .detail-box p, .detail-box hr, .detail-box ul { width: 100%; }
.detail-box h4 { font-size: 15px; margin-bottom: 10px; }
.product-card.service .detail-box h4 { color: #34d399; }
.product-card.sales .detail-box h4 { color: #f59e0b; }
.product-card.datawizard .detail-box h4 { color: #a855f7; }
.product-card.aicall .detail-box h4 { color: #38bdf8; }
.detail-box p { color: var(--text-muted-on-dark); font-size: 13.5px; margin-bottom: 14px; }
.detail-box hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 14px;
}
.detail-box ul { margin-bottom: 18px; }
.detail-box ul li {
  color: var(--text-on-dark);
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
  font-size: 13px;
  text-align: left;
}
.detail-box ul li::before {
  content: '•';
  color: var(--green);
  position: absolute;
  left: 0;
}
.detail-box .btn-green { padding: 7px 18px 7px 6px; font-size: 13px; }
.detail-box .btn-icon { width: 28px; height: 28px; }

/* ===== Footer ===== */
.site-footer {
  background: #0e0e0e;
  color: var(--text-on-dark);
  padding: 0 0 30px;
  overflow-x: hidden;
}
.footer-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted-on-dark);
  margin-bottom: 14px;
}
.footer-cta {
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  padding: 70px 0 40px;
  overflow: hidden;
}
.footer-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/images/cta-texture.webp') repeat top center / 800px auto;
  transform: scaleX(-1);
}
.footer-cta > .container { position: relative; z-index: 1; }
.footer-cta h2 { font-size: 30px; max-width: 460px; }
.footer-grid {
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
}
.footer-logo {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 10px;
}
.footer-contact p { color: var(--text-muted-on-dark); font-size: 14px; margin-bottom: 4px; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-panel, .split, .hero-simple-grid { grid-template-columns: 1fr; }
  .products-columns { flex-direction: column; }
  .hero h1 { font-size: 32px; }
  .hero::after {
    background: linear-gradient(180deg, rgba(21,21,21,0.85) 0%, rgba(21,21,21,0.7) 55%, rgba(21,21,21,0.88) 100%);
  }

  .site-header .container { position: relative; }
  .nav-toggle { display: flex; }
  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #151515;
    padding: 6px 32px 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 12px 24px rgba(0,0,0,0.35);
  }
  .nav-list.open { display: flex; }
  .nav-list li { width: 100%; }
  .nav-list a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
}
