/* ============================================
   HisabMagic — Brand Tokens & CSS Custom Properties
   ============================================ */
:root {
  --color-primary: #1E2A44;
  --color-primary-light: #2a3a5c;
  --color-accent: #F5C16C;
  --color-accent-dark: #d4a24e;
  --color-white: #FFFFFF;
  --color-light-grey: #F5F7FA;
  --color-dark-grey: #2B2B2B;
  --color-text: #333333;
  --color-text-dim: #6b7280;

  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Poppins', system-ui, -apple-system, sans-serif;

  --max-width: 1200px;
  --section-padding: 5rem 1.5rem;
  --transition-speed: 300ms;
  --radius: 12px;
  --radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.6;
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-primary);
}

/* ============================================
   Layout Utilities
   ============================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: var(--section-padding);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  text-align: center;
  margin-bottom: 1rem;
}

.section-sub {
  text-align: center;
  color: var(--color-text-dim);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto 3rem;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  text-decoration: none;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-primary);
  padding: 0.875rem 2rem;
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.4);
  padding: 0.875rem 2rem;
}
.btn-outline:hover {
  border-color: var(--color-white);
  background: rgba(255,255,255,0.1);
}

.btn-secondary {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.875rem 2rem;
}
.btn-secondary:hover {
  background: var(--color-primary-light);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}


/* ============================================
   Navbar
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-white);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow var(--transition-speed) ease;
}
.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  transition: color var(--transition-speed);
}
.nav-links a:hover { color: var(--color-primary); }
.btn-nav {
  padding: 0.6rem 1.5rem !important;
  font-size: 0.9rem !important;
  border-radius: var(--radius-sm);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: all var(--transition-speed);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   Hero
   ============================================ */
.hero {
  background: linear-gradient(170deg, var(--color-primary) 0%, var(--color-primary) 55%, var(--color-white) 100%);
  padding: 8rem 0 5rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
}
.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-content { color: var(--color-white); }
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--color-white);
  margin-bottom: 1.25rem;
  line-height: 1.15;
}
.gold { color: var(--color-accent); }
.hero-sub {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  line-height: 1.7;
  max-width: 480px;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.hero-note {
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ============================================
   WhatsApp Chat Mockup
   ============================================ */
.chat-mockup {
  background: #ECE5DD;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  max-width: 340px;
  width: 100%;
}
.hero-visual {
  display: flex;
  justify-content: center;
}
.chat-mockup__header {
  background: #075E54;
  color: white;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-mockup__avatar {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--color-white);
}
.chat-mockup__name { font-weight: 600; font-size: 0.95rem; }
.chat-mockup__status { font-size: 0.75rem; opacity: 0.7; }

.chat-mockup__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 200px;
}

.chat-bubble {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.5;
  max-width: 85%;
  word-wrap: break-word;
}
.chat-bubble--sent {
  background: #DCF8C6;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
  color: #111;
}
.chat-bubble--received {
  background: var(--color-white);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
  color: #111;
}
.chat-line { display: block; }
.chat-highlight { font-weight: 600; color: #075E54; }
.chat-dim { font-size: 0.78rem; color: #888; }
.voice-wave { font-size: 1.1rem; }
.voice-label { font-size: 0.78rem; color: #666; }

/* ============================================
   Value Propositions
   ============================================ */
.value-props {
  background: var(--color-light-grey);
}
.vp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.vp-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: box-shadow var(--transition-speed), transform var(--transition-speed);
}
.vp-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.vp-icon { margin-bottom: 1rem; }
.vp-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.vp-card p {
  color: var(--color-text-dim);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================
   Features Grid
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feature-card {
  position: relative;
  background: var(--color-white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: box-shadow var(--transition-speed), transform var(--transition-speed);
}
.feature-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.feature-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
}
.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}
.feature-card p {
  color: var(--color-text-dim);
  font-size: 0.9rem;
  line-height: 1.5;
}
.premium-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--color-accent);
  color: var(--color-primary);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================
   How It Works
   ============================================ */
.steps-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}
.step-card {
  text-align: center;
  flex: 1;
  max-width: 280px;
  padding: 0 1.5rem;
}
.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.step-icon {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}
.step-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.step-card p {
  color: var(--color-text-dim);
  font-size: 0.95rem;
  line-height: 1.5;
}
.step-connector {
  display: flex;
  align-items: center;
  padding-top: 3.5rem;
}

/* ============================================
   Demo
   ============================================ */
.demo {
  background: var(--color-light-grey);
}
.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  justify-items: center;
}
.demo-grid .chat-mockup {
  max-width: 320px;
}

/* ============================================
   Pricing
   ============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}
.pricing-card {
  position: relative;
  background: var(--color-white);
  border: 1px solid rgba(0,0,0,0.08);
  border-top: 4px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
}
.pricing-card--premium {
  background: var(--color-primary);
  color: var(--color-white);
  border-top: 4px solid var(--color-accent);
}
.pricing-card--premium h3,
.pricing-card--premium .pricing-price {
  color: var(--color-white);
}
.pricing-recommended {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.pricing-header {
  margin-bottom: 1.5rem;
}
.pricing-header h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.pricing-price {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
}
.pricing-period {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.7;
}
.pricing-features {
  flex: 1;
  margin-bottom: 2rem;
}
.pricing-features li {
  padding: 0.4rem 0;
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.4;
}
.check {
  color: #22c55e;
  font-weight: 700;
  flex-shrink: 0;
}
.pricing-card--premium .check {
  color: var(--color-accent);
}
.pricing-cta {
  width: 100%;
  text-align: center;
}

/* ============================================
   FAQ
   ============================================ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-text);
  text-align: left;
  gap: 1rem;
  min-height: 44px;
}
.faq-question:hover { color: var(--color-primary); }
.faq-chevron {
  flex-shrink: 0;
  transition: transform var(--transition-speed);
  color: var(--color-text-dim);
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.open .faq-answer {
  max-height: 300px;
}
.faq-answer p {
  padding-bottom: 1.25rem;
  color: var(--color-text-dim);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--color-primary);
  color: var(--color-white);
}
.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3rem 1.5rem 2rem;
  flex-wrap: wrap;
  gap: 2rem;
}
.footer-brand { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-logo {
  display: flex;
  align-items: center;
}
.footer-logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
}
.footer-tagline {
  font-size: 0.9rem;
  opacity: 0.7;
}
.footer-links {
  display: flex;
  gap: 2rem;
}
.footer-links a {
  font-size: 0.9rem;
  opacity: 0.8;
  transition: opacity var(--transition-speed);
}
.footer-links a:hover { opacity: 1; }
.footer-badge {
  font-size: 0.9rem;
  opacity: 0.8;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1rem 0;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ============================================
   Responsive — Tablet (768px)
   ============================================ */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
  .hero-sub { margin: 0 auto 2rem; }
  .hero-ctas { justify-content: center; }
  .hero-visual { order: -1; }

  .vp-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-grid { grid-template-columns: repeat(2, 1fr); }

  .steps-row { flex-wrap: wrap; gap: 2rem; justify-content: center; }
  .step-connector { display: none; }
}

/* ============================================
   Responsive — Mobile (768px)
   ============================================ */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform var(--transition-speed) ease;
  }
  .nav-links.open {
    transform: translateX(0);
  }
  .nav-links a { font-size: 1.2rem; }

  .hero { padding: 7rem 0 3rem; min-height: auto; }
  .hero-title { font-size: 2rem; }

  .vp-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }

  .steps-row { flex-direction: column; align-items: center; }

  .footer-container { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}
