/* 
  각인 (Stamp Studio) Landing Page CSS Design System
  Theme: Modern Traditional Korean Stamp Aesthetic
  Simplified & Optimized for Google Play Store Review
*/

@import url('https://fonts.googleapis.com/css2?family=Gowun+Batang:wght@400;700&family=Noto+Sans+KR:wght@300;400;500;700;900&family=Noto+Serif+KR:wght@400;700;900&family=Outfit:wght@400;600;800;900&display=swap');

@font-face {
  font-family: 'Hakgyoansim Allimjang';
  src: url('/public/fonts/Hakgyoansim Allimjang TTF R.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f7f4ed;
  /* Soft traditional cream paper tone */
  --bg-strong: #fdfcfa;
  /* Warm white surface */
  --surface: rgba(255, 255, 255, 0.75);
  --surface-border: rgba(179, 38, 30, 0.08);
  --text: #1a1e1e;
  /* Deep Charcoal */
  --text-soft: #5e6664;
  /* Soft slate gray */
  --accent: #b3261e;
  /* Traditional Stamp Red */
  --accent-hover: #d93829;
  /* Vibrant Red */
  --accent-soft: #fbf1ef;
  /* Soft crimson tinted cream */
  --shadow-sm: 0 4px 12px rgba(31, 39, 38, 0.03);
  --shadow-md: 0 12px 28px rgba(179, 38, 30, 0.04);
  --shadow-lg: 0 24px 64px rgba(31, 39, 38, 0.08);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  font-family: 'Hakgyoansim Allimjang', "Noto Sans KR", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 10% 20%, rgba(179, 38, 30, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(31, 39, 38, 0.03) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-strong) 0%, var(--bg) 100%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Links and buttons reset */
a {
  color: inherit;
  text-decoration: none;
}

/* Page Shell Layouts */
.page-shell {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 60px;
}

.page-shell-narrow {
  width: min(800px, calc(100% - 40px));
}

/* Header Styling */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 28px;
  margin-bottom: 48px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* Brand Image Logo Link */
.brand-logo-link {
  display: flex;
  align-items: center;
  height: 48px;
  /* elegant standard height */
  padding: 4px 0;
  transition: transform 0.25s ease;
}

.brand-logo-link:hover {
  transform: scale(1.03);
}

.brand-logo-img {
  height: 130%;
  width: auto;
  object-fit: contain;
}

/* Navigation Links */
.top-nav {
  display: flex;
  align-items: center;
  gap: 15px;
}

.top-nav a {
  font-size: 0.80rem;
  font-weight: 500;
  color: var(--text-soft);
  position: relative;
  padding: 4px 0;
}

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

.top-nav a:hover {
  color: var(--text);
}

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

.top-nav a[aria-current='page'] {
  color: var(--accent);
  font-weight: 500;
}

.top-nav a[aria-current='page']::after {
  width: 100%;
}

/* Hero Section Layout */
.hero-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

.hero-copy {
  padding: 44px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  /* text-transform: uppercase; */
  margin-bottom: 12px;
  background: var(--accent-soft);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(179, 38, 30, 0.1);
}

h1 {
  /* font-family: 'Noto Serif KR', serif; */
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 20px;
}

.accent-text {
  color: var(--accent);
  position: relative;
  display: inline-block;
}

.accent-text::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(179, 38, 30, 0.08);
  z-index: -1;
}

.hero-text {
  font-size: 1.05rem;
  color: var(--text-soft);
  line-height: 1.75;
  margin-bottom: 32px;
}

/* Feature List Inside Hero */
.hero-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.hero-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.98rem;
  color: var(--text);
}

.bullet-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: bold;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.bullet-content strong {
  font-weight: 500;
  color: var(--text);
}

.bullet-content p {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-top: 2px;
}

/* Hero Actions */
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* Google Play Styled Button */
.play-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #111111;
  color: #ffffff;
  padding: 10px 24px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.play-store-btn:hover {
  background: #000000;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.play-store-icon {
  width: 22px;
  height: 22px;
  color: #fff;
  flex-shrink: 0;
}

.play-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.btn-subtext {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #9ca3af;
}

.btn-maintext {
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-soft);
  border: 1px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.secondary-link:hover {
  background: #fff;
  color: var(--text);
  border-color: rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* App Mockup Grid Box (Floating Animation) */
.hero-interactive {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-12px);
  }

  100% {
    transform: translateY(0px);
  }
}

.app-mockup-container {
  width: 100%;
  max-width: 380px;
  position: relative;
}

/* Side-by-Side Stamp Preview Grid */
.mockup-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stamp-mock-card {
  background: var(--bg-strong);
  border: 1px solid rgba(0, 0, 0, 0.03);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.015);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.stamp-mock-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.04);
}

.stamp-viewport {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  background: transparent;
  padding: 0;
}

.stamp-viewport svg,
.stamp-viewport img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(179, 38, 30, 0.08));
}

.stamp-viewport img.color-blue {
  filter: hue-rotate(200deg) saturate(2.2) brightness(0.7) drop-shadow(0 4px 8px rgba(30, 80, 179, 0.15));
}

.stamp-viewport img.color-black {
  filter: grayscale(1) brightness(0.2) drop-shadow(0 4px 8px rgba(30, 30, 30, 0.15));
}

.stamp-action-mock {
  display: flex;
  justify-content: center;
  width: 100%;
}

.btn-mock-download {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(179, 38, 30, 0.08);
}



/* Stamp Card Meta Info */
.stamp-card-meta {
  text-align: center;
  margin-top: 8px;
  width: 100%;
}

.stamp-meta-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 2px;
}

.stamp-meta-sub {
  font-size: 0.68rem;
  color: var(--text-soft);
}

/* Philosophy Section (Heritage & Design) */
.philosophy-section {
  margin-bottom: 80px;
  padding: 60px 48px;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.03);
  border-radius: var(--radius-2xl);
}

.philosophy-card {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  position: relative;
  overflow: visible;
  text-align: center;
}

.philosophy-card::before {
  display: none;
}

.philosophy-badge {
  display: inline-block;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  /* text-transform: uppercase; */
  margin-bottom: 16px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
}

.philosophy-title {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 500;
  color: var(--text);
  margin-bottom: 36px;
  letter-spacing: -0.03em;
  text-align: center;
}

.philosophy-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  text-align: left;
}

.philosophy-content p {
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.85;
  margin-bottom: 0;
}

.philosophy-content strong {
  color: var(--text);
  font-weight: 500;
}

@media (max-width: 768px) {
  .philosophy-section {
    padding: 36px 24px;
    margin-bottom: 60px;
  }

  .philosophy-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .philosophy-content p {
    margin-bottom: 12px;
  }

  .philosophy-content p:last-child {
    margin-bottom: 0;
  }
}

/* Policies & Legal Pages Detail Styling */
.document-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.document-layout h1 {
  /* font-family: 'Noto Serif KR', serif; */
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.document-card {
  padding: 40px;
  background: var(--bg-strong);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.document-card p {
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

.document-card h2 {
  /* font-family: 'Noto Serif KR', serif; */
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text);
  margin-top: 36px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--accent-soft);
  padding-bottom: 8px;
}

.document-card ul {
  margin-left: 20px;
  margin-bottom: 24px;
  color: var(--text-soft);
}

.document-card li {
  margin-bottom: 8px;
  line-height: 1.7;
}

/* Responsive Table Container */
.table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 28px 0;
  border-radius: var(--radius-sm);
  background: var(--bg-strong);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Site Footer */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 30px 10px 0;
  color: var(--text-soft);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-links a {
  color: var(--text-soft);
}

.footer-links a:hover {
  color: var(--accent);
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-interactive {
    order: -1;
    /* Mockup floats above the text on tablets/mobile */
  }

  .policy-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .page-shell {
    width: min(100% - 24px, 100%);
    padding: 16px 0 40px;
  }

  .site-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    margin-bottom: 32px;
  }

  .top-nav {
    justify-content: center;
    margin-top: 12px;
  }

  .hero-copy {
    padding: 28px 20px;
  }

  .policy-links-section {
    padding: 36px 20px;
  }

  .philosophy-card {
    padding: 28px 20px;
    border-radius: var(--radius-lg);
  }

  .document-card {
    padding: 28px 20px;
    border-radius: var(--radius-lg);
  }

  .document-layout h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
  }

  .document-card h2 {
    font-size: 1.22rem;
    margin-top: 28px;
    margin-bottom: 12px;
  }

  .document-card p {
    font-size: 0.96rem;
    line-height: 1.7;
    margin-bottom: 18px;
  }

  .site-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .play-store-btn {
    justify-content: center;
  }
}