@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- CSS Variables & Design Tokens --- */
:root {
  --bg-dark: #F7F9FC;
  --bg-darker: #EEF2F7;
  --bg-card: #FFFFFF;
  --border-color: rgba(15, 23, 42, 0.1);
  
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  
  --color-teal: #0A2F6B;
  --color-blue: #0A2F6B;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- Base Reset --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* --- Scrollbar styling --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-teal);
}

/* --- Global Utilities & Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-secondary);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.8rem;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: var(--color-blue);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: #12408F;
  transform: translateY(-2px);

}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--color-teal);
  background: rgba(10, 47, 107, 0.05);
  transform: translateY(-2px);
}

/* --- Navigation Header --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: var(--transition-smooth);
  padding: 1.5rem 0;
}

header.scrolled {
  padding: 0.8rem 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

header .nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  transition: var(--transition-smooth);
}

.logo:hover .logo-img {
  transform: scale(1.05);
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #0A2F6B; /* same navy as the logo mark */
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-teal);
  transition: var(--transition-smooth);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.lang-switch {
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lang-switch:hover {
  border-color: var(--color-teal);
  background: rgba(10, 47, 107, 0.1);
}

/* --- Hero Section --- */
.hero {
  padding-top: 10rem;
  padding-bottom: 6rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.2rem;
  line-height: 1.25;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

.hero-visual {
  position: relative;
}

.hero-img-container {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12), 0 0 30px rgba(10, 47, 107, 0.1);
  border: 1px solid var(--border-color);
  position: relative;
}

.hero-img-container img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

.hero-img-container:hover img {
  transform: scale(1.03);
}


/* --- Hero dashboard preview --- */
.mock-window {
  position: relative;
  z-index: 2;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.12);
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg-darker);
  border-bottom: 1px solid var(--border-color);
}

.mock-dots {
  display: flex;
  gap: 6px;
}

.mock-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #CBD5E1;
}

.mock-url {
  flex-grow: 1;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: #FFFFFF;
  border-radius: 6px;
  padding: 0.2rem 0;
  direction: ltr;
}

.mock-body {
  padding: 1.4rem;
}

.mock-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.mock-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.mock-stat {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.mock-stat small {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.mock-stat strong {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--text-primary);
}

.mock-stat:nth-child(2) strong {
  color: #1DA851;
}

.mock-chart {
  height: 90px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 0.75rem;
  margin-bottom: 1.1rem;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
}

.mock-chart span {
  flex: 1;
  border-radius: 5px 5px 2px 2px;
  background: var(--color-blue);
  transform-origin: bottom;
  animation: barGrow 1s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.mock-chart span:nth-child(2) { animation-delay: 0.08s; }
.mock-chart span:nth-child(3) { animation-delay: 0.16s; }
.mock-chart span:nth-child(4) { animation-delay: 0.24s; }
.mock-chart span:nth-child(5) { animation-delay: 0.32s; }
.mock-chart span:nth-child(6) { animation-delay: 0.4s; }
.mock-chart span:nth-child(7) { animation-delay: 0.48s; }

@keyframes barGrow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

.mock-rows {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mock-rows li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: var(--bg-dark);
}

.mock-rows li span:nth-child(2) {
  flex-grow: 1;
}

.mock-rows em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 600;
  color: #1DA851;
  background: rgba(37, 211, 102, 0.12);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
}

.mock-rows em.wait {
  color: var(--color-blue);
  background: rgba(10, 47, 107, 0.08);
}

.mock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mock-dot.ok { background: #25D366; }
.mock-dot.wait { background: var(--color-blue); }

.mock-toast {
  position: absolute;
  z-index: 3;
  bottom: -1.5rem;
  inset-inline-end: -1.5rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  max-width: 290px;
  padding: 0.8rem 1rem;
  background: #FFFFFF;
  border: 1px solid rgba(37, 211, 102, 0.35);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
  animation: toastFloat 4s ease-in-out infinite;
}

.mock-toast-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F1F5F9;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mock-toast div {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.mock-toast strong {
  font-size: 0.8rem;
  color: #1DA851;
}

.mock-toast small {
  font-size: 0.8rem;
  color: var(--text-primary);
}

@keyframes toastFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 640px) {
  .mock-body {
    padding: 1rem;
  }

  .mock-stat strong {
    font-size: 1.1rem;
  }

  .mock-toast {
    position: relative;
    inset-inline-end: auto;
    bottom: auto;
    margin: -1rem auto 0;
  }
}

/* --- Project Planner Interactive Form --- */
.planner-section {
  padding: 6rem 0;
  background: var(--bg-darker);
  position: relative;
}

.planner-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 3rem;
  max-width: 800px;
  margin: 0 auto;
}

.planner-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3rem;
  position: relative;
}

.planner-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--border-color);
  z-index: 1;
  transform: translateY(-50%);
}

.step-indicator {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-darker);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  z-index: 2;
  transition: var(--transition-smooth);
}

.step-indicator.active {
  border-color: var(--color-teal);
  color: var(--color-teal);
}

.step-indicator.completed {
  border-color: var(--color-blue);
  background: var(--color-blue);
  color: white;
}

.planner-step {
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.planner-step.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.planner-step h3 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.option-box {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.option-box:hover {
  border-color: var(--color-teal);
  background: rgba(10, 47, 107, 0.04);
}

.option-box.selected {
  border-color: var(--color-blue);
  background: rgba(10, 47, 107, 0.05);
}

.option-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.option-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.planner-form-group {
  margin-bottom: 1.5rem;
}

.planner-form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.planner-input {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.8rem 1.2rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.planner-input:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(10, 47, 107, 0.12);
}

textarea.planner-input {
  resize: vertical;
  min-height: 120px;
}

/* Range slider styling */
.range-container {
  margin: 2rem 0;
  text-align: center;
}

.range-val {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-teal);
  font-family: var(--font-heading);
  margin-bottom: 1rem;
}

.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(15, 23, 42, 0.1);
  outline: none;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-teal);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: var(--color-blue);
}

.planner-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
}

/* --- Footer --- */
footer {
  background: #FFFFFF;
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  margin-top: 1rem;
  max-width: 320px;
}

.footer-links h4 {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  color: var(--text-primary);
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 0.75rem;
}

.footer-links ul li a {
  text-decoration: none;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.footer-links ul li a:hover {
  color: var(--color-teal);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- RTL (Arabic Support) Styles --- */
body.rtl {
  direction: rtl;
  text-align: right;
}

body.rtl .logo-img {
  margin-left: 0.75rem;
  margin-right: 0;
}

body.rtl .nav-links {
  gap: 2rem;
}



/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-content h1 {
    white-space: normal;
  }
  
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
}

@media (max-width: 768px) {
  .nav-links {
    display: none; /* simple mobile nav toggle could be added, but for elegance we can let them collapse or wrap */
  }
  
  .options-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
    white-space: normal;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* --- Header actions --- */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
}

/* --- Shared section pieces --- */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: 2.6rem;
  margin-bottom: 0.75rem;
}

.section-header p {
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.eyebrow {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: rgba(10, 47, 107, 0.08);
  color: var(--color-blue);
  font-size: 0.85rem;
  font-weight: 600;
}

.section-header .eyebrow {
  margin-bottom: 0.75rem;
}

.sub-heading {
  font-size: 1.6rem;
  text-align: center;
  margin: 4.5rem 0 2rem;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.check-list li {
  position: relative;
  padding-inline-start: 1.6rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.check-list li::before {
  content: '✓';
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  border-radius: 50%;
  background: rgba(10, 47, 107, 0.12);
  color: var(--color-teal);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.check-wa li::before {
  background: rgba(37, 211, 102, 0.15);
  color: #128C7E;
}

/* --- Hero trust points --- */
.trust-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 2rem;
}

.trust-points li {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.trust-points li::before {
  content: '✓';
  color: var(--color-teal);
  font-weight: 700;
  margin-inline-end: 0.4rem;
}

/* --- Services --- */
.services {
  padding: 6rem 0;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem 1.6rem;
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(10, 47, 107, 0.35);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #F1F5F9;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.service-card > p {
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
}

/* --- WhatsApp Business Automation --- */
.wa-section {
  padding: 6rem 0;
  background: #F2F8F4;
  border-top: 1px solid rgba(37, 211, 102, 0.15);
}

.eyebrow-wa {
  background: rgba(37, 211, 102, 0.14);
  color: #128C7E;
}

.wa-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.wa-hero-text h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.wa-hero-text > p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  max-width: 560px;
}

.wa-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.wa-chip {
  padding: 0.5rem 1rem;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1px solid rgba(37, 211, 102, 0.3);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
}

.btn-wa {
  background: #1DA851;
  color: #FFFFFF;
}

.btn-wa:hover {
  background: #178F45;
  transform: translateY(-2px);
}

/* System -> VEEN -> WhatsApp flow */
.wa-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.06);
}

.flow-node {
  width: 100%;
  max-width: 280px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.9rem;
  align-items: center;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  background: var(--bg-dark);
}

.flow-icon,
.flow-logo {
  grid-row: span 2;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: contain;
}

.flow-node strong {
  font-size: 1rem;
}

.flow-node small {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.flow-node-brand {
  border-color: rgba(10, 47, 107, 0.35);
  background: rgba(10, 47, 107, 0.05);
}

.flow-node-wa {
  border-color: rgba(37, 211, 102, 0.45);
  background: rgba(37, 211, 102, 0.08);
}

.flow-arrow {
  width: 2px;
  height: 34px;
  background: var(--color-blue);
  position: relative;
}

.flow-arrow::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--color-blue);
  border-bottom: 0;
}

/* Message types with phone mockups */
.wa-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.wa-type-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 1.8rem 1.6rem 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.wa-type-card h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.phone-mock {
  margin: 1.75rem auto 0;
  width: 100%;
  max-width: 250px;
  flex-grow: 1;
  border: 6px solid #1F2937;
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  background: #ECE5DD;
  overflow: hidden;
}

.phone-top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  background: #075E54;
  color: #FFFFFF;
}

.phone-top div {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.phone-top strong {
  font-size: 0.85rem;
}

.phone-top small {
  font-size: 0.65rem;
  opacity: 0.85;
}

.phone-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--color-blue);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-chat {
  padding: 0.9rem 0.75rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 150px;
}

.bubble {
  align-self: flex-start;
  max-width: 88%;
  background: #FFFFFF;
  color: #111B21;
  font-size: 0.78rem;
  line-height: 1.5;
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  border-start-start-radius: 2px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}

.bubble-out {
  align-self: flex-end;
  background: #D9FDD3;
  border-start-start-radius: 10px;
  border-start-end-radius: 2px;
}

.bubble-btns {
  align-self: flex-start;
  width: 88%;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.bubble-btns span {
  background: #FFFFFF;
  color: #0A2F6B;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  padding: 0.4rem;
  border-radius: 8px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}

/* Features grid */
.wa-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.wa-feature {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.5rem 1.3rem;
  transition: var(--transition-smooth);
}

.wa-feature:hover {
  border-color: rgba(37, 211, 102, 0.45);
  transform: translateY(-4px);
}

.wa-feature-icon {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 0.75rem;
}

.wa-feature h4 {
  font-size: 1.02rem;
  margin-bottom: 0.4rem;
}

.wa-feature p {
  font-size: 0.87rem;
  line-height: 1.6;
}

/* Integration callout */
.wa-integration {
  margin-top: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.5rem;
  border-radius: 20px;
  background: #FFFFFF;
  border: 1px solid rgba(37, 211, 102, 0.25);
}

.wa-integration h3 {
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}

.wa-integration .check-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 2rem;
}

.wa-integration .check-list li {
  color: var(--text-primary);
}

.wa-integration .btn {
  flex-shrink: 0;
}

/* --- How We Work --- */
.process {
  padding: 6rem 0;
}

.process-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: none;
}

.process-step {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem 1.5rem;
}

.process-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-blue);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}

.process-step h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.9rem;
}

/* --- Planner additions --- */
.step-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}

.step-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 0 0.4rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.range-hint {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* --- FAQ --- */
.faq {
  padding: 6rem 0;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.faq-item {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0 1.4rem;
  transition: var(--transition-smooth);
}

.faq-item[open] {
  border-color: rgba(10, 47, 107, 0.3);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.02rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-blue);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding-bottom: 1.2rem;
  font-size: 0.95rem;
}

@media (max-width: 1100px) {
  .service-cards,
  .wa-features,
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-links {
    gap: 1.25rem;
  }
}

@media (max-width: 992px) {
  .wa-hero {
    grid-template-columns: 1fr;
  }

  .wa-types {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .wa-integration {
    flex-direction: column;
    align-items: flex-start;
  }

  .trust-points {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 1rem;
  }

  .service-cards,
  .wa-features,
  .process-steps,
  .wa-integration .check-list,
  .form-row {
    grid-template-columns: 1fr;
  }

  .options-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .section-header h2,
  .wa-hero-text h2 {
    font-size: 2rem;
  }

  .planner-card {
    padding: 1.75rem 1.25rem;
  }

  .wa-integration {
    padding: 1.75rem 1.25rem;
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .lang-switch {
    padding: 0.4rem 0.6rem;
  }
}

/* --- Monthly plans (quote step 2) --- */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.plan-card {
  position: relative;
  background: #FFFFFF;
  border: 1.5px solid var(--border-color);
  border-radius: 14px;
  padding: 1.5rem 1.25rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.plan-card:hover {
  border-color: rgba(10, 47, 107, 0.4);
}

.plan-card.selected {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(10, 47, 107, 0.12);
}

.plan-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 1.1rem;
}

.plan-price strong {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--text-primary);
}

.plan-price span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.plan-card .check-list li {
  font-size: 0.85rem;
}

.plan-tag {
  position: absolute;
  top: -0.7rem;
  inset-inline-start: 1rem;
  background: var(--color-blue);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
}

/* --- Submit success with tracking number --- */
.success-box {
  text-align: center;
  padding: 1rem 0;
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.15);
  color: #1DA851;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-box h3 {
  font-size: 1.7rem;
  margin-bottom: 0.5rem;
}

.success-box p {
  max-width: 480px;
  margin: 0 auto;
}

.tracking-box {
  margin: 1.75rem auto;
  max-width: 340px;
  padding: 1.1rem;
  border: 1.5px dashed var(--color-blue);
  border-radius: 12px;
  background: rgba(10, 47, 107, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.tracking-box small {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.tracking-box strong {
  font-family: 'Courier New', monospace;
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  color: var(--color-blue);
}

.success-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Request tracking --- */
.track-section {
  padding: 6rem 0;
}

.track-card {
  max-width: 720px;
  margin: 0 auto;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
}

.track-form {
  display: flex;
  gap: 0.75rem;
}

.track-form .planner-input {
  flex-grow: 1;
  font-family: 'Courier New', monospace;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.track-result {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-color);
}

.track-msg {
  text-align: center;
}

.track-msg-error {
  color: #C0392B;
}

.track-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.track-head strong {
  font-family: 'Courier New', monospace;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
}

.status-badge {
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(10, 47, 107, 0.08);
  color: var(--color-blue);
}

.status-badge.status-in_progress { background: rgba(245, 158, 11, 0.12); color: #B45309; }
.status-badge.status-done { background: rgba(37, 211, 102, 0.15); color: #15803D; }
.status-badge.status-closed { background: rgba(100, 116, 139, 0.12); color: #475569; }

.status-timeline {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 1.75rem;
  position: relative;
}

.status-timeline li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  position: relative;
}

.status-timeline li::before {
  content: '';
  position: absolute;
  top: 8px;
  inset-inline-start: 50%;
  width: 100%;
  height: 2px;
  background: var(--border-color);
  z-index: 0;
}

.status-timeline li:last-child::before {
  display: none;
}

.status-timeline li.done::before {
  background: var(--color-blue);
}

.status-timeline .status-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  background: #FFFFFF;
  position: relative;
  z-index: 1;
}

.status-timeline li.done .status-dot,
.status-timeline li.current .status-dot {
  border-color: var(--color-blue);
  background: var(--color-blue);
}

.status-timeline li.current {
  color: var(--text-primary);
  font-weight: 600;
}

.status-closed {
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: var(--bg-darker);
  color: var(--text-secondary);
  text-align: center;
}

.track-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.track-meta div {
  background: var(--bg-dark);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
}

.track-meta dt {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.track-meta dd {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.track-reply {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
}

.track-reply h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.track-reply-text {
  color: var(--text-primary);
  white-space: pre-wrap;
}

.track-reply-empty {
  color: var(--text-muted);
  font-size: 0.92rem;
}

@media (max-width: 760px) {
  .plans-grid,
  .track-meta {
    grid-template-columns: 1fr;
  }

  .track-form {
    flex-direction: column;
  }

  .track-card {
    padding: 1.4rem 1.1rem;
  }

  .status-timeline li {
    font-size: 0.72rem;
  }
}

/* --- Monochrome line icons (replace emoji) --- */
.icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.mock-toast-icon .icon,
.flow-icon .icon {
  width: 20px;
  height: 20px;
}

.option-icon,
.wa-feature-icon,
.flow-icon {
  color: var(--text-primary);
}

.option-icon {
  display: flex;
  justify-content: center;
}

.wa-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Keep section titles clear of the fixed header when scrolled to */
section[id] {
  scroll-margin-top: 70px;
}

/* Header menu: tighten, then hide links before they collide with the buttons */
@media (max-width: 1200px) {
  .nav-links {
    gap: 1.1rem;
  }

  .nav-links a {
    font-size: 0.88rem;
  }
}

@media (max-width: 1000px) {
  .nav-links {
    display: none;
  }
}

.track-form .btn {
  white-space: nowrap;
}
