/* =========================================================
   하노비트 (HANOBIT) Homepage Stylesheet
   Bright & friendly — kids/parents target
   ========================================================= */

/* ----- Tokens ----- */
:root {
  --green: #6ec23a;          /* mascot leaf green */
  --green-deep: #4ea623;
  --green-soft: #d9f5c3;
  --blue: #2f7fdc;           /* hanobit text blue */
  --blue-deep: #1f5fad;
  --blue-soft: #e6f1ff;
  --yellow: #ffd23a;
  --yellow-soft: #fff7d6;
  --pink: #ff7aa2;
  --orange: #ff9447;
  --purple: #7757ff;

  --ink: #1a2740;
  --ink-soft: #4a5872;
  --gray: #7a849a;
  --line: #e6ebf2;
  --bg: #fafcff;
  --bg-soft: #f1f6fc;
  --white: #ffffff;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 4px 16px rgba(31, 95, 173, 0.08);
  --shadow: 0 12px 40px rgba(31, 95, 173, 0.12);
  --shadow-lg: 0 24px 60px rgba(31, 95, 173, 0.18);

  --font-display: 'Jua', 'Noto Sans KR', sans-serif;
  --font-body: 'Noto Sans KR', sans-serif;
}

/* ----- Reset / Base ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; margin: 0; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ----- Typography ----- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 0.6em;
  color: var(--ink);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
h4 { font-size: 1.15rem; }

.highlight {
  color: var(--green-deep);
  background: linear-gradient(180deg, transparent 60%, var(--green-soft) 60%);
  padding: 0 0.1em;
}
.highlight-blue {
  color: var(--blue);
  background: linear-gradient(180deg, transparent 60%, var(--blue-soft) 60%);
  padding: 0 0.1em;
}
.highlight-yellow {
  color: var(--ink);
  background: linear-gradient(180deg, transparent 55%, var(--yellow) 55%);
  padding: 0 0.15em;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  color: var(--blue);
  background: var(--blue-soft);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
  margin-bottom: 0.8em;
}
.eyebrow.light {
  background: rgba(255,255,255,0.2);
  color: var(--white);
}

.section-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 56px;
}
.section-head p {
  color: var(--ink-soft);
  font-size: 1.1rem;
  margin: 8px 0 0;
}
.section-head.light h2,
.section-head.light p { color: var(--white); }

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  border: 2px solid transparent;
  text-align: center;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-sm { padding: 10px 18px; font-size: 0.95rem; }
.btn-lg { padding: 16px 30px; font-size: 1.1rem; }
.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(110, 194, 58, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--green-deep); }
.btn-ghost {
  background: var(--white);
  color: var(--blue-deep);
  border-color: var(--blue-soft);
}
.btn-ghost:hover { background: var(--blue-soft); transform: translateY(-2px); }
.btn-white {
  background: var(--white);
  color: var(--blue-deep);
  box-shadow: 0 8px 20px rgba(0,0,0,.1);
}
.btn-white:hover { transform: translateY(-2px); background: var(--yellow-soft); }
.btn-icon { font-size: 0.85em; }

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand-logo {
  height: 44px;
  width: auto;
}
.site-nav {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.site-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--ink-soft);
  font-size: 0.97rem;
  transition: background .15s, color .15s;
}
.site-nav a:hover { background: var(--blue-soft); color: var(--blue-deep); }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* ----- Hero ----- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0 108px;
  background:
    radial-gradient(circle at 18% 12%, rgba(110, 194, 58, 0.18), transparent 28%),
    radial-gradient(circle at 84% 22%, rgba(47, 127, 220, 0.18), transparent 26%),
    linear-gradient(160deg, #f4faff 0%, #fff8e7 100%);
}
.hero-bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.55;
  z-index: 0;
}
.shape-1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--green-soft), transparent 70%);
  top: -100px; left: -100px;
}
.shape-2 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, #fff2b8, transparent 70%);
  bottom: -120px; right: -80px;
}
.shape-3 {
  width: 220px; height: 220px;
  background: radial-gradient(circle, #cfe5ff, transparent 70%);
  top: 30%; right: 20%;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 64px;
  align-items: center;
}
.hero-text { max-width: 650px; }
.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.9);
  color: var(--blue-deep);
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
  border: 1px solid rgba(47, 127, 220, 0.12);
}
.hero h1 {
  font-size: clamp(2.35rem, 4.7vw, 3.8rem);
  line-height: 1.22;
  margin-bottom: 20px;
  letter-spacing: -0.035em;
}
.hero-title-line {
  display: block;
  text-wrap: balance;
}
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.24rem);
  color: var(--ink-soft);
  margin-bottom: 32px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.hero-proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}
.hero-proof-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(47, 127, 220, 0.12);
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 8px 22px rgba(31, 95, 173, 0.07);
}
.hero-stats {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 140px;
  padding: 16px 18px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(230, 235, 242, 0.9);
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(31, 95, 173, 0.08);
}
.hero-stats strong {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--blue);
}
.hero-stats span {
  color: var(--gray);
  font-size: 0.92rem;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 520px;
}
.hero-visual::before {
  content: "";
  position: absolute;
  width: min(92%, 440px);
  aspect-ratio: 1;
  border-radius: 42px;
  background: linear-gradient(135deg, rgba(110, 194, 58, 0.2), rgba(47, 127, 220, 0.18));
  transform: rotate(9deg);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.55);
}
.app-stack {
  position: relative;
  width: min(100%, 420px);
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}
.app-shot {
  position: absolute;
  width: 58%;
  border-radius: 24px;
  border: 7px solid var(--white);
  background: var(--white);
  box-shadow: 0 28px 58px rgba(26, 39, 64, 0.24);
  object-fit: cover;
}
.app-shot-main {
  z-index: 3;
  width: 64%;
  transform: translateY(-4px);
  animation: bob 4.5s ease-in-out infinite;
}
.app-shot-sub {
  z-index: 2;
  width: 50%;
  opacity: 0.96;
  filter: saturate(1.06);
}
.app-shot-left {
  left: 0;
  bottom: 38px;
  transform: rotate(-9deg);
}
.app-shot-right {
  right: 0;
  top: 38px;
  transform: rotate(8deg);
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.floating-card {
  position: absolute;
  background: var(--white);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.92rem;
  animation: bob 5s ease-in-out infinite;
}
.floating-card strong { display: block; color: var(--ink); font-size: 0.98rem; }
.floating-card small { color: var(--gray); font-size: 0.82rem; }
.card-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--yellow-soft);
  color: var(--blue-deep);
  font-family: var(--font-display);
  font-size: 1rem;
  flex: 0 0 auto;
}
.card-a { top: 8%; left: -12px; animation-delay: 0.5s; }
.card-b { bottom: 8%; right: -12px; animation-delay: 1.5s; }

/* ----- Why ----- */
.why {
  padding: 92px 0 96px;
  background: var(--white);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-card {
  position: relative;
  min-height: 260px;
  padding: 34px 30px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.98)),
    var(--bg-soft);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.why-card::after {
  content: "";
  position: absolute;
  right: -44px;
  bottom: -44px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--blue-soft);
}
.why-card-accent {
  background: linear-gradient(145deg, var(--blue), var(--blue-deep));
  color: var(--white);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}
.why-card-accent::after { background: rgba(255,255,255,0.16); }
.why-number {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: rgba(47, 127, 220, 0.32);
  margin-bottom: 28px;
}
.why-card-accent .why-number { color: rgba(255,255,255,0.55); }
.why-card h3 {
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
}
.why-card p {
  position: relative;
  z-index: 1;
  color: var(--ink-soft);
  margin: 0;
}
.why-card-accent h3,
.why-card-accent p { color: var(--white); }

/* ----- CTA Strip ----- */
.cta-strip {
  background: linear-gradient(110deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: var(--white);
  padding: 36px 0;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 10% 50%, rgba(255,255,255,0.1) 0%, transparent 30%),
                    radial-gradient(circle at 90% 50%, rgba(255,255,255,0.08) 0%, transparent 30%);
}
.cta-strip-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-strip h2 { color: var(--white); margin: 0; }
.cta-strip p { margin: 4px 0 0; color: rgba(255,255,255,0.92); }

/* ----- Features ----- */
.features {
  padding: 100px 0;
  background: var(--white);
}
.feature-card {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
  background: linear-gradient(135deg, #f7fcff 0%, #f1faf0 100%);
  border-radius: var(--radius-lg);
  padding: 48px;
  margin-bottom: 56px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}
.feature-card::before {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  background: var(--yellow-soft);
  border-radius: 50%;
  z-index: 0;
}
.feature-card-text {
  position: relative;
  z-index: 1;
}
.feature-tag {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.feature-card-text p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin: 0 0 12px;
}
.feature-card-text em {
  font-style: normal;
  background: var(--yellow-soft);
  padding: 0 6px;
  border-radius: 4px;
  font-weight: 600;
  color: var(--ink);
}
.feature-card-note {
  margin-top: 20px !important;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
  color: var(--blue-deep) !important;
  font-weight: 600;
}
.feature-card-img {
  position: relative;
  z-index: 1;
}
.feature-card-img img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.mini-card {
  background: var(--white);
  padding: 32px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.mini-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.mini-icon {
  display: inline-flex;
  min-width: 64px; height: 60px;
  align-items: center;
  justify-content: center;
  background: var(--blue-soft);
  border-radius: 16px;
  padding: 0 14px;
  font-family: var(--font-display);
  color: var(--blue-deep);
  font-size: 1.05rem;
  margin-bottom: 16px;
}
.mini-card h4 { margin-bottom: 10px; }
.mini-card p {
  color: var(--ink-soft);
  font-size: 0.97rem;
  margin: 0;
}

/* ----- Levels ----- */
.levels {
  padding: 100px 0;
  background: var(--bg-soft);
}
.curriculum-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: -28px auto 46px;
}
.curriculum-flow span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--white);
  color: var(--blue-deep);
  font-weight: 800;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(47, 127, 220, 0.1);
}
.curriculum-flow strong {
  color: var(--green-deep);
  font-family: var(--font-display);
  font-size: 1.2rem;
}
.level-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.level-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
  border: 1px solid rgba(230, 235, 242, 0.8);
}
.level-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.level-card-img {
  background: var(--blue-soft);
  aspect-ratio: 4/5;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.level-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.level-phonics .level-card-img { background: linear-gradient(135deg, #b8e0ff, #cdf3ff); }
.level-elem .level-card-img    { background: linear-gradient(135deg, #d9f5c3, #e8fcd8); }
.level-mid .level-card-img     { background: linear-gradient(135deg, #ffe9b8, #fff5d6); }

.level-card-body {
  padding: 28px;
}
.level-stage {
  display: inline-block;
  font-family: var(--font-display);
  background: var(--ink);
  color: var(--white);
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 12px;
}
.level-phonics .level-stage { background: var(--blue); }
.level-elem .level-stage    { background: var(--green-deep); }
.level-mid .level-stage     { background: var(--orange); }

.level-card-body h3 { margin-bottom: 10px; }
.level-card-body > p {
  color: var(--ink-soft);
  margin: 0 0 16px;
}
.level-bullets {
  border-top: 1px dashed var(--line);
  padding-top: 14px;
}
.level-bullets li {
  position: relative;
  padding: 6px 0 6px 22px;
  color: var(--ink-soft);
  font-size: 0.96rem;
}
.level-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green-deep);
  font-weight: 800;
}

/* ----- Showcase ----- */
.showcase {
  padding: 100px 0;
  background: linear-gradient(150deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.showcase::before, .showcase::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.showcase::before {
  width: 500px; height: 500px;
  top: -150px; left: -100px;
}
.showcase::after {
  width: 400px; height: 400px;
  bottom: -100px; right: -100px;
}
.phones {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.phone {
  margin: 0;
  flex: 0 0 240px;
  text-align: center;
  transform: translateY(0);
  transition: transform .3s ease;
}
.phone:hover { transform: translateY(-10px); }
.phone img {
  width: 100%;
  border-radius: 22px;
  border: 6px solid var(--white);
  box-shadow: 0 30px 50px rgba(0,0,0,0.3);
  background: var(--white);
}
.phone figcaption {
  margin-top: 18px;
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.05rem;
}
.phone-1 { transform: translateY(20px) rotate(-3deg); }
.phone-2 { transform: translateY(0); }
.phone-3 { transform: translateY(20px) rotate(3deg); }
.phone-1:hover { transform: translateY(10px) rotate(-3deg); }
.phone-3:hover { transform: translateY(10px) rotate(3deg); }

/* ----- Proof ----- */
.proof {
  padding: 100px 0;
  background: var(--white);
}
.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
  align-items: stretch;
}
.proof-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.proof-stats h3 { margin-bottom: 22px; }
.proof-stats ul { display: grid; gap: 16px; }
.proof-stats li {
  display: flex;
  gap: 18px;
  align-items: baseline;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 14px;
}
.proof-stats li:last-child { border-bottom: 0; padding-bottom: 0; }
.proof-stats strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--blue);
  flex: 0 0 auto;
  min-width: 90px;
}
.proof-stats span { color: var(--ink-soft); }
.proof-quote {
  margin-top: 22px;
  padding: 14px 18px;
  background: var(--white);
  border-left: 4px solid var(--green);
  border-radius: 6px;
  color: var(--ink-soft);
  font-style: italic;
  font-size: 0.95rem;
}
.proof-img-card {
  padding: 0;
  overflow: hidden;
  background: var(--bg-soft);
}
.proof-img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ----- Imaging Word ----- */
.imagingword {
  padding: 100px 0;
  background: linear-gradient(135deg, #1f5fad 0%, #4a8cff 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.imagingword::before {
  content: "";
  position: absolute;
  top: 10%; left: -10%;
  width: 60%; height: 80%;
  background: radial-gradient(circle, rgba(255, 210, 58, 0.15), transparent 70%);
}
.imagingword-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.iw-text h2 { color: var(--white); }
.iw-text p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.92);
  margin-bottom: 28px;
}
.iw-img img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  transform: rotate(3deg);
  transition: transform .3s ease;
}
.iw-img img:hover { transform: rotate(0); }

/* ----- Download ----- */
.download {
  padding: 100px 0;
  background: linear-gradient(180deg, #fff8e7 0%, #f4faff 100%);
  text-align: center;
}
.download-inner > p {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-bottom: 36px;
}
.download-btns {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.app-download-card {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 14px;
  width: 180px;
  padding: 18px 16px 20px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  border: 1px solid rgba(47, 127, 220, 0.12);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.app-download-card:hover {
  transform: translateY(-6px);
  border-color: rgba(47, 127, 220, 0.22);
  box-shadow: var(--shadow);
}
.app-download-icon {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  box-shadow: 0 12px 28px rgba(26, 39, 64, 0.16);
  object-fit: cover;
}
.app-download-copy {
  display: grid;
  gap: 2px;
}
.app-download-copy small {
  color: var(--gray);
  font-size: 0.82rem;
  font-weight: 700;
}
.app-download-copy strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.download-list {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--ink-soft);
  font-weight: 500;
}

/* ----- Contact ----- */
.contact {
  padding: 100px 0;
  background: var(--white);
}
.contact-form {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-soft);
  padding: 40px;
  border-radius: var(--radius-lg);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.contact-form label {
  display: block;
  margin-bottom: 18px;
}
.contact-form span {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-soft);
}
/* ----- Contact form: 검증/결과 메시지 ----- */
.contact-form .field-error,
.contact-form .field-validation-error {
  display: block;
  margin-top: 6px;
  margin-bottom: 0;
  font-weight: 500;
  font-size: 0.9rem;
  color: #d92d20;
}
.contact-alert {
  max-width: 720px;
  margin: 0 auto 20px;
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 600;
  text-align: center;
}
.contact-alert:empty {
  display: none;
}
.contact-alert-success {
  background: #e7f7ee;
  color: #15803d;
  border: 1.5px solid #abe5c4;
}
.contact-alert-error {
  background: #fdecea;
  color: #b42318;
  border: 1.5px solid #f4b9b2;
}
.contact-alert-error ul {
  margin: 0;
  padding-left: 1.1em;
  text-align: left;
}

.form-note {
  margin-top: 16px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.form-note a { color: var(--blue); font-weight: 700; }

/* ----- Footer ----- */
.site-footer {
  background: #1a2740;
  color: rgba(255,255,255,0.85);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding: 60px 24px 40px;
}
.footer-logo {
  height: 44px;
  filter: brightness(0) invert(1);
  margin-bottom: 14px;
  background: var(--white);
  padding: 6px 10px;
  border-radius: 8px;
  filter: none;
  height: auto;
  max-width: 240px;
}
.footer-brand p {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  max-width: 320px;
}
.footer-info dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  margin: 0;
}
.footer-info dt { color: rgba(255,255,255,0.55); font-weight: 600; }
.footer-info dd { margin: 0; }
.footer-info a { color: rgba(255,255,255,0.95); }
.footer-info a:hover { text-decoration: underline; }
.footer-links h4 { color: var(--white); margin-bottom: 14px; }
.footer-links li { padding: 4px 0; }
.footer-links a { color: rgba(255,255,255,0.7); }
.footer-links a:hover { color: var(--green); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 0;
  text-align: center;
  color: rgba(255,255,255,0.5);
}
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 20px;
}
.footer-legal {
  display: flex;
  gap: 18px;
}
.footer-legal a {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
}
.footer-legal a:hover { color: var(--white); text-decoration: underline; }

/* ----- Legal pages (개인정보처리방침 / 이용약관) ----- */
.legal-page {
  padding: 130px 0 80px;
  background: var(--white);
}
.legal-container {
  max-width: 860px;
}
.legal-lang {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}
.legal-lang a {
  padding: 7px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: all .15s;
}
.legal-lang a:hover { border-color: var(--blue); color: var(--blue); }
.legal-lang a.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}
.legal-content {
  color: var(--ink);
  line-height: 1.8;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.legal-title {
  font-size: 1.9rem;
  font-weight: 900;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--line);
}
.legal-content h2 {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 36px 0 12px;
  color: var(--ink);
}
.legal-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 24px 0 8px;
}
.legal-content p {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 0.97rem;
}
.legal-content a { color: var(--blue); text-decoration: underline; }
.legal-date {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-weight: 600;
}

/* ----- Top Btn ----- */
.top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  border: 0;
  font-size: 1.4rem;
  font-family: var(--font-display);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 40;
}
.top-btn.show {
  opacity: 1;
  pointer-events: auto;
}
.top-btn:hover { transform: translateY(-3px); background: var(--blue-deep); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .hero-inner,
  .feature-card,
  .imagingword-inner {
    grid-template-columns: 1fr;
  }
  .hero-text { max-width: 100%; }
  .hero-visual { min-height: 500px; }
  .feature-grid,
  .why-grid,
  .level-row,
  .proof-grid,
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .feature-card { padding: 32px; }
  .iw-img img { transform: none; max-width: 320px; margin: 0 auto; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-nav { display: none; }
  .header-inner .btn { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }

  .site-nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 16px;
    flex-direction: column;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
  }

  .hero { padding: 60px 0 80px; }
  .hero h1 {
    font-size: clamp(1.62rem, 7.4vw, 2.45rem);
    letter-spacing: -0.045em;
  }
  .hero-title-line {
    white-space: nowrap;
    text-wrap: nowrap;
  }
  .hero-stats { gap: 12px; }
  .hero-stats li { min-width: calc(50% - 6px); }
  .hero-stats strong { font-size: 1.4rem; }
  .floating-card { font-size: 0.85rem; padding: 10px 14px; }
  .card-emoji { width: 36px; height: 36px; font-size: 0.9rem; }
  .card-a { top: 0; }
  .card-b { bottom: 0; }
  .hero-visual { min-height: 430px; }
  .app-stack { min-height: 420px; }
  .app-shot { border-width: 5px; border-radius: 18px; }

  .cta-strip-inner { text-align: center; flex-direction: column; }

  .features, .levels, .showcase, .proof, .imagingword, .download, .contact { padding: 70px 0; }
  .feature-grid,
  .why-grid,
  .level-row,
  .proof-grid,
  .footer-inner { grid-template-columns: 1fr; }
  .phones { gap: 16px; }
  .phone { flex-basis: 220px; transform: none !important; }
  .phone-1, .phone-3 { transform: none !important; }

  .contact-form { padding: 24px; }
  .download-btns {
    flex-direction: column;
    align-items: stretch;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }
  .app-download-card {
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
  }
  .app-download-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }
  .download-list { flex-direction: column; gap: 8px; }
  .footer-info dl { grid-template-columns: 1fr; gap: 2px 0; }
  .footer-info dd { margin-bottom: 10px; }
  .footer-links ul { display: grid; gap: 4px; }
}
