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

:root {
  --primary: #31B099;
  --primary-dark: #0F5D66;
  --primary-light: #e6f7f4;
  --primary-50: #f0faf8;
  --dark: #1E2836;
  --dark-hero: #1D2735;
  --dark-card: #353E49;
  --text: #1A1C1E;
  --text-secondary: #6C7278;
  --text-light: #ACB5BB;
  --bg: #FFFFFF;
  --bg-soft: #F4F4F7;
  --border: #DCE4E8;
  --border-light: #EDF1F3;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 4px 12px rgba(0,0,0,.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 18px 84px -20px rgba(0,0,0,.04);
  --shadow-xl: 0 24px 184px -10px rgba(0,0,0,.14);
  --radius: 14px;
  --radius-lg: 30px;
  --radius-xl: 50px;
  --radius-badge: 80px;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-button: 'Manrope', sans-serif;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-heading); color: var(--text); background: var(--bg); line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1260px; margin: 0 auto; padding: 0 90px; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--font-button); font-weight: 600; font-size: 16px; border-radius: var(--radius); padding: 12px 24px; height: 48px; transition: all .25s ease; cursor: pointer; border: none; letter-spacing: -0.32px; line-height: 1.5; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: #2a9d88; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(49,176,153,.3); }
.btn-primary svg { width: 20px; height: 20px; }
.btn-outline { background: #fff; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-white { background: #fff; border: 1px solid var(--border); color: var(--text); }
.btn-white:hover { border-color: var(--primary); color: var(--primary); }

/* ===== HEADER ===== */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: var(--dark); transition: box-shadow .3s; }
.header.scrolled { box-shadow: 0 18px 84px -20px rgba(0,0,0,.15); }
.header-inner { display: flex; align-items: center; gap: 72px; height: 100px; }
.logo { display: flex; align-items: center; gap: 2px; font-weight: 800; font-size: 28px; letter-spacing: -1.5px; color: #fff; flex-shrink: 0; }
.logo .accent { color: var(--primary); }
.header-nav { display: flex; align-items: center; gap: 40px; }
.header-nav a { font-size: 16px; font-weight: 400; color: #fff; letter-spacing: -0.32px; transition: color .2s; }
.header-nav a:hover { color: var(--primary); }
.nav-item-wrap { position: relative; }
.nav-item-wrap > a.has-dropdown { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.header-nav .dropdown-arrow { width: 20px; height: 20px; opacity: .6; transition: transform .25s ease; }
.nav-item-wrap:hover .dropdown-arrow { transform: rotate(180deg); }
.mega-dropdown { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px); min-width: 640px; background: var(--dark); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); box-shadow: 0 24px 80px rgba(0,0,0,.35); padding: 32px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s ease, transform .25s ease, visibility .25s; z-index: 200; }
.nav-item-wrap:hover .mega-dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.mega-dropdown::before { content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.mega-inner { display: flex; gap: 40px; }
.mega-label-col { flex-shrink: 0; width: 160px; }
.mega-label-col h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--primary); margin-bottom: 8px; }
.mega-label-col p { font-size: 14px; color: var(--text-light); line-height: 1.5; letter-spacing: -0.28px; }
.mega-modules { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; }
.mega-module { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; transition: background .2s; text-decoration: none; }
.mega-module:hover { background: rgba(255,255,255,.06); }
.mega-module .mm-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }
.mega-module .mm-text { display: flex; flex-direction: column; }
.mega-module .mm-name { font-size: 15px; font-weight: 600; color: #fff; letter-spacing: -0.3px; transition: color .2s; }
.mega-module:hover .mm-name { color: var(--primary); }
.mega-module .mm-desc { font-size: 12px; color: var(--text-light); letter-spacing: -0.24px; line-height: 1.4; }
.mega-module.active .mm-name { color: var(--primary); }
.mega-module.active { background: rgba(49,176,153,.08); }
.header-actions { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.header-actions .link { font-family: var(--font-button); font-weight: 600; font-size: 16px; color: #fff; letter-spacing: -0.32px; transition: color .2s; }
.header-actions .link:hover { color: var(--primary); }
.header-actions .btn-primary { width: 144px; }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-toggle svg { width: 24px; height: 24px; color: #fff; }

/* ===== SECTION COMMON ===== */
.section-badge { display: inline-flex; align-items: center; background: var(--bg-soft); padding: 5px 25px; border-radius: var(--radius-badge); font-size: 14px; color: var(--text); letter-spacing: -0.28px; margin-bottom: 12px; }
.section-title { font-size: 56px; font-weight: 700; letter-spacing: -1.68px; line-height: 1.4; color: var(--text); }
.section-desc { font-size: 18px; color: var(--text-secondary); letter-spacing: -0.36px; line-height: 1.5; }
.section-center { text-align: center; }
.section-center .section-desc { max-width: 723px; margin-left: auto; margin-right: auto; }

/* ===== MODULE HERO (Product Page Style) ===== */
.mod-hero { padding: 180px 0 80px; background: var(--dark-hero); position: relative; overflow: hidden; }
.mod-hero-pinstripe { position: absolute; top: 0; left: 0; right: 0; height: 100%; opacity: .08; background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.1) 0px, rgba(255,255,255,.1) 1px, transparent 1px, transparent 180px); pointer-events: none; }
.mod-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 2; }
.mod-hero-content { display: flex; flex-direction: column; gap: 32px; }
.mod-hero-badge { display: inline-flex; align-items: center; gap: 10px; background: var(--dark-card); padding: 5px 25px 5px 5px; border-radius: var(--radius-badge); align-self: flex-start; }
.mod-hero-badge-label { background: var(--primary); color: var(--border-light); font-weight: 700; font-size: 12px; padding: 5px 10px; border-radius: 60px; letter-spacing: -0.24px; }
.mod-hero-badge-text { font-size: 14px; color: #fff; letter-spacing: -0.28px; }
.mod-hero h1 { font-size: 60px; font-weight: 700; line-height: 1.3; color: #fff; letter-spacing: -1.8px; }
.mod-hero-sub { font-size: 18px; color: var(--border); letter-spacing: -0.36px; line-height: 1.5; max-width: 535px; }
.mod-hero-btns { display: flex; gap: 16px; }
.mod-hero-visual { position: relative; }

/* ===== MODULE FEATURES SECTION ===== */
.mod-features { padding: 100px 0; background: var(--bg); overflow: hidden; }
.mod-features-header { display: flex; flex-direction: column; align-items: center; gap: 24px; margin-bottom: 60px; }
.mod-features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.mod-feature-card { background: var(--bg); border: 2px solid var(--border); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; gap: 24px; transition: border-color .3s, box-shadow .3s; }
.mod-feature-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.mod-feature-card .mfc-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; }
.mod-feature-card .mfc-icon svg { width: 28px; height: 28px; color: var(--primary); }
.mod-feature-card h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.72px; color: var(--text); }
.mod-feature-card p { font-size: 16px; color: var(--text-secondary); letter-spacing: -0.32px; line-height: 1.6; }

/* ===== MODULE DEEP-DIVE SECTIONS ===== */
.mod-deep { padding: 100px 0; }
.mod-deep.alt { background: var(--bg-soft); }
.mod-deep-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.mod-deep-grid.reverse { direction: rtl; }
.mod-deep-grid.reverse > * { direction: ltr; }
.mod-deep-content { display: flex; flex-direction: column; gap: 16px; }
.mod-deep-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--primary); background: var(--primary-light); padding: 5px 14px; border-radius: var(--radius-badge); margin-bottom: 8px; letter-spacing: -0.24px; align-self: flex-start; }
.mod-deep-tag svg { width: 14px; height: 14px; }
.mod-deep-title { font-size: 36px; font-weight: 700; letter-spacing: -1.08px; line-height: 1.4; color: var(--text); }
.mod-deep-desc { font-size: 18px; color: var(--text-secondary); line-height: 1.5; letter-spacing: -0.36px; }
.mod-deep-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.mod-deep-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 16px; color: var(--text-secondary); letter-spacing: -0.32px; }
.mod-deep-list li svg { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }

/* ===== MOCKUP BASE ===== */
.mockup { background: var(--bg); border-radius: 16px; box-shadow: var(--shadow-xl); border: 1px solid rgba(255,255,255,.1); overflow: hidden; font-size: 12px; }
.mockup-chrome { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--bg-soft); border-bottom: 1px solid var(--border-light); }
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-dot.r { background: #ef4444; }
.mockup-dot.y { background: #f59e0b; }
.mockup-dot.g { background: #22c55e; }
.mockup-url { margin-left: 8px; background: var(--bg); border-radius: 6px; padding: 4px 12px; font-size: 11px; color: var(--text-light); flex: 1; max-width: 200px; }
.mockup-body { padding: 16px; }

/* ===== MODULE MOCKUP VISUAL ===== */
.mod-mockup { padding: 20px; }
.mod-mockup-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.mod-mockup-title { font-size: 14px; font-weight: 700; }
.mod-mockup-badge { font-size: 10px; font-weight: 600; background: var(--primary-light); color: var(--primary-dark); padding: 3px 10px; border-radius: 100px; }
.mod-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.mod-stat { text-align: center; padding: 10px 8px; background: var(--bg-soft); border-radius: 8px; }
.mod-stat .val { font-size: 18px; font-weight: 700; }
.mod-stat .label { font-size: 9px; color: var(--text-light); margin-top: 2px; }
.mod-list-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border-light); margin-bottom: 6px; font-size: 12px; }
.mod-list-item .item-left { display: flex; align-items: center; gap: 8px; }
.mod-list-item .item-dot { width: 8px; height: 8px; border-radius: 50%; }
.mod-list-item .item-name { font-weight: 600; }
.mod-list-item .item-meta { color: var(--text-light); font-size: 11px; }
.mod-list-item .item-right { display: flex; align-items: center; gap: 8px; }
.mod-list-item .item-badge { font-size: 9px; font-weight: 600; padding: 2px 8px; border-radius: 100px; }
.mod-list-item .item-badge.green { background: var(--primary-light); color: var(--primary-dark); }
.mod-list-item .item-badge.amber { background: #fef3c7; color: #92400e; }
.mod-list-item .item-badge.red { background: #fee2e2; color: #dc2626; }
.mod-list-item .item-badge.blue { background: #dbeafe; color: #2563eb; }

/* ===== CTA ===== */
.cta-section { padding: 40px 90px; }
.cta-block { background: var(--primary-dark); border-radius: var(--radius-xl); overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; min-height: 520px; }
.cta-content { padding: 80px 60px; display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.cta-badge { display: inline-flex; align-items: center; background: rgba(255,255,255,.1); padding: 5px 25px; border-radius: var(--radius-badge); font-size: 14px; color: #fff; letter-spacing: -0.28px; align-self: flex-start; }
.cta-title { font-size: 48px; font-weight: 700; letter-spacing: -1.44px; line-height: 1.3; color: #fff; }
.cta-desc { font-size: 18px; color: var(--border); letter-spacing: -0.36px; line-height: 1.5; }
.cta-btns { display: flex; gap: 16px; }
.cta-visual { display: flex; align-items: center; justify-content: center; padding: 40px; }
.cta-mockup-wrap { width: 100%; max-width: 460px; }

/* ===== FOOTER ===== */
.footer { background: var(--primary-dark); padding: 80px 0 40px; color: #fff; }
.footer-inner { display: flex; gap: 80px; }
.footer-brand { flex-shrink: 0; }
.footer-logo { font-weight: 800; font-size: 32px; letter-spacing: -1.5px; margin-bottom: 16px; }
.footer-logo .accent { color: var(--primary); }
.footer-tagline { font-size: 20px; font-weight: 700; letter-spacing: -0.6px; line-height: 1.5; max-width: 237px; margin-bottom: 16px; }
.footer-copy { font-size: 14px; color: var(--border); letter-spacing: -0.28px; }
.footer-cols { display: flex; gap: 80px; flex: 1; }
.footer-col h4 { font-size: 18px; font-weight: 700; margin-bottom: 24px; letter-spacing: -0.36px; }
.footer-col a { display: block; font-size: 16px; color: var(--border); letter-spacing: -0.32px; margin-bottom: 20px; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-social { display: flex; gap: 8px; }
.footer-social a { width: 48px; height: 48px; border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 0; }
.footer-social a svg { width: 20px; height: 20px; color: var(--border); }
.footer-social a:hover { border-color: #fff; }
.footer-social a:hover svg { color: #fff; }

/* ===== OTHER MODULES NAV ===== */
.mod-other { padding: 80px 0; background: var(--bg-soft); }
.mod-other-title { font-size: 32px; font-weight: 700; letter-spacing: -0.96px; text-align: center; margin-bottom: 40px; }
.mod-other-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.mod-other-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px 16px; background: var(--bg); border-radius: var(--radius); border: 1px solid var(--border-light); transition: border-color .3s, box-shadow .3s, transform .2s; text-align: center; }
.mod-other-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.mod-other-card .moc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.mod-other-card .moc-name { font-size: 14px; font-weight: 600; letter-spacing: -0.28px; color: var(--text); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .container { padding: 0 40px; }
  .header-inner { gap: 32px; height: 80px; }
  .mod-hero { padding: 140px 0 60px; }
  .mod-hero h1 { font-size: 48px; }
  .mod-hero-grid { gap: 40px; }
  .section-title { font-size: 40px; }
  .mod-features-grid { grid-template-columns: 1fr 1fr; }
  .mod-deep-grid { grid-template-columns: 1fr; gap: 32px; }
  .mod-deep-grid.reverse { direction: ltr; }
  .mod-deep-title { font-size: 28px; }
  .cta-block { grid-template-columns: 1fr; min-height: auto; }
  .cta-content { padding: 60px 40px; }
  .cta-title { font-size: 40px; }
  .cta-visual { display: none; }
  .cta-section { padding: 20px 40px; }
  .footer-inner { flex-direction: column; gap: 40px; }
  .footer-cols { gap: 40px; flex-wrap: wrap; }
  .footer-tagline { font-size: 24px; }
  .mod-other-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .header-inner { height: 70px; gap: 0; }
  .header-nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--dark); border-top: 1px solid rgba(255,255,255,.1); flex-direction: column; padding: 20px 24px; gap: 16px; box-shadow: 0 20px 40px rgba(0,0,0,.3); }
  .header-nav.open { display: flex; }
  .mobile-toggle { display: block; }
  .header-actions { gap: 16px; }
  .header-actions .link { display: none; }
  .mega-dropdown { position: static; transform: none; min-width: 0; border: none; border-radius: 0; box-shadow: none; padding: 12px 0 0; opacity: 1; visibility: visible; pointer-events: auto; display: none; background: transparent; }
  .nav-item-wrap:hover .mega-dropdown { transform: none; }
  .nav-item-wrap.mobile-open .mega-dropdown { display: block; }
  .mega-dropdown::before { display: none; }
  .mega-inner { flex-direction: column; gap: 12px; }
  .mega-label-col { display: none; }
  .mega-modules { grid-template-columns: 1fr; gap: 2px; }
  .mega-module { padding: 6px 0; }
  .mega-module .mm-desc { display: none; }
  .mod-hero { padding: 120px 0 60px; }
  .mod-hero h1 { font-size: 36px; letter-spacing: -1px; }
  .mod-hero-sub { font-size: 15px; }
  .mod-hero-grid { grid-template-columns: 1fr; }
  .mod-hero-visual { display: none; }
  .mod-hero-btns { flex-direction: column; align-items: stretch; }
  .mod-hero-btns .btn { justify-content: center; }
  .section-title { font-size: 32px; letter-spacing: -1px; }
  .section-desc { font-size: 16px; }
  .mod-features { padding: 60px 0; }
  .mod-features-grid { grid-template-columns: 1fr; }
  .mod-deep { padding: 60px 0; }
  .mod-deep-desc { font-size: 16px; }
  .mod-deep-list li { font-size: 15px; }
  .cta-section { padding: 20px 16px; }
  .cta-content { padding: 40px 24px; }
  .cta-title { font-size: 32px; }
  .cta-desc { font-size: 16px; }
  .cta-btns { flex-direction: column; }
  .cta-btns .btn { width: 100%; max-width: 280px; }
  .cta-block { border-radius: var(--radius-lg); }
  .footer { padding: 40px 0; }
  .footer-cols { flex-direction: column; gap: 32px; }
  .footer-col h4 { margin-bottom: 16px; }
  .footer-col a { margin-bottom: 16px; }
  .mod-other-grid { grid-template-columns: repeat(2, 1fr); }
  .mod-other-title { font-size: 24px; }
}

@media (max-width: 480px) {
  .mod-hero h1 { font-size: 28px; }
  .header-actions .btn-primary { width: auto; padding: 10px 16px; font-size: 14px; }
  .section-title { font-size: 28px; }
  .cta-title { font-size: 28px; }
  .mod-other-grid { grid-template-columns: 1fr 1fr; }
}
