:root {
  /* Color Palette - Indigo/Slate Theme */
  --primary-color: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  
  --bg-body: #f8fafc;
  --bg-white: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.95);
  
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
}

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

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  line-height: 1.6;
  background-color: var(--bg-body);
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

ul {
  list-style: none;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.25rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

nav.scrolled {
  padding: 1rem 2.5rem;
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.98);
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary-color);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.back-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.back-link:hover {
    color: var(--primary-dark);
}


/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  padding: 6rem 2rem;
  z-index: 999;
  text-align: center;
}

.mobile-menu.active {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mobile-menu a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Buttons */
.btn {
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.btn-primary {
  background: var(--bg-white);
  color: var(--primary-color);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.8);
}

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

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1.5rem;
  background: var(--text-main);
  color: white;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.store-btn.ios { background: #000000; }
.store-btn.android { background: #3ddc84; color: #1f2937; }

.store-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  opacity: 0.95;
}

.store-btn svg {
  width: 24px;
  height: 24px;
}
/* For the QR Scanner Pro page store buttons with text */
.store-btn-large {
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-lg);
    background: white;
    color: var(--text-main);
}
.store-btn-large .store-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}
.store-btn-large .store-label { font-size: 0.7rem; opacity: 0.8; }
.store-btn-large .store-name { font-size: 1.1rem; font-weight: 700; }


/* Hero Section */
.hero {
  min-height: 80vh; /* Slightly shorter than full 100vh for better flow */
  padding: 8rem 2rem 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--accent-gradient);
  color: white;
  position: relative;
  overflow: hidden;
}

/* Subtle pattern overlay for Hero */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle at 20% 150%, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 50%);
    pointer-events: none;
}

.hero-content {
  max-width: 800px;
  z-index: 1;
  animation: fadeUp 0.8s ease-out;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}


/* Common Section Styles */
section {
  padding: 6rem 2rem;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 4rem;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

/* Cards Grid */
.apps-grid, .features-grid, .app-cards {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.app-card, .feature-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(0,0,0,0.02);
}

.app-card:hover, .feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.app-icon, .feature-icon, .app-card-icon {
  width: 80px;
  height: 80px;
  border-radius: 24px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
  color: white;
}

.app-card h3, .feature-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.app-card p, .feature-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.coming-soon {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: #f1f5f9;
  color: var(--text-muted);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* About / Values */
.values {
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 4rem;
}

.value-item {
  text-align: center;
  flex: 1;
  min-width: 150px;
}

.value-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-block;
}

/* Contact */
.contact {
  background: var(--text-main);
  color: white;
  text-align: center;
}

.contact h2 {
  color: white;
  margin-bottom: 1.5rem;
}

.contact p {
  color: var(--text-light);
  margin-bottom: 2.5rem;
}

.contact-email {
  font-size: 1.5rem;
  color: var(--primary-light);
  font-weight: 700;
}

.contact-email:hover {
  color: white;
  text-decoration: underline;
}

/* Footer */
footer {
  padding: 3rem 2rem;
  background: #0f172a; /* Slate 900 */
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.footer-links a {
  color: var(--text-light);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: white;
}

/* Page Specifics: News */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.news-item {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.03);
  transition: all 0.3s ease;
}

.news-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.news-header {
  padding: 2rem;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.news-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.news-tag {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}
.tag-new { background: #dcfce7; color: #15803d; }
.tag-update { background: #dbeafe; color: #1d4ed8; }

.news-body {
  padding: 2rem;
  color: var(--text-muted);
}

.news-body ul {
    list-style: disc inside;
    margin-top: 1rem;
    padding-left: 1rem;
}

/* Page Specifics: Legal (Privacy, Terms) */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
}

.legal-card {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}
.legal-card h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.legal-card h2 { font-size: 1.5rem; margin-top: 2.5rem; margin-bottom: 1rem; color: var(--text-main); }
.legal-card p { color: var(--text-muted); margin-bottom: 1rem; }
.legal-card ul { list-style: disc outside; margin-left: 1.5rem; margin-bottom: 1.5rem; color: var(--text-muted); }

/* Page Specifics: Support (FAQ) */
.faq-item {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.03);
    overflow: hidden;
}
.faq-question {
    width: 100%;
    padding: 1.5rem;
    border: none;
    background: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: var(--text-main);
}
.faq-question:hover { background: #f8fafc; }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f8fafc;
    border-top: 1px solid transparent;
}
.faq-item.active .faq-answer {
    max-height: 500px;
    border-top: 1px solid #f1f5f9;
}
.faq-answer p { padding: 1.5rem; color: var(--text-muted); }

/* Page Specifics: QR Scanner Screenshots */
.screenshots-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}
.phone-frame {
    width: 260px;
    height: 520px;
    background: #1e293b;
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-xl);
    position: relative;
}
.phone-screen {
    background: white;
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }
  
  .hero h1 { font-size: 2.5rem; }
  .section-title { font-size: 2rem; }
  
  .legal-card { padding: 1.5rem; }
}
