/* === E-COMKHWA — PROFESSIONAL CLEAN THEME === */
:root {
  --bg: #faf7f4;
  --bg-alt: #f3ede6;
  --bg-dark: #1a2744;
  --bg-dark2: #152035;
  --orange: #c44b2b;
  --orange-dk: #a83a1f;
  --orange-lt: rgba(196,75,43,0.08);
  --text: #1a2744;
  --text-2: #4a5568;
  --text-3: #9ca3af;
  --white: #ffffff;
  --border: #e8e0d8;
  --border-2: #d1c5bb;
  --shadow: 0 1px 12px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.09);
  --shadow-lg: 0 10px 48px rgba(0,0,0,0.13);
  --radius: 14px;
  --radius-sm: 8px;
  --t: all 0.25s ease;
  --pad: clamp(60px, 7vw, 96px) 6%;
  --inner: 1200px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, 'Segoe UI', system-ui, sans-serif; background: var(--bg); color: var(--text); overflow-x: hidden; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
ul { list-style: none; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }

/* === NAVBAR === */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; padding: 0 6%; height: 70px; display: flex; align-items: center; justify-content: space-between; transition: var(--t); }
.navbar.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow); }
.nav-logo { font-size: 1.35rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.nav-logo span { color: var(--orange); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { color: var(--text-2); font-size: 0.9rem; font-weight: 500; transition: var(--t); }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 1.25rem; }
.nav-signin { color: var(--text-2); font-size: 0.9rem; font-weight: 500; transition: var(--t); }
.nav-signin:hover { color: var(--text); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.ham-bar { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--t); transform-origin: center; display: block; }
.hamburger.open .ham-bar:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open .ham-bar:nth-child(2) { opacity: 0; }
.hamburger.open .ham-bar:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
.mobile-nav { display: none; position: fixed; inset: 0; background: var(--white); z-index: 999; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; padding: 80px 5%; }
.mobile-nav.open { display: flex; opacity: 1; pointer-events: all; }
.mobile-nav a { font-size: 1.3rem; color: var(--text-2); font-weight: 500; transition: var(--t); }
.mobile-nav a:hover { color: var(--orange); }
.mobile-nav .btn { margin-top: 8px; }

/* === BUTTONS === */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 12px 24px; border-radius: 100px; font-size: 0.9rem; font-weight: 600; transition: var(--t); border: none; outline: none; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dk); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(196,75,43,0.35); }
.btn-outline { background: transparent; border: 2px solid var(--border-2); color: var(--text); }
.btn-outline:hover { border-color: var(--text); background: var(--white); transform: translateY(-1px); }
.btn-dark { background: var(--bg-dark); color: #fff; }
.btn-dark:hover { background: var(--bg-dark2); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(26,39,68,0.3); }
.btn-sm { padding: 9px 18px; font-size: 0.82rem; }
.btn-lg { padding: 15px 32px; font-size: 1rem; }

/* === LAYOUT === */
section { position: relative; }
.section-pad { padding: var(--pad); }
.inner { max-width: var(--inner); margin: 0 auto; }
.section-tag { display: inline-block; background: var(--orange-lt); color: var(--orange); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 12px; border-radius: 100px; margin-bottom: 14px; }
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.2; color: var(--text); margin-bottom: 14px; }
.section-sub { font-size: clamp(0.95rem, 1.4vw, 1.05rem); color: var(--text-2); line-height: 1.75; max-width: 580px; }
.section-header { margin-bottom: 52px; }
.text-center { text-align: center; }
.text-center .section-sub { margin: 0 auto; }
.grid-2 { display: grid; grid-template-columns: repeat(2,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; }

/* === CARDS === */
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; transition: var(--t); }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--border-2); }
.card-icon { width: 48px; height: 48px; border-radius: 10px; background: var(--orange-lt); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; margin-bottom: 18px; transition: var(--t); }
.card:hover .card-icon { background: var(--orange); }
.card-title { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 8px; letter-spacing: -0.01em; }
.card-text { color: var(--text-2); font-size: 0.875rem; line-height: 1.75; }
.card-tag { display: inline-block; margin-top: 14px; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange); }

/* === STATS === */
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.stat-item { text-align: center; padding: 48px 24px; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-number { font-size: clamp(2.2rem,4vw,3.2rem); font-weight: 700; color: var(--text); display: block; letter-spacing: -0.03em; line-height: 1; margin-bottom: 8px; }
.stat-number span { color: var(--orange); }
.stat-label { color: var(--text-2); font-size: 0.82rem; font-weight: 500; }

/* === PAGE HERO (inner pages) === */
.page-hero { background: var(--bg-dark); padding: 120px 6% 80px; position: relative; overflow: hidden; }
.page-hero::after { content:''; position: absolute; right: -100px; top: -100px; width: 500px; height: 500px; border-radius: 50%; background: rgba(196,75,43,0.06); pointer-events: none; }
.page-hero-content { max-width: 700px; position: relative; z-index: 1; }
.page-hero .section-tag { background: rgba(196,75,43,0.15); color: #e8a58e; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; color: #fff; margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,0.65); font-size: clamp(0.95rem,1.5vw,1.1rem); line-height: 1.75; max-width: 560px; }

/* === SCROLL REVEAL === */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-24px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.d1{transition-delay:.08s} .d2{transition-delay:.16s} .d3{transition-delay:.24s}
.d4{transition-delay:.32s} .d5{transition-delay:.40s} .d6{transition-delay:.48s}
.d7{transition-delay:.56s} .d8{transition-delay:.64s} .d9{transition-delay:.72s}

/* === CTA SECTION === */
.cta-section { background: var(--bg-dark); padding: 80px 6%; text-align: center; }
.cta-section h2 { font-size: clamp(1.8rem,3.5vw,2.8rem); font-weight: 700; color: #fff; letter-spacing: -0.03em; margin-bottom: 14px; }
.cta-section h2 span { color: #e8a58e; }
.cta-section p { color: rgba(255,255,255,0.65); font-size: 1.05rem; margin-bottom: 36px; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-section .btn-outline { border-color: rgba(255,255,255,0.3); color: #fff; }
.cta-section .btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); }

/* === TIMELINE === */
.timeline { padding-left: 36px; position: relative; }
.timeline::before { content:''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.tl-step { position: relative; margin-bottom: 48px; }
.tl-step:last-child { margin-bottom: 0; }
.tl-dot { position: absolute; left: -42px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); border: 3px solid var(--bg); box-shadow: 0 0 0 2px var(--orange); }
.tl-title { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.tl-text { color: var(--text-2); font-size: 0.875rem; line-height: 1.75; }

/* === FAQ === */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { padding: 20px 0; cursor: pointer; display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: 0.95rem; color: var(--text); transition: var(--t); gap: 16px; }
.faq-q:hover { color: var(--orange); }
.faq-arrow { font-size: 0.9rem; transition: transform 0.3s ease; color: var(--text-3); flex-shrink: 0; }
.faq-item.open .faq-arrow { transform: rotate(180deg); color: var(--orange); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-a-inner { padding: 0 0 20px; color: var(--text-2); font-size: 0.9rem; line-height: 1.8; }
.faq-item.open .faq-a { max-height: 400px; }

/* === MARKET CARD === */
.market-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 24px; text-align: center; transition: var(--t); }
.market-card:hover { border-color: var(--orange); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.market-flag { font-size: 3rem; display: block; margin-bottom: 14px; }
.market-name { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.market-domain { font-size: 0.72rem; font-weight: 600; color: var(--orange); letter-spacing: 0.06em; text-transform: uppercase; }
.market-stat { margin-top: 10px; font-size: 0.82rem; color: var(--text-2); line-height: 1.6; }

/* === FORM === */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text); margin-bottom: 7px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; color: var(--text); font-family: inherit; font-size: 0.9rem; transition: var(--t); outline: none; -webkit-appearance: none; appearance: none; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(196,75,43,0.1); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-3); }
.form-group select option { color: var(--text); }
.form-group textarea { resize: vertical; min-height: 120px; }
.field-error { display: none; color: #dc2626; font-size: 0.75rem; margin-top: 5px; font-weight: 500; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-success { display: none; text-align: center; padding: 48px 32px; background: #f0fdf4; border: 1.5px solid #86efac; border-radius: var(--radius); }
.form-success .check { font-size: 2.5rem; display: block; margin-bottom: 14px; }
.form-success h3 { font-size: 1.3rem; font-weight: 700; color: #166534; margin-bottom: 10px; }
.form-success p { color: #15803d; font-size: 0.9rem; line-height: 1.7; }

/* === CHECK LIST === */
.check-list { display: flex; flex-direction: column; gap: 12px; }
.check-item { display: flex; align-items: flex-start; gap: 12px; }
.chk { width: 20px; height: 20px; border-radius: 50%; background: var(--orange-lt); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.chk::after { content:'✓'; font-size: 0.65rem; font-weight: 800; color: var(--orange); }
.check-item-text { font-size: 0.9rem; color: var(--text-2); line-height: 1.6; }
.check-item-text strong { color: var(--text); display: block; margin-bottom: 2px; }

/* === FEATURE BOX === */
.feature-box { display: flex; align-items: flex-start; gap: 16px; padding: 20px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); transition: var(--t); }
.feature-box:hover { border-color: var(--orange); box-shadow: var(--shadow); }
.fb-icon { font-size: 1.4rem; flex-shrink: 0; }
.fb-title { font-weight: 600; font-size: 0.9rem; color: var(--text); margin-bottom: 3px; }
.fb-text { font-size: 0.82rem; color: var(--text-2); line-height: 1.6; }

/* === FOOTER === */
footer { background: var(--bg-dark); padding: 72px 6% 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer-brand .f-logo { font-size: 1.35rem; font-weight: 700; color: #fff; letter-spacing: -0.02em; display: block; margin-bottom: 14px; }
.footer-brand .f-logo span { color: #e8a58e; }
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 0.875rem; line-height: 1.75; margin-bottom: 24px; }
.footer-socials { display: flex; gap: 10px; }
.soc-icon { width: 38px; height: 38px; border-radius: 8px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 0.95rem; transition: var(--t); }
.soc-icon:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.2); }
.footer-col h4 { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 18px; }
.footer-col li { margin-bottom: 10px; }
.footer-col li a { color: rgba(255,255,255,0.6); font-size: 0.875rem; transition: var(--t); }
.footer-col li a:hover { color: #fff; }
.footer-col .f-addr { color: rgba(255,255,255,0.5); font-size: 0.82rem; line-height: 1.7; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding: 20px 0; display: flex; align-items: center; justify-content: space-between; }
.footer-bottom p { color: rgba(255,255,255,0.35); font-size: 0.78rem; }

/* === FLOATING BUTTONS === */
.wa-float { position: fixed; bottom: 28px; right: 28px; z-index: 9990; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.wa-tooltip-bubble { background: rgba(37,211,102,0.95); color: #fff; padding: 7px 13px; border-radius: 8px; font-size: 0.78rem; font-weight: 500; white-space: nowrap; opacity: 0; transform: translateX(8px); transition: var(--t); pointer-events: none; }
.wa-float:hover .wa-tooltip-bubble { opacity: 1; transform: translateX(0); }
.wa-btn { width: 56px; height: 56px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; position: relative; transition: var(--t); box-shadow: 0 4px 20px rgba(37,211,102,0.35); }
.wa-btn:hover { transform: scale(1.08); box-shadow: 0 4px 28px rgba(37,211,102,0.55); }
.wa-btn svg { width: 26px; height: 26px; fill: #fff; position: relative; z-index: 1; }
.wa-pulse { position: absolute; inset: 0; border-radius: 50%; background: #25D366; animation: waPulse 2.5s ease-out infinite; }
@keyframes waPulse { 0%{transform:scale(1);opacity:0.5} 70%,100%{transform:scale(1.6);opacity:0} }
.call-btn { width: 48px; height: 48px; border-radius: 50%; background: var(--bg-dark); display: flex; align-items: center; justify-content: center; position: relative; transition: var(--t); box-shadow: var(--shadow-md); border: 2px solid rgba(255,255,255,0.1); }
.call-btn:hover { background: var(--orange); transform: scale(1.08); box-shadow: 0 4px 20px rgba(196,75,43,0.4); }
.call-btn svg { width: 20px; height: 20px; fill: #fff; transition: var(--t); }
.call-tooltip { position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%); background: var(--bg-dark); color: #fff; padding: 4px 10px; border-radius: 6px; font-size: 0.68rem; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.call-btn:hover .call-tooltip { opacity: 1; }

/* === DIVIDER === */
.divider { height: 1px; background: var(--border); margin: 0 6%; }

/* === BADGE ROW === */
.badge-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.badge-pill { display: inline-flex; align-items: center; gap: 5px; background: var(--white); border: 1px solid var(--border); border-radius: 100px; padding: 4px 12px; font-size: 0.75rem; color: var(--text-2); font-weight: 500; }
.badge-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; display: inline-block; }

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal, .reveal-left { opacity: 1 !important; transform: none !important; }
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:nth-child(2n) { border-right: none; }
}
@media (max-width: 768px) {
  :root { --pad: 56px 5%; }
  .nav-links, .nav-signin { display: none; }
  .hamburger { display: flex; }
  .nav-right .btn:not(.hamburger) { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .page-hero { padding: 100px 5% 56px; }
  .form-row { grid-template-columns: 1fr; }
  .cta-btns { flex-direction: column; align-items: center; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .wa-float { bottom: 20px; right: 20px; }
}
