@import url('https://fonts.googleapis.com/css2?family=Pretendard:wght@300;400;500;600;700&display=swap');

:root {
  --bg-main: #0b0f19;
  --bg-card: #151d2a;
  --bg-card-hover: #1e293b;
  --border-color: #2e3d52;
  --primary-pink: #ff4d67;
  --primary-pink-glow: rgba(255, 77, 103, 0.2);
  --accent-cyan: #38bdf8;
  --text-main: #f8fafc;
  --text-sub: #94a3b8;
  --text-muted: #64748b;
  --table-border: #334155;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Header */
header {
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.25rem;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #ff4d67, #ff758c);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px var(--primary-pink-glow);
}

.logo-icon-img {
  width: 36px !important;
  height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  flex-shrink: 0 !important;
  border-radius: 9px !important;
  object-fit: cover !important;
  box-shadow: 0 4px 12px var(--primary-pink-glow) !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

.logo-text span {
  color: var(--primary-pink);
}

.nav-links {
  display: flex;
  gap: 0.5rem;
}

.nav-item {
  text-decoration: none;
  color: var(--text-sub);
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav-item:hover {
  color: var(--text-main);
  background: var(--bg-card);
}

.nav-item.active {
  color: var(--primary-pink);
  background: rgba(255, 77, 103, 0.1);
  border: 1px solid rgba(255, 77, 103, 0.3);
}

/* Container & Layout */
main {
  max-width: 900px;
  margin: 2.5rem auto 4rem;
  padding: 0 1.5rem;
}

.page-title {
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.page-subtitle {
  color: var(--text-sub);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Typography in content */
h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 1.8rem;
  margin-bottom: 1rem;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

h2:first-of-type {
  margin-top: 0;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.2rem;
  margin-bottom: 0.6rem;
  color: var(--accent-cyan);
}

p {
  color: var(--text-sub);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  word-break: keep-all;
}

ul, ol {
  color: var(--text-sub);
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

li {
  margin-bottom: 0.4rem;
}

/* Alert boxes */
.alert {
  padding: 1.2rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  border-left: 4px solid;
}

.alert-important {
  background: rgba(56, 189, 248, 0.1);
  border-color: var(--accent-cyan);
  color: #e0f2fe;
}

.alert-warning {
  background: rgba(255, 77, 103, 0.1);
  border-color: var(--primary-pink);
  color: #ffe4e6;
}

.alert-title {
  font-weight: 700;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-size: 0.88rem;
}

th, td {
  padding: 0.8rem 1rem;
  text-align: left;
  border: 1px solid var(--table-border);
}

th {
  background-color: #1e293b;
  color: var(--text-main);
  font-weight: 600;
}

td {
  color: var(--text-sub);
}

tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.02);
}

/* Hero Section for Index */
.hero {
  text-align: center;
  padding: 3rem 1.5rem;
  background: radial-gradient(circle at top, rgba(255, 77, 103, 0.15), transparent 70%);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  margin-bottom: 2.5rem;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 77, 103, 0.15);
  color: var(--primary-pink);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 77, 103, 0.3);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.hero p {
  color: var(--text-sub);
  max-width: 600px;
  margin: 0 auto 1.5rem;
  font-size: 1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.grid-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.25s ease;
  display: flex;
  flex-col: column;
  justify-content: space-between;
}

.grid-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-pink);
  box-shadow: 0 12px 28px rgba(255, 77, 103, 0.15);
}

.grid-card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.grid-card h3 {
  color: var(--text-main);
  font-size: 1.15rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.grid-card p {
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.grid-card-link {
  color: var(--primary-pink);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.85rem;
}

footer p {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

@media (max-width: 640px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }
  .hero h1 {
    font-size: 1.7rem;
  }
  .card {
    padding: 1.25rem;
  }
}

/* Landing & Store Buttons */
.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.8rem;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.75rem 1.4rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.store-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary-pink);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-pink-glow);
}

.store-btn-icon {
  font-size: 1.5rem;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.store-btn-text .sub {
  font-size: 0.7rem;
  color: var(--text-sub);
  font-weight: 400;
}

.store-btn-text .main {
  font-size: 0.95rem;
  color: var(--text-main);
}

/* Section Header */
.section-header {
  text-align: center;
  margin: 3rem 0 2rem;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-desc {
  color: var(--text-sub);
  font-size: 0.95rem;
}

/* Feature Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.8rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-pink), var(--accent-cyan));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 77, 103, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: rgba(255, 77, 103, 0.1);
  border: 1px solid rgba(255, 77, 103, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text-main);
}

.feature-desc {
  color: var(--text-sub);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* FAQ Styling */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.4rem;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(56, 189, 248, 0.4);
}

.faq-question {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.faq-question::before {
  content: 'Q.';
  color: var(--primary-pink);
  font-size: 1.1rem;
}

.faq-answer {
  color: var(--text-sub);
  font-size: 0.93rem;
  line-height: 1.65;
  margin-bottom: 0;
  padding-left: 1.6rem;
}

/* Contact Card */
.contact-card {
  background: linear-gradient(135deg, rgba(21, 29, 42, 0.9), rgba(30, 41, 59, 0.9));
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  margin-top: 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.contact-email {
  display: inline-block;
  background: rgba(255, 77, 103, 0.1);
  color: var(--primary-pink);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.6rem 1.4rem;
  border-radius: 30px;
  border: 1px solid rgba(255, 77, 103, 0.3);
  margin: 1rem 0;
  text-decoration: none;
  transition: all 0.2s ease;
}

.contact-email:hover {
  background: var(--primary-pink);
  color: #ffffff;
}

/* Footer Link Bar */
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.footer-link {
  color: var(--text-sub);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--primary-pink);
}

/* Hero Preview & Phone Frame Mockup */
.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  text-align: left;
}

@media (max-width: 840px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-cta {
    justify-content: center;
  }
}

.hero-text-content {
  display: flex;
  flex-direction: column;
}

.hero-phone-preview {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.phone-mockup-wrapper {
  position: relative;
  max-width: 310px;
  width: 100%;
  border-radius: 36px;
  padding: 10px;
  background: linear-gradient(145deg, rgba(255, 77, 103, 0.4), rgba(56, 189, 248, 0.3), rgba(15, 23, 42, 0.9));
  box-shadow: 0 0 50px rgba(255, 77, 103, 0.35), 0 20px 40px rgba(0, 0, 0, 0.6);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.phone-mockup-wrapper:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 0 60px rgba(255, 77, 103, 0.5), 0 25px 50px rgba(0, 0, 0, 0.7);
}

.phone-mockup-img {
  width: 100%;
  height: auto;
  border-radius: 28px;
  display: block;
  object-fit: cover;
}

/* App Showcase Section */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin: 2.5rem 0 4rem;
}

.showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.showcase-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 77, 103, 0.5);
  box-shadow: 0 16px 36px rgba(255, 77, 103, 0.2);
}

.showcase-img-container {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #090d16;
  margin-bottom: 1.2rem;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.showcase-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.showcase-card:hover .showcase-img {
  transform: scale(1.04);
}

.showcase-zoom-hint {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(11, 15, 25, 0.75);
  backdrop-filter: blur(8px);
  color: var(--accent-cyan);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.showcase-badge {
  display: inline-block;
  align-self: flex-start;
  background: rgba(255, 77, 103, 0.12);
  color: var(--primary-pink);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  margin-bottom: 0.6rem;
  border: 1px solid rgba(255, 77, 103, 0.25);
}

.showcase-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.showcase-desc {
  font-size: 0.9rem;
  color: var(--text-sub);
  margin-bottom: 0;
  line-height: 1.5;
}

/* Lightbox Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 8, 15, 0.88);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 1.5rem;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content-wrapper {
  position: relative;
  max-width: 480px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 20px;
  box-shadow: 0 0 50px rgba(255, 77, 103, 0.4);
  border: 2px solid rgba(255, 77, 103, 0.3);
}

.modal-close-btn {
  position: absolute;
  top: -40px;
  right: 0;
  background: rgba(255, 77, 103, 0.2);
  color: #ffffff;
  border: 1px solid var(--primary-pink);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.modal-close-btn:hover {
  background: var(--primary-pink);
}

/* Hero Vertical Shorts Phone Video Mockup */
.phone-mockup-video-wrapper {
  position: relative;
  width: 290px;
  max-width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 28px;
  border: 6px solid #1e293b;
  background: #000000;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(255, 77, 103, 0.25), 0 0 20px rgba(56, 189, 248, 0.15);
  margin: 0 auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.phone-mockup-video-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 44px rgba(255, 77, 103, 0.35), 0 0 28px rgba(56, 189, 248, 0.25);
}

.phone-video-iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 22px;
}

@media (max-width: 768px) {
  .phone-mockup-video-wrapper {
    width: 260px;
  }
}

/* Extended Policy & Subpage Styles */
.policy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.policy-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.25);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

.policy-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.policy-sub-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
}

.policy-text {
  color: var(--text-sub);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.policy-list {
  color: var(--text-sub);
  padding-left: 1.4rem;
  margin-bottom: 1.2rem;
  font-size: 0.93rem;
  line-height: 1.65;
}

.policy-list li {
  margin-bottom: 0.4rem;
}

/* FAQ Accordion Details / Summary */
details.faq-accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

details.faq-accordion-item[open] {
  border-color: rgba(255, 77, 103, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

summary.faq-accordion-header {
  padding: 1.2rem 1.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: color 0.2s ease;
}

summary.faq-accordion-header::-webkit-details-marker {
  display: none;
}

summary.faq-accordion-header::after {
  content: '＋';
  font-size: 1.2rem;
  color: var(--primary-pink);
  transition: transform 0.25s ease;
}

details.faq-accordion-item[open] summary.faq-accordion-header::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-accordion-content {
  padding: 0 1.4rem 1.4rem;
  color: var(--text-sub);
  font-size: 0.93rem;
  line-height: 1.7;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 0.2rem;
  padding-top: 1rem;
}

/* Breadcrumb Navigation */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  list-style: none;
  padding: 0;
}

.breadcrumb a {
  color: var(--text-sub);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--primary-pink);
}

.breadcrumb-separator {
  color: var(--border-color);
}
