/* Meidiney Official Site */
:root {
  --bg: #10151e;
  --bg-elevated: #161d2a;
  --bg-card: #1a2233;
  --bg-card-hover: #222c40;
  --bg-input: #141b28;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --accent: #f08a24;
  --accent-hover: #ff9a38;
  --accent-soft: rgba(240, 138, 36, 0.14);
  --text: #f4f6fa;
  --text-muted: #9aa3b5;
  --white: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --header-h: 76px;
  --font-display: "Sora", "Outfit", sans-serif;
  --font-body: "Outfit", "Sora", sans-serif;
  --container: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(240, 138, 36, 0.08), transparent 55%),
    radial-gradient(900px 500px at 10% 20%, rgba(60, 90, 140, 0.12), transparent 50%),
    var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.accent {
  color: var(--accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

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

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(240, 138, 36, 0.28);
}

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

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.875rem;
}

.text-link {
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.25s var(--ease), color 0.2s ease;
}

.text-link:hover {
  color: var(--accent-hover);
  gap: 12px;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(16, 21, 30, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.logo img {
  display: block;
  height: 32px;
  width: auto;
  max-width: min(200px, 42vw);
}

.logo--footer img {
  height: 36px;
  max-width: 220px;
}

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

.nav-link {
  position: relative;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--white);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.header-cta {
  justify-self: end;
  padding: 11px 22px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: transparent;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  justify-self: end;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--white);
  transition: transform 0.25s ease;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 40px) 0 100px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(16, 21, 30, 0.15), rgba(16, 21, 30, 0.55)),
    url("../assets/hero.jpg") center 35% / cover no-repeat;
  transform: scale(1.02);
  animation: heroZoom 18s var(--ease) infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 14, 22, 0.72) 0%, rgba(10, 14, 22, 0.78) 42%, rgba(16, 21, 30, 0.97) 100%),
    radial-gradient(ellipse at 50% 38%, rgba(10, 14, 22, 0.2) 0%, rgba(10, 14, 22, 0.55) 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 860px;
}

.hero-brand {
  margin: 0 0 22px;
  opacity: 0;
  animation: rise 0.8s var(--ease) 0.1s forwards;
}

.hero-brand img {
  display: block;
  margin: 0 auto;
  height: clamp(36px, 5vw, 48px);
  width: auto;
  max-width: min(320px, 78vw);
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5.5vw, 4.1rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.2s forwards;
}

.hero-sub {
  margin: 22px auto 0;
  max-width: 620px;
  color: rgba(244, 246, 250, 0.88);
  font-size: clamp(0.98rem, 1.5vw, 1.12rem);
  font-weight: 400;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.35s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.5s forwards;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroZoom {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.08);
  }
}

/* Stats */
.stats {
  position: relative;
  z-index: 2;
  margin-top: -40px;
  padding: 0 0 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 36px 28px;
  background: linear-gradient(180deg, rgba(26, 34, 51, 0.95), rgba(20, 27, 40, 0.98));
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.stat {
  text-align: center;
  padding: 8px 12px;
}

.stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.stat-label {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Sections */
.section {
  padding: 100px 0;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 52px;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-head p {
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section-cta {
  text-align: center;
  margin-top: 40px;
}

/* Why / Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px 36px;
  transition: transform 0.35s var(--ease), border-color 0.25s ease, background 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(240, 138, 36, 0.35);
  background: var(--bg-card-hover);
}

.feature-icon {
  width: 52px;
  height: 52px;
  color: var(--accent);
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-card h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Products / Featured Collection */
.products {
  background:
    linear-gradient(180deg, transparent, rgba(240, 138, 36, 0.03), transparent),
    var(--bg);
  padding-top: 40px;
}

.product-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: -12px 0 36px;
}

.filter-btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-btn:hover,
.filter-btn.is-active {
  color: var(--white);
  border-color: var(--accent);
  background: var(--accent-soft);
}

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

.featured-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.25s ease;
}

.featured-card.is-hidden {
  display: none;
}

.products-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.products-cta .btn-ghost {
  border-color: rgba(240, 138, 36, 0.55);
  color: var(--accent);
}

.products-cta .btn-ghost:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-hover);
}

.featured-card:hover {
  transform: translateY(-5px);
  border-color: rgba(240, 138, 36, 0.4);
}

.featured-media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #f4f4f2;
  cursor: pointer;
  overflow: hidden;
}

.featured-media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  transition: transform 0.5s var(--ease);
}

.featured-card:hover .featured-media img {
  transform: scale(1.04);
}

.featured-view {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%) translateY(8px);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(16, 21, 30, 0.82);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s var(--ease);
}

.featured-card:hover .featured-view {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.featured-body {
  padding: 18px 18px 22px;
}

.featured-series {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.featured-body h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}

.featured-meta {
  margin: 0 0 8px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.featured-craft {
  margin: 0;
  color: rgba(244, 246, 250, 0.78);
  font-size: 0.9rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: stretch;
  justify-items: center;
  padding: 20px 16px 24px;
  background: rgba(6, 9, 14, 0.9);
  backdrop-filter: blur(8px);
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox-frame-wrap {
  width: min(1100px, 100%);
  height: calc(100vh - 120px);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.lightbox-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.lightbox img {
  max-width: min(920px, 100%);
  max-height: calc(100vh - 140px);
  object-fit: contain;
  border-radius: 10px;
  box-shadow: var(--shadow);
  background: #fff;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.lightbox-meta {
  margin-top: 12px;
  color: var(--text-muted);
  text-align: center;
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  justify-content: center;
}

.lightbox-open {
  color: var(--accent);
  font-weight: 600;
}

.lightbox-open:hover {
  color: var(--accent-hover);
}

/* Trust */
.subhead {
  margin: 0 0 22px;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.cert-head {
  margin-top: 48px;
}

.partner-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 36px;
}

.partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.partner-mark {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.partner:hover .partner-mark {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.cert-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.cert {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.9rem;
}

.cert-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
}

.about-copy h2 {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.about-copy p {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.about-copy .btn {
  margin-top: 16px;
}

.about-media {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: transform 0.8s var(--ease);
}

.about-media:hover img {
  transform: scale(1.04);
}

/* Contact */
.contact {
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(240, 138, 36, 0.08), transparent 60%),
    var(--bg);
}

.contact-wrap {
  max-width: 960px;
}

.contact-iframe-wrap {
  width: 100%;
  min-height: 720px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
}

.contact-iframe {
  display: block;
  width: 100%;
  height: 780px;
  border: 0;
  background: #fff;
}

.contact-fallback {
  margin: 16px 0 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.contact-fallback a {
  color: var(--accent);
  font-weight: 600;
}

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

/* Footer */
.site-footer {
  background: #0c1018;
  border-top: 1px solid var(--border);
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand p {
  margin: 0;
  color: var(--text-muted);
  max-width: 320px;
  font-size: 0.95rem;
}

.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links h4,
.footer-contact h4 {
  margin: 0 0 6px;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-links a,
.footer-contact a,
.footer-contact p {
  color: rgba(244, 246, 250, 0.85);
  font-size: 0.95rem;
  margin: 0;
  transition: color 0.2s ease;
}

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

.footer-ico {
  color: var(--accent);
  margin-right: 8px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 18px 0 28px;
  text-align: center;
  color: #6a7386;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 960px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: rgba(16, 21, 30, 0.96);
    border: 1px solid var(--border);
    border-radius: 12px;
    backdrop-filter: blur(12px);
  }

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

  .nav-link {
    padding: 14px 16px;
    border-radius: 8px;
  }

  .nav-link.is-active::after {
    display: none;
  }

  .nav-link.is-active {
    background: var(--accent-soft);
    color: var(--accent);
  }

  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-media {
    order: -1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .logo img {
    height: 28px;
    max-width: min(168px, 48vw);
  }

  .hero-brand img {
    height: 34px;
  }

  .hero {
    padding-bottom: 80px;
  }

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

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

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    padding: 24px 16px;
  }

  .contact-iframe-wrap {
    min-height: 640px;
  }

  .contact-iframe {
    height: 680px;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 72px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-bg,
  .hero-brand,
  .hero-title,
  .hero-sub,
  .hero-actions,
  .feature-card,
  .about-media img {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}
