/* Organic System public marketing homepage (Revo-style structure) */

.mk-page {
  --mk-navy: #0d2f3a;
  --mk-teal: #156a6b;
  --mk-green: #2f5d42;
  --mk-green-deep: #1e3f2d;
  --mk-sky: #c8e4e2;
  --mk-mist: #e8f2f0;
  --mk-paper: #f4f8f7;
  --mk-ink: #13253f;
  --mk-muted: #4d6470;
  --mk-primary: #2f6fed;
  --mk-primary-dark: #1f58d0;
  --mk-surface: #ffffff;
  --mk-border: rgba(19, 37, 63, 0.12);
  --mk-nav-h: 4.25rem;
  --mk-font-display: "Outfit", "Manrope", "Segoe UI", sans-serif;
  --mk-font-body: "Manrope", "Segoe UI", sans-serif;
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--mk-ink);
  background: var(--mk-paper);
  font-family: var(--mk-font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.mk-page a {
  color: inherit;
  text-decoration: none;
}

.mk-page a.mk-btn,
.mk-page a.mk-btn:visited,
.mk-page a.mk-btn:hover,
.mk-page a.mk-btn:focus,
.mk-page a.mk-btn:active {
  text-decoration: none;
}

.mk-page * {
  box-sizing: border-box;
}

.mk-page .visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— Buttons —— */
.mk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  padding: 0.55rem 1.15rem;
  border-radius: 0.45rem;
  border: 1.5px solid transparent;
  font-family: var(--mk-font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.mk-btn:hover {
  transform: translateY(-1px);
}

.mk-btn-lg {
  min-height: 3rem;
  padding: 0.75rem 1.45rem;
  font-size: 0.95rem;
}

.mk-page a.mk-btn-primary,
.mk-page a.mk-btn-primary:visited,
.mk-btn-primary {
  background: var(--mk-primary);
  border-color: var(--mk-primary);
  color: #ffffff !important;
}

.mk-page a.mk-btn-primary:hover,
.mk-page a.mk-btn-primary:focus,
.mk-btn-primary:hover {
  background: var(--mk-primary-dark);
  border-color: var(--mk-primary-dark);
  color: #ffffff !important;
}

.mk-page a.mk-btn-light,
.mk-page a.mk-btn-light:visited,
.mk-btn-light {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.98);
  color: var(--mk-navy) !important;
}

.mk-page a.mk-btn-light:hover,
.mk-page a.mk-btn-light:focus,
.mk-btn-light:hover {
  background: #ffffff;
  color: var(--mk-navy) !important;
}

.mk-page a.mk-btn-ghost,
.mk-page a.mk-btn-ghost:visited,
.mk-btn-ghost {
  background: transparent;
  border-color: rgba(19, 37, 63, 0.22);
  color: var(--mk-ink) !important;
}

.mk-page a.mk-btn-ghost:hover,
.mk-page a.mk-btn-ghost:focus,
.mk-btn-ghost:hover {
  background: rgba(19, 37, 63, 0.05);
  border-color: rgba(19, 37, 63, 0.35);
  color: var(--mk-ink) !important;
}

.mk-page a.mk-text-link,
.mk-page a.mk-text-link:visited {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.25rem;
  color: var(--mk-primary) !important;
  font-weight: 700;
  font-size: 0.95rem;
}

.mk-text-link::after {
  content: "→";
  transition: transform 0.18s ease;
}

.mk-text-link:hover::after {
  transform: translateX(4px);
}

.os-rtl .mk-text-link::after {
  content: "←";
}

.os-rtl .mk-text-link:hover::after {
  transform: translateX(-4px);
}

/* —— Nav —— */
.mk-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--mk-nav-h);
  background: rgba(244, 248, 247, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.mk-nav.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: var(--mk-border);
  box-shadow: 0 8px 24px rgba(13, 47, 58, 0.06);
}

.mk-nav-inner {
  max-width: 1180px;
  height: 100%;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mk-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  z-index: 2;
}

.mk-nav-brand-logo {
  width: 2.15rem;
  height: 2.15rem;
  object-fit: contain;
  border-radius: 0.35rem;
  flex-shrink: 0;
  display: block;
}

.mk-nav-brand-text {
  font-family: var(--mk-font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--mk-navy);
}

.mk-nav-toggle {
  margin-inline-start: auto;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  z-index: 2;
}

.mk-nav-toggle span {
  display: block;
  width: 1.35rem;
  height: 2px;
  background: var(--mk-navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mk-nav.is-open .mk-nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mk-nav.is-open .mk-nav-toggle span:nth-child(2) {
  opacity: 0;
}

.mk-nav.is-open .mk-nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mk-nav-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 1rem;
  min-width: 0;
}

.mk-nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.mk-nav-link,
.mk-nav-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.7rem;
  border: 0;
  background: transparent;
  border-radius: 0.4rem;
  color: var(--mk-ink);
  font: inherit;
  font-weight: 650;
  font-size: 0.9rem;
  cursor: pointer;
}

.mk-nav-link:hover,
.mk-nav-link-btn:hover {
  background: rgba(21, 106, 107, 0.08);
  color: var(--mk-teal);
}

.mk-nav-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
}

.mk-nav-dropdown {
  position: relative;
}

.mk-nav-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  inset-inline-start: 0;
  min-width: 11rem;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: var(--mk-surface);
  border: 1px solid var(--mk-border);
  border-radius: 0.55rem;
  box-shadow: 0 16px 40px rgba(13, 47, 58, 0.12);
}

.mk-nav-menu-item {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.mk-nav-menu-item:hover {
  background: var(--mk-mist);
  color: var(--mk-teal);
}

.mk-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.mk-page .os-language-selector--marketing .os-language-toggle {
  min-height: 2.5rem;
  border-radius: 0.45rem;
  border: 1.5px solid rgba(19, 37, 63, 0.18);
  background: #ffffff;
  padding: 0.35rem 0.55rem;
  color: var(--mk-ink) !important;
  box-shadow: none;
}

.mk-page .os-language-selector--marketing .os-language-toggle:hover,
.mk-page .os-language-selector--marketing.is-open .os-language-toggle {
  background: #f3f7f6;
  border-color: rgba(19, 37, 63, 0.28);
  color: var(--mk-ink) !important;
}

.mk-page .os-language-selector--marketing .os-language-code,
.mk-page .os-language-selector--marketing .os-language-caret {
  color: inherit !important;
  opacity: 1;
}

/* —— Hero —— */
.mk-hero {
  position: relative;
  min-height: calc(100vh - var(--mk-nav-h));
  min-height: calc(100dvh - var(--mk-nav-h));
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  color: var(--mk-navy);
  background: #8fb8d8;
}

.mk-hero-media {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mk-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}

.mk-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.75rem 1.25rem 2rem;
  text-align: center;
}

.mk-hero-kicker {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #1e3f2d;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.mk-hero-brand {
  margin: 0 auto;
  max-width: 16ch;
  font-family: var(--mk-font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6.5vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: #143528;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55),
    0 10px 28px rgba(20, 53, 40, 0.18);
  animation: mk-brand-in 0.9s ease-out both;
}

.mk-hero-lead {
  margin: 0.95rem auto 0;
  max-width: 34rem;
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  font-weight: 600;
  color: #234830;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
  animation: mk-brand-in 0.9s ease-out 0.12s both;
  unicode-bidi: plaintext;
}

.mk-section-lead,
.mk-cta-lead,
.mk-feature-list li {
  unicode-bidi: plaintext;
}

.mk-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.35rem;
  animation: mk-brand-in 0.9s ease-out 0.22s both;
}

.mk-page a.mk-btn-accent,
.mk-page a.mk-btn-accent:visited,
.mk-btn-accent {
  background: #3f8f45;
  border-color: #357a3b;
  color: #ffffff !important;
}

.mk-page a.mk-btn-accent:hover,
.mk-page a.mk-btn-accent:focus,
.mk-btn-accent:hover {
  background: #347a3a;
  border-color: #2d6932;
  color: #ffffff !important;
}

@keyframes mk-brand-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .mk-hero-brand,
  .mk-hero-lead,
  .mk-hero-actions {
    animation: none;
  }
}

/* —— Sections —— */
.mk-section {
  padding: 4.5rem 0;
}

.mk-section-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.mk-section-title {
  margin: 0;
  font-family: var(--mk-font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.5vw, 2.55rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--mk-navy);
}

.mk-section-title-center {
  text-align: center;
}

.mk-section-lead {
  margin: 0.85rem 0 0;
  max-width: 36rem;
  color: var(--mk-muted);
  font-size: 1.05rem;
}

.mk-section-lead-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.mk-why {
  background: var(--mk-surface);
}

.mk-why-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 2.5rem 3.5rem;
  align-items: start;
}

.mk-feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.mk-feature-list li {
  position: relative;
  padding-inline-start: 2rem;
  font-weight: 650;
  font-size: 1.02rem;
  color: var(--mk-ink);
}

.mk-feature-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.35rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background:
    linear-gradient(145deg, var(--mk-primary), #4f8ef5);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.mk-feature-list li::after {
  content: "";
  position: absolute;
  inset-inline-start: 0.34rem;
  top: 0.58rem;
  width: 0.45rem;
  height: 0.28rem;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

/* —— Modules —— */
.mk-module {
  padding: 4.25rem 0;
}

.mk-module-farm {
  background: linear-gradient(180deg, var(--mk-mist) 0%, #f7fbfa 100%);
}

.mk-module-facility {
  background: linear-gradient(180deg, #e7eef5 0%, #f5f8fb 100%);
}

.mk-module-settings {
  background: linear-gradient(180deg, #f3eee6 0%, #faf8f4 100%);
}

.mk-module-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.mk-module-row-reverse .mk-module-copy {
  order: 2;
}

.mk-module-row-reverse .mk-module-visual {
  order: 1;
}

.mk-module-label {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mk-teal);
}

.mk-module-visual {
  min-height: 280px;
  border-radius: 1.25rem;
  position: relative;
  overflow: hidden;
  background: #d7e6e2;
  box-shadow: 0 18px 40px rgba(13, 47, 58, 0.12);
}

.mk-module-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: center;
}

.mk-module-visual-farm,
.mk-module-visual-facility,
.mk-module-visual-settings {
  background: #d7e6e2;
}

.mk-module-visual-farm::before,
.mk-module-visual-farm::after,
.mk-module-visual-facility::before,
.mk-module-visual-facility::after,
.mk-module-visual-settings::before,
.mk-module-visual-settings::after {
  content: none;
}

/* —— Trust —— */
.mk-trust {
  background: var(--mk-surface);
}

.mk-trust-logos {
  margin-top: 2rem;
}

.mk-trust-logos .login-cert-footer {
  position: static;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.mk-trust-logos .login-cert-footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.25rem 1.75rem;
}

.mk-trust-logos .login-cert-item {
  margin: 0;
}

.mk-trust-logos .login-cert-link img {
  max-height: 42px;
  width: auto;
  opacity: 0.88;
  filter: grayscale(0.15);
  transition: opacity 0.18s ease, filter 0.18s ease;
}

.mk-trust-logos .login-cert-link:hover img {
  opacity: 1;
  filter: none;
}

/* —— Closing CTA —— */
.mk-cta {
  position: relative;
  padding: 4.5rem 1.25rem;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(47, 111, 237, 0.35), transparent 45%),
    linear-gradient(135deg, #0d2f3a 0%, #156a6b 48%, #2f5d42 100%);
}

.mk-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.mk-cta-title {
  margin: 0;
  font-family: var(--mk-font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.mk-cta-lead {
  margin: 0.9rem auto 0;
  max-width: 34rem;
  color: rgba(240, 248, 246, 0.9);
  font-size: 1.05rem;
}

.mk-cta .mk-hero-actions {
  justify-content: center;
}

/* —— Footer —— */
.mk-page > main {
  flex: 1 0 auto;
}

.mk-footer {
  flex-shrink: 0;
  margin-top: auto;
  background: #0a222b;
  color: rgba(232, 242, 240, 0.88);
}

.mk-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 3.25rem 1.25rem 2.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr);
  gap: 2.5rem;
}

.mk-footer-logo {
  font-family: var(--mk-font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: #fff;
  letter-spacing: -0.02em;
}

.mk-footer-tagline {
  margin: 0.55rem 0 0;
  color: rgba(200, 228, 226, 0.75);
  font-size: 0.95rem;
}

.mk-footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.mk-footer-heading {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.mk-footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.mk-footer-list a,
.mk-footer-list span {
  color: rgba(232, 242, 240, 0.88);
  font-size: 0.95rem;
  font-weight: 550;
}

.mk-footer-list a:hover {
  color: #fff;
}

.mk-footer-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mk-footer-bar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 1.25rem 1.35rem;
  font-size: 0.85rem;
  color: rgba(200, 228, 226, 0.65);
}

/* —— Responsive —— */
@media (max-width: 960px) {
  .mk-why-grid,
  .mk-module-row,
  .mk-footer-inner {
    grid-template-columns: 1fr;
  }

  .mk-module-row-reverse .mk-module-copy,
  .mk-module-row-reverse .mk-module-visual {
    order: initial;
  }

  .mk-module-visual {
    min-height: 200px;
  }

  .mk-module-visual img {
    min-height: 200px;
  }

  .mk-footer-cols {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 780px) {
  .mk-nav-toggle {
    display: flex;
  }

  .mk-nav-panel {
    position: fixed;
    inset: 0 0 auto 0;
    top: var(--mk-nav-h);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem 1.25rem 1.25rem;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--mk-border);
    box-shadow: 0 18px 40px rgba(13, 47, 58, 0.12);
  }

  .mk-nav.is-open .mk-nav-panel {
    display: flex;
  }

  .mk-nav-links,
  .mk-nav-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .mk-nav-dropdown {
    width: 100%;
  }

  .mk-nav-menu {
    position: static;
    box-shadow: none;
    border: 0;
    background: var(--mk-mist);
    margin-top: 0.35rem;
  }

  .mk-nav-link,
  .mk-nav-link-btn,
  .mk-nav-actions .mk-btn {
    width: 100%;
    justify-content: flex-start;
  }

  .mk-hero {
    align-items: flex-start;
    min-height: calc(92vh - var(--mk-nav-h));
  }

  .mk-hero-content {
    padding: 1.75rem 1.15rem 1.5rem;
  }

  .mk-hero-actions,
  .mk-cta .mk-hero-actions {
    flex-direction: column;
  }

  .mk-hero-actions .mk-btn,
  .mk-cta .mk-btn {
    width: 100%;
  }

  .mk-footer-cols {
    grid-template-columns: 1fr;
  }
}
