/* Header Styles - Ormi Custom Design */
/* Based on the new SCSS design */

/* Main header styles */
.header {
  position: fixed;
  top: 40px;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 95%;
  max-width: 1232px;
  background: rgba(250, 250, 250, 1);
  border: 1px solid rgba(227, 227, 227, 1);
  margin: 0 auto;
  height: 58px;
  border-radius: 16px;
}

.header-container {
  max-width: 1232px;
  margin: 0 auto;
  padding: 8px 16px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  z-index: 1001;
}

.logo img {
  height: 32px;
  width: auto;
}

/* Desktop navigation */
.desktop-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-item-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-item-wrapper::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -20px;
  right: -20px;
  height: 50px;
  background: transparent;
  pointer-events: auto;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #7e8181;
  transition: color 0.2s ease;
  text-decoration: none;
}

.nav-item:hover,
.nav-item.active {
  color: #509563;
}

.nav-item a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-item a:hover {
  color: #509563;
}

.nav-item svg {
  font-size: 12px;
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
}

/* Action buttons */
.action-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.login-link {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #000;
  text-decoration: none;
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.login-link:hover {
  color: #509563;
}

.start-free-btn {
  padding: 10px 22px;
  background: #0a0a0a;
  color: #fafafa;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
}

.start-free-btn:hover {
  background: #0a0a0a;
  color: #fafafa;
}

/* Mobile menu button */
.mobile-menu-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Dropdown styles */
.platform-dropdown,
.developers-dropdown,
.resources-dropdown,
.why-ormi-dropdown,
.company-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 30px;
  background: rgba(250, 250, 250, 1);
  border-radius: 16px;
  border: 1px solid #e3e3e3;
  z-index: 1000;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.nav-item-wrapper:hover .platform-dropdown,
.nav-item-wrapper:hover .developers-dropdown,
.nav-item-wrapper:hover .resources-dropdown,
.nav-item-wrapper:hover .why-ormi-dropdown,
.nav-item-wrapper:hover .company-dropdown {
  opacity: 1;
  visibility: visible;
}

/* Platform specific dropdown layout */
.platform-dropdown {
  min-width: 1232px;
  left: 50%;
  transform: translateX(-23%);
}

.dropdown-content {
  padding: 32px;
  display: flex;
  gap: 32px;
}

/* Platform layout - left promo card, right columns */
.platform-layout {
  padding: 16px;
  gap: 40px;
  max-width: 1232px;
  margin: 0 auto;
  display: flex;
}

.platform-left-promo {
  flex: 1;
  max-width: 400px;
}

.platform-right-columns {
  flex: 2;
  display: flex;
  gap: 40px;
}

.platform-column {
  flex: 1;
  min-width: 0;
}

.platform-promo-card {
  background: #f9fafb;
  padding: 0;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.platform-promo-card .platform-promo-icon img {
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  margin-bottom: 16px;
  width: 100%;
}

.platform-promo-card h3 {
  margin-bottom: 8px;
  padding: 0 16px;
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #0a0a0a;
}

.platform-promo-card p {
  padding: 0 16px;
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  color: #7e8181;
  line-height: 1.5;
}

.platform-promo-button {
  margin: 16px;
  background: linear-gradient(180deg, #66ad7a -18.75%, #3e744d 100%);
  color: #fafafa;
  border: none;
  width: auto;
  justify-content: center;
  height: 46px;
  border-radius: 12px;
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: opacity 0.2s;
  padding: 0 20px;
}

.platform-promo-button:hover {
  opacity: 0.9;
}

.platform-promo-button span {
  font-size: 14px;
}

.platform-column h4 {
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #7e8181;
  margin: 0 0 28px 0;
  line-height: 150%;
}

.platform-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.platform-column ul li {
  margin-bottom: 16px;
}

.platform-column ul li:last-child {
  margin-bottom: 0;
}

.platform-column ul li a {
  color: #0a0a0a;
  text-decoration: none;
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.2s;
}

.platform-column ul li a:hover {
  color: #509563;
}

.platform-learn-more-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.platform-learn-more-item {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
}

.platform-learn-more-item:hover {
  opacity: 0.8;
}

.platform-learn-more-item > div > div:first-child {
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #0a0a0a;
  margin-bottom: 4px;
}

.platform-learn-more-item .platform-subtitle {
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #7e8181;
  line-height: 1.5;
}

.platform-icon {
  flex-shrink: 0;
}

/* Developers dropdown */
.developers-dropdown {
  min-width: 1114px;
  left: 50%;
  transform: translateX(-30%);
}

.developers-layout {
  padding: 16px;
  gap: 40px;
  max-width: 1114px;
  margin: 0 auto;
  display: flex;
}

.developers-left-promo {
  flex: 1;
  max-width: 400px;
}

.developers-right-columns {
  flex: 1;
  display: flex;
  gap: 40px;
}

.developers-column {
  flex: 1;
  min-width: 0;
}

.developers-promo-card {
  background: #f9fafb;
  padding: 0;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.developers-promo-card .developers-promo-icon img {
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  margin-bottom: 16px;
  width: 100%;
}

.developers-promo-card h3 {
  margin-bottom: 8px;
  padding: 0 16px;
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #0a0a0a;
}

.developers-promo-card p {
  padding: 0 16px;
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  color: #7e8181;
  line-height: 1.5;
}

.developers-promo-button {
  margin: 16px;
  background: linear-gradient(180deg, #66ad7a -18.75%, #3e744d 100%);
  color: #fafafa;
  border: none;
  width: auto;
  justify-content: center;
  height: 46px;
  border-radius: 12px;
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: opacity 0.2s;
  padding: 0 20px;
}

.developers-promo-button:hover {
  opacity: 0.9;
}

.developers-promo-button span {
  font-size: 14px;
}

.developers-column h4 {
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #7e8181;
  margin: 0 0 28px 0;
  line-height: 150%;
}

.developers-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.developers-column ul li {
  margin-bottom: 16px;
}

.developers-column ul li:last-child {
  margin-bottom: 0;
}

.developers-column ul li a {
  color: #0a0a0a;
  text-decoration: none;
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.2s;
}

.developers-column ul li a:hover {
  color: #509563;
}

/* Resources dropdown */
.resources-dropdown {
  min-width: 740px;
  left: 50%;
  transform: translateX(-50%);
}

.resources-layout {
  padding: 16px;
  gap: 40px;
  max-width: 1114px;
  margin: 0 auto;
  display: flex;
}

.resources-left-promo {
  flex: 1;
  max-width: 400px;
}

.resources-right-columns {
  flex: 1;
  display: flex;
  gap: 40px;
}

.resources-column {
  flex: 1;
  min-width: 0;
}

.resources-promo-card {
  background: #f9fafb;
  padding: 0;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.resources-promo-card .resources-promo-icon img {
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  margin-bottom: 16px;
  width: 100%;
}

.resources-promo-card h3 {
  margin-bottom: 8px;
  padding: 0 16px;
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #0a0a0a;
}

.resources-promo-card p {
  padding: 0 16px;
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  color: #7e8181;
  line-height: 1.5;
}

.resources-promo-button {
  margin: 16px;
  background: linear-gradient(180deg, #2b2b2b -0.89%, #0a0a0a 100%);
  color: #fafafa;
  border: none;
  width: auto;
  justify-content: center;
  height: 46px;
  border-radius: 12px;
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: opacity 0.2s;
  padding: 0 20px;
}

.resources-promo-button:hover {
  opacity: 0.9;
}

.resources-promo-button span {
  font-size: 14px;
}

.resources-column h4 {
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #7e8181;
  margin: 0 0 28px 0;
  line-height: 150%;
}

.resources-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.resources-column ul li {
  margin-bottom: 16px;
}

.resources-column ul li:last-child {
  margin-bottom: 0;
}

.resources-column ul li a {
  color: #0a0a0a;
  text-decoration: none;
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.2s;
}

.resources-column ul li a:hover {
  color: #509563;
}

/* Company dropdown (simpler) */
.company-dropdown {
  min-width: 366px;
  left: 50%;
  transform: translateX(-50%);
}

.company-dropdown .dropdown-content {
  padding: 16px;
  display: block;
}

.company-dropdown ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.company-dropdown ul li {
  margin-bottom: 12px;
}

.company-dropdown ul li:last-child {
  margin-bottom: 0;
}

.company-dropdown ul li a {
  color: #0a0a0a;
  text-decoration: none;
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.company-dropdown ul li a:hover {
  color: #509563;
}

/* Mobile menu styles */
.mobile-menu {
  position: fixed;
  top: 80px;
  left: 2.5%;
  right: 2.5%;
  bottom: 30px;
  background: rgba(250, 250, 250, 1);
  z-index: 999;
  overflow-y: auto;
  border: 1px solid rgb(227, 227, 227);
  border-radius: 10px;
}

.mobile-menu-content {
  padding: 24px 16px;
}

.mobile-nav-item {
  padding-bottom: 16px;
}

.mobile-nav-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.mobile-nav-item a {
  color: #0a0a0a;
  text-decoration: none;
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 500;
  display: block;
}

.mobile-nav-item.pricing a {
  color: #7e8181 !important;
  font-size: 18px !important;
  margin-bottom: 16px;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #7e8181;
  margin-bottom: 16px;
  transition: color 0.2s ease;
}

.mobile-nav-header.active {
  color: #509563;
}

.mobile-nav-header svg {
  font-size: 14px;
  color: #6b7280;
  transition: color 0.2s ease;
  width: 12px;
  height: 12px;
}

.mobile-nav-header.active svg {
  color: #509563;
}

.mobile-dropdown {
  padding: 0;
}

.mobile-dropdown-buttons {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.mobile-dropdown-btn {
  background: transparent;
  border: 1px solid #e3e3e3;
  padding: 5px 16px;
  border-radius: 20px;
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #7e8181;
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-dropdown-btn.active {
  color: #509563;
  border-color: #509563;
}

.mobile-dropdown-section {
  margin-bottom: 24px;
}

.mobile-dropdown-section:last-child {
  margin-bottom: 0;
}

.mobile-dropdown-section h4 {
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #7e8181;
  margin: 0 0 24px 0;
  line-height: 150%;
}

.mobile-dropdown-section a {
  display: block;
  color: #0a0a0a;
  text-decoration: none;
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 500;
  padding: 0 0 24px;
}

.mobile-dropdown-section a:hover {
  color: #509563;
}

.mobile-dropdown-section a:last-child {
  padding-bottom: 24px;
}

.mobile-dropdown-links a {
  display: block;
  color: #0a0a0a;
  text-decoration: none;
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 500;
  padding: 0 0 24px;
}

.mobile-dropdown-links a:hover {
  color: #509563;
}

.mobile-learn-more-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.mobile-learn-more-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: #f9fafb;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.mobile-learn-more-item:hover {
  background: #f3f4f6;
}

.mobile-learn-icon {
  flex-shrink: 0;
  display: inline-flex;
}

.mobile-learn-title {
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #0a0a0a;
  margin-bottom: 4px;
}

.mobile-learn-subtitle {
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #7e8181;
  line-height: 150%;
}

.mobile-promo-card {
  background: #f9fafb;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.mobile-promo-icon {
  margin-bottom: 12px;
}

.mobile-promo-icon img {
  width: 100%;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.mobile-promo-content h3 {
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  padding: 0 10px;
  font-weight: 500;
  color: #0a0a0a;
  margin: 0 0 8px 0;
}

.mobile-promo-content p {
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  color: #7e8181;
  padding: 0 10px;
  margin: 0 0 8px 0;
  line-height: 135%;
}

.mobile-promo-button {
  background: linear-gradient(180deg, #66ad7a -18.75%, #3e744d 100%);
  color: #fafafa;
  border: none;
  padding: 7px 13px;
  border-radius: 8px;
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 10px 10px;
  width: calc(100% - 20px);
  justify-content: center;
}

.mobile-promo-button span {
  font-size: 12px;
}

.mobile-download-button {
  background: linear-gradient(180deg, #2b2b2b -0.89%, #0a0a0a 100%);
  color: #fafafa;
  border: none;
  padding: 7px 13px;
  border-radius: 8px;
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 10px 10px;
  width: calc(100% - 20px);
  justify-content: center;
}

.mobile-download-button span {
  font-size: 12px;
}

/* Arrow Icon */
.arrow-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-left: 4px;
  transform: rotate(-45deg);
}

/* Responsive design */
@media (max-width: 1200px) {
  .platform-dropdown {
    min-width: 1000px;
    transform: translateX(-16%);
  }

  .developers-dropdown {
    min-width: 1000px;
    transform: translateX(-29%);
  }

  .platform-right-columns {
    gap: 24px;
  }
}

@media (max-width: 1024px) {
  .header,
  .header-container {
    max-width: 1024px;
  }

  .platform-layout {
    padding: 24px;
    gap: 24px;
  }

  .platform-right-columns {
    gap: 20px;
  }

  .platform-column h4 {
    font-size: 12px;
  }

  .platform-column ul li a {
    font-size: 14px;
  }

  .platform-promo-card {
    padding: 24px;
  }

  .platform-promo-card h3 {
    font-size: 20px;
  }

  .platform-promo-card p {
    font-size: 14px;
  }

  .mobile-menu {
    top: 110px;
  }

  .desktop-nav,
  .action-buttons {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .logo {
    display: flex !important;
  }
}

/* Tablet layout optimization (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .mobile-promo-card {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: center;
    padding: 16px;
  }

  .mobile-promo-icon {
    flex-shrink: 0;
    width: 180px;
    margin-bottom: 0;
  }

  .mobile-promo-icon img {
    width: 100%;
    height: auto;
    border-radius: 8px;
  }

  .mobile-promo-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .mobile-promo-content h3 {
    padding: 0;
    font-size: 16px;
  }

  .mobile-promo-content p {
    padding: 0;
    font-size: 14px;
    margin: 0;
  }

  .mobile-promo-button,
  .mobile-download-button {
    margin: 0;
    align-self: flex-start;
    width: auto;
  }
}

@media (max-width: 768px) {
  .header {
    height: 48px;
    width: 95%;
    top: 24px;
  }

  .header-container {
    padding: 0 16px;
  }

  .platform-dropdown,
  .developers-dropdown,
  .resources-dropdown,
  .why-ormi-dropdown,
  .company-dropdown {
    display: none !important;
  }

  .mobile-menu {
    top: 80px;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 0 12px;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-item {
    font-size: 14px;
  }

  .action-buttons {
    gap: 8px;
  }

  .login-link {
    font-size: 14px;
  }

  .start-free-btn {
    padding: 8px 16px;
    font-size: 14px;
  }

  .mobile-menu {
    top: 80px;
  }
}

@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }

  .mobile-menu-btn {
    display: none;
  }

  .desktop-nav,
  .action-buttons {
    display: flex;
  }
}

/* Hide original Ghost header */
#gh-head.gh-head {
  display: none;
}

/* Add top padding to body to account for fixed header */
body {
  padding-top: 75px;
}
