/* Reset & Base */
:root {
  --bg-dark: hsl(240, 10%, 4%);
  --bg-card: hsla(240, 8%, 8%, 0.6);
  --border-light: rgba(255, 255, 255, 0.08);
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1a6;
  --accent-gold: #dfcfbe;
  --accent-purple: #bca6f7;
  --accent-purple-glow: rgba(188, 166, 247, 0.15);
  --font-family-display: 'Outfit', 'Noto Sans KR', sans-serif;
  --font-family-body: 'Inter', 'Noto Sans KR', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-family-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, hsl(240, 10%, 8%), var(--bg-dark) 70%);
}

/* Container */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 0;
}

/* Header styling */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background-color: rgba(10, 10, 12, 0.7);
  border-bottom: 1px solid var(--border-light);
  transition: background-color 0.3s;
}
.header-container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: var(--font-family-display);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.logo-bold {
  font-weight: 700;
  color: var(--accent-gold);
}
.mobile-menu-btn {
  display: none;
}
.nav-menu {
  display: flex;
  gap: 30px;
}
.nav-menu a {
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 500;
}
.nav-menu a:hover {
  color: var(--text-primary);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  overflow: hidden;
}
.hero-bg-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(188, 166, 247, 0.12) 0%, rgba(223, 207, 190, 0.05) 50%, transparent 100%);
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}
.hero-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
  z-index: 1;
}
.hero-content {
  flex: 1.2;
}
.hero-tagline {
  font-family: var(--font-family-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--accent-purple);
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-family-display);
  font-size: 3.5rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff 30%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-description {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 40px;
}
.hero-cta-buttons {
  display: flex;
  gap: 16px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
  cursor: pointer;
}
.btn-primary {
  background-color: var(--text-primary);
  color: var(--bg-dark);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}
.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}
.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Hero Visual */
.hero-visual {
  flex: 0.8;
  display: flex;
  justify-content: center;
  align-items: center;
}
.comma-visual-container {
  position: relative;
  width: 280px;
  height: 280px;
}
.comma-visual-glow {
  position: absolute;
  top: 10%;
  left: 10%;
  width: 80%;
  height: 80%;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-purple));
  filter: blur(40px);
  opacity: 0.45;
  border-radius: 50%;
  z-index: 0;
  animation: pulseGlow 8s infinite alternate ease-in-out;
}
.comma-visual-img {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
  border-radius: 60px;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.5));
  animation: floatComma 6s infinite ease-in-out;
}
.visual-circle-orbit {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: spin 30s linear infinite;
  pointer-events: none;
}

/* Animations */
@keyframes floatComma {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}
@keyframes pulseGlow {
  0% { transform: scale(0.95); opacity: 0.35; }
  100% { transform: scale(1.05); opacity: 0.55; }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Section Common Header */
.section-tag {
  font-family: var(--font-family-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--accent-gold);
  display: block;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-family-display);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 40px;
}

/* Company Philosophy Section */
.about-section {
  background-color: rgba(18, 18, 20, 0.3);
  position: relative;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 20px;
}
.about-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 40px 30px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(10px);
}
.about-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}
/* Rule 11: border-left는 카드나 어떠한 데코레이션에도 사용하지 않습니다. */
.card-icon-container {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background-color: rgba(223, 207, 190, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent-gold);
}
.card-icon {
  width: 24px;
  height: 24px;
}
.about-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 16px;
  font-family: var(--font-family-display);
}
.about-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* comma App Section */
.app-section {
  position: relative;
}
.app-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}
.app-info {
  flex: 1.1;
}
.app-tagline {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-top: -30px;
  margin-bottom: 40px;
}
.features-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 40px;
}
.feature-item {
  display: flex;
  gap: 20px;
}
.feature-bullet {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--accent-purple);
  color: var(--bg-dark);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family-display);
  font-size: 0.9rem;
  box-shadow: 0 0 15px rgba(188, 166, 247, 0.4);
}
.feature-text h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
  font-family: var(--font-family-display);
  color: var(--text-primary);
}
.feature-text p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Store Badge Download Buttons */
.download-badge-container {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.store-badge {
  display: flex;
  align-items: center;
  background-color: #000;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 10px 18px;
  text-decoration: none;
  color: #fff;
  transition: transform 0.2s, background-color 0.2s, border-color 0.2s;
  min-width: 160px;
}
.store-badge:hover {
  transform: translateY(-2px);
  background-color: #121214;
  border-color: rgba(255, 255, 255, 0.2);
}
.badge-icon {
  width: 24px;
  height: 24px;
  margin-right: 12px;
  color: var(--accent-gold);
}
.badge-text-col {
  display: flex;
  flex-direction: column;
}
.badge-subtext {
  font-size: 0.65rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-maintext {
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-family-display);
  margin-top: 1px;
}

/* App Preview Visual (Phone Mockup) */
.app-preview-visual {
  flex: 0.9;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.phone-frame {
  width: 280px;
  height: 570px;
  background-color: #0d0d0f;
  border: 10px solid #222226;
  border-radius: 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  position: relative;
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #16161a 0%, #0a0a0c 100%);
  display: flex;
  flex-direction: column;
}
.phone-app-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Contact Section */
.contact-section {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-light);
}
.contact-bg-glow {
  position: absolute;
  bottom: -30%;
  left: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(223, 207, 190, 0.1) 0%, rgba(188, 166, 247, 0.03) 50%, transparent 100%);
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}
.contact-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 30px;
  padding: 60px 40px;
  text-align: center;
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
}
.contact-title {
  font-family: var(--font-family-display);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.contact-description {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 40px;
}
.contact-email-wrapper {
  display: inline-block;
}
.contact-email-link {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  padding: 16px 32px;
  border-radius: 40px;
  color: var(--text-primary);
  font-family: var(--font-family-display);
  font-size: 1.2rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.2s, background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.contact-email-link:hover {
  transform: translateY(-2px);
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}
.email-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
}

/* Footer Section */
footer {
  background-color: #070709;
  border-top: 1px solid var(--border-light);
  padding: 40px 0;
}
.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
}
.footer-logo {
  font-family: var(--font-family-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  margin-bottom: 8px;
}
.footer-copy {
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.footer-right {
  display: flex;
  gap: 24px;
}
.footer-right a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-right a:hover {
  color: var(--text-primary);
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }
  .hero-cta-buttons {
    justify-content: center;
  }
  .app-layout {
    flex-direction: column;
    gap: 50px;
  }
  .app-info {
    text-align: center;
  }
  .features-list {
    text-align: left;
  }
  .download-badge-container {
    justify-content: center;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  .hero-title {
    font-size: 2.8rem;
  }
  .header-container {
    height: 60px;
  }
  .nav-menu {
    gap: 15px;
  }
  .nav-menu a {
    font-size: 0.85rem;
  }
  .container {
    padding: 60px 0;
  }
  .contact-box {
    padding: 40px 20px;
  }
  .footer-container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

/* Header Right Group */
.header-right-group {
  display: flex;
  align-items: center;
  gap: 30px;
}

/* Language Selector */
.lang-selector {
  display: flex;
  gap: 6px;
}
.lang-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-family-display);
}
.lang-btn:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.3);
}
.lang-btn.active {
  background-color: var(--text-primary);
  color: var(--bg-dark);
  border-color: var(--text-primary);
}

/* Toast Popup */
.toast-popup {
  position: fixed;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: rgba(18, 18, 20, 0.95);
  border: 1px solid var(--accent-gold);
  padding: 16px 32px;
  border-radius: 30px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease, visibility 0.3s;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.toast-popup.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
#toast-text {
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: row;
    padding: 0 15px;
    position: relative;
  }
  .header-right-group {
    gap: 15px;
  }
  
  /* Mobile Menu Button - Hamburger */
  .mobile-menu-btn {
    display: flex;
    background: transparent;
    border: none;
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    cursor: pointer;
    order: 1;
    align-items: center;
    justify-content: center;
    padding: 6px;
    transition: opacity 0.2s ease;
  }
  .mobile-menu-btn:hover {
    opacity: 0.8;
  }
  .mobile-menu-btn svg {
    width: 24px;
    height: 24px;
  }
  
  .logo {
    order: 2;
    margin-left: 10px;
  }
  
  .header-right-group {
    order: 3;
    display: flex;
    align-items: center;
  }

  /* Nav Menu on Mobile */
  .nav-menu {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background-color: rgba(13, 13, 15, 0.98);
    border-bottom: 1px solid var(--border-light);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    text-align: center;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 999;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
  }
  
  .nav-menu.show {
    display: flex;
    animation: fadeInDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-menu a {
    display: block;
    font-size: 1.05rem;
    padding: 8px 0;
    color: var(--text-primary);
  }

  .lang-selector {
    gap: 4px;
  }
  .lang-btn {
    padding: 3px 6px;
    font-size: 0.7rem;
  }
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
