/* ================================================================
   METAORGANIC — COMMON STYLES
   Shared design tokens · reset · typography · nav · footer ·
   buttons · animations · utilities
   ================================================================ */

/* ── 01. DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  --bg: #F8FAF9;
  --bg-surface: #FFFFFF;
  --bg-elevated: #F1F6F5;

  --text-primary: #0b1c15;
  --text-secondary: #3f6356;
  --text-tertiary: #7b9e91;

  --primary: #0F766E;
  --primary-light: #14B8A6;
  --accent: #0EA5E9;

  --border: rgba(20, 184, 166, 0.15);
  --border-light: rgba(20, 184, 166, 0.08);

  --dark-bg: #040A09;
  --dark-border: rgba(20, 184, 166, 0.3);

  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-lg:   1.125rem;
  --fs-xl:   2rem;
  --fs-2xl:  clamp(2.5rem, 5vw, 3.5rem);
  --fs-disp: clamp(3rem, 8vw, 5.5rem);

  --space-1: 8px;   --space-2: 16px;  --space-3: 24px;
  --space-4: 32px;  --space-5: 40px;  --space-6: 48px;
  --space-8: 64px;  --space-10: 80px; --space-15: 120px;

  --shadow-sm: 0 4px 12px rgba(15, 118, 110, 0.04);
  --shadow-md: 0 12px 32px rgba(15, 118, 110, 0.08), inset 0 0 0 1px rgba(255,255,255,0.6);
  --shadow-float: 0 24px 48px rgba(15, 118, 110, 0.15);
  --shadow-lg: 0 16px 40px rgba(15, 118, 110, 0.09);

  --max-width: 1200px;
  --nav-height: 80px;
}

/* ── 02. RESET & BASE ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: 'Pretendard Variable', Pretendard, 'Inter', -apple-system, sans-serif;
  font-weight: 400; line-height: 1.6; letter-spacing: -0.015em;
  word-break: keep-all; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, h4 { font-weight: 700; color: var(--text-primary); letter-spacing: -0.02em; line-height: 1.2; }
a { text-decoration: none; color: inherit; transition: 0.3s ease; }
ul { list-style: none; }
button { border: 0; background: none; font: inherit; cursor: pointer; color: inherit; }
img, video { display: block; max-width: 100%; height: auto; }

/* ── 03. TYPOGRAPHY UTILITIES ──────────────────────────────────── */
.heading-xl { font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: var(--space-3); }
.heading-lg { font-size: clamp(2rem, 3.5vw, 2.5rem); font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; margin-bottom: var(--space-2); }
.heading-md { font-size: 1.25rem; font-weight: 700; margin-bottom: var(--space-1); }
.heading-sm { font-size: 1.125rem; font-weight: 600; margin-bottom: var(--space-1); }

.body-lg { font-size: 1.125rem; line-height: 1.6; color: var(--text-secondary); }
.body-md { font-size: 1rem;     line-height: 1.6; color: var(--text-secondary); }
.body-sm { font-size: 0.875rem; line-height: 1.6; color: var(--text-secondary); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--primary); font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace; margin-bottom: var(--space-3);
}
.eyebrow::before {
  content: ''; width: 6px; height: 6px;
  background: var(--primary-light); border-radius: 50%;
  box-shadow: 0 0 8px var(--primary-light);
}

.eyebrow-pill {
  display: inline-block; color: var(--primary);
  font-family: 'Inter', sans-serif; font-size: .8125rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 100px;
  background: rgba(20,184,166,.1); border: 1px solid rgba(20,184,166,.15);
}

.text-gradient {
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-light) 50%, var(--accent) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: gradShine 5s linear infinite;
}

.sec-head { text-align: center; margin-bottom: var(--space-8); max-width: 700px; margin-inline: auto; }
.sec-head h2 { font-size: var(--fs-2xl); margin-bottom: var(--space-2); }
.sec-head p  { font-size: var(--fs-lg); color: var(--text-secondary); line-height: 1.6; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center;
  padding: 5px 14px; border-radius: 999px;
  background: rgba(20,184,166,.09); border: 1px solid rgba(20,184,166,.22);
  color: var(--primary); font-size: .8125rem; font-weight: 600;
}

.icon {
  width: 20px; height: 20px; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── 04. LAYOUT ────────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-3); position: relative; z-index: 10; }
@media (min-width: 1024px) { .container { padding: 0 var(--space-5); } }
.section { padding: var(--space-15) 0; position: relative; z-index: 10; }
.section-padding { padding: var(--space-15) 0; }
@media (min-width: 1024px) { .section-padding { padding: 180px 0; } }

.site-shell { position: relative; z-index: 10; min-height: 100vh; display: flex; flex-direction: column; }

/* 12-column grid (used by ODM & M-Library) */
.grid-12 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
@media (min-width: 768px)  { .grid-12 { grid-template-columns: repeat(8, 1fr); gap: var(--space-4); } }
@media (min-width: 1024px) { .grid-12 { grid-template-columns: repeat(12, 1fr); gap: var(--space-4); } }
.col-3 { grid-column: span 4; } .col-4 { grid-column: span 4; } .col-6 { grid-column: span 4; } .col-8 { grid-column: span 4; }
@media (min-width: 768px)  { .col-3 { grid-column: span 4; } .col-4 { grid-column: span 4; } .col-6 { grid-column: span 8; } .col-8 { grid-column: span 8; } }
@media (min-width: 1024px) { .col-3 { grid-column: span 3; } .col-4 { grid-column: span 4; } .col-6 { grid-column: span 6; } .col-8 { grid-column: span 8; } }

/* Ambient blur blobs (ODM & M-Library) */
.ambient-blob { position: fixed; border-radius: 50%; filter: blur(140px); opacity: 0.3; pointer-events: none; z-index: 0; }
.blob-1 { top: -10%; left: -10%; width: 600px; height: 600px; background: var(--primary-light); }
.blob-2 { bottom: 10%; right: -10%; width: 500px; height: 500px; background: var(--accent); }

/* ── 05. BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 12px; font-weight: 600; font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); cursor: pointer;
}
.btn-primary {
  background: var(--text-primary); color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); border: 1px solid transparent;
}
.btn-primary:hover { background: var(--primary); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(20,184,166,0.3); }
.btn-primary:hover i, .btn-primary:hover .icon { transform: translateX(4px); }

.btn-outline {
  background: rgba(255,255,255,0.5); backdrop-filter: blur(8px);
  border: 1px solid var(--border); color: var(--text-primary);
}
.btn-outline:hover { background: #fff; border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-sm); color: var(--primary); }

.btn-solid-white { background: #fff; color: var(--dark-bg); font-weight: 700; box-shadow: 0 4px 12px rgba(255,255,255,0.1); }
.btn-solid-white:hover { background: var(--bg-elevated); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,255,255,0.25); }
.btn-solid-white:hover i { transform: translateX(4px); }

.btn-outline-glass { background: rgba(255,255,255,0.05); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.2); color: #fff; font-weight: 600; }
.btn-outline-glass:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.4); transform: translateY(-2px); }

.btn-dark { background: #09090B; color: #fff; border-radius: 100px; padding: 18px 36px; font-weight: 500; }
.btn-dark:hover { background: var(--primary); transform: translateY(-2px); }
.btn-dark:disabled { opacity: 0.4; pointer-events: none; }

/* ── 06. NAVIGATION ────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: all 0.4s ease; border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(248, 251, 251, 0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light); box-shadow: var(--shadow-sm);
}
.nav-inner {
  height: var(--nav-height); display: flex; align-items: center; justify-content: space-between;
  transition: height 0.3s;
}
.nav.scrolled .nav-inner { height: 64px; }

/* Brand */
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  color: #fff; font-size: 14px; font-weight: 700;
  box-shadow: 0 4px 12px rgba(20,184,166,.3); flex-shrink: 0;
}
.brand-name { font-size: 1.125rem; font-weight: 700; color: var(--text-primary); transition: color 0.2s; }

/* Desktop links */
.desktop-nav { display: none; }
@media (min-width: 1024px) { .desktop-nav { display: flex; align-items: center; gap: var(--space-4); } }
.nav-link {
  color: var(--text-secondary); font-size: 0.95rem; font-weight: 500;
  transition: color 0.2s; position: relative; cursor: pointer;
}
.nav-link:hover, .nav-link.active { color: var(--primary); font-weight: 600; }

/* Service dropdown */
.dd-wrap { position: relative; cursor: pointer; }
.dd-trigger { display: inline-flex; align-items: center; gap: 6px; }
.dd-menu {
  position: absolute; top: calc(100% + 16px); left: 50%; transform: translateX(-50%) translateY(10px);
  background: rgba(255,255,255,0.9); backdrop-filter: blur(16px);
  border: 1px solid var(--border); border-radius: 16px; padding: 8px;
  width: 200px; box-shadow: var(--shadow-float);
  opacity: 0; visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.dd-wrap:hover .dd-menu, .dd-wrap.open .dd-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dd-item {
  display: block; padding: 12px 16px; border-radius: 8px;
  font-size: 0.95rem; font-weight: 500; color: var(--text-secondary); transition: all 0.2s;
}
.dd-item:hover, .dd-item.active { background: rgba(20,184,166,0.08); color: var(--primary); padding-left: 20px; }

/* Nav actions (right side) */
.nav-actions { display: flex; align-items: center; gap: var(--space-2); }
.nav-cta { padding: 10px 20px; border-radius: 8px; font-size: 0.875rem; }
@media (max-width: 1023px) { .nav-cta { display: none; } }

/* Language toggle */
.lang-switch { display: flex; align-items: center; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 12px; border-radius: 6px; font-family: 'Inter', sans-serif;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.05em;
  color: var(--text-secondary); border: 1px solid var(--border-light);
  background: rgba(255,255,255,0.5); transition: all 0.2s;
}
.lang-btn:hover { border-color: var(--primary); color: var(--primary); background: rgba(20,184,166,0.05); }
.lang-current { color: var(--primary); font-weight: 700; }
.lang-sep { margin: 0 2px; color: var(--text-tertiary); }

/* Mobile hamburger */
.mobile-menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; color: var(--text-secondary); font-size: 20px;
}
@media (min-width: 1024px) { .mobile-menu-btn { display: none; } }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(255,255,255,0.98); backdrop-filter: blur(20px);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu.open { transform: translateX(0); }

.mobile-menu-header {
  height: var(--nav-height); padding: 0 var(--space-3);
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
}
.mobile-menu-close { width: 40px; height: 40px; display: grid; place-items: center; font-size: 24px; color: var(--text-secondary); }

.mobile-menu-body { flex: 1; padding: var(--space-4) var(--space-3); overflow-y: auto; }
.mobile-nav-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-2) 0; font-size: 1.125rem; font-weight: 600;
  color: var(--text-primary); border-bottom: 1px solid var(--border-light); transition: color 0.2s;
  width: 100%; text-align: left;
}
.mobile-nav-link:hover, .mobile-nav-link.active { color: var(--primary); }
.mobile-dd-icon { font-size: 12px; transition: transform 0.3s; }
.mobile-dd.open .mobile-dd-icon { transform: rotate(180deg); }

.mobile-dd-panel {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
}
.mobile-dd.open .mobile-dd-panel { max-height: 200px; }
.mobile-dd-link {
  display: block; padding: 12px var(--space-3); font-size: 1rem; font-weight: 500;
  color: var(--text-secondary); transition: color 0.2s;
}
.mobile-dd-link:hover, .mobile-dd-link.active { color: var(--primary); }

.mobile-menu-footer {
  padding: var(--space-3); border-top: 1px solid var(--border-light);
  display: flex; flex-direction: column; gap: var(--space-2);
}
.lang-btn-mobile {
  display: block; text-align: center; padding: 12px;
  font-family: 'Inter', sans-serif; font-size: var(--fs-sm); font-weight: 600;
  color: var(--text-secondary); border: 1px solid var(--border); border-radius: 8px;
  transition: all 0.2s;
}
.lang-btn-mobile:hover { border-color: var(--primary); color: var(--primary); }

/* ── 07. FOOTER ────────────────────────────────────────────────── */
footer {
  background: var(--bg-surface); padding: var(--space-10) 0 var(--space-6);
  border-top: 1px solid var(--border-light); position: relative; z-index: 10;
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-6); margin-bottom: var(--space-6); }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: var(--space-8); } }

.footer-desc { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.75; max-width: 260px; margin-top: 14px; }

.ft-title {
  font-size: var(--fs-sm); font-weight: 700; color: var(--text-primary);
  margin-bottom: var(--space-3); text-transform: uppercase; letter-spacing: 0.05em;
}
.ft-links { display: flex; flex-direction: column; gap: 12px; }
.ft-link { color: var(--text-secondary); font-size: var(--fs-sm); transition: color 0.2s; }
.ft-link:hover { color: var(--accent); }

.ft-contact-row {
  display: flex; gap: 12px; align-items: flex-start;
  color: var(--text-secondary); font-size: var(--fs-sm); line-height: 1.6;
}
.ft-contact-row + .ft-contact-row { margin-top: var(--space-2); }
.ft-contact-row i { color: var(--accent); margin-top: 4px; flex-shrink: 0; }
.ft-contact-label {
  font-weight: 600; font-size: .75rem; color: var(--text-tertiary);
  letter-spacing: .07em; text-transform: uppercase; margin-bottom: 3px;
}

.social-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-elevated); border: 1px solid var(--border);
  color: var(--text-secondary); font-size: 16px; margin-top: var(--space-2); transition: all 0.3s;
}
.social-btn:hover { color: var(--primary); border-color: var(--primary); background: rgba(20,184,166,0.1); transform: translateY(-2px); }

.footer-bottom {
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  gap: var(--space-3); padding-top: var(--space-4); border-top: 1px solid var(--border-light);
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; } }
.muted { font-family: 'JetBrains Mono', monospace; font-size: var(--fs-xs); color: var(--text-tertiary); }
.bottom-links { display: flex; align-items: center; gap: var(--space-3); }
.bottom-links button { font-family: 'JetBrains Mono', monospace; font-size: var(--fs-xs); color: var(--text-tertiary); transition: color 0.2s; }
.bottom-links button:hover { color: var(--accent); }

/* ── 08. ANIMATIONS ────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

@keyframes gradShine { to { background-position: 200% center; } }
@keyframes pingDot { 0%,100% { opacity: .5; transform: scale(1); } 50% { opacity: 1; transform: scale(1.5); box-shadow: 0 0 12px var(--accent); } }
@keyframes bounceCue { 0%,100% { transform: translateX(-50%) translateY(0); opacity: .8; } 50% { transform: translateX(-50%) translateY(6px); opacity: .4; } }
