/* =============================================
   MAAKLIN — Marketing Site Stylesheet
   Brown / Cream / Gold brand system
   ============================================= */

:root {
  --brown: #7B4F2E;
  --brown-dark: #5A3520;
  --brown-light: #A0673A;
  --cream: #F7F2EC;
  --beige: #EDE5D8;
  --gold: #C9975A;
  --gold-light: #E8C38A;
  --white: #FFFFFF;
  --charcoal: #2C2017;
  --gray: #6B6157;
  --gray-light: #B8AFA7;
  --border: #E2D9CE;
  --shadow: 0 2px 16px rgba(123,79,46,0.10);
  --shadow-lg: 0 8px 40px rgba(123,79,46,0.14);
  --radius: 14px;
  --radius-sm: 8px;
  --nav-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--charcoal);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.5;
}
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.2; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600;
  cursor: pointer; border: none; transition: all 0.2s; font-family: 'Inter', sans-serif;
  white-space: nowrap;
}
.btn-primary { background: var(--brown); color: #fff; }
.btn-primary:hover { background: var(--brown-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(123,79,46,0.30); }
.btn-outline { background: transparent; color: var(--brown); border: 1.5px solid var(--brown); }
.btn-outline:hover { background: var(--brown); color: #fff; }
.btn-ghost { background: transparent; color: var(--gray); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--brown); color: var(--brown); }
.btn-light { background: #fff; color: var(--brown-dark); }
.btn-light:hover { background: var(--cream); }
.btn-ghost-white { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.5); }
.btn-ghost-white:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-lg { padding: 15px 30px; font-size: 15px; border-radius: 10px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { width: 100%; }

/* ── Nav ── */
#site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}
.nav-inner {
  max-width: 1240px; margin: 0 auto; height: 100%;
  padding: 0 5%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-logo-icon {
  width: 38px; height: 38px; border-radius: 10px; background: var(--brown);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px; font-weight: 700; font-family: 'Playfair Display', serif;
}
.nav-logo-text { font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 700; color: var(--brown-dark); line-height: 1.2; }
.nav-logo-text small { display: block; font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 500; color: var(--gray); letter-spacing: 0.4px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--gray); transition: color 0.2s; }
.nav-links a:hover { color: var(--brown); }
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; background: none; border: none; }
.hamburger span { width: 22px; height: 2px; background: var(--brown-dark); border-radius: 2px; transition: all 0.25s; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; flex-direction: column; gap: 4px;
  background: #fff; border-top: 1px solid var(--border);
  padding: 12px 5% 20px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 12px 4px; font-size: 15px; font-weight: 500; color: var(--charcoal); border-bottom: 1px solid var(--border); }
.mobile-menu-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }

/* ── Sections / layout ── */
section[id] { scroll-margin-top: var(--nav-h); }
.section { padding: 88px 5%; }
.section-alt { background: var(--cream); }
.container { max-width: 1140px; margin: 0 auto; }
.text-center { text-align: center; }
.section-label {
  font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px; text-align: center;
}
.section-title { font-size: clamp(26px, 3.4vw, 38px); color: var(--brown-dark); margin-bottom: 16px; text-align: center; }
.section-sub { font-size: 16px; color: var(--gray); max-width: 640px; margin: 0 auto 48px; text-align: center; line-height: 1.7; }
.two-col > .section-label,
.two-col > .section-title { text-align: left; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }

/* ── Reveal-on-scroll ──
   Visible by default (safe if JS fails to load/run — a marketing page
   must never depend on JS just to show its own content). main.js adds
   .js-reveal to <html> only once it has successfully set up the
   IntersectionObserver, and that's what opts elements into the
   hidden-until-scrolled-into-view animation. */
.reveal { opacity: 1; transform: none; }
html.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.js-reveal .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--brown-dark) 0%, var(--brown) 60%, var(--brown-light) 100%);
  padding: calc(var(--nav-h) + 64px) 5% 80px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(232,195,138,0.18), transparent 55%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1180px; margin: 0 auto; position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
}
.badge-pill {
  display: inline-block; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.25);
  color: #fff; font-size: 12px; font-weight: 600; padding: 7px 16px; border-radius: 30px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(32px, 4.4vw, 50px); color: #fff; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero-lead { font-size: 19px; font-weight: 600; color: #fff; max-width: 520px; margin-bottom: 14px; }
.hero-sub { font-size: 15px; color: rgba(255,255,255,0.78); max-width: 520px; margin-bottom: 30px; line-height: 1.7; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { margin-top: 18px; font-size: 12px; color: rgba(255,255,255,0.6); }

/* Dashboard mockup card */
.mockup {
  background: #1F1A16; border-radius: 16px; box-shadow: var(--shadow-lg);
  overflow: hidden; transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
}
.mockup-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; background: #171310; }
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-bar-label { margin-left: 10px; font-size: 11px; color: rgba(255,255,255,0.55); }
.mockup-body { background: var(--cream); padding: 20px; }
.mockup-title { font-family: 'Playfair Display', serif; font-size: 15px; color: var(--brown-dark); margin-bottom: 14px; }
.mockup-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.mockup-kpi { background: #fff; border-radius: 10px; padding: 12px 8px; text-align: center; border: 1px solid var(--border); }
.mockup-kpi-val { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: var(--brown-dark); }
.mockup-kpi-lbl { font-size: 10px; color: var(--gray); margin-top: 2px; }
.mockup-row { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; border: 1px solid var(--border); }
.mockup-avatar { width: 30px; height: 30px; border-radius: 8px; color: #fff; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mockup-row-text { flex: 1; min-width: 0; }
.mockup-row-name { font-size: 12.5px; font-weight: 600; color: var(--charcoal); }
.mockup-row-loc { font-size: 11px; color: var(--gray); }
.mockup-tag { font-size: 10px; font-weight: 700; padding: 4px 9px; border-radius: 20px; white-space: nowrap; }
.mockup-tag-green { background: #EAF5EE; color: #3A7D59; }
.mockup-tag-amber { background: #FEF3C7; color: #D97706; }
.mockup-tag-blue { background: #EBF3FB; color: #2D6BA1; }

/* ── Problem ── */
.problem-card {
  background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; text-align: center; transition: box-shadow 0.2s, transform 0.2s;
}
.problem-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.problem-icon { font-size: 34px; margin-bottom: 14px; }
.problem-card h3 { font-size: 17px; color: var(--brown-dark); margin-bottom: 8px; }
.problem-card p { font-size: 14px; color: var(--gray); line-height: 1.65; }

/* ── Solution ── */
.check-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--charcoal); }
.check-ico { width: 22px; height: 22px; border-radius: 6px; background: var(--gold-light); color: var(--brown-dark); font-weight: 700; font-size: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.solution-steps { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 8px; box-shadow: var(--shadow); }
.solution-step { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 10px; }
.solution-step:not(:last-child) { border-bottom: 1px solid var(--border); }
.solution-num { width: 34px; height: 34px; border-radius: 50%; background: var(--brown); color: #fff; font-weight: 700; font-family: 'Playfair Display', serif; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.solution-step-title { font-size: 14px; font-weight: 700; color: var(--brown-dark); }
.solution-step-desc { font-size: 12.5px; color: var(--gray); margin-top: 2px; }

/* ── Features ── */
.feature-card { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius); padding: 26px 22px; transition: box-shadow 0.2s, transform 0.2s; }
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.feature-icon { font-size: 26px; margin-bottom: 12px; }
.feature-card h3 { font-size: 15px; color: var(--brown-dark); margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--gray); line-height: 1.65; }

/* ── How it works ── */
.step-card { text-align: center; padding: 8px; }
.step-num {
  width: 52px; height: 52px; border-radius: 50%; background: var(--brown); color: #fff;
  font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
}
.step-card h3 { font-size: 17px; color: var(--brown-dark); margin-bottom: 10px; }
.step-card p { font-size: 14px; color: var(--gray); line-height: 1.7; max-width: 300px; margin: 0 auto; }

/* ── Industries ── */
.grid-industries { grid-template-columns: repeat(3, 1fr); }
.industry-card { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius); padding: 24px 20px; text-align: center; transition: box-shadow 0.2s, transform 0.2s; }
.industry-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--gold); }
.industry-icon { font-size: 30px; margin-bottom: 10px; }
.industry-card h3 { font-size: 15px; color: var(--brown-dark); margin-bottom: 6px; }
.industry-card p { font-size: 12.5px; color: var(--gray); line-height: 1.6; }

/* ── Pricing ── */
.pricing-card {
  background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 32px 26px; text-align: left; position: relative; display: flex; flex-direction: column;
}
.pricing-popular { border-color: var(--brown); box-shadow: var(--shadow-lg); transform: scale(1.03); }
.pricing-popular-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brown); color: #fff; font-size: 11px; font-weight: 700;
  padding: 5px 14px; border-radius: 20px; white-space: nowrap;
}
.pricing-tier { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--gray); margin-bottom: 8px; }
.pricing-price { font-family: 'Playfair Display', serif; font-size: 34px; font-weight: 700; color: var(--brown-dark); margin-bottom: 6px; }
.pricing-price span { font-size: 14px; font-weight: 500; color: var(--gray); }
.pricing-desc { font-size: 13px; color: var(--gray); margin-bottom: 20px; line-height: 1.6; min-height: 40px; }
.pricing-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; flex: 1; }
.pricing-features li { font-size: 13.5px; color: var(--charcoal); }

/* ── CTA banner ── */
.cta-section {
  background: linear-gradient(135deg, var(--brown-dark), var(--brown));
  padding: 80px 5%; text-align: center;
}
.cta-section h2 { color: #fff; font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 14px; }
.cta-section p { color: rgba(255,255,255,0.82); font-size: 15px; max-width: 560px; margin: 0 auto 30px; line-height: 1.7; }

/* ── Contact ── */
.contact-grid { align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 22px; }
.contact-row { display: flex; gap: 14px; align-items: flex-start; }
.contact-ico { width: 42px; height: 42px; background: var(--cream); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0; }
.contact-label { font-weight: 700; font-size: 14px; color: var(--charcoal); }
.contact-value { color: var(--gray); font-size: 13px; margin-top: 2px; }
.contact-value a { color: var(--brown); font-weight: 600; }
.contact-sub { color: var(--gray-light); font-size: 12px; margin-top: 2px; }

.contact-form-card { background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.contact-form-card h3 { font-size: 19px; color: var(--brown-dark); margin-bottom: 18px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 12.5px; font-weight: 600; color: var(--charcoal); margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 11px 13px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; font-family: 'Inter', sans-serif; background: #fff; color: var(--charcoal);
  outline: none; transition: border-color 0.15s;
}
.form-control:focus { border-color: var(--brown); }
textarea.form-control { resize: vertical; min-height: 90px; }
.form-note { font-size: 11.5px; color: var(--gray-light); text-align: center; margin-top: 10px; }

/* ── Footer ── */
.site-footer { background: var(--brown-dark); color: rgba(255,255,255,0.7); padding: 60px 5% 0; }
.footer-main { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-logo { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; line-height: 1.7; max-width: 300px; }
.footer-col h4 { font-size: 13px; color: #fff; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; font-family: 'Inter', sans-serif; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 13.5px; color: rgba(255,255,255,0.7); transition: color 0.2s; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  max-width: 1140px; margin: 0 auto; padding: 22px 0; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: rgba(255,255,255,0.5);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 460px; margin: 0 auto; }
  .two-col { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-industries { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }
  .section { padding: 64px 5%; }
  .hero { padding: calc(var(--nav-h) + 40px) 5% 56px; }
  .form-row-2 { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .grid-4, .grid-3, .grid-industries { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; }
  .pricing-popular { transform: none; }
}
