/* ===========================================================================
   AndNextLab — 회사 소개 정적 페이지
   화이트 테마: 밝은 배경 + 슬레이트 텍스트 + 앰버 액센트.
   =========================================================================== */

:root {
  /* 팔레트 (라이트) */
  --bg: #ffffff; /* 메인 배경 */
  --bg-alt: #f8fafc; /* 교차 섹션 배경 */
  --surface: #ffffff; /* 카드 표면 */
  --surface-2: #f1f5f9; /* 보조 표면 / 카드 hover */
  --border: #e5e7eb;
  --border-strong: #d1d5db;

  --text: #0f172a; /* 제목·기본 텍스트 (slate-900) */
  --text-soft: #475569; /* 본문 보조 텍스트 (slate-600) */
  --text-mute: #6b7280; /* 흐린 텍스트 */

  --accent: #f59e0b; /* 앰버-500 — 흰 배경에서 읽히는 액센트 */
  --accent-strong: #d97706; /* 앰버-600 — hover */
  --accent-mark: #fbbf24; /* 앰버-400 — 브랜드 마크 배경 */
  --on-accent: #111827; /* 앰버 위 텍스트(어두운색) */

  /* 그림자 (흰 배경에서 깊이 표현) */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04),
    0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 6px -2px rgba(15, 23, 42, 0.05),
    0 12px 28px -8px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 30px 60px -30px rgba(15, 23, 42, 0.28);

  /* 레이아웃 */
  --maxw: 1080px;
  --pad: clamp(20px, 5vw, 40px);
  --radius: 16px;
  --radius-sm: 10px;

  --font: "Pretendard Variable", Pretendard, -apple-system,
    "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

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

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

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

/* 접근성: 키보드 포커스 표시 */
a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  font-weight: 700;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}

/* --- buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease,
    border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--accent-strong);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface);
}
.btn-ghost:hover {
  background: var(--surface-2);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 30px;
  font-size: 1.05rem;
}

.btn-store {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
  font-size: 0.92rem;
}
.btn-store:hover {
  background: var(--surface-2);
}

/* --- header --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.12rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent-mark);
  color: var(--on-accent);
  font-weight: 800;
  font-size: 1rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
}
.site-nav a {
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.96rem;
  transition: color 0.15s ease;
}
.site-nav a:hover {
  color: var(--text);
}
.nav-cta {
  color: var(--on-accent) !important;
  background: var(--accent);
  padding: 9px 16px;
  border-radius: 8px;
}
.nav-cta:hover {
  background: var(--accent-strong);
  color: #fff !important;
}

/* --- hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(
      62% 80% at 80% 0%,
      color-mix(in srgb, var(--accent) 14%, transparent),
      transparent 62%
    ),
    var(--bg);
}

.hero-inner {
  padding-block: clamp(72px, 14vw, 130px);
  max-width: 760px;
}

.eyebrow {
  display: inline-block;
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 6px 12px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(2.3rem, 6.5vw, 4rem);
  font-weight: 800;
}

.hero-sub {
  margin-top: 22px;
  font-size: clamp(1.05rem, 2.4vw, 1.28rem);
  color: var(--text-soft);
  max-width: 620px;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* --- sections ------------------------------------------------------------- */
.section {
  padding-block: clamp(64px, 11vw, 110px);
}
.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.section-eyebrow {
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 800;
  max-width: 720px;
}

.section-lead {
  margin-top: 20px;
  font-size: clamp(1.02rem, 2.2vw, 1.16rem);
  color: var(--text-soft);
  max-width: 680px;
}
.section-lead strong {
  color: var(--text);
  font-weight: 700;
}

/* --- about: stats --------------------------------------------------------- */
.stat-grid {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.stat-num {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent-strong);
}
.stat-label {
  display: block;
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 0.96rem;
}

/* --- services: cards ------------------------------------------------------ */
.card-grid {
  margin-top: 44px;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.card-icon {
  font-size: 1.7rem;
  margin-bottom: 16px;
}
.card-title {
  font-size: 1.22rem;
  font-weight: 700;
}
.card-body {
  margin-top: 12px;
  color: var(--text-soft);
  font-size: 0.99rem;
}

/* --- work: flagship app --------------------------------------------------- */
.work-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.feature-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.feature-list li {
  position: relative;
  padding-left: 30px;
  color: var(--text-soft);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.store-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* CSS 전용 폰 목업 (이미지 불필요) */
.work-visual {
  display: grid;
  place-items: center;
}
.phone {
  position: relative;
  width: min(240px, 70vw);
  aspect-ratio: 9 / 19;
  border-radius: 34px;
  background: linear-gradient(160deg, #ffffff, var(--surface-2));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg),
    0 0 0 6px color-mix(in srgb, var(--accent) 10%, transparent);
  padding: 14px;
}
.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 42%;
  height: 20px;
  background: var(--border);
  border-radius: 0 0 12px 12px;
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  background: radial-gradient(
      70% 55% at 50% 30%,
      color-mix(in srgb, var(--accent) 18%, transparent),
      transparent 70%
    ),
    var(--bg-alt);
  border: 1px solid var(--border);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  text-align: center;
}
.phone-mark {
  font-size: 3rem;
}
.phone-app {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
}

/* --- contact -------------------------------------------------------------- */
.contact-inner {
  text-align: center;
  display: grid;
  justify-items: center;
}
.contact-inner .section-title,
.contact-inner .section-lead {
  max-width: 640px;
}
.contact-inner .btn {
  margin-top: 34px;
}

/* --- footer --------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding-block: 40px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}
.footer-meta {
  color: var(--text-soft);
  font-size: 0.94rem;
}
.footer-meta a {
  color: var(--text);
  border-bottom: 1px solid var(--border-strong);
}
.footer-copy {
  margin-left: auto;
  color: var(--text-mute);
  font-size: 0.9rem;
}

/* --- responsive ----------------------------------------------------------- */
@media (max-width: 860px) {
  .stat-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }
  .work-inner {
    grid-template-columns: 1fr;
  }
  .work-visual {
    order: -1;
  }
}

@media (max-width: 560px) {
  .site-nav {
    gap: 12px;
  }
  /* 좁은 화면에서는 텍스트 메뉴 숨기고 문의 CTA 만 유지 */
  .site-nav a:not(.nav-cta) {
    display: none;
  }
  .footer-copy {
    margin-left: 0;
    width: 100%;
  }
}

/* 모션 최소화 선호 사용자 배려 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
