/* ============================================
   Molinor LTD — Corporate Website
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0f1923;
  --bg-secondary: #141f2b;
  --bg-card: #182636;
  --bg-card-hover: #1d2e42;
  --accent: #c8956c;
  --accent-light: #dbb08a;
  --accent-dark: #a87550;
  --text-primary: #e8e6e1;
  --text-secondary: #9ba8b4;
  --text-muted: #6b7a88;
  --border: rgba(200, 149, 108, 0.12);
  --border-light: rgba(200, 149, 108, 0.06);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --max-width: 1200px;
  --section-padding: 120px 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: var(--bg-primary);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-dark);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* --- Utility --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s ease;
}

.nav.scrolled {
  background: rgba(15, 25, 35, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 3px;
}

.logo-suffix {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s;
}

.nav-links a:hover {
  color: var(--accent-light);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-secondary);
  transition: all 0.3s;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(200, 149, 108, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(200, 149, 108, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.hero-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.025;
  background-image:
    linear-gradient(var(--accent) 1px, transparent 1px),
    linear-gradient(90deg, var(--accent) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 700;
  line-height: 1.12;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent-light);
}

.hero-sub {
  font-size: 18px;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 620px;
  margin-bottom: 48px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 48px;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.3s;
}

.hero-badge:hover {
  border-color: rgba(200, 149, 108, 0.25);
}

.hero-badge-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.hero-badge-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.4;
}

.hero-badge-text strong {
  display: block;
  color: var(--text-primary);
  font-size: 14px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
}

.btn-primary:hover {
  background: var(--accent-light);
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}

/* --- Section Shared --- */
.section {
  padding: var(--section-padding);
  position: relative;
}

.section-alt {
  background: var(--bg-secondary);
}

.section-header {
  max-width: 640px;
  margin-bottom: 64px;
}

.section-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 3.5vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.section-intro {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* --- Divider --- */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 32px;
}

.section-divider::before,
.section-divider::after {
  content: '';
  height: 1px;
  flex: 1;
  max-width: 120px;
  background: var(--border);
}

.section-divider-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-dark);
}

/* --- About --- */
.about-text {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-secondary);
  max-width: 780px;
  margin-bottom: 56px;
}

.about-text p + p {
  margin-top: 20px;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.fact-card {
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: all 0.3s;
}

.fact-card:hover {
  border-color: rgba(200, 149, 108, 0.25);
  transform: translateY(-2px);
}

.fact-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.fact-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

/* --- Platforms --- */
.platform-cards {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.platform-card {
  display: grid;
  grid-template-columns: 1fr;
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.platform-card:hover {
  border-color: rgba(200, 149, 108, 0.2);
}

.platform-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.3s;
}

.platform-card:hover::before {
  opacity: 1;
}

.platform-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.platform-name {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.platform-type {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
}

.platform-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  background: rgba(200, 149, 108, 0.12);
  color: var(--accent);
  border-radius: 3px;
}

.platform-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 16px 0 20px;
  max-width: 700px;
}

.platform-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.platform-tag {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 14px;
  background: rgba(200, 149, 108, 0.06);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text-secondary);
}

.platform-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: gap 0.3s, color 0.3s;
}

.platform-link:hover {
  color: var(--accent-light);
  gap: 10px;
}

/* --- Compliance --- */
.compliance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.compliance-card {
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: all 0.3s;
}

.compliance-card:hover {
  border-color: rgba(200, 149, 108, 0.25);
  transform: translateY(-2px);
}

.compliance-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(200, 149, 108, 0.08);
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 20px;
}

.compliance-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.compliance-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* --- Technology --- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.tech-card {
  padding: 36px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.3s;
}

.tech-card:hover {
  border-color: rgba(200, 149, 108, 0.2);
}

.tech-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tech-card h3 .tech-icon {
  font-size: 18px;
}

.tech-card p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 13px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.3s;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7a88' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

.form-group select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  align-self: flex-start;
  padding: 15px 40px;
  margin-top: 4px;
}

.contact-details {
  padding: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.contact-details h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 28px;
}

.contact-item {
  margin-bottom: 24px;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-item-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.contact-item-value {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.contact-item-value a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-item-value a:hover {
  color: var(--accent);
}

/* --- Footer --- */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-legal {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 700px;
}

.footer-legal p + p {
  margin-top: 4px;
}

.footer-disclaimer {
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.7;
  max-width: 600px;
  line-height: 1.6;
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }

/* --- Form Status --- */
.form-status {
  padding: 14px 20px;
  border-radius: 4px;
  font-size: 14px;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(72, 187, 120, 0.1);
  border: 1px solid rgba(72, 187, 120, 0.2);
  color: #68d391;
}

.form-status.error {
  display: block;
  background: rgba(245, 101, 101, 0.1);
  border: 1px solid rgba(245, 101, 101, 0.2);
  color: #fc8181;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .facts-grid,
  .compliance-grid,
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 80px 0;
  }

  .container {
    padding: 0 20px;
  }

  .nav-inner {
    padding: 0 20px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 25, 35, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 20px;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero-badges {
    flex-direction: column;
    gap: 12px;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .btn {
    text-align: center;
    justify-content: center;
  }

  .facts-grid,
  .compliance-grid,
  .tech-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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