/* ================================================================
   PHILOXENIA — soft modern, olive accent
   recklessattempts.com/philoxenia
   ================================================================ */

:root {
  --page: #fafaf9;
  --card: #ffffff;
  --ink: #1f2421;
  --ink-soft: #4a4f4c;
  --ink-mute: #828884;
  --line: #e8e7e2;

  --olive: #4d6b4e;
  --olive-deep: #3a5239;
  --olive-tint: #eef1ec;
  --sienna: #c46b4a;
  --beige: #ece6d7;

  --radius: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(20, 28, 22, 0.04), 0 2px 8px rgba(20, 28, 22, 0.04);
  --shadow-md: 0 4px 12px rgba(20, 28, 22, 0.06), 0 8px 24px rgba(20, 28, 22, 0.06);
  --shadow-lg: 0 10px 30px rgba(20, 28, 22, 0.08), 0 20px 60px rgba(20, 28, 22, 0.08);

  --font: 'Pretendard', system-ui, -apple-system, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;

  --fs-hero:  clamp(2.5rem, 6vw, 4rem);
  --fs-title: clamp(1.5rem, 3.5vw, 2rem);
  --fs-body:  1rem;
  --fs-small: 0.875rem;
  --fs-xs:    0.75rem;

  --max-w: 960px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--page);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }

/* ================================================================
   HEADER
   ================================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.5rem;
  background: rgba(250, 250, 249, 0.88);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 600;
  color: var(--ink);
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.brand-name {
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.powered-by {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.875rem;
  font-size: var(--fs-small);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}

.powered-by:hover,
.powered-by:focus-visible {
  background: var(--ink);
  color: var(--page);
  border-color: var(--ink);
  outline: none;
}

.powered-by-label {
  color: var(--ink-mute);
  font-size: var(--fs-xs);
}

.powered-by:hover .powered-by-label,
.powered-by:focus-visible .powered-by-label {
  color: rgba(250, 250, 249, 0.7);
}

.powered-by-name {
  font-weight: 600;
}

.powered-by-arrow {
  font-size: var(--fs-small);
  transition: transform 0.18s ease;
}

.powered-by:hover .powered-by-arrow,
.powered-by:focus-visible .powered-by-arrow {
  transform: translateX(3px);
}

@media (max-width: 480px) {
  .site-header { padding: 0.75rem 1rem; }
  .brand-name { display: none; }
  .powered-by-label { display: none; }
  .powered-by { padding: 0.45rem 0.7rem; }
}

/* ================================================================
   HERO
   ================================================================ */

main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 1.5rem 2rem;
}

@media (max-width: 600px) {
  main { padding: 2.5rem 1.25rem 1.5rem; }
}

.hero {
  text-align: center;
  padding: 2rem 0 3.5rem;
}

.hero-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  margin: 0 auto 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--beige);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.hero-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-title {
  font-size: var(--fs-hero);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.hero-sub {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  color: var(--olive);
  font-weight: 500;
  margin-bottom: 1.75rem;
  letter-spacing: -0.005em;
}

.hero-lede {
  max-width: 32em;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* ================================================================
   ABOUT
   ================================================================ */

.section-title {
  font-size: var(--fs-title);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--ink);
}

.about {
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
}

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

@media (min-width: 720px) {
  .about-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}

.about-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.about-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.about-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--olive-tint);
  color: var(--olive);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.about-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.about-card p {
  font-size: var(--fs-small);
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ================================================================
   GET — download / web options
   ================================================================ */

.get {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}

.get-lede {
  color: var(--ink-soft);
  margin-bottom: 1.75rem;
  max-width: 40em;
}

.get-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .get-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 1.25rem; }
}

.get-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  min-height: 140px;
}

.get-card-body { flex: 1; }

.get-card-primary {
  background: var(--olive);
  border-color: var(--olive);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.get-card-primary:hover,
.get-card-primary:focus-visible {
  background: var(--olive-deep);
  border-color: var(--olive-deep);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  outline: none;
}

.get-card-pending {
  opacity: 0.78;
  cursor: not-allowed;
  background: var(--card);
}

.get-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-block;
  padding: 0.25rem 0.625rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.get-badge-pending {
  background: var(--olive-tint);
  color: var(--olive);
}

.get-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 0.4rem;
  line-height: 1.2;
}

.get-card-primary .get-title { color: #fff; }
.get-card-pending .get-title { color: var(--ink); }

.get-desc {
  font-size: var(--fs-small);
  line-height: 1.55;
}

.get-card-primary .get-desc { color: rgba(255, 255, 255, 0.85); }
.get-card-pending .get-desc { color: var(--ink-mute); }

.get-arrow {
  font-size: 1.5rem;
  margin-left: auto;
  transition: transform 0.18s ease;
}

.get-card-primary:hover .get-arrow,
.get-card-primary:focus-visible .get-arrow {
  transform: translateX(4px);
}

.get-note {
  margin-top: 1.5rem;
  font-size: var(--fs-small);
  color: var(--ink-mute);
  line-height: 1.55;
  max-width: 42em;
}

/* ================================================================
   FOOTER
   ================================================================ */

.site-footer {
  max-width: var(--max-w);
  margin: 3rem auto 0;
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--ink-mute);
  font-size: var(--fs-small);
}

.footer-back {
  color: var(--olive);
  font-weight: 500;
  transition: color 0.18s ease;
}

.footer-back:hover,
.footer-back:focus-visible {
  color: var(--olive-deep);
  outline: none;
}

/* ================================================================
   Reduced motion
   ================================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
