/* ===== LUTA Web - Main Styles ===== */

:root {
  --color-primary: #827058;
  --color-primary-dark: #6b5a47;
  --color-primary-light: #a08b72;
  --color-accent: #c4956a;
  --color-bg: #faf8f5;
  --color-bg-alt: #f0ece6;
  --color-surface: #ffffff;
  --color-text: #2c2417;
  --color-text-secondary: #6b6157;
  --color-text-muted: #9a9087;
  --color-border: #e0dbd4;
  --color-hero-bg: #3a2e22;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --nav-height: 64px;
  --container-max: 1200px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul, ol {
  list-style: none;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--color-primary-dark);
}

.nav-logo-img {
  height: 150px;
  width: auto;
  max-height: none;
}

.logo-icon {
  font-size: 28px;
}

.nav-menu {
  display: flex;
  gap: 8px;
}

.nav-link {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 15px;
  color: var(--color-text-secondary);
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--color-primary-dark);
  background: var(--color-bg-alt);
}

.nav-link.active {
  color: var(--color-primary-dark);
  background: var(--color-bg-alt);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Page Container ===== */
.page-container {
  margin-top: var(--nav-height);
}

.page {
  display: none;
}

.page.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* ===== Sections ===== */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--color-text);
}

.section-desc {
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 17px;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Hero Section (Home) ===== */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(58, 46, 34, 0.85) 0%, rgba(90, 72, 58, 0.85) 50%, rgba(130, 112, 88, 0.85) 100%), url('../assets/luta_web_banner.png?v=1777529525') center/cover no-repeat;
  overflow: hidden;
  padding: 60px 24px;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(196, 149, 106, 0.15) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  padding-left: calc((100vw - var(--container-max)) / 2 + 24px);
  padding-right: 40px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-accent);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.hero-app-name {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 28px;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: -0.3px;
}

.hero-app-name-full {
  font-size: 20px;
  font-weight: 500;
  color: rgba(196, 149, 106, 0.8);
}

.hero-tagline-name {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.15;
  color: rgba(196, 149, 106, 0.8);
  letter-spacing: -1px;
}

.hero-tagline {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.15;
  color: #ffffff;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 19px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  padding-right: calc((100vw - var(--container-max)) / 2 + 24px);
}

/* Phone Mockup */
.phone-mockup {
  width: 280px;
  height: 560px;
  background: #1a1a1a;
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  position: relative;
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 24px;
  background: #000;
  border-radius: 12px;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--color-primary-light) 0%, var(--color-primary-dark) 100%);
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.phone-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.phone-placeholder .placeholder-icon {
  font-size: 48px;
}

.phone-placeholder .placeholder-text {
  font-size: 14px;
  font-weight: 500;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: #d4a57a;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(196, 149, 106, 0.4);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  background: transparent;
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

/* ===== Highlights Grid (Home) ===== */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.highlight-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.highlight-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.highlight-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text);
}

.highlight-card p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ===== Contact Section ===== */
.contact-section {
  text-align: center;
}

.contact-card {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px 48px;
  box-shadow: var(--shadow-sm);
}

.contact-icon {
  font-size: 36px;
}

.contact-info {
  text-align: left;
}

.contact-label {
  display: block;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 4px;
  font-weight: 500;
}

.contact-email {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary-dark);
  transition: color 0.2s;
}

.contact-email:hover {
  color: var(--color-accent);
}

/* ===== Page Hero (Inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, rgba(58, 46, 34, 0.85) 0%, rgba(130, 112, 88, 0.85) 100%), url('../assets/luta_web_banner.png?v=1777529525') center/cover no-repeat;
  padding: 80px 24px 60px;
  text-align: center;
}

.page-hero-title {
  font-size: 40px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
}

.page-hero-subtitle {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.7);
}

/* ===== Intro Page ===== */
.intro-block {
  display: flex;
  align-items: center;
  gap: 60px;
}

.intro-block.reverse {
  flex-direction: row-reverse;
}

.intro-text {
  flex: 1;
}

.intro-text h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--color-text);
}

.intro-text p {
  font-size: 16px;
  line-height: 1.9;
  color: var(--color-text-secondary);
}

.intro-list {
  list-style: none;
  padding: 0;
}

.intro-list li {
  padding: 10px 0;
  font-size: 16px;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border);
}

.intro-list li:last-child {
  border-bottom: none;
}

.intro-visual {
  flex: 0 0 320px;
}

.intro-image-placeholder {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 480px;
  background: linear-gradient(135deg, var(--color-bg-alt), var(--color-border));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 14px;
  border: 2px dashed var(--color-border);
}

/* Feature Badges */
.feature-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.badge {
  display: inline-block;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  color: var(--color-text-secondary);
}

/* ===== Pricing ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 700px;
  margin: 48px auto 0;
}

.pricing-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
}

.pricing-card.premium {
  border-color: var(--color-accent);
  box-shadow: 0 4px 20px rgba(196, 149, 106, 0.15);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: #fff;
  padding: 4px 20px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}

.pricing-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.pricing-price {
  font-size: 36px;
  font-weight: 900;
  color: var(--color-primary-dark);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  text-align: left;
}

.pricing-features li {
  padding: 8px 0;
  font-size: 15px;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li::before {
  content: '✓ ';
  color: var(--color-accent);
  font-weight: 700;
}

/* ===== Features Page ===== */
.features-nav-wrapper {
  position: sticky;
  top: var(--nav-height);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.features-nav {
  display: flex;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  gap: 4px;
}

.features-nav-link {
  padding: 14px 20px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
}

.features-nav-link:hover {
  color: var(--color-primary-dark);
}

.features-nav-link.active {
  color: var(--color-primary-dark);
  border-bottom-color: var(--color-accent);
  font-weight: 600;
}

.features-content {
  padding-bottom: 60px;
}

.feature-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--color-border);
}

.feature-section:nth-child(even) {
  background: var(--color-bg-alt);
}

.feature-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.feature-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 800;
  flex-shrink: 0;
}

.feature-header h2 {
  font-size: 28px;
  font-weight: 800;
}

.feature-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.feature-description h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 12px;
  margin-top: 28px;
}

.feature-description h3:first-child {
  margin-top: 0;
}

.feature-description p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--color-text-secondary);
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: 6px 0;
  font-size: 15px;
  color: var(--color-text-secondary);
  padding-left: 20px;
  position: relative;
}

.feature-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

.usage-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
}

.usage-steps li {
  counter-increment: step;
  padding: 10px 0 10px 36px;
  position: relative;
  font-size: 15px;
  color: var(--color-text-secondary);
  border-left: 2px solid var(--color-border);
  margin-left: 14px;
}

.usage-steps li::before {
  content: counter(step);
  position: absolute;
  left: -15px;
  top: 8px;
  width: 28px;
  height: 28px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.usage-steps li:last-child {
  border-left-color: transparent;
}

/* ===== Screenshots ===== */
.screenshot-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}

.screenshot-item {
  flex: 0 0 200px;
  max-width: 200px;
  text-align: center;
}

.screenshot-item img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin-bottom: 10px;
}

.screenshot-placeholder {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 360px;
  background: linear-gradient(135deg, var(--color-bg-alt), var(--color-border));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 13px;
  border: 2px dashed var(--color-border);
  margin-bottom: 10px;
  line-height: 1.5;
}

/* To use actual images, replace placeholder div with:
   <img src="assets/screenshots/filename.png?v=1777529525" alt="설명" class="screenshot-image"> */
.screenshot-image {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin-bottom: 10px;
}

.screenshot-item figcaption {
  font-size: 14px;
  color: var(--color-text-secondary);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.screenshot-item figcaption .step-badge {
  width: 24px;
  height: 24px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ===== FAQ Page ===== */
.faq-container {
  max-width: 800px;
}

.faq-category {
  margin-bottom: 48px;
}

.faq-category-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-accent);
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
  background: var(--color-surface);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  font-family: var(--font-family);
  transition: background 0.2s;
}

.faq-question:hover {
  background: var(--color-bg-alt);
}

.faq-icon {
  font-size: 20px;
  font-weight: 300;
  color: var(--color-text-muted);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 24px 20px;
}

.faq-answer p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text-secondary);
}

/* ===== Footer ===== */
.footer {
  background: var(--color-hero-bg);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 0;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
}

.footer-copy {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-contact a {
  color: var(--color-accent);
  font-size: 14px;
  transition: opacity 0.2s;
}

.footer-contact a:hover {
  opacity: 0.8;
}

/* ===== Scrollbar ===== */
.features-nav-wrapper::-webkit-scrollbar {
  height: 3px;
}

.features-nav-wrapper::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 3px;
}



/* Carousel */
.screen-slider {
  display: flex;
  height: 100%;
  width: 500%;
  animation: slide-gallery 15s linear infinite;
}

.slider-img {
  width: 20%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

@keyframes slide-gallery {
  0% { transform: translateX(0); }
  100% { transform: translateX(-80%); }
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center; justify-content: center;
  z-index: 9999;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.active {
  opacity: 1; pointer-events: auto;
}
.lightbox-img {
  max-width: 90%; max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  object-fit: contain;
}
.lightbox-close {
  position: absolute; top: 20px; right: 30px;
  font-size: 50px; color: white; cursor: pointer;
  line-height: 1; z-index: 10000;
}
.screenshot-item img {
  cursor: pointer;
  transition: transform 0.2s;
}
.screenshot-item img:hover {
  transform: scale(1.05);
}

.text-container {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
  padding: 20px;
}
.text-container h3 {
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: 1.25rem;
  color: var(--primary-color);
}
.text-container ul {
  margin-left: 20px;
  margin-bottom: 15px;
}
.text-container p {
  margin-bottom: 15px;
}
