:root {
  --landing-ink: #10233b;
  --landing-blue: #175cd3;
  --landing-blue-dark: #0f3f9e;
  --landing-mint: #dff7ef;
  --landing-cream: #fff8e8;
  --landing-soft: #f5f8fc;
}

.public-landing {
  background: #fff;
  color: var(--landing-ink);
  overflow: hidden;
}

#siteNav.public-nav {
  color: var(--landing-ink);
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(16, 35, 59, .08);
  box-shadow: 0 8px 30px rgba(16, 35, 59, .04);
  backdrop-filter: blur(16px);
  overflow: visible;
}

#siteNav.public-nav .nav-inner { height: 72px; max-width: 1240px; }
#siteNav.public-nav .logo em { color: var(--landing-blue, #175cd3); }
#siteNav.public-nav .lang-switch { background: #eef3f9; }
#siteNav.public-nav .lang-switch button { color: #536981; }
#siteNav.public-nav .lang-switch button.aktif { color: #fff; background: var(--landing-blue, #175cd3); }

.brand-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.brand-mark {
  position: relative;
  width: 31px;
  height: 31px;
  display: block;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 9px;
  border: 1px solid rgba(16, 35, 59, .08);
  background: #fff;
  box-shadow: 0 6px 15px rgba(16, 35, 59, .14);
}

.brand-mark-image img {
  position: absolute;
  top: -8.7px;
  left: -52.7px;
  width: 136.5px;
  max-width: none;
  height: auto;
  display: block;
}

.auth-brand-logo {
  width: min(100%, 330px);
  height: auto;
  display: block;
  margin: -18px auto -7px;
}

.public-menu {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: 22px;
}

.public-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.public-links button,
.public-auth-actions button {
  border: 0;
  background: none;
  color: #536981;
  padding: 9px 12px;
  border-radius: 9px;
  cursor: pointer;
  font: inherit;
  font-size: .83rem;
  font-weight: 650;
}

.public-links button:hover,
.public-auth-actions .public-login:hover { color: var(--landing-ink); background: #f1f5fa; }
.public-auth-actions { display: flex; align-items: center; gap: 5px; margin-left: auto; }
.public-auth-actions .public-start {
  min-width: 96px;
  color: #fff !important;
  background: var(--landing-blue, #175cd3);
  padding-inline: 17px;
  box-shadow: 0 7px 18px rgba(23, 92, 211, .18);
}
.public-auth-actions .public-start:hover { background: var(--landing-blue-dark, #0f3f9e); }

.landing-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.landing-section { padding: 104px 0; }
.landing-section[id] { scroll-margin-top: 72px; }
.landing-section.soft { background: var(--landing-soft); }
.landing-section.dark { color: #fff; background: var(--landing-ink); }

.landing-hero {
  position: relative;
  min-height: 720px;
  padding: 94px 0 84px;
  background:
    radial-gradient(circle at 90% 15%, rgba(23, 92, 211, .14), transparent 33%),
    radial-gradient(circle at 10% 88%, rgba(30, 127, 110, .12), transparent 27%),
    linear-gradient(180deg, #fbfdff 0%, #fff 78%);
}

.landing-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .35;
  background-image: radial-gradient(#9fb0c3 1px, transparent 1px);
  background-size: 25px 25px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

.landing-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(480px, 1.08fr);
  align-items: center;
  gap: 68px;
}

.landing-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 21px;
  padding: 7px 12px;
  border: 1px solid #cddff8;
  border-radius: 999px;
  color: #174d9c;
  background: #edf5ff;
  font-size: .73rem;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.landing-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #23a47b; box-shadow: 0 0 0 4px rgba(35, 164, 123, .13); }
.landing-copy h1 {
  max-width: 690px;
  margin-bottom: 23px;
  font-family: "Fraunces", serif;
  font-size: clamp(2.75rem, 5.6vw, 5rem);
  line-height: .99;
  letter-spacing: -.045em;
}
.landing-copy h1 span { color: var(--landing-blue); }
.landing-copy > p { max-width: 610px; color: #536981; font-size: 1.04rem; line-height: 1.76; }
.landing-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 31px; }
.landing-button {
  min-height: 48px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 11px;
  cursor: pointer;
  font: inherit;
  font-size: .88rem;
  font-weight: 750;
}
.landing-button.primary { color: #fff; background: var(--landing-blue); box-shadow: 0 12px 25px rgba(23, 92, 211, .2); }
.landing-button.primary:hover { background: var(--landing-blue-dark); transform: translateY(-1px); }
.landing-button.secondary { color: var(--landing-ink); background: #fff; border-color: #d7e0ea; }
.landing-button.secondary:hover { border-color: #aebfd2; background: #f8fafc; }
.landing-proof { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 27px; color: #60748a; font-size: .76rem; font-weight: 650; }
.landing-proof span::before { content: "✓"; margin-right: 6px; color: #1e7f6e; font-weight: 800; }

.product-window {
  position: relative;
  border: 1px solid rgba(25, 61, 101, .16);
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 35px 80px rgba(31, 65, 103, .19), 0 8px 25px rgba(31, 65, 103, .08);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-3deg) rotateX(1deg);
}
.product-window::before { content: ""; position: absolute; right: -35px; bottom: -35px; width: 120px; height: 120px; border-radius: 50%; background: rgba(217, 161, 59, .15); filter: blur(2px); }
.product-topbar { height: 43px; display: flex; align-items: center; gap: 6px; padding: 0 14px; background: #13263f; }
.product-topbar i { display: block; width: 8px; height: 8px; border-radius: 50%; background: #54708f; }
.product-topbar i:first-child { background: #ef806c; }
.product-topbar i:nth-child(2) { background: #e8b850; }
.product-topbar i:nth-child(3) { background: #54b895; }
.product-address { width: 42%; height: 18px; margin-left: 8px; border-radius: 5px; background: #213d5e; }
.product-body { min-height: 390px; display: grid; grid-template-columns: 112px 1fr 138px; background: #f4f7fb; }
.product-sidebar { padding: 17px 11px; background: #fff; border-right: 1px solid #e1e8f0; }
.product-mini-brand { width: 72px; height: 9px; margin-bottom: 22px; border-radius: 5px; background: #14263e; }
.product-nav-line { height: 8px; margin: 12px 0; border-radius: 5px; background: #e5ebf2; }
.product-nav-line.active { width: 88%; height: 26px; margin-left: -3px; background: #edf4ff; border-left: 3px solid #175cd3; }
.product-main { padding: 18px; overflow: hidden; }
.product-heading { width: 48%; height: 15px; border-radius: 5px; background: #14263e; }
.product-subheading { width: 67%; height: 7px; margin: 9px 0 18px; border-radius: 5px; background: #cbd6e2; }
.product-progress { height: 63px; padding: 12px; border-radius: 10px; background: #14263e; }
.product-progress-top { display: flex; justify-content: space-between; }
.product-progress-top i { display: block; width: 52px; height: 8px; border-radius: 5px; background: #fff; opacity: .9; }
.product-progress-top i:last-child { width: 28px; background: #d9a13b; }
.product-progress-bar { height: 6px; margin-top: 14px; border-radius: 8px; background: #294664; overflow: hidden; }
.product-progress-bar::after { content: ""; display: block; width: 68%; height: 100%; background: #42c39d; }
.product-tests { display: grid; gap: 9px; margin-top: 12px; }
.product-test { display: grid; grid-template-columns: 32px 1fr 52px; align-items: center; gap: 9px; min-height: 53px; padding: 9px; border: 1px solid #dce5ef; border-radius: 9px; background: #fff; }
.product-test b { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; color: #d9a13b; background: #14263e; font: 700 .72rem "Fraunces", serif; }
.product-test-lines i { display: block; width: 70%; height: 6px; margin: 5px 0; border-radius: 4px; background: #d7e0e9; }
.product-test-lines i:last-child { width: 92%; height: 5px; background: #edf1f5; }
.product-test button { height: 23px; border: 0; border-radius: 6px; color: #fff; background: #1e7f6e; font-size: .53rem; font-weight: 700; }
.product-side { padding: 17px 12px; border-left: 1px solid #e1e8f0; background: #fff; }
.product-score { display: grid; place-items: center; width: 86px; height: 86px; margin: 12px auto 22px; border-radius: 50%; background: conic-gradient(#175cd3 0 78%, #e9eff5 78%); }
.product-score::after { content: "7.5"; width: 65px; height: 65px; display: grid; place-items: center; border-radius: 50%; color: #14263e; background: #fff; font: 700 1.35rem "Fraunces", serif; }
.product-side-line { height: 7px; margin: 10px 0; border-radius: 4px; background: #e2e8ef; }
.product-side-line:nth-child(4) { width: 72%; }
.floating-tool-card { position: absolute; right: -22px; bottom: -27px; width: 185px; padding: 13px; border: 1px solid #e0e6ee; border-radius: 13px; background: #fff; box-shadow: 0 18px 40px rgba(16, 35, 59, .18); }
.floating-tool-card strong { display: block; margin-bottom: 4px; font-size: .75rem; }
.floating-tool-card span { color: #708196; font-size: .62rem; }
.floating-tool-row { display: flex; gap: 7px; margin-top: 10px; }
.floating-tool-row i { flex: 1; height: 26px; border-radius: 6px; background: #edf4ff; }
.floating-tool-row i:nth-child(2) { background: #e6f6f0; }
.floating-tool-row i:nth-child(3) { background: #fff2d9; }

.landing-stats { position: relative; z-index: 2; margin-top: -34px; }
.landing-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #e0e7ef; border-radius: 17px; background: #fff; box-shadow: 0 17px 45px rgba(16, 35, 59, .08); overflow: hidden; }
.landing-stat { padding: 25px 28px; border-right: 1px solid #e7edf3; }
.landing-stat:last-child { border: 0; }
.landing-stat strong { display: block; margin-bottom: 3px; color: var(--landing-blue); font: 700 1.72rem "Fraunces", serif; }
.landing-stat span { color: #60748a; font-size: .75rem; font-weight: 650; }

.section-kicker { margin-bottom: 11px; color: var(--landing-blue); font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.section-heading { max-width: 720px; font: 700 clamp(2rem, 4vw, 3.35rem)/1.06 "Fraunces", serif; letter-spacing: -.03em; }
.section-lead { max-width: 670px; margin-top: 17px; color: #62758a; line-height: 1.75; font-size: .95rem; }
.dark .section-kicker { color: #69d5b5; }
.dark .section-lead { color: #b8c7d6; }

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 45px; }
.feature-card { position: relative; min-height: 290px; padding: 31px; border: 1px solid #e0e7ef; border-radius: 18px; background: #fff; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(16, 35, 59, .09); }
.feature-card:nth-child(2) { background: #f0f7ff; }
.feature-card:nth-child(3) { background: #effaf6; }
.feature-card:nth-child(4) { background: #fff9eb; }
.feature-icon { width: 47px; height: 47px; display: grid; place-items: center; margin-bottom: 40px; border-radius: 13px; color: #fff; background: var(--landing-blue); font-size: 1.15rem; font-weight: 800; }
.feature-card:nth-child(3) .feature-icon { background: #1e7f6e; }
.feature-card:nth-child(4) .feature-icon { background: #b88119; }
.feature-card h3 { margin-bottom: 11px; font: 700 1.38rem "Fraunces", serif; }
.feature-card p { max-width: 500px; color: #61758a; font-size: .86rem; line-height: 1.7; }
.feature-link { display: inline-flex; margin-top: 20px; color: var(--landing-blue); font-size: .8rem; font-weight: 750; }
.feature-number { position: absolute; right: 23px; top: 18px; color: rgba(16, 35, 59, .07); font: 700 4.4rem "Fraunces", serif; }

.workflow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-top: 48px; }
.workflow-step { position: relative; padding: 28px 24px 24px 0; }
.workflow-step:not(:last-child)::after { content: ""; position: absolute; top: 21px; right: -10px; width: 35%; border-top: 1px dashed #a8bacd; }
.workflow-number { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 24px; border-radius: 50%; color: #fff; background: var(--landing-blue); box-shadow: 0 0 0 8px #e8f1ff; font-weight: 800; }
.workflow-step h3 { margin-bottom: 8px; font-size: 1rem; }
.workflow-step p { color: #65788d; font-size: .82rem; line-height: 1.7; }

.premium-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: center; }
.premium-points { display: grid; gap: 12px; margin-top: 27px; }
.premium-point { display: flex; gap: 12px; align-items: flex-start; color: #c5d2df; font-size: .84rem; line-height: 1.55; }
.premium-point b { color: #fff; }
.premium-check { width: 22px; height: 22px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #0f3e34; background: #69d5b5; font-size: .7rem; font-weight: 900; }
.plan-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.plan-card { padding: 26px; border: 1px solid #36506c; border-radius: 17px; background: #19304a; }
.plan-card.featured { color: var(--landing-ink); border-color: #f2c86f; background: #fff8e8; transform: translateY(-12px); box-shadow: 0 22px 50px rgba(0, 0, 0, .2); }
.plan-tag { display: inline-block; margin-bottom: 18px; padding: 5px 9px; border-radius: 999px; color: #bcd0e3; background: #27435f; font-size: .63rem; font-weight: 800; text-transform: uppercase; }
.featured .plan-tag { color: #7c570d; background: #f8dda5; }
.plan-card h3 { font: 700 1.45rem "Fraunces", serif; }
.plan-card p { min-height: 59px; margin: 9px 0 18px; color: #b7c6d5; font-size: .77rem; line-height: 1.55; }
.featured p { color: #637488; }
.plan-card ul { list-style: none; display: grid; gap: 10px; }
.plan-card li { color: #d2dce6; font-size: .76rem; }
.featured li { color: #354b63; }
.plan-card li::before { content: "✓"; margin-right: 8px; color: #69d5b5; font-weight: 800; }
.featured li::before { color: #1e7f6e; }
.plan-card .landing-button { width: 100%; margin-top: 23px; }

.latex-showcase { display: grid; grid-template-columns: .72fr 1.28fr; gap: 62px; align-items: center; }
.latex-preview { min-height: 410px; display: grid; grid-template-columns: 28% 43% 29%; border: 1px solid #d9e2ec; border-radius: 17px; background: #fff; box-shadow: 0 26px 60px rgba(16, 35, 59, .13); overflow: hidden; }
.latex-pane { min-width: 0; padding: 15px 12px; }
.latex-pane + .latex-pane { border-left: 1px solid #d9e2ec; }
.latex-pane.files { background: #f5f7fa; }
.latex-pane.editor { color: #bdc9d6; background: #111d2b; }
.latex-pane.preview { background: #e6ebf1; }
.latex-pane-title { margin-bottom: 17px; color: #52677e; font-size: .62rem; font-weight: 800; text-transform: uppercase; }
.editor .latex-pane-title { color: #8ea2b7; }
.latex-file-line { height: 8px; margin: 11px 0; border-radius: 4px; background: #d8e0e8; }
.latex-file-line.active { height: 25px; margin-inline: -5px; background: #e6edf5; border-left: 3px solid #175cd3; }
.latex-code-line { height: 6px; margin: 9px 0; border-radius: 3px; background: #4f687f; }
.latex-code-line:nth-child(3n) { width: 72%; background: #8771bd; }
.latex-code-line:nth-child(4n) { width: 88%; background: #4c967f; }
.latex-page { width: 86%; height: 88%; margin: 8px auto; padding: 20px 13px; background: #fff; box-shadow: 0 5px 17px rgba(16, 35, 59, .15); }
.latex-page-line { height: 4px; margin: 7px 0; background: #ced6df; }
.latex-page-line.title { width: 68%; height: 7px; margin: 14px auto; background: #394b60; }
.latex-copy .landing-button { margin-top: 26px; }

.faq-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 70px; margin-top: 45px; }
.faq-note { color: #687b90; font-size: .86rem; line-height: 1.7; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { border: 1px solid #dfe7ef; border-radius: 12px; background: #fff; }
.faq-list summary { padding: 18px 21px; cursor: pointer; list-style: none; font-size: .86rem; font-weight: 750; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; float: right; color: var(--landing-blue); font-size: 1.1rem; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { padding: 0 21px 19px; color: #64778c; font-size: .8rem; line-height: 1.7; }

.landing-final { padding: 88px 0; background: linear-gradient(120deg, #0f3f9e, #175cd3 54%, #1e7f6e); }
.landing-final-inner { display: flex; align-items: center; justify-content: space-between; gap: 35px; color: #fff; }
.landing-final h2 { max-width: 660px; font: 700 clamp(2rem, 4vw, 3.25rem)/1.05 "Fraunces", serif; letter-spacing: -.03em; }
.landing-final p { max-width: 560px; margin-top: 13px; color: #dce9ff; line-height: 1.65; font-size: .88rem; }
.landing-final .landing-button { color: var(--landing-blue-dark); background: #fff; flex: 0 0 auto; }

.landing-footer { padding: 55px 0 30px; color: #b7c5d3; background: #0c1b2d; }
.landing-footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, .7fr); gap: 40px; }
.landing-footer .brand-button { color: #fff; }
.landing-footer-copy { max-width: 360px; margin-top: 14px; font-size: .75rem; line-height: 1.65; }
.landing-footer h3 { margin-bottom: 15px; color: #fff; font-size: .75rem; }
.landing-footer button { display: block; margin: 9px 0; padding: 0; border: 0; color: #aebdcb; background: none; cursor: pointer; font: inherit; font-size: .72rem; }
.landing-footer button:hover { color: #fff; }
.landing-copyright { margin-top: 40px; padding-top: 20px; border-top: 1px solid #1e3249; font-size: .68rem; }

.auth-back { margin-bottom: 15px; }
#halamanAuth .auth-wrap {
  background:
    radial-gradient(circle at 20% 15%, rgba(23, 92, 211, .13), transparent 30%),
    radial-gradient(circle at 85% 85%, rgba(30, 127, 110, .13), transparent 28%),
    #f7faff;
}
#halamanAuth .auth-card { padding: 31px; border-radius: 17px; box-shadow: 0 24px 65px rgba(16, 35, 59, .12); }

@media (max-width: 1050px) {
  .landing-hero-grid { grid-template-columns: 1fr; gap: 55px; }
  .landing-copy { text-align: center; }
  .landing-copy > p { margin-inline: auto; }
  .landing-actions, .landing-proof { justify-content: center; }
  .product-window { width: min(690px, 100%); margin: 0 auto; transform: none; }
  .premium-layout, .latex-showcase { grid-template-columns: 1fr; }
  .premium-layout { gap: 60px; }
  .latex-showcase { gap: 40px; }
  .latex-copy { max-width: 700px; }
}

@media (max-width: 820px) {
  .public-links { display: none; }
  .public-menu { margin-left: auto; flex: 0 0 auto; }
  .landing-section { padding: 78px 0; }
  .landing-hero { padding-top: 70px; }
  .landing-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .landing-stat:nth-child(2) { border-right: 0; }
  .landing-stat:nth-child(-n+2) { border-bottom: 1px solid #e7edf3; }
  .feature-grid, .plan-grid { grid-template-columns: 1fr; }
  .plan-card.featured { transform: none; }
  .workflow-grid { grid-template-columns: 1fr; gap: 0; }
  .workflow-step:not(:last-child)::after { display: none; }
  .faq-grid { grid-template-columns: 1fr; gap: 25px; }
  .landing-final-inner { align-items: flex-start; flex-direction: column; }
  .landing-footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .landing-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  #siteNav.public-nav .nav-inner { height: 64px; padding-inline: 13px; gap: 8px; }
  #siteNav.public-nav .logo { font-size: .95rem; }
  #siteNav.public-nav .brand-mark { width: 28px; height: 28px; }
  #siteNav.public-nav .brand-mark-image img { top: -7.9px; left: -47.6px; width: 123.3px; }
  .public-menu { gap: 5px; }
  .public-auth-actions .public-login { display: none; }
  .public-auth-actions .public-start { padding: 8px 10px; font-size: .7rem; }
  #siteNav.public-nav .lang-switch { margin-left: 2px; }
  #siteNav.public-nav .lang-switch button { padding: 4px 6px; font-size: .62rem; }
  .landing-shell { width: min(100% - 26px, 1180px); }
  .landing-hero { min-height: 0; padding: 60px 0 72px; }
  .landing-copy h1 { font-size: clamp(2.5rem, 13vw, 3.5rem); }
  .landing-copy > p { font-size: .92rem; }
  .landing-button { width: 100%; }
  .landing-proof { display: grid; justify-content: start; text-align: left; }
  .product-body { min-height: 310px; grid-template-columns: 82px 1fr; }
  .product-side { display: none; }
  .product-main { padding: 12px; }
  .product-sidebar { padding-inline: 8px; }
  .floating-tool-card { display: none; }
  .landing-stats { margin-top: -22px; }
  .landing-stat { padding: 20px 17px; }
  .landing-stat strong { font-size: 1.38rem; }
  .feature-card { min-height: 0; padding: 24px; }
  .feature-icon { margin-bottom: 30px; }
  .premium-layout { gap: 42px; }
  .latex-preview { min-height: 335px; grid-template-columns: 31% 69%; }
  .latex-pane.preview { display: none; }
  .landing-final { padding: 68px 0; }
  .landing-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .landing-footer-brand { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .feature-card, .landing-button { transition: none; }
  .feature-card:hover, .landing-button.primary:hover { transform: none; }
}
