/* ===========================
   KR Media — style.css
   =========================== */

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

:root {
  --bg:          #f7f6f2;
  --bg-card:     #ffffff;
  --bg-card2:    #f0eeea;
  --bg-dark:     #0d0d0d;
  --cyan:        #0ea5e9;
  --cyan-dim:    rgba(14,165,233,0.09);
  --cyan-glow:   rgba(14,165,233,0.18);
  --white:       #0d0d0d;        /* primary text — dark on light bg */
  --muted:       #6b7a8d;
  --muted-2:     #a8b5c0;
  --border:      rgba(0,0,0,0.09);
  --border-cyan: rgba(14,165,233,0.25);
  --font-display: 'DM Serif Display', serif;
  --font:        'Space Grotesk', sans-serif;
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --radius:      12px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2 { font-family: var(--font-display); }

/* --- Utilities --- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.section { padding: 120px 0; }

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

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  font-family: var(--font);
}

.section-tag::before,
.section-tag::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--muted-2);
}

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

.section-header--center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--white);
}

.section-sub {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 520px;
  font-family: var(--font);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s var(--ease);
  border: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--white);
  color: var(--bg);
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.btn--primary:hover {
  background: #1a1a1a;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  border-color: rgba(0,0,0,0.2);
  background: rgba(0,0,0,0.04);
}

.btn--full { width: 100%; justify-content: center; }

/* --- Nav --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 40px;
  transition: background 0.35s var(--ease), padding 0.35s var(--ease), border-color 0.35s;
}

.nav.scrolled {
  background: rgba(247,246,242,0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 14px 40px;
  border-bottom: 1px solid var(--border);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--white);
  text-decoration: none;
  font-family: var(--font);
}
.nav__logo-img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  flex-shrink: 0;
  margin-top: 4px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 4px;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 0;
  border-bottom: 1.5px dashed var(--white);
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 0.2s, transform 0.2s;
}
.nav__links a:hover { color: var(--white); }
.nav__links a:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.nav__cta {
  background: var(--white) !important;
  color: var(--bg) !important;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s !important;
}
.nav__cta:hover {
  background: #1a1a1a !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* --- Mobile Menu --- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 99;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu ul { list-style: none; text-align: center; }
.mobile-menu ul li { margin: 24px 0; }
.mobile-menu ul li a {
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-display);
  transition: color 0.2s;
}
.mobile-menu ul li a:hover { color: var(--muted); }

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 160px 40px 120px;
  overflow: hidden;
}

.hero__content {
  max-width: 780px;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 2;
  margin-top: -60px;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
  font-family: var(--font);
}
.hero__tag::before,
.hero__tag::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--muted-2);
}

.hero__headline {
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  color: var(--white);
}

.hero__headline em {
  font-style: italic;
  color: var(--muted);
}

.hero__sub {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 48px;
  font-family: var(--font);
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Hero growth chart */
.hero__growth {
  position: absolute;
  top: 30%;
  left: 2%;
  width: 440px;
  pointer-events: none;
  z-index: 1;
}

.growth-line {
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  animation: drawLine 1.8s var(--ease) 0.3s forwards;
}

.growth-arrow {
  opacity: 0;
  animation: dotAppear 0.1s ease 1.9s forwards;
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}
@keyframes dotAppear {
  to { opacity: 1; }
}

/* Hero floating platform icons */
.hero__platforms {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero__platform {
  position: absolute;
  width: 52px; height: 52px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  animation: floatIcon 4s ease-in-out infinite;
}

/* Bottom jagged line — left side */
.h-p--1 { bottom: 220px; left: 4%;  animation-delay: 0s;   animation-duration: 4.2s; }
.h-p--2 { bottom: 140px; left: 11%; animation-delay: 0.7s; animation-duration: 3.8s; }
.h-p--3 { bottom: 80px;  left: 6%;  animation-delay: 1.3s; animation-duration: 4.6s; }

/* Bottom jagged line — right side */
.h-p--4 { bottom: 190px; right: 5%;  animation-delay: 0.4s; animation-duration: 4.0s; }
.h-p--5 { bottom: 110px; right: 11%; animation-delay: 1.0s; animation-duration: 3.6s; }
.h-p--6 { bottom: 60px;  right: 4%;  animation-delay: 1.6s; animation-duration: 4.8s; }

@keyframes floatIcon {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}

.hero__scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-family: var(--font);
}

.hero__scroll-line {
  width: 40px;
  height: 1px;
  background: var(--muted-2);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--white);
  animation: slide 1.8s infinite;
}
@keyframes slide { to { left: 100%; } }

/* --- Marquee --- */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-card2);
  padding: 14px 0;
}

.marquee {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
  font-family: var(--font);
}

.marquee .dot { color: var(--muted-2); }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --- Services --- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.service-card:hover {
  border-color: rgba(0,0,0,0.14);
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}
.service-card:hover::after { transform: scaleX(1); }

.service-card__icon {
  width: 44px; height: 44px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin-bottom: 24px;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  font-family: var(--font);
}

.service-card p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.service-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-card__list li {
  font-size: 0.8rem;
  color: var(--muted);
  padding-left: 16px;
  position: relative;
}

.service-card__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 1px;
  background: var(--muted-2);
}

/* --- Why Us --- */
.why { background: var(--bg-card2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 56px;
}

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.why-card:hover {
  border-color: rgba(0,0,0,0.14);
  box-shadow: 0 6px 30px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.why-card__icon {
  width: 42px; height: 42px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin-bottom: 20px;
}

.why-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  font-family: var(--font);
}

.why-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.65;
}

.why__cta {
  display: flex;
  justify-content: center;
}

/* --- Steps / How It Works --- */
.steps { background: var(--bg); }

.steps .section-tag {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.steps .section-title {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
}

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

.step-card {
  text-align: center;
  padding: 40px 28px 44px;
  background: var(--bg-card);
  border: 1.5px solid rgba(0,0,0,0.14);
  border-radius: 6px;
}

.step-card__icon {
  position: relative;
  width: 68px; height: 68px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin: 0 auto 28px;
}

.step-card__num {
  position: absolute;
  bottom: -8px;
  right: -8px;
  width: 20px; height: 20px;
  background: var(--white);
  color: var(--bg);
  font-size: 0.62rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
}

.step-card.visible .step-card__icon {
  animation: iconFloat 3.5s ease-in-out infinite;
}
.step-card.visible.delay-1 .step-card__icon { animation-delay: 0.4s; }
.step-card.visible.delay-2 .step-card__icon { animation-delay: 0.8s; }

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.step-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
  font-family: var(--font);
}

.step-card p {
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.72;
}

/* --- Pricing --- */
.pricing { background: var(--bg-card2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

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

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  position: relative;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
}

.pricing-card--featured {
  border-color: rgba(0,0,0,0.18);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.pricing-card__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  color: var(--bg);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
  font-family: var(--font);
}

.pricing-card__tier {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 10px;
  font-family: var(--font);
}

.pricing-card__price {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  color: var(--white);
  font-family: var(--font);
}
.pricing-card__price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}
.pricing-card__price--accent { color: var(--cyan); }

.pricing-card__desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.pricing-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.pricing-card__list li {
  font-size: 0.87rem;
  color: var(--muted);
  padding-left: 22px;
  position: relative;
  line-height: 1.4;
}

.pricing-card__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
}

/* --- Contact --- */
.contact { background: var(--bg); }

.contact .section-tag {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--white);
  border: 1.5px solid var(--white);
  border-radius: 4px;
  padding: 10px 20px;
  background: transparent;
}
.contact .section-tag::before,
.contact .section-tag::after { display: none; }

.contact__left .section-title {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 100px;
  align-items: start;
}

.contact__left .section-title { margin-bottom: 20px; }

.contact__left .section-title em {
  font-style: italic;
  color: var(--muted);
}

.contact__left p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact__details a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
}
.contact__details a:hover {
  border-color: var(--white);
}

/* Form */
.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: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--font);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--white);
  font-family: var(--font);
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
}

.form-group select { cursor: pointer; }

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(0,0,0,0.25);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

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

/* --- Footer --- */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 64px 0 40px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f7f6f2;
  line-height: 1;
  font-family: var(--font);
}

.footer__tagline {
  font-size: 0.85rem;
  color: #6b7a8d;
}

.footer__links {
  display: flex;
  gap: 32px;
}

.footer__links a {
  font-size: 0.85rem;
  color: #6b7a8d;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.footer__links a:hover { color: #f7f6f2; }

.footer__bottom {
  margin-top: 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #3d4f5f;
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.7s var(--ease) forwards;
}
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__inner { grid-template-columns: 1fr; gap: 60px; }
  .pricing__grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .container { padding: 0 24px; }
  .nav { padding: 16px 24px; }
  .nav.scrolled { padding: 12px 24px; }
  .nav__links { display: none; }
  .nav__burger { display: flex; }

  .hero { padding: 140px 24px 80px; }
  .br-desktop { display: none; }

  .hero__platforms, .hero__growth { display: none; }
  .services__grid { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: 1fr; }
  .steps__grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .footer__bottom { flex-direction: column; align-items: center; gap: 8px; text-align: center; }
  .footer__links { flex-wrap: wrap; justify-content: center; gap: 20px; }
}
