/* ============================================================
   Selfflow.io — Shared Stylesheet
   Colors: Navy #0B2D6E | Teal #00C4CC | Gray #4A5568
   ============================================================ */

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

:root {
  --navy:       #0B2D6E;
  --navy-mid:   #1A4FA0;
  --navy-light: #EEF3FB;
  --teal:       #00C4CC;
  --teal-dark:  #009AA0;
  --teal-light: #E0F9FA;
  --gray-900:   #111827;
  --gray-700:   #374151;
  --gray-500:   #6B7280;
  --gray-300:   #D1D5DB;
  --gray-100:   #F3F4F6;
  --white:      #FFFFFF;
  --shadow-sm:  0 1px 3px rgba(11,45,110,0.08);
  --shadow-md:  0 4px 16px rgba(11,45,110,0.12);
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

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

/* ── Utility ── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: var(--teal-light);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.section-title {
  font-size: 34px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 12px;
}
.section-sub {
  font-size: 16px;
  color: var(--gray-500);
  max-width: 560px;
  line-height: 1.7;
}
.text-center { text-align: center; }
.text-center .section-sub { margin: 0 auto; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover { background: var(--navy-mid); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-teal {
  background: var(--teal);
  color: var(--navy);
}
.btn-teal:hover { background: var(--teal-dark); color: var(--white); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.15); }

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-300);
  box-shadow: var(--shadow-sm);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo { display: flex; align-items: center; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--navy);
  background: var(--navy-light);
}
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { padding: 9px 20px; font-size: 14px; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1A4FA0 60%, #0E3A8C 100%);
  padding: 90px 0 0;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,196,204,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 60px; left: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0,196,204,0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-bottom: 70px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,196,204,0.15);
  border: 1px solid rgba(0,196,204,0.4);
  color: var(--teal);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 22px;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.hero h1 {
  font-size: 48px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.hero h1 span { color: var(--teal); }
.hero-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 34px;
  max-width: 460px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats {
  display: flex;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-stat-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
}
.hero-stat-lbl {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin-top: 2px;
}

/* Hero visual — workflow card */
.hero-visual {
  position: relative;
  z-index: 2;
}
.workflow-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-xl);
  padding: 28px;
  backdrop-filter: blur(10px);
}
.wf-title {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.wf-steps { display: flex; flex-direction: column; gap: 10px; }
.wf-step {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  transition: all 0.2s;
}
.wf-step:hover { background: rgba(255,255,255,0.1); }
.wf-step-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.wf-step-info { flex: 1; }
.wf-step-name { font-size: 13px; font-weight: 600; color: var(--white); }
.wf-step-desc { font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 1px; }
.wf-step-status {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}
.status-live { background: rgba(0,196,204,0.2); color: var(--teal); }
.status-done { background: rgba(34,197,94,0.2); color: #4ade80; }
.wf-connector {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  font-size: 11px;
  color: rgba(255,255,255,0.3);
}
.wf-connector-line {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
}
.wf-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}
.wf-run-btn {
  background: var(--teal);
  color: var(--navy);
  border: none;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; gap: 6px;
}

/* ── Trusted by ── */
.trusted {
  padding: 36px 0;
  border-bottom: 1px solid var(--gray-300);
  background: var(--gray-100);
}
.trusted-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.trusted-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}
.trusted-logos {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
  flex: 1;
}
.trusted-logo {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-300);
  letter-spacing: -0.3px;
  white-space: nowrap;
}

/* ── Features ── */
.features { padding: 90px 0; }
.features-header { margin-bottom: 52px; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feat-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.25s;
}
.feat-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.feat-icon-wrap {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: var(--teal-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feat-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.feat-card p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.65;
}
.feat-card .feat-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-mid);
}
.feat-card:hover .feat-link { color: var(--teal-dark); }

/* ── How it works ── */
.how-it-works {
  padding: 90px 0;
  background: var(--navy-light);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
  margin-top: 52px;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 32px; left: calc(16.66% + 16px); right: calc(16.66% + 16px);
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--navy-mid));
  z-index: 0;
}
.step-item { text-align: center; padding: 0 20px; position: relative; z-index: 1; }
.step-num {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 22px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
  border: 4px solid var(--navy-light);
  box-shadow: 0 0 0 2px var(--navy);
}
.step-item:nth-child(2) .step-num { background: var(--teal-dark); box-shadow: 0 0 0 2px var(--teal-dark); }
.step-item:nth-child(3) .step-num { background: var(--navy-mid); box-shadow: 0 0 0 2px var(--navy-mid); }
.step-item h3 { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.step-item p { font-size: 14px; color: var(--gray-500); line-height: 1.65; }

/* ── Integrations ── */
.integrations { padding: 90px 0; }
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.int-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  padding: 18px 12px;
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  transition: all 0.2s;
  cursor: default;
}
.int-card:hover { border-color: var(--teal); box-shadow: var(--shadow-sm); }
.int-icon { font-size: 26px; }
.int-name { font-size: 11px; font-weight: 600; color: var(--gray-700); }

/* ── Testimonials ── */
.testimonials {
  padding: 90px 0;
  background: var(--gray-100);
}
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.testi-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.testi-stars { color: #F59E0B; font-size: 14px; margin-bottom: 14px; letter-spacing: 2px; }
.testi-text { font-size: 14px; color: var(--gray-700); line-height: 1.7; font-style: italic; margin-bottom: 20px; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: var(--white);
}
.testi-name { font-size: 13px; font-weight: 700; color: var(--navy); }
.testi-role { font-size: 11px; color: var(--gray-500); margin-top: 1px; }

/* ── CTA Banner ── */
.cta-banner {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--navy) 0%, #1A4FA0 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -60px; right: 10%;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(0,196,204,0.2) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-banner h2 { font-size: 36px; font-weight: 800; color: var(--white); margin-bottom: 14px; line-height: 1.2; position: relative; }
.cta-banner p { font-size: 16px; color: rgba(255,255,255,0.7); margin-bottom: 34px; position: relative; }
.cta-btns { display: flex; gap: 14px; justify-content: center; position: relative; }

/* ── Footer ── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 60px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand p { font-size: 13px; line-height: 1.7; margin-top: 14px; max-width: 260px; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: var(--white); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,0.55); transition: color 0.15s; }
.footer-col ul li a:hover { color: var(--teal); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 12px;
}
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: all 0.15s;
}
.footer-social a:hover { background: var(--teal); color: var(--navy); }

/* ── WhatsApp Sticky Button ── */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0;
  cursor: pointer;
  filter: drop-shadow(0 4px 16px rgba(37,211,102,0.4));
  transition: filter 0.2s;
}
.wa-float:hover { filter: drop-shadow(0 6px 20px rgba(37,211,102,0.6)); }
.wa-float a {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  border-radius: 50px;
  padding: 13px 20px 13px 16px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  max-width: 56px;
  transition: max-width 0.35s ease, padding 0.2s;
}
.wa-float a:hover {
  max-width: 260px;
  background: #1ebe5d;
}
.wa-float a svg { flex-shrink: 0; width: 26px; height: 26px; }
.wa-label { opacity: 0; transition: opacity 0.25s 0.1s; white-space: nowrap; }
.wa-float a:hover .wa-label { opacity: 1; }

/* ── Hamburger Menu ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.hamburger:hover { background: var(--navy-light); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.25s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--gray-300);
  padding: 12px 16px 20px;
  gap: 4px;
  box-shadow: 0 8px 24px rgba(11,45,110,0.1);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 11px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}
.mobile-nav a:hover, .mobile-nav a.active {
  color: var(--navy);
  background: var(--navy-light);
}
.mobile-nav .mobile-divider {
  height: 1px;
  background: var(--gray-300);
  margin: 8px 0;
}
.mobile-nav .btn {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .features-grid, .steps-grid, .testi-grid { grid-template-columns: 1fr; }
  .integrations-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-title { font-size: 26px; }
  .hero h1 { font-size: 34px; }
  .steps-grid::before { display: none; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 600px) {
  .hero { padding: 60px 0 0; }
  .hero-btns { flex-direction: column; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .integrations-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-btns { flex-direction: column; align-items: center; }
}
