/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-primary: #1a1a2e;
  --color-accent: #c8102e;
  --color-accent-dark: #a00d24;
  --color-gold: #b8860b;
  --color-gold-light: #d4a843;
  --color-bg: #fafaf8;
  --color-bg-alt: #f0efe9;
  --color-text: #1a1a2e;
  --color-text-muted: #6b6b7b;
  --color-border: #e0dfd8;
  --color-white: #ffffff;
  --font-main: 'Noto Sans KR', sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

html { font-size: 16px; }
body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: transform var(--transition), box-shadow var(--transition);
}
.nav--hidden { transform: translateY(-100%); }
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo { display: flex; align-items: baseline; gap: 8px; }
.logo-ef {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--color-primary);
}
.logo-sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-muted);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--color-accent); }
.nav-cta {
  background: var(--color-accent);
  color: var(--color-white) !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 600;
  transition: background var(--transition);
}
.nav-cta:hover { background: var(--color-accent-dark); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 300px;
  background: linear-gradient(135deg, #e8e7e3 0%, #d8d7d3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0,0,0,0.3);
  font-size: 14px;
  text-align: center;
  padding: 20px;
  border: 2px dashed rgba(0,0,0,0.1);
  border-radius: var(--radius-md);
  min-height: 200px;
}
.image-placeholder.large { min-height: 400px; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,26,46,0.3) 0%, rgba(26,26,46,0.7) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
  padding: 0 24px;
}
.hero-badge {
  display: inline-block;
  padding: 6px 20px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1px;
  margin-bottom: 32px;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.08);
}
.hero-title { margin-bottom: 24px; }
.hero-brand {
  display: block;
  font-size: clamp(48px, 10vw, 96px);
  font-weight: 900;
  letter-spacing: 8px;
  line-height: 1.1;
}
.hero-name {
  display: block;
  font-size: clamp(20px, 4vw, 36px);
  font-weight: 300;
  letter-spacing: 4px;
  margin-top: 8px;
}
.hero-desc {
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 40px;
  opacity: 0.85;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}
.btn-primary:hover { background: var(--color-accent-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255,255,255,0.4);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 10px;
  letter-spacing: 3px;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: -40px;
  left: 0;
  width: 100%;
  height: 40px;
  background: white;
  animation: scrollDown 2s infinite;
}
@keyframes scrollDown {
  0% { transform: translateY(0); }
  100% { transform: translateY(80px); }
}

/* ===== GRAVITY SECTION (Matter.js) ===== */
.gravity-section {
  position: relative;
  height: 520px;
  background: var(--color-primary);
  overflow: hidden;
}
#matterCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.gravity-content {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 5;
  color: var(--color-white);
  pointer-events: none;
  width: 90%;
}
.section-title-sm {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 2px;
  opacity: 0.6;
  margin-bottom: 8px;
}
.gravity-text {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 700;
}
.gravity-badges {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}
.g-badge {
  position: absolute;
  padding: 10px 20px;
  color: white;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: auto;
  cursor: grab;
  user-select: none;
  opacity: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.g-badge:nth-child(1)  { background: #c8102e; } /* 레드 — 브랜드 */
.g-badge:nth-child(2)  { background: #2563eb; } /* 블루 */
.g-badge:nth-child(3)  { background: #0d9488; } /* 틸 */
.g-badge:nth-child(4)  { background: #7c3aed; } /* 퍼플 */
.g-badge:nth-child(5)  { background: #c8102e; } /* 레드 */
.g-badge:nth-child(6)  { background: #0891b2; } /* 시안 */
.g-badge:nth-child(7)  { background: #be185d; } /* 핑크 */
.g-badge:nth-child(8)  { background: #059669; } /* 에메랄드 */
.g-badge:nth-child(9)  { background: #d97706; } /* 앰버 */
.g-badge:nth-child(10) { background: #4f46e5; } /* 인디고 */
.g-badge:nth-child(11) { background: #dc2626; } /* 로즈 */
.g-badge:nth-child(12) { background: #0284c7; } /* 스카이 */
.g-badge:active { cursor: grabbing; }

/* ===== SECTIONS (COMMON) ===== */
.section {
  padding: clamp(60px, 8vw, 120px) 0;
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 16px;
}
.section-desc {
  font-size: 16px;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== OVERVIEW ===== */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.overview-image {
  border-radius: var(--radius-md);
  overflow: hidden;
}
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
}
.info-table th, .info-table td {
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}
.info-table th {
  font-weight: 600;
  color: var(--color-primary);
  width: 120px;
  white-space: nowrap;
}
.info-table td { color: var(--color-text-muted); }
.overview-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.highlight-item {
  text-align: center;
  padding: 20px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
}
.highlight-num {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 4px;
}
.highlight-label {
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ===== LOCATION ===== */
.section-location { background: var(--color-bg-alt); }
.location-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.loc-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.loc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.loc-icon {
  color: var(--color-accent);
  margin-bottom: 16px;
}
.loc-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-primary);
}
.loc-card li {
  font-size: 13px;
  color: var(--color-text-muted);
  padding: 4px 0;
  padding-left: 12px;
  position: relative;
}
.loc-card li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

.location-image-area {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* ===== LAYOUT (SITE PLAN) ===== */
.layout-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.layout-feat {
  text-align: center;
  padding: 28px 16px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
}
.feat-number {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 4px;
}
.feat-label {
  font-size: 13px;
  color: var(--color-text-muted);
  font-weight: 500;
}
.layout-image-area {
  margin-bottom: 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.layout-details {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.layout-detail-card {
  padding: 24px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-accent);
}
.layout-detail-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-primary);
}
.layout-detail-card p {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ===== FLOORPLAN ===== */
.section-floorplan { background: var(--color-bg-alt); }
.type-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 40px;
}
.type-tab {
  padding: 10px 20px;
  border: 1px solid var(--color-border);
  border-radius: 30px;
  background: var(--color-white);
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.type-tab:hover { border-color: var(--color-accent); color: var(--color-accent); }
.type-tab.active {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.type-panel { display: none; }
.type-panel.active { display: block; animation: fadeIn 0.4s ease; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.type-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.type-image-box {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-white);
}
.type-image-box .image-placeholder { min-height: 350px; }
.type-details {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 32px;
}
.type-details h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 20px;
}
.type-pyeong {
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text-muted);
}
.type-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}
.type-table th, .type-table td {
  padding: 10px 12px;
  font-size: 13px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}
.type-table th {
  font-weight: 600;
  color: var(--color-primary);
  width: 110px;
  white-space: nowrap;
}
.type-table td { color: var(--color-text-muted); }
.type-table tr:last-child { border-bottom: 2px solid var(--color-primary); }
.type-table tr:last-child td { font-weight: 600; color: var(--color-primary); }
.type-provided {
  margin-bottom: 20px;
  padding: 16px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
}
.type-provided h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 8px;
}
.type-provided p {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.7;
}
.type-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tf-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(200,16,46,0.08);
  color: var(--color-accent);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* ===== COMMUNITY ===== */
.community-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}
.comm-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}
.comm-card:hover { transform: translateY(-4px); }
.comm-card-large {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--color-primary) 0%, #2d2d4a 100%);
  color: var(--color-white);
}
.comm-card-large h3 { color: var(--color-white); }
.comm-card-large p { color: rgba(255,255,255,0.7); }
.comm-icon { font-size: 32px; margin-bottom: 16px; }
.comm-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.comm-card p {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.community-compare {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.community-compare h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--color-primary);
}
.compare-table-wrap { overflow-x: auto; }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.compare-table th, .compare-table td {
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}
.compare-table th {
  background: var(--color-bg-alt);
  font-weight: 600;
  color: var(--color-primary);
}
.compare-table td { color: var(--color-text-muted); }
.compare-highlight td {
  background: rgba(200,16,46,0.05);
  color: var(--color-accent);
  font-weight: 700;
}

/* ===== BENEFITS ===== */
.section-benefits { background: var(--color-bg-alt); }
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.benefit-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.benefit-icon { font-size: 36px; margin-bottom: 16px; }
.benefit-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
}
.benefit-card p {
  font-size: 14px;
  color: var(--color-text-muted);
}
.benefit-highlight {
  grid-column: span 3;
  background: linear-gradient(135deg, var(--color-primary) 0%, #2d2d4a 100%);
  color: var(--color-white);
  text-align: left;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
}
.benefit-highlight h3 { color: var(--color-white); }
.benefit-highlight p { color: rgba(255,255,255,0.7); margin-bottom: 16px; }
.ac-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ac-list li {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  padding-left: 16px;
  position: relative;
}
.ac-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--color-accent);
}
.ac-list strong { color: var(--color-white); font-weight: 700; }
.benefit-note {
  text-align: center;
  padding: 20px;
  background: rgba(200,16,46,0.06);
  border-radius: var(--radius-md);
  border: 1px solid rgba(200,16,46,0.15);
}
.benefit-note p {
  font-size: 16px;
  color: var(--color-accent);
  font-weight: 600;
}

/* ===== REGISTER ===== */
.register-form {
  max-width: 700px;
  margin: 0 auto;
  background: var(--color-white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { margin-bottom: 16px; }
.form-group.full-row { flex: 0 0 100%; }
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
}
.required { color: var(--color-accent); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: border-color var(--transition);
  outline: none;
  background: var(--color-bg);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
}
.form-group textarea { resize: vertical; }
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-muted);
  cursor: pointer;
}
.checkbox-label input { margin-top: 2px; accent-color: var(--color-accent); }
.btn-submit {
  width: 100%;
  margin-top: 8px;
  padding: 16px;
  font-size: 16px;
}

.form-success {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 80px 40px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.form-success h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.form-success p {
  font-size: 14px;
  color: var(--color-text-muted);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.6);
  padding: 48px 0 32px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 24px;
}
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-brand .logo-ef { color: var(--color-white); font-size: 24px; }
.footer-brand-sub { font-size: 13px; color: rgba(255,255,255,0.5); }
.footer-contact p { font-size: 13px; margin-bottom: 4px; }
.footer-bottom { text-align: center; }
.footer-disclaimer {
  font-size: 11px;
  line-height: 1.7;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
}
.footer-credit a {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}
.footer-credit a:hover { color: rgba(255,255,255,0.7); }

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .location-cards { grid-template-columns: repeat(2, 1fr); }
  .layout-features { grid-template-columns: repeat(2, 1fr); }
  .layout-details { grid-template-columns: repeat(2, 1fr); }
  .community-grid { grid-template-columns: repeat(2, 1fr); }
  .comm-card-large { grid-column: span 2; }
  .benefits-grid { grid-template-columns: 1fr; }
  .benefit-highlight { grid-column: span 1; grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    transform: translateY(-120%);
    transition: transform var(--transition);
    border-bottom: 1px solid var(--color-border);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: flex; }
  
  .overview-grid { grid-template-columns: 1fr; }
  .type-info-grid { grid-template-columns: 1fr; }
  .location-cards { grid-template-columns: 1fr; }
  .layout-features { grid-template-columns: repeat(2, 1fr); }
  .layout-details { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr; }
  .comm-card-large { grid-column: span 1; }
  
  .form-row { grid-template-columns: 1fr; }
  .register-form { padding: 24px; }
  
  .type-tabs { gap: 6px; }
  .type-tab { padding: 8px 14px; font-size: 12px; }
  
  .gravity-section { height: 480px; }
  
  .footer-top { flex-direction: column; gap: 24px; }
  
  .hero-brand { letter-spacing: 4px; }
}

@media (max-width: 480px) {
  .layout-features { grid-template-columns: 1fr 1fr; }
  .overview-highlights { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 280px; }
}
/* Community Floor Plan Tabs */
.community-floor-plans {
  margin-top: 48px;
  margin-bottom: 48px;
}
.comm-floor-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a2e;
  text-align: center;
  margin-bottom: 24px;
}
.comm-floor-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}
.comm-floor-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 28px;
  border: 2px solid #ddd;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  color: #555;
  transition: all 0.3s ease;
}
.comm-floor-tab span {
  font-size: 12px;
  font-weight: 400;
  color: #999;
}
.comm-floor-tab.active {
  border-color: #c8102e;
  background: #c8102e;
  color: #fff;
}
.comm-floor-tab.active span {
  color: rgba(255,255,255,0.85);
}
.comm-floor-tab:hover:not(.active) {
  border-color: #c8102e;
  color: #c8102e;
}
.comm-floor-tab:hover:not(.active) span {
  color: #c8102e;
}
.comm-floor-panels {
  position: relative;
  width: 100%;
  background: #f8f8f8;
  border-radius: 12px;
  overflow: hidden;
}
.comm-floor-panel {
  display: none;
  animation: fadeIn 0.4s ease;
}
.comm-floor-panel.active {
  display: block;
}
.comm-floor-panel img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

@media (max-width: 768px) {
  .comm-floor-tabs { flex-direction: column; gap: 8px; }
  .comm-floor-tab { flex-direction: row; gap: 10px; padding: 12px 16px; }
  .comm-floor-title { font-size: 18px; }
}

/* Community Chips (compact) */
.comm-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}
.comm-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  transition: all 0.2s;
}
.comm-chip:hover {
  border-color: #c8102e;
  background: #fef2f2;
  color: #c8102e;
}
.chip-icon { font-size: 18px; }
.chip-label { white-space: nowrap; }

@media (max-width: 768px) {
  .comm-chip { padding: 8px 14px; font-size: 13px; }
  .chip-icon { font-size: 16px; }
}

/* Section notice */
.section-notice {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 20px;
  background: rgba(200, 16, 46, 0.08);
  border: 1px solid rgba(200, 16, 46, 0.2);
  border-radius: 6px;
  font-size: 14px;
  color: #c8102e;
  font-weight: 500;
}

/* Location Hero Map - 강조 */
.location-hero-map {
  margin-bottom: 40px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border: 3px solid #c8102e;
  position: relative;
}
.location-hero-map img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}
.location-hero-map:hover img {
  transform: scale(1.02);
}

/* ===== GALAXY FOLD 5 (folded) & narrow screens ===== */
@media (max-width: 320px) {
  /* Container */
  .container { padding: 0 12px; }

  /* NAV */
  .nav-inner { padding: 0 12px; height: 56px; }
  .logo-ef { font-size: 18px; letter-spacing: 1px; }
  .logo-sub { font-size: 10px; }

  /* HERO */
  .hero-badge {
    font-size: 11px;
    padding: 5px 12px;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    word-break: keep-all;
  }
  .hero-brand {
    font-size: clamp(36px, 14vw, 48px);
    letter-spacing: 2px;
  }
  .hero-name {
    font-size: clamp(14px, 5vw, 20px);
    letter-spacing: 1px;
  }
  .hero-desc {
    font-size: 12px;
    line-height: 1.7;
    margin-bottom: 24px;
    word-break: keep-all;
  }
  .hero-content { padding: 0 12px; }
  .hero-actions { gap: 10px; }
  .btn {
    padding: 12px 20px;
    font-size: 13px;
    max-width: 240px;
  }
  .hero-scroll-hint { bottom: 20px; }

  /* GRAVITY */
  .gravity-section { height: 460px; }
  .gravity-text { font-size: 20px; }
  .g-badge { padding: 6px 12px; font-size: 11px; }

  /* SECTION COMMON */
  .section { padding: clamp(40px, 6vw, 60px) 0; }
  .section-header { margin-bottom: 32px; }
  .section-label { font-size: 10px; letter-spacing: 2px; }
  .section-title { font-size: clamp(22px, 7vw, 28px); }
  .section-desc { font-size: 13px; word-break: keep-all; }

  /* OVERVIEW */
  .info-table th {
    font-size: 12px;
    width: 80px;
    padding: 8px 6px;
    white-space: normal;
    word-break: keep-all;
  }
  .info-table td {
    font-size: 12px;
    padding: 8px 6px;
    word-break: keep-all;
  }
  .highlight-num { font-size: 22px; }
  .highlight-label { font-size: 11px; }
  .highlight-item { padding: 14px 10px; }

  /* LOCATION */
  .location-hero-map {
    border-radius: 10px;
    margin-bottom: 24px;
    border-width: 2px;
  }
  .loc-card { padding: 18px 14px; }
  .loc-card h3 { font-size: 14px; margin-bottom: 8px; }
  .loc-card li {
    font-size: 12px;
    line-height: 1.5;
    padding: 3px 0 3px 10px;
    word-break: keep-all;
  }
  .loc-icon svg { width: 30px; height: 30px; }
  .loc-icon { margin-bottom: 10px; }

  /* LAYOUT (SITE PLAN) */
  .layout-features { grid-template-columns: 1fr 1fr; gap: 10px; }
  .layout-feat { padding: 16px 8px; }
  .feat-number { font-size: 22px; }
  .feat-label { font-size: 11px; word-break: keep-all; }
  .layout-details { grid-template-columns: 1fr; gap: 12px; }
  .layout-detail-card { padding: 16px; }
  .layout-detail-card h3 { font-size: 13px; }
  .layout-detail-card p { font-size: 12px; line-height: 1.5; word-break: keep-all; }

  /* FLOORPLAN TYPE TABS */
  .type-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    justify-content: stretch;
  }
  .type-tab {
    padding: 6px 4px;
    font-size: 11px;
    border-radius: 6px;
    white-space: nowrap;
    text-align: center;
  }
  .type-info-grid { gap: 20px; }
  .type-details { padding: 18px 14px; }
  .type-details h3 { font-size: 18px; }
  .type-pyeong { font-size: 13px; }
  .type-table th {
    font-size: 11px;
    width: 72px;
    padding: 7px 4px;
    white-space: normal;
    word-break: keep-all;
  }
  .type-table td {
    font-size: 11px;
    padding: 7px 4px;
    word-break: break-all;
  }
  .type-provided { padding: 12px; }
  .type-provided h4 { font-size: 12px; }
  .type-provided p { font-size: 11px; line-height: 1.6; word-break: keep-all; }
  .tf-badge { padding: 3px 8px; font-size: 10px; }
  .type-features { gap: 4px; }

  /* COMMUNITY CHIPS */
  .comm-chips { gap: 6px; }
  .comm-chip {
    padding: 7px 12px;
    font-size: 12px;
    gap: 5px;
  }
  .chip-icon { font-size: 14px; }
  .chip-label { white-space: normal; word-break: keep-all; }

  /* COMMUNITY FLOOR TABS */
  .comm-floor-title { font-size: 16px; margin-bottom: 16px; }
  .comm-floor-tabs { gap: 6px; }
  .comm-floor-tab {
    padding: 10px 12px;
    font-size: 15px;
    gap: 6px;
  }
  .comm-floor-tab span { font-size: 10px; }

  /* COMMUNITY COMPARE - card layout for narrow */
  .community-compare { padding: 20px 14px; }
  .community-compare h3 { font-size: 15px; margin-bottom: 14px; }
  .compare-table-wrap { overflow-x: visible; }
  .compare-table,
  .compare-table thead,
  .compare-table tbody,
  .compare-table tr,
  .compare-table th,
  .compare-table td {
    display: block;
  }
  .compare-table thead { display: none; }
  .compare-table tr {
    margin-bottom: 12px;
    padding: 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg);
  }
  .compare-table tr:last-child { margin-bottom: 0; }
  .compare-highlight td {
    background: transparent;
  }
  .compare-table tr.compare-highlight {
    border-color: var(--color-accent);
    background: rgba(200,16,46,0.04);
  }
  .compare-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 13px;
    text-align: left;
  }
  .compare-table td:last-child { border-bottom: none; }
  .compare-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--color-primary);
    font-size: 12px;
    flex-shrink: 0;
    margin-right: 12px;
  }
  .compare-table td:first-child {
    font-weight: 700;
    font-size: 14px;
    color: var(--color-primary);
    justify-content: center;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 4px;
  }
  .compare-table td:first-child::before { display: none; }
  .compare-highlight td:first-child {
    color: var(--color-accent);
  }

  /* BENEFITS */
  .benefit-card { padding: 20px 16px; }
  .benefit-icon { font-size: 28px; margin-bottom: 10px; }
  .benefit-card h3 { font-size: 15px; word-break: keep-all; }
  .benefit-card p { font-size: 12px; word-break: keep-all; }
  .benefit-highlight { padding: 20px 16px; }
  .ac-list li { font-size: 12px; }
  .benefit-note p { font-size: 13px; }

  /* REGISTER */
  .register-form { padding: 18px 14px; }
  .form-group label { font-size: 12px; }
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 10px 12px;
    font-size: 13px;
  }
  .checkbox-label { font-size: 12px; }
  .btn-submit { padding: 14px; font-size: 14px; }
  .section-notice { font-size: 12px; padding: 6px 14px; word-break: keep-all; }

  /* FOOTER */
  .footer { padding: 32px 0 24px; }
  .footer-brand .logo-ef { font-size: 20px; }
  .footer-brand-sub { font-size: 11px; }
  .footer-contact p { font-size: 11px; word-break: keep-all; }
  .footer-disclaimer { font-size: 10px; word-break: keep-all; }
  .footer-credit a { font-size: 11px; }
}

/* ===== EVENT POPUP ===== */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 1;
  transition: opacity 0.35s ease;
  padding: 20px;
}
.popup-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
.popup-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: linear-gradient(170deg, #1c1917 0%, #292524 50%, #1c1917 100%);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.06) inset;
  animation: popupIn 0.4s cubic-bezier(0.34,1.56,0.64,1);
  color: #fff;
}
@keyframes popupIn {
  from { transform: scale(0.85) translateY(30px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 50;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.popup-close:hover {
  background: rgba(0,0,0,0.65);
  color: #fff;
  transform: scale(1.08);
}
.popup-close:active {
  transform: scale(0.95);
}
/* Header */
.popup-header {
  position: relative;
  z-index: 1;
  padding: 28px 28px 20px;
  text-align: center;
  background: linear-gradient(180deg, rgba(200,16,46,0.12) 0%, transparent 100%);
}
.popup-badge {
  display: inline-block;
  background: #c8102e;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 4px 16px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.popup-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}
.popup-title {
  font-size: 21px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255,255,255,0.88);
}
.popup-title strong {
  font-weight: 800;
  color: #fbbf24;
  font-size: 25px;
  display: block;
  margin-top: 2px;
}
/* Car images */
.popup-cars {
  padding: 0 12px 14px;
}
.popup-car-single {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}
.popup-car-single img {
  width: 100%;
  display: block;
  border-radius: 12px;
}
.popup-car-item {
  flex: 1;
  text-align: center;
}
.popup-car-item img {
  width: 100%;
  max-height: 110px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  padding: 4px;
}
.popup-car-name {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.5px;
}
.popup-car-divider {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: rgba(255,255,255,0.3);
}
.popup-car-placeholder {
  width: 100%;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255,255,255,0.2);
  font-size: 13px;
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 12px;
  margin: 0 20px;
}
/* Details table */
.popup-details {
  padding: 0 20px 16px;
}
.popup-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.popup-table th {
  background: rgba(200,16,46,0.25);
  color: rgba(255,255,255,0.8);
  font-weight: 600;
  padding: 8px 10px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.5px;
}
.popup-table th:first-child {
  border-radius: 8px 0 0 0;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.5);
  width: 60px;
}
.popup-table th:last-child {
  border-radius: 0 8px 0 0;
}
.popup-table td {
  padding: 10px 10px;
  text-align: center;
  color: rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  line-height: 1.5;
}
.popup-table td:first-child {
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.45);
  font-weight: 500;
  font-size: 12px;
}
.popup-table em {
  font-style: normal;
  color: #fbbf24;
  font-weight: 700;
}
/* CTA */
.popup-bottom {
  padding: 4px 28px 20px;
  text-align: center;
}
.popup-cta {
  display: inline-block;
  width: 100%;
  background: linear-gradient(135deg, #c8102e, #e8243c);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 0;
  border-radius: 12px;
  letter-spacing: -0.3px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 20px rgba(200,16,46,0.35);
}
.popup-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200,16,46,0.45);
}
.popup-cta:active {
  transform: translateY(0);
}
.popup-today {
  display: block;
  width: 100%;
  background: none;
  border: none;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.28);
  font-size: 12px;
  padding: 13px;
  cursor: pointer;
  transition: color 0.2s;
}
.popup-today:hover {
  color: rgba(255,255,255,0.5);
}
@media (max-width: 768px) {
  .popup-modal {
    max-width: 340px;
  }
  .popup-header {
    padding: 22px 20px 16px;
  }
  .popup-title {
    font-size: 18px;
  }
  .popup-title strong {
    font-size: 21px;
  }
  .popup-car-item img {
    max-height: 85px;
  }
  .popup-table {
    font-size: 12px;
  }
  .popup-cta {
    padding: 13px 0;
    font-size: 14px;
  }
}

/* ===== FLOATING ACTION BUTTONS ===== */
.fab-group {
  position: fixed;
  bottom: 28px;
  right: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 9999;
}
.fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.25);
  position: relative;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15), 0 0 0 1px rgba(255,255,255,0.08) inset;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s ease, background 0.25s ease;
}
.fab:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 28px rgba(0,0,0,0.22), 0 0 0 1px rgba(255,255,255,0.15) inset;
}
.fab:active {
  transform: scale(0.92);
}
.fab-call {
  background: rgba(200, 16, 46, 0.7);
}
.fab-call:hover {
  background: rgba(200, 16, 46, 0.88);
}
.fab-register {
  background: rgba(37, 99, 235, 0.7);
}
.fab-register:hover {
  background: rgba(37, 99, 235, 0.88);
}
@media (max-width: 768px) {
  .fab-group {
    bottom: 20px;
    right: 12px;
    gap: 10px;
  }
  .fab {
    width: 48px;
    height: 48px;
  }
  .fab svg {
    width: 20px;
    height: 20px;
  }
}
