/* ==========================================================================
   JMRep. (kjm.jmrep.com Tone & Manner) Premium Stylesheet
   Theme: Light Gray Canvas (#F6F5F1) + Rich Royal Navy (#0D1B2A) + Dual Gold (#FF5A1F, #C63D0D)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Noto+Sans+KR:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Color Palette - kjm.jmrep.com Tone & Manner with Navy & Gold */
  --bg-primary: #F6F5F1;       /* 정갈한 밝은 회색 바탕 */
  --bg-secondary: #FFFFFF;     /* 순백색 카드/배경 */
  --bg-card: #FFFFFF;
  --bg-card-hover: #FAFCFF;
  --bg-header: rgba(255, 255, 255, 0.95);
  
  --navy-primary: #0D1B2A;     /* 클래식 로열 네이비 (메인 브랜드 톤) */
  --navy-dark: #0D1B2A;        /* 딥 네이비 (푸터 및 깊이감 있는 컨테이너) */
  --navy-light: #253647;       /* 포인트 네이비 */
  --navy-muted: #334155;       /* 슬레이트 네이비 */
  --navy-text: #0D1B2A;

  --gold-dark: #C63D0D;       /* 짙은 황금색 (보더 & 수치 포인트) */
  --gold-bright: #FF5A1F;     /* 밝은 황금색 (글로우 & 아이콘) */
  --gold-secondary: #FF5A1F;
  --gold-light: #FFF2EC;       /* 연한 황금빛 태그 배경 */
  --gold-gradient: #FF5A1F;
  --gold-glow: rgba(212, 175, 55, 0.3);
  
  --text-main: #0D1B2A;       /* 메인 텍스트 */
  --text-muted: #475569;      /* 부가 텍스트 */

  --border-color: rgba(27, 54, 93, 0.14);
  --border-gold: rgba(163, 112, 18, 0.3);
  --border-color-hover: rgba(212, 175, 55, 0.7);

  --shadow-sm: 0 4px 12px rgba(27, 54, 93, 0.05);
  --shadow-md: 0 10px 25px rgba(27, 54, 93, 0.09);
  --shadow-lg: 0 20px 45px rgba(15, 44, 89, 0.14);

  --accent-blue: #0284C7;
  --accent-green: #16A34A;
  --accent-red: #DC2626;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --font-family: 'Noto Sans KR', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(212, 175, 55, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 90% 60%, rgba(27, 54, 93, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
}

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

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
}

/* ==========================================================================
   Header & Navigation (kjm.jmrep.com Style)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--bg-header);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 2px solid rgba(27, 54, 93, 0.12);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.95rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.logo-img {
  height: 44px;
  width: auto;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gold-bright);
  box-shadow: 0 4px 14px rgba(27, 54, 93, 0.2);
  object-fit: contain;
  transition: var(--transition-fast);
}

.logo-img:hover {
  transform: scale(1.05);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--navy-primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
}

.nav-link {
  font-size: 0.93rem;
  font-weight: 600;
  color: #475569;
  transition: var(--transition-fast);
  padding: 0.5rem 0.25rem;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--navy-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold-gradient);
  border-radius: var(--radius-full);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  padding: 0.58rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--navy-primary);
  color: var(--navy-primary);
}

.btn-outline:hover {
  background: var(--navy-primary);
  color: #FFFFFF;
  border-color: var(--navy-primary);
}

.btn-gold {
  background: var(--navy-primary);
  color: var(--gold-bright);
  border: 1.5px solid var(--gold-bright);
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(27, 54, 93, 0.25);
}

.btn-gold:hover {
  background: var(--gold-gradient);
  color: var(--navy-primary);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--gold-glow);
}

.menu-toggle {
  display: none;
  background: transparent;
  color: var(--navy-primary);
  font-size: 1.4rem;
}

/* ==========================================================================
   Hero Section (kjm.jmrep.com Style)
   ========================================================================== */
.hero-section {
  padding: 9.5rem 2rem 4.5rem;
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-full);
  background: var(--gold-light);
  border: 1.5px solid var(--gold-dark);
  color: var(--gold-dark);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-size: 3.3rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
  color: var(--navy-primary);
}

.hero-title .highlight-gold {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  font-size: 1.125rem;
  color: #475569;
  font-weight: 500;
  word-break: keep-all;
}

/* Search Box Area */
.search-container {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  position: relative;
}

.search-box {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 2px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 0.45rem 0.5rem 0.45rem 1.25rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
}

.search-box:focus-within {
  border-color: var(--navy-primary);
  box-shadow: 0 0 20px rgba(27, 54, 93, 0.2);
}

.search-box i {
  font-size: 1.25rem;
  color: var(--gold-dark);
  margin-right: 0.75rem;
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--navy-primary);
  font-size: 1.05rem;
  font-family: inherit;
  font-weight: 500;
}

.search-input::placeholder {
  color: #94A3B8;
}

.search-btn {
  padding: 0.75rem 1.6rem;
  background: var(--navy-primary);
  color: var(--gold-bright);
  font-weight: 700;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.search-btn:hover {
  background: var(--gold-gradient);
  color: var(--navy-primary);
}

/* Search Category Filter Chips */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  max-width: 950px;
  margin: 0 auto;
}

.chip {
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-full);
  background: #FFFFFF;
  border: 1.5px solid rgba(27, 54, 93, 0.18);
  color: #334155;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.chip:hover, .chip.active {
  background: var(--navy-primary);
  color: var(--gold-bright);
  border-color: var(--navy-primary);
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(27, 54, 93, 0.25);
}

/* Stats Counter */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3.5rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1.5px solid rgba(27, 54, 93, 0.1);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--navy-primary);
  font-family: 'Montserrat', sans-serif;
}

.stat-label {
  font-size: 0.85rem;
  color: #475569;
  font-weight: 600;
  margin-top: 0.25rem;
}

/* ==========================================================================
   Main Content Layout & App Cards (kjm.jmrep.com Style)
   ========================================================================== */
.main-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
}

.section-block {
  margin-bottom: 5rem;
  scroll-margin-top: 6rem;
  transition: var(--transition-normal);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-gold);
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.section-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--navy-primary);
  border: 1.5px solid var(--gold-bright);
  color: var(--gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow-sm);
}

.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--navy-primary);
  letter-spacing: -0.3px;
}

.section-badge {
  font-size: 0.82rem;
  padding: 0.38rem 0.95rem;
  border-radius: var(--radius-full);
  background: #FFFFFF;
  border: 1.5px solid var(--navy-primary);
  color: var(--navy-primary);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

/* App Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.5rem;
}

/* Individual App Card (kjm.jmrep.com Elegant Card Style) */
.app-card {
  background: var(--bg-card);
  border: 1.5px solid rgba(27, 54, 93, 0.14);
  border-top: 4px solid transparent;
  border-radius: var(--radius-md);
  padding: 1.6rem;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.app-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: rgba(27, 54, 93, 0.25);
  border-top-color: var(--gold-bright);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* Featured App Card Style using Main Brand Colors (Royal Navy & Gold) */
.app-card.featured {
  background: linear-gradient(145deg, #0D1B2A 0%, #112544 100%);
  border: 1.5px solid var(--gold-bright);
  border-top: 4px solid var(--gold-bright);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.app-card.featured:hover {
  transform: translateY(-4px);
  background: linear-gradient(145deg, #1E3D6B 0%, #152C52 100%);
  border-color: #F3E5AB;
  border-top-color: #F3E5AB;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.app-card.featured .app-icon {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

.app-card.featured .app-category-tag {
  background: var(--gold-gradient);
  color: var(--navy-primary);
  border: none;
  font-weight: 800;
}

.app-card.featured .app-title {
  color: #FFFFFF;
}

.app-card.featured .app-desc {
  color: #CBD5E1;
}

.app-card.featured .tag-mini {
  background: rgba(255, 255, 255, 0.12);
  color: #F3E5AB;
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.app-card.featured .card-footer {
  border-top-color: rgba(255, 255, 255, 0.15);
}

.app-card.featured .card-status {
  color: #34D399;
}

.app-card.featured .status-dot {
  background-color: #34D399;
}

.app-card.featured .btn-card-launch {
  background: var(--gold-gradient);
  color: var(--navy-primary);
  border: none;
  font-weight: 800;
}

.app-card.featured .btn-card-launch:hover {
  background: #FFFFFF;
  color: var(--navy-primary);
  transform: scale(1.03);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.app-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--navy-primary);
  border: 1.5px solid var(--gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--gold-bright);
  box-shadow: var(--shadow-sm);
}

.app-category-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: var(--gold-light);
  border: 1px solid rgba(163, 112, 18, 0.35);
  color: var(--gold-dark);
}

.app-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--navy-primary);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.app-desc {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  word-break: keep-all;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.tag-mini {
  font-size: 0.74rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  background: #F1F5F9;
  color: var(--navy-primary);
  font-weight: 600;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid #E2E8F0;
}

.card-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--accent-green);
  font-weight: 700;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}

.btn-card-launch {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy-primary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: #F8FAFC;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(27, 54, 93, 0.2);
  transition: var(--transition-fast);
}

.btn-card-launch:hover {
  background: var(--navy-primary);
  color: var(--gold-bright);
  border-color: var(--navy-primary);
}

/* ==========================================================================
   Stock Market Ticker & Widget
   ========================================================================== */
.stock-ticker-banner {
  background: #FFFFFF;
  border: 1.5px solid rgba(27, 54, 93, 0.15);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: space-around;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 1.2rem;
  background: #F8FAFC;
  border-radius: var(--radius-sm);
  border: 1px solid #E2E8F0;
  min-width: 190px;
}

.ticker-symbol {
  font-weight: 800;
  font-size: 1rem;
  color: var(--navy-primary);
  font-family: 'Montserrat', sans-serif;
}

.ticker-name {
  font-size: 0.75rem;
  color: #64748B;
}

.ticker-price {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy-primary);
  font-family: 'Montserrat', sans-serif;
}

.ticker-change {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.ticker-up {
  color: #DC2626;
  background: rgba(220, 38, 38, 0.1);
}

.ticker-down {
  color: #2563EB;
  background: rgba(37, 99, 235, 0.1);
}

/* ==========================================================================
   Lawyer Introduction Section (kjm.jmrep.com Signature Profile Card)
   ========================================================================== */
.profile-section-card {
  background: #FFFFFF;
  border: 2px solid var(--navy-primary);
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.profile-section-card::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.profile-avatar-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.avatar-frame {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  padding: 5px;
  background: var(--gold-gradient);
  box-shadow: 0 10px 25px rgba(27, 54, 93, 0.25);
  margin-bottom: 1.5rem;
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--navy-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
  color: var(--gold-bright);
}

.profile-name {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy-primary);
  margin-bottom: 0.2rem;
}

.profile-title-tag {
  font-size: 0.9rem;
  color: var(--gold-dark);
  font-weight: 700;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.profile-quote {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--navy-primary);
  border-left: 4px solid var(--gold-dark);
  padding-left: 1.25rem;
  word-break: keep-all;
}

.profile-bio {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.7;
}

.profile-credentials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.cred-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--navy-primary);
  font-weight: 600;
}

.cred-item i {
  color: var(--gold-dark);
}

.profile-cta {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

/* ==========================================================================
   Footer (Rich Deep Navy #0D1B2A)
   ========================================================================== */
.site-footer {
  background-color: var(--navy-dark);
  border-top: 3px solid var(--gold-bright);
  padding: 4rem 2rem 2.5rem;
  color: #CBD5E1;
  font-size: 0.88rem;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo-title {
  color: #FFFFFF;
  margin-bottom: 0.75rem;
}

.footer-desc {
  line-height: 1.6;
  margin-bottom: 1.25rem;
  max-width: 380px;
  color: #E2E8F0;
}

.footer-title {
  color: var(--gold-bright);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a:hover {
  color: var(--gold-bright);
}

.disclaimer-box {
  background: rgba(15, 44, 89, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 1.3rem 1.6rem;
  border-radius: var(--radius-sm);
  margin-bottom: 2rem;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #E2E8F0;
}

.disclaimer-box p {
  margin-bottom: 0.5rem;
}

.disclaimer-box p:last-child {
  margin-bottom: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: #CBD5E1;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-bright);
  transition: var(--transition-fast);
}

.social-icon:hover {
  background: var(--gold-gradient);
  color: var(--navy-primary);
}

/* ==========================================================================
   Modals
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 44, 89, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1.5rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #FFFFFF;
  border: 2px solid var(--navy-primary);
  border-radius: var(--radius-lg);
  max-width: 750px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  color: var(--navy-primary);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  color: var(--navy-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.modal-close:hover {
  color: #FFFFFF;
  background: var(--accent-red);
  border-color: transparent;
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.modal-app-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  background: var(--navy-primary);
  color: var(--gold-bright);
  border: 1.5px solid var(--gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.modal-app-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy-primary);
}

.modal-app-tag {
  font-size: 0.8rem;
  color: var(--gold-dark);
  font-weight: 700;
}

.modal-body {
  margin-bottom: 2rem;
}

/* Demo Calculator Container in Modal */
.demo-calc-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy-primary);
  margin-bottom: 0.5rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: var(--radius-sm);
  color: var(--navy-primary);
  font-size: 0.95rem;
  font-family: inherit;
  font-weight: 500;
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--navy-primary);
  box-shadow: 0 0 10px rgba(27, 54, 93, 0.2);
}

.calc-result-box {
  background: var(--gold-light);
  border: 1.5px dashed var(--gold-dark);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: center;
  margin-top: 1rem;
}

.calc-result-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy-primary);
  font-family: 'Montserrat', sans-serif;
}

/* Auth Tabs */
.auth-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #E2E8F0;
}

.auth-tab {
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: #64748B;
  font-weight: 700;
  font-size: 1rem;
  position: relative;
}

.auth-tab.active {
  color: var(--navy-primary);
}

.auth-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold-gradient);
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .profile-section-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2.5rem 1.5rem;
  }
  .profile-avatar-box {
    margin-bottom: 1rem;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 0.8rem 1.25rem;
  }
  .nav-menu {
    display: none;
  }
  .nav-menu.mobile-active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #FFFFFF;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
  }
  .menu-toggle {
    display: block;
  }
  .hero-section {
    padding: 7.5rem 1.25rem 3.5rem;
  }
  .hero-title {
    font-size: 2rem;
  }
  .search-box {
    flex-direction: column;
    padding: 0.75rem;
    gap: 0.75rem;
  }
  .search-input {
    width: 100%;
  }
  .search-btn {
    width: 100%;
  }
  .hero-stats {
    gap: 1.5rem;
    flex-wrap: wrap;
  }
  .main-container {
    padding: 0 1.25rem 4rem;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* Compact mobile typography and intrinsic-size safeguards. */
.mobile-copy { display: none; }
@media (max-width: 1100px) {
  .header-container { flex-wrap: wrap; gap: .75rem; }
  .header-container nav { order: 3; width: 100%; }
  .nav-menu { justify-content: center; }
  .nav-link { white-space: nowrap; }
}
@media (max-width: 768px) {
  .desktop-copy { display: none; }
  .mobile-copy { display: inline; }
  .header-container { flex-wrap: nowrap; padding: .65rem 1rem; gap: .5rem; }
  .header-container nav { width: 0; flex: 0; }
  .logo-area { gap: .45rem; flex-shrink: 0; }
  .logo-img { width: 34px; height: 34px; }
  .logo-title { font-size: 1.1rem; }
  .header-actions { gap: .4rem; flex-shrink: 0; }
  .header-actions .btn { padding: .45rem .55rem; font-size: .8125rem; min-height: 40px; }
  .header-actions .btn i { display: none; }
  .menu-toggle { width: 36px; min-height: 40px; }
  .btn, .btn-card-launch, .chip, .tag-mini, .app-category-tag { white-space: nowrap; }
  .btn, .btn-card-launch { justify-content: center; }
  .hero-section { padding: 6.25rem 1rem 2.5rem; }
  .hero-badge { font-size: .75rem; padding: .4rem .65rem; margin-bottom: 1rem; }
  .hero-title { font-size: clamp(1.15rem, 4.8vw, 2rem); line-height: 1.5; letter-spacing: -.04em; }
  .hero-title .highlight-gold { white-space: nowrap; }
  .hero-description { font-size: .9375rem; line-height: 1.75; margin-bottom: 1.5rem; }
  .search-container { margin-bottom: 1.25rem; }
  .search-box { flex-direction: row; gap: .5rem; padding: .4rem .5rem; }
  .search-box i { font-size: 1rem; margin-right: 0; }
  .search-input { min-width: 0; width: 0; font-size: 1rem; }
  .search-btn { width: auto; flex-shrink: 0; padding: .65rem .8rem; font-size: .875rem; }
  .filter-chips { gap: .4rem; }
  .chip { padding: .4rem .65rem; font-size: .8125rem; min-height: 36px; }
  .hero-stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.25rem .75rem; margin-top: 1.75rem; padding-top: 1.5rem; }
  .stat-value { font-size: 1.5rem; white-space: nowrap; }
  .stat-label { font-size: .8125rem; }
  .main-container { padding: 0 1rem 3rem; }
  .section-block { margin-bottom: 2.5rem; }
  .section-header { gap: .6rem; margin-bottom: 1rem; }
  .section-title-wrap { min-width: 0; max-width: 100%; gap: .6rem; }
  .section-title-wrap > div { min-width: 0; }
  .section-icon { width: 34px; height: 34px; flex-shrink: 0; font-size: 1rem; }
  .section-title { font-size: 1.25rem; line-height: 1.4; white-space: nowrap; }
  .section-badge { display: none; }
  .cards-grid { grid-template-columns: minmax(0,1fr); gap: 1rem; }
  .app-card { padding: 1.125rem; min-width: 0; }
  .app-card > div, .card-top { min-width: 0; }
  .card-top { gap: .5rem; margin-bottom: .8rem; align-items: center; }
  .app-icon { width: 40px; height: 40px; flex-shrink: 0; font-size: 1.125rem; }
  .app-category-tag { font-size: .75rem; overflow: hidden; text-overflow: ellipsis; }
  .app-title { font-size: 1rem; line-height: 1.5; letter-spacing: -.025em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .app-desc { font-size: .875rem; line-height: 1.65; margin-bottom: .9rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .card-tags { flex-wrap: nowrap; overflow: hidden; gap: .3rem; margin-bottom: 1rem; }
  .tag-mini { font-size: .75rem; padding: .2rem .45rem; flex-shrink: 0; }
  .card-footer { gap: .5rem; padding-top: .8rem; }
  .card-status { font-size: .75rem; white-space: nowrap; flex-shrink: 0; }
  .status-dot { flex-shrink: 0; }
  .btn-card-launch { font-size: .8125rem; padding: .55rem .7rem; flex-shrink: 0; min-height: 40px; }
  .stock-ticker-banner { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); padding: .65rem; gap: .5rem; }
  .ticker-item { min-width: 0; padding: .65rem .5rem; gap: .35rem; flex-direction: column; align-items: flex-start; }
  .ticker-item > div { min-width: 0; max-width: 100%; }
  .ticker-symbol, .ticker-price { font-size: .875rem; white-space: nowrap; }
  .ticker-name { font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .stock-ticker-banner > div:not(.ticker-item) { grid-column: 1 / -1; line-height: 1.6; }
  .profile-section-card { padding: 1.5rem 1rem; gap: 1.25rem; }
  .profile-info { min-width: 0; gap: 1rem; }
  .profile-quote { font-size: 1rem; text-align: left; padding-left: .75rem; }
  .profile-bio { font-size: .9375rem; text-align: left; }
  .profile-credentials { grid-template-columns: minmax(0,1fr); gap: .75rem; text-align: left; }
  .cred-item { font-size: .8125rem; align-items: baseline; overflow-wrap: anywhere; }
  .cred-item i { flex-shrink: 0; }
  .profile-cta { flex-direction: column; gap: .65rem; }
  .profile-cta .btn { width: 100%; font-size: .875rem; min-height: 44px; padding: .65rem; }
  .site-footer { padding: 2.5rem 1rem 1.5rem; }
  .footer-bottom { font-size: .75rem; overflow-wrap: anywhere; }
  .modal-overlay { padding: .75rem; }
  .modal-content { padding: 1.25rem; max-width: 100%; }
  .modal-header { gap: .6rem; padding-right: 1rem; }
  .modal-header > div { min-width: 0; }
  .modal-app-icon { display: none; }
  .modal-app-title { font-size: 1.125rem; line-height: 1.5; overflow-wrap: anywhere; }
  .modal-content > div:last-child { flex-wrap: wrap; gap: .5rem !important; }
  .modal-content .btn { font-size: .8125rem; max-width: 100%; padding: .6rem .7rem; }
  .demo-calc-box { padding: 1rem; }
  .demo-calc-box > div[style*="grid"] { grid-template-columns: minmax(0,1fr) !important; }
  .demo-calc-box h4, .demo-calc-box a { overflow-wrap: anywhere; }
  .demo-calc-box a.btn { white-space: normal; }
  .form-input, .form-select, .form-textarea { min-width: 0; font-size: 1rem; }
}

/* Supplied portrait and personal-site link. */
.avatar-img.profile-photo { display: block; object-fit: cover; object-position: center; background-color: #eef2f7; }
/* Equal-width profile actions; stack on mobile. */
.profile-cta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.profile-cta .btn { width: 100%; min-width: 0; min-height: 44px; justify-content: center; white-space: nowrap; }
@media (max-width: 768px) {
  .profile-cta { grid-template-columns: minmax(0, 1fr); gap: .65rem; }
}

/* Shared visual language: editorial typography, paper surfaces, restrained accents. */
:root {
  --bg-header: rgba(246,245,241,.97);
  --border-color: #dcded8;
  --border-gold: #dcded8;
  --border-color-hover: #0d1b2a;
  --shadow-sm: none;
  --shadow-md: 0 8px 24px rgba(13,27,42,.05);
  --shadow-lg: 0 12px 32px rgba(13,27,42,.06);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
}
body { background-image: none; color: #0d1b2a; }
.site-header { background: var(--bg-header); border-bottom: 1px solid #d6d7d1; box-shadow: none; }
.header-container { gap: 1rem; }
.logo-img { border: 0; box-shadow: none; }
.logo-title { letter-spacing: -.06em; font-weight: 800; }
.nav-menu { gap: 1rem; }
.nav-link { font-size: .875rem; white-space: nowrap; }
.nav-link.active::after { height: 2px; }
.btn { min-height: 44px; justify-content: center; border-radius: 5px; }
.btn-gold { background: #ff5a1f; border: 1px solid #ff5a1f; color: #0d1b2a; box-shadow: none; }
.btn-gold:hover { background: #e74712; border-color: #e74712; color: #fff; box-shadow: none; transform: none; }
.btn-outline { border: 1px solid #adb2b5; background: transparent; }
.hero-section { text-align: left; padding-top: 8.5rem; padding-bottom: 3.5rem; }
.hero-badge { display: flex; justify-content: flex-start; border: 0; border-bottom: 1px solid #aeb3b6; border-radius: 0; padding: 0 0 1rem; background: none; color: #53616b; box-shadow: none; font-family: ui-monospace, monospace; letter-spacing: .12em; font-size: .75rem; }
.hero-badge i { display: none; }
.hero-title { font-size: clamp(2rem,4vw,3.7rem); font-weight: 800; letter-spacing: -.055em; line-height: 1.3; margin: 2.5rem 0 1.25rem; }
.hero-title .highlight-gold { background: none; -webkit-text-fill-color: currentColor; color: #c63d0d; }
.hero-description { margin: 0 0 2rem; max-width: 760px; font-size: 1rem; line-height: 1.85; font-weight: 400; color: #606965; }
.search-container { margin: 0 0 1.25rem; max-width: 760px; }
.search-box { border: 1px solid #dcded8; box-shadow: var(--shadow-md); border-radius: 10px; }
.search-box i { color: #747e76; }
.search-box:focus-within { box-shadow: 0 0 0 3px #2563eb22; border-color: #2563eb; }
.search-btn { background: #2563eb; color: #fff; border-radius: 6px; }
.search-btn:hover { background: #1d4ed8; color: #fff; }
.filter-chips { margin: 0; justify-content: flex-start; max-width: none; }
.chip { border: 1px solid #dcded8; box-shadow: none; border-radius: 6px; background: transparent; font-weight: 500; }
.chip:hover, .chip.active { background: #0d1b2a; border-color: #0d1b2a; color: #fff; box-shadow: none; }
.hero-stats { justify-content: stretch; gap: 0; border-top: 1px solid #b5bab9; padding-top: 1.5rem; margin-top: 2.5rem; }
.stat-item { flex: 1; align-items: flex-start; padding: 0 1.5rem; border-left: 1px solid #dcded8; }
.stat-item:first-child { padding-left: 0; border-left: 0; }
.stat-value { font-size: 1.7rem; letter-spacing: -.04em; }
.stat-label { color: #606965; font-weight: 400; }
.section-header { border-bottom: 1px solid #aeb3b6; padding-bottom: 1rem; }
.section-title { font-size: 1.5rem; letter-spacing: -.035em; }
.section-icon { border: 0; background: transparent; color: #c63d0d; box-shadow: none; width: 32px; }
.section-badge { border: 0; background: transparent; color: #606965; font-size: .8125rem; font-weight: 400; box-shadow: none; }
.app-card, .app-card.featured { background: #fff; border: 1px solid #dcded8; border-top: 1px solid #dcded8; box-shadow: none; padding: 1.5rem; }
.app-card:hover, .app-card.featured:hover { background: #fff; border-color: #89958f; box-shadow: var(--shadow-md); transform: translateY(-3px); }
.app-card.featured { border-top: 3px solid #0d1b2a; }
.app-icon, .app-card.featured .app-icon { background: #f1f2ed; border: 0; color: #53614f; box-shadow: none; border-radius: 10px; }
.app-card.featured .app-title { color: #0d1b2a; }
.app-desc, .app-card.featured .app-desc { color: #626c66; font-weight: 400; }
.app-category-tag, .app-card.featured .app-category-tag { background: transparent; color: #65716b; border: 0; font-family: ui-monospace,monospace; font-size: .75rem; letter-spacing: .04em; }
.tag-mini, .app-card.featured .tag-mini { border: 0; background: #f4f4f0; color: #5d685f; font-weight: 400; border-radius: 4px; }
.card-footer, .app-card.featured .card-footer { border-top: 1px solid #e9ebe5; }
.card-status, .app-card.featured .card-status { color: #526650; font-weight: 500; }
.status-dot, .app-card.featured .status-dot { background: #738b69; box-shadow: none; }
.btn-card-launch, .app-card.featured .btn-card-launch { color: #0d1b2a; border: 1px solid #dcded8; background: #fff; font-weight: 600; }
.btn-card-launch:hover, .app-card.featured .btn-card-launch:hover { background: #0d1b2a; color: #fff; border-color: #0d1b2a; transform: none; }
.stock-ticker-banner { background: #eeefea; border: 1px solid #dcded8; box-shadow: none; }
.ticker-item { background: #fff; border: 1px solid #e1e3dd; }
.profile-section-card { border: 1px solid #dcded8; box-shadow: none; background: #fff; }
.profile-section-card::after { display: none; }
.avatar-frame { background: #0d1b2a; padding: 2px; box-shadow: none; }
.profile-title-tag { color: #c63d0d; }
.profile-quote { border-left: 2px solid #ff5a1f; font-weight: 600; }
.profile-bio { color: #606965; }
.cred-item { font-weight: 500; }
.site-footer { background: #0d1b2a; border-top: 0; }
.footer-title { color: #fff; }
.footer-brand .logo-title { color: #fff; }
.modal-content { border: 1px solid #dcded8; box-shadow: var(--shadow-lg); }
.modal-app-icon { background: #f1f2ed; color: #0d1b2a; border: 0; }
:focus-visible { outline: 3px solid #2563eb; outline-offset: 4px; }
@media (max-width: 768px) {
  .header-container { gap: .4rem; }
  .hero-section { padding: 6rem 1rem 2.5rem; }
  .hero-badge { font-size: .65rem; letter-spacing: .07em; padding-bottom: .8rem; }
  .hero-title { font-size: clamp(1.15rem,4.8vw,2rem); line-height: 1.5; margin-top: 1.5rem; }
  .hero-description { font-size: .9375rem; margin-bottom: 1.5rem; }
  .hero-stats { gap: 1.25rem .75rem; }
  .stat-item { padding: 0; border: 0; }
  .stat-value { font-size: 1.5rem; }
  .section-title { font-size: 1.25rem; }
  .section-header { padding-bottom: .65rem; }
  .app-card, .app-card.featured { padding: 1.125rem; }
  .nav-menu.mobile-active { background: #f6f5f1; }
}

/* Navy brand accents and burgundy stock-card top borders. */
:root {
  --navy-primary: #172e50;
  --gold-dark: #172e50;
  --gold-bright: #172e50;
  --gold-secondary: #172e50;
  --gold-gradient: #172e50;
  --gold-light: #eef2f7;
}
.hero-title .highlight-gold, .section-icon, .profile-title-tag { color: #172e50; }
.btn-gold, .search-btn { background: #172e50; border-color: #172e50; color: #fff; }
.btn-gold:hover, .search-btn:hover { background: #0e203b; border-color: #0e203b; color: #fff; }
.chip.active, .chip:hover { background: #172e50; border-color: #172e50; color: #fff; }
.profile-quote { border-left-color: #172e50; }
.search-box:focus-within { border-color: #172e50; box-shadow: 0 0 0 3px #172e5022; }
:focus-visible { outline-color: #172e50; }
#stocks-section .app-card, #stocks-section .app-card:hover { border-top: 3px solid #851c2b; }

/* Section identity: matching heading icons and card top borders. */
#stocks-section { --section-accent: #851c2b; }
#stocks-section .section-icon { color: var(--section-accent); }
#stocks-section .app-card, #stocks-section .app-card:hover { border-top: 3px solid var(--section-accent); }
#legal-apps { --section-accent: #c49a28; }
#legal-apps .section-icon { color: var(--section-accent); }
#legal-apps .app-card, #legal-apps .app-card:hover { border-top: 3px solid var(--section-accent); }
#office-apps { --section-accent: #2563eb; }
#office-apps .section-icon { color: var(--section-accent); }
#office-apps .app-card, #office-apps .app-card:hover { border-top: 3px solid var(--section-accent); }
#edu-apps { --section-accent: #ea761b; }
#edu-apps .section-icon { color: var(--section-accent); }
#edu-apps .app-card, #edu-apps .app-card:hover { border-top: 3px solid var(--section-accent); }
#creative-apps { --section-accent: #b394dc; }
#creative-apps .section-icon { color: var(--section-accent); }
#creative-apps .app-card, #creative-apps .app-card:hover { border-top: 3px solid var(--section-accent); }
#hobby-apps { --section-accent: #7c3ab7; }
#hobby-apps .section-icon { color: var(--section-accent); }
#hobby-apps .app-card, #hobby-apps .app-card:hover { border-top: 3px solid var(--section-accent); }

/* Service status follows the presence of a configured service URL. */
.app-url { color: #606965; font-size: .875rem; margin: -.15rem 0 .7rem; overflow-wrap: anywhere; }
.app-card[data-service-status="active"] .status-dot { background-color: #16a34a; box-shadow: none; }
.app-card[data-service-status="pending"] .status-dot { background-color: #738b69; box-shadow: none; }
.app-card[data-service-status="pending"] .card-status { color: #606965; }
:is(#stocks-section, #legal-apps, #office-apps, #edu-apps, #creative-apps, #hobby-apps) .app-card[data-service-status="pending"],
:is(#stocks-section, #legal-apps, #office-apps, #edu-apps, #creative-apps, #hobby-apps) .app-card[data-service-status="pending"]:hover { border-top: 1px solid #dcded8; }

/* Preserve the supplied wide logo proportions. */
.logo-img.jm-brand-logo { width: 73px; height: 44px; object-fit: contain; border-radius: 0; flex-shrink: 0; }
@media (max-width: 768px) {
  .logo-img.jm-brand-logo { width: 56px; height: 34px; }
  .site-header .logo-title { font-size: 1rem; }
  .site-header .header-actions { gap: .25rem; }
}

.profile-cta a[href="https://kjm.jmrep.com"]:hover {
  background: #fff;
  color: #172e50;
  border-color: #172e50;
}

/* Center the footer mark and wordmark on the same vertical axis. */
.footer-brand .logo-area { display: flex; align-items: center; }
.footer-brand .logo-text { display: flex; justify-content: center; align-self: stretch; }
.footer-brand .logo-title { display: block; line-height: 1; }
.footer-brand .jm-brand-logo { display: block; }
.footer-brand .logo-title { margin-bottom: 0; }
