/* ===================================
   TOONITALK — Global Stylesheet
   =================================== */

/* ---------- CSS Variables ---------- */
:root {
  --yellow: #F5C800;
  --yellow-dark: #E0B400;
  --yellow-light: #FFF4B2;
  --black: #1a1a1a;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-400: #9ca3af;
  --gray-200: #e5e7eb;
  --gray-100: #f9fafb;
  --white: #ffffff;
  --purple: #667eea;
  --pink: #f5576c;
  --blue: #4facfe;
  --green: #43e97b;

  --font-ko: 'Noto Sans KR', sans-serif;
  --font-en: 'Inter', sans-serif;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.14);
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-ko);
  color: var(--black);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img, svg { display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--yellow); border-radius: 3px; }

/* ===================================
   NAVBAR
   =================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
.navbar.scrolled {
  border-color: var(--gray-200);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-svg {
  width: 40px;
  height: 46px;
}
.logo-text {
  font-family: var(--font-en);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.5px;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  padding: 8px 14px;
  border-radius: 8px;
  transition: var(--transition);
}
.nav-link:hover { background: var(--gray-100); color: var(--black); }
.btn-contact {
  background: var(--yellow);
  color: var(--black) !important;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 50px;
}
.btn-contact:hover {
  background: var(--yellow-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245,200,0,0.4);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===================================
   HERO
   =================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #fffde7 0%, #fff9c4 30%, #fef9ff 70%, #f0f4ff 100%);
  position: relative;
  overflow: hidden;
  padding: 100px 24px 60px;
}
.hero-bg-bubbles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.bubble {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
}
.b1 { width: 400px; height: 400px; background: var(--yellow); top: -100px; right: -80px; animation: float 8s ease-in-out infinite; }
.b2 { width: 250px; height: 250px; background: var(--purple); bottom: 100px; left: -60px; animation: float 10s ease-in-out infinite reverse; }
.b3 { width: 180px; height: 180px; background: var(--pink); top: 40%; right: 20%; animation: float 7s ease-in-out infinite 2s; }
.b4 { width: 120px; height: 120px; background: var(--blue); bottom: 200px; right: 40%; animation: float 9s ease-in-out infinite 1s; }

@keyframes float {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

.hero-container {
  max-width: 620px;
  position: relative;
  z-index: 2;
  margin-left: max(24px, calc((100vw - 1200px) / 2));
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,200,0,0.15);
  border: 1.5px solid rgba(245,200,0,0.5);
  color: #8B6B00;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 50px;
  margin-bottom: 28px;
  animation: fadeInUp 0.6s ease forwards;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--black);
  margin-bottom: 20px;
  animation: fadeInUp 0.6s ease 0.1s both;
}
.highlight {
  background: linear-gradient(135deg, var(--yellow), #FF9500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 28px;
  animation: fadeInUp 0.6s ease 0.2s both;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
  animation: fadeInUp 0.6s ease 0.3s both;
}
.tag {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  color: var(--gray-700);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 50px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.tag:hover { border-color: var(--yellow); color: var(--black); transform: translateY(-2px); }
.tag i { color: var(--yellow-dark); }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
  animation: fadeInUp 0.6s ease 0.4s both;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow);
  color: var(--black);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 50px;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(245,200,0,0.35);
}
.btn-primary:hover {
  background: var(--yellow-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,200,0,0.45);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--black);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 50px;
  transition: var(--transition);
}
.btn-secondary:hover {
  background: var(--gray-800);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 28px;
  box-shadow: var(--shadow);
  animation: fadeInUp 0.6s ease 0.5s both;
}
.stat-item { flex: 1; text-align: center; }
.stat-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--black);
  font-family: var(--font-en);
}
.stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--gray-400);
  font-weight: 500;
  margin-top: 2px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--gray-200);
  margin: 0 16px;
}

/* Hero Visual */
.hero-visual {
  position: absolute;
  right: max(40px, calc((100vw - 1200px) / 2));
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  animation: fadeInRight 0.8s ease 0.3s both;
}
.phone-mockup {
  width: 280px;
  background: var(--white);
  border-radius: 36px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
  border: 3px solid var(--gray-200);
  overflow: hidden;
  padding: 24px 20px;
}
.phone-screen {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-bubble {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.4;
}
.user-bubble {
  background: var(--yellow-light);
  border: 1.5px solid rgba(245,200,0,0.3);
  align-self: flex-end;
  flex-direction: row-reverse;
  border-bottom-right-radius: 4px;
}
.bot-bubble {
  background: var(--gray-100);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.toon-thumb {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
}
.chat-label {
  text-align: center;
  font-size: 0.72rem;
  color: var(--gray-400);
  font-weight: 600;
  background: var(--gray-100);
  padding: 4px 12px;
  border-radius: 20px;
  align-self: center;
}
.ai-badge {
  text-align: center;
  font-size: 0.75rem;
  color: var(--purple);
  font-weight: 700;
  background: rgba(102,126,234,0.1);
  padding: 6px 14px;
  border-radius: 20px;
  align-self: center;
}

/* ===================================
   SHARED SECTION STYLES
   =================================== */
section { padding: 100px 24px; }
.section-container {
  max-width: 1200px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-tag {
  display: inline-block;
  background: var(--yellow-light);
  color: #8B6B00;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--gray-700);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ===================================
   TOONITALK ABOUT (NEW SECTION)
   =================================== */
.toonitalk-about {
  background: linear-gradient(160deg, #0f0f0f 0%, #1a1a2e 50%, #16213e 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.toonitalk-about::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(245,200,0,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.toonitalk-about::after {
  content: '';
  position: absolute;
  bottom: -150px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(102,126,234,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.toonitalk-about .section-tag {
  background: rgba(245,200,0,0.15);
  color: var(--yellow);
}
.toonitalk-about .section-title { color: var(--white); }
.toonitalk-about .section-desc { color: rgba(255,255,255,0.65); }

/* Banner */
.ta-hero-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 72px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 28px;
  padding: 48px 52px;
  position: relative;
  z-index: 1;
}
.ta-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,200,0,0.12);
  border: 1px solid rgba(245,200,0,0.25);
  color: var(--yellow);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
  font-family: var(--font-en);
  letter-spacing: 0.5px;
}
.ta-banner-left h3 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 18px;
  color: var(--white);
}
.ta-banner-left h3 em {
  font-style: normal;
  font-family: var(--font-en);
  background: linear-gradient(135deg, var(--yellow), #FF9500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ta-banner-left p {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.85;
  margin-bottom: 32px;
}
.ta-banner-stats {
  display: flex;
  align-items: center;
  gap: 0;
}
.ta-stat { text-align: center; flex: 1; }
.ta-stat-n {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--yellow);
  font-family: var(--font-en);
  margin-bottom: 4px;
}
.ta-stat-l {
  display: block;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
}
.ta-stat-div {
  width: 1px; height: 36px;
  background: rgba(255,255,255,0.12);
  margin: 0 12px;
}

/* Chat Demo */
.ta-chat-demo {
  background: #1e1e2e;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}
.ta-chat-header {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.06);
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ta-chat-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.ta-chat-dot:nth-child(1) { background: #ff5f56; }
.ta-chat-dot:nth-child(2) { background: #ffbd2e; }
.ta-chat-dot:nth-child(3) { background: #27c93f; }
.ta-chat-header span {
  margin-left: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-en);
}
.ta-chat-body {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ta-msg { display: flex; }
.ta-msg-right { justify-content: flex-end; }
.ta-msg-left { justify-content: flex-start; }
.ta-msg-text {
  background: linear-gradient(135deg, var(--yellow), #FF9500);
  color: var(--black);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 18px 18px 4px 18px;
  max-width: 80%;
}
.ta-toon-cut {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 10px 14px;
  border-radius: 18px 18px 18px 4px;
  max-width: 85%;
}
.ta-cut-img {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.ta-cut-bubble {
  font-size: 0.82rem;
  font-style: italic;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}
.ta-ai-tip {
  text-align: center;
  font-size: 0.72rem;
  color: var(--purple);
  background: rgba(102,126,234,0.1);
  padding: 6px 14px;
  border-radius: 20px;
  align-self: center;
  font-weight: 600;
}

/* Feature Cards */
.ta-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 72px;
  position: relative;
  z-index: 1;
}
.ta-feature-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 28px 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.ta-feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  opacity: 0;
  transition: var(--transition);
}
.ta-fc-1::before { background: linear-gradient(135deg, rgba(245,200,0,0.08), transparent); }
.ta-fc-2::before { background: linear-gradient(135deg, rgba(102,126,234,0.1), transparent); }
.ta-fc-3::before { background: linear-gradient(135deg, rgba(245,87,108,0.1), transparent); }
.ta-fc-4::before { background: linear-gradient(135deg, rgba(67,233,123,0.08), transparent); }
.ta-feature-card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.18); }
.ta-feature-card:hover::before { opacity: 1; }

.ta-fc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.ta-fc-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.ta-fc-1 .ta-fc-icon { background: rgba(245,200,0,0.15); color: var(--yellow); }
.ta-fc-2 .ta-fc-icon { background: rgba(102,126,234,0.15); color: var(--purple); }
.ta-fc-3 .ta-fc-icon { background: rgba(245,87,108,0.15); color: var(--pink); }
.ta-fc-4 .ta-fc-icon { background: rgba(67,233,123,0.15); color: var(--green); }

.ta-fc-num {
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(255,255,255,0.06);
  font-family: var(--font-en);
  line-height: 1;
}
.ta-feature-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.ta-feature-card p {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
  margin-bottom: 16px;
}
.ta-fc-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  font-family: var(--font-en);
  letter-spacing: 0.3px;
}
.ta-fc-1 .ta-fc-tag { background: rgba(245,200,0,0.12); color: var(--yellow); }
.ta-fc-2 .ta-fc-tag { background: rgba(102,126,234,0.15); color: var(--purple); }
.ta-fc-3 .ta-fc-tag { background: rgba(245,87,108,0.15); color: #ff8fa3; }
.ta-fc-4 .ta-fc-tag { background: rgba(67,233,123,0.12); color: var(--green); }

/* Keywords Section */
.ta-keywords {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 28px;
  padding: 52px 56px;
  position: relative;
  z-index: 1;
}
.ta-kw-left .section-tag { margin-bottom: 16px; display: inline-block; }
.ta-kw-left h3 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 16px;
}
.ta-kw-left p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
}
.ta-kw-right {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.ta-kw-bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 12px;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  transition: var(--transition);
  cursor: default;
}
.ta-kw-bubble i { font-size: 1.3rem; }
.ta-kw-bubble:hover { transform: translateY(-4px) scale(1.04); }
.kw-b1 { background: rgba(245,200,0,0.1); color: var(--yellow); border: 1px solid rgba(245,200,0,0.2); }
.kw-b2 { background: rgba(245,87,108,0.1); color: #ff8fa3; border: 1px solid rgba(245,87,108,0.2); }
.kw-b3 { background: rgba(102,126,234,0.1); color: #a5b4fc; border: 1px solid rgba(102,126,234,0.2); }
.kw-b4 { background: rgba(79,172,254,0.1); color: #7dd3fc; border: 1px solid rgba(79,172,254,0.2); }
.kw-b5 { background: rgba(240,147,251,0.1); color: #f0abfc; border: 1px solid rgba(240,147,251,0.2); }
.kw-b6 { background: rgba(67,233,123,0.1); color: var(--green); border: 1px solid rgba(67,233,123,0.2); }

/* Responsive TA */
@media (max-width: 1100px) {
  .ta-features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .ta-hero-banner { grid-template-columns: 1fr; gap: 32px; padding: 32px; }
  .ta-keywords { grid-template-columns: 1fr; gap: 32px; padding: 32px; }
  .ta-features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .ta-features { grid-template-columns: 1fr; }
  .ta-kw-right { grid-template-columns: repeat(2, 1fr); }
  .ta-banner-left h3 { font-size: 1.8rem; }
  .ta-hero-banner, .ta-keywords { padding: 24px 20px; }
}

/* ===================================
   ABOUT (SERVICE)
   =================================== */
.about { background: var(--white); }
.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.about-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.about-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--yellow), #FF9500);
  opacity: 0;
  transition: var(--transition);
}
.about-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.about-card:hover::before { opacity: 1; }

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card-icon i { color: white; font-size: 1.4rem; }
.about-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.about-card p { font-size: 0.9rem; color: var(--gray-700); line-height: 1.7; }

/* ===================================
   APP SHOWCASE
   =================================== */
.app-showcase {
  margin-top: 80px;
  padding-top: 64px;
  border-top: 1.5px solid var(--gray-200);
}
.app-showcase-header {
  text-align: center;
  margin-bottom: 48px;
}
.app-showcase-header .section-tag { margin-bottom: 16px; display: inline-block; }
.app-showcase-header h3 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 14px;
}
.app-showcase-header p {
  font-size: 1rem;
  color: var(--gray-700);
}

/* Tab buttons */
.app-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.app-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  border-radius: 50px;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-700);
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-ko);
  cursor: pointer;
  transition: var(--transition);
}
.app-tab:hover {
  border-color: var(--yellow);
  color: var(--black);
}
.app-tab.active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--black);
  box-shadow: 0 4px 16px rgba(245,200,0,0.35);
}

/* Screens stage */
.app-screens-stage { position: relative; }
.app-screen-slide {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.app-screen-slide.active { display: grid; }

/* Screen desc */
.app-screen-desc { padding: 20px 0; }
.app-screen-desc h4 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--black);
}
.app-screen-desc p {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.8;
}

/* ---- Phone Frame ---- */
.phone-frame {
  width: 260px;
  margin: 0 auto;
  background: #f5f5f7;
  border-radius: 42px;
  box-shadow:
    0 0 0 8px #e5e5ea,
    0 0 0 10px #d1d1d6,
    0 28px 60px rgba(0,0,0,0.22),
    inset 0 2px 6px rgba(255,255,255,0.8);
  overflow: hidden;
  position: relative;
}
.pf-notch {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 22px;
  background: #e5e5ea;
  border-radius: 0 0 14px 14px;
  z-index: 10;
}
.pf-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 18px 4px;
  font-size: 0.6rem;
  font-weight: 700;
  font-family: var(--font-en);
  color: var(--black);
}
.pf-statusbar .pf-icons {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.55rem;
}
.pf-time { font-size: 0.65rem; font-weight: 800; }

.pf-body {
  background: #fff;
  display: flex;
  flex-direction: column;
  height: 460px;
  overflow: hidden;
}

/* Top bar */
.pf-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px 4px;
  flex-shrink: 0;
}
.pf-topbar-center { justify-content: space-between; }
.pf-page-title { font-size: 0.9rem; font-weight: 800; }
.pf-back { font-size: 0.85rem; color: var(--gray-700); }
.pf-logo-sm svg { display: block; }
.pf-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

/* Content area */
.pf-content {
  flex: 1;
  padding: 6px 12px 0;
  overflow: hidden;
  font-size: 0.7rem;
}

/* Banner */
.pf-banner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--gray-100);
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 8px;
}
.pf-banner-title { font-size: 0.75rem; font-weight: 800; color: var(--black); }
.pf-banner-sub { font-size: 0.6rem; color: var(--gray-400); margin-top: 1px; }
.pf-go-btn {
  background: var(--black);
  color: var(--white);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 12px;
}

/* Tags */
.pf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
}
.pf-tag {
  font-size: 0.55rem;
  padding: 3px 6px;
  border: 1px solid #F5A623;
  color: #F5A623;
  border-radius: 10px;
  white-space: nowrap;
}

/* Section row */
.pf-section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.pf-section-title { font-size: 0.85rem; font-weight: 800; }
.pf-more-btn {
  background: var(--black);
  color: var(--white);
  font-size: 0.55rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
}

/* Grid */
.pf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.pf-grid-6 {
  grid-template-columns: 1fr 1fr;
}
.pf-grid-item { border-radius: 8px; overflow: hidden; aspect-ratio: 1/1; }
.pf-cut-inner { width: 100%; height: 100%; }
.pf-cut-scene {
  width: 100%; height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

/* Genre tabs */
.pf-genre-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
}
.pf-genre-tab {
  font-size: 0.55rem;
  padding: 4px 8px;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-700);
  white-space: nowrap;
  font-weight: 600;
}
.pf-genre-active {
  background: var(--yellow) !important;
  border-color: var(--yellow) !important;
  color: var(--black) !important;
}

/* Create screen */
.pf-content-create { padding: 4px 12px 0; overflow: hidden; }
.pf-creator-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.pf-creator-avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--yellow);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 800;
  color: var(--black);
}
.pf-creator-name { font-size: 0.7rem; font-weight: 700; flex: 1; }
.pf-view-count { font-size: 0.6rem; color: var(--gray-400); }

.pf-webtoon-preview {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
}
.pf-wt-scene {
  height: 140px;
  position: relative;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
}
.pf-wt-character {
  position: absolute;
  bottom: 0; right: 10px;
  font-size: 3.5rem;
  line-height: 1;
}
.pf-wt-bg-el { position: absolute; }
.pf-speech-bubble {
  position: absolute;
  top: 14px; left: 12px;
  background: rgba(255,255,255,0.92);
  border: 1.5px solid #ddd;
  border-radius: 10px;
  padding: 4px 8px;
  font-size: 0.55rem;
  font-weight: 600;
  color: #555;
  max-width: 80px;
}
.pf-speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -7px; left: 12px;
  border: 5px solid transparent;
  border-top-color: rgba(255,255,255,0.92);
}
.pf-reaction-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-top: none;
  border-radius: 0 0 10px 10px;
  font-size: 0.6rem;
  color: var(--gray-400);
}

.pf-edit-controls { margin-bottom: 6px; }
.pf-ctrl-row {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.pf-ctrl-btn {
  font-size: 0.52rem;
  padding: 4px 6px;
  border-radius: 8px;
  font-weight: 700;
  white-space: nowrap;
}
.pf-ctrl-gray { background: var(--gray-200); color: var(--gray-700); }
.pf-ctrl-orange { background: var(--yellow); color: var(--black); }
.pf-ctrl-hint { font-size: 0.48rem; color: var(--gray-400); margin-bottom: 4px; line-height: 1.4; }

.pf-done-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}
.pf-msg-icon { font-size: 0.8rem; color: var(--gray-400); }
.pf-msg-input {
  flex: 1;
  height: 24px;
  background: var(--gray-100);
  border-radius: 12px;
  border: 1px solid var(--gray-200);
}
.pf-done-btn {
  background: var(--yellow);
  color: var(--black);
  font-size: 0.6rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 12px;
}

/* Profile screen */
.pf-content-profile { padding: 4px 12px 0; text-align: center; }
.pf-profile-avatar { margin-bottom: 8px; }
.pf-big-avatar {
  width: 68px; height: 68px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e0f4ff, #b3e0ff);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
  border: 2px solid var(--gray-200);
}
.pf-profile-name {
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.pf-new-badge {
  background: #2ecc40;
  color: white;
  font-size: 0.55rem;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 8px;
}
.pf-profile-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-200);
}
.pf-pstat { text-align: center; }
.pf-pstat-n { display: block; font-size: 1rem; font-weight: 900; }
.pf-pstat-l { display: block; font-size: 0.55rem; color: var(--gray-400); margin-top: 2px; }
.pf-pstat-div { width: 1px; height: 24px; background: var(--gray-200); }

.pf-menu-list { text-align: left; }
.pf-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 4px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--black);
}
.pf-menu-item i:first-child { color: var(--gray-700); width: 14px; text-align: center; }
.pf-menu-item span { flex: 1; }
.pf-chevron { color: var(--gray-400) !important; font-size: 0.5rem !important; }
.pf-cs-label { font-size: 0.6rem; color: var(--gray-400); text-align: left; padding: 8px 4px 0; }

/* Bottom nav bar */
.pf-navbar {
  display: flex;
  background: var(--yellow);
  padding: 8px 0 12px;
  flex-shrink: 0;
}
.pf-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 0.52rem;
  font-weight: 700;
  color: rgba(0,0,0,0.5);
}
.pf-nav-item i { font-size: 0.85rem; }
.pf-nav-active { color: var(--black) !important; }

/* Responsive app showcase */
@media (max-width: 860px) {
  .app-screen-slide.active {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 32px;
  }
  .app-screen-desc { text-align: center; }
}
@media (max-width: 480px) {
  .phone-frame { width: 220px; }
  .pf-body { height: 390px; }
}

/* ===================================
   PROBLEM & SOLUTION
   =================================== */
.problem-solution {
  background: var(--gray-900);
  color: var(--white);
}
.ps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.ps-header { margin-bottom: 40px; }
.ps-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 6px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
.problem-badge { background: rgba(239,68,68,0.2); color: #fca5a5; }
.solution-badge { background: rgba(34,197,94,0.2); color: #86efac; }
.ps-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  line-height: 1.3;
  color: var(--white);
}
.ps-items { display: flex; flex-direction: column; gap: 20px; }
.ps-item {
  display: flex;
  gap: 20px;
  padding: 20px 24px;
  border-radius: var(--radius);
  transition: var(--transition);
}
.problem-item {
  background: rgba(239,68,68,0.06);
  border: 1px solid rgba(239,68,68,0.15);
}
.problem-item:hover { background: rgba(239,68,68,0.1); transform: translateX(4px); }
.solution-item {
  background: rgba(34,197,94,0.06);
  border: 1px solid rgba(34,197,94,0.15);
}
.solution-item:hover { background: rgba(34,197,94,0.1); transform: translateX(4px); }

.ps-num {
  font-size: 2rem;
  font-weight: 900;
  color: rgba(239,68,68,0.3);
  font-family: var(--font-en);
  line-height: 1;
  flex-shrink: 0;
  min-width: 48px;
}
.ps-icon {
  width: 42px;
  height: 42px;
  background: rgba(34,197,94,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ps-icon i { color: #86efac; font-size: 1.1rem; }
.ps-content h4 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; color: var(--white); }
.ps-content p { font-size: 0.87rem; color: rgba(255,255,255,0.65); line-height: 1.7; }

/* ===================================
   FEATURES
   =================================== */
.features { background: var(--gray-100); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 24px;
}
.fc-main {
  grid-column: 1;
  grid-row: 1 / 3;
}
.feature-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--yellow);
}
.fc-main {
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, var(--black) 0%, #2d2d2d 100%);
  color: var(--white);
  border: none;
}
.fc-main h3, .fc-main p, .fc-main .fc-list li { color: rgba(255,255,255,0.9); }
.fc-main .fc-list li i { color: var(--yellow); }

.fc-emoji { font-size: 2.4rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 0.88rem; color: var(--gray-700); line-height: 1.7; margin-bottom: 16px; }
.fc-main p { color: rgba(255,255,255,0.7); }
.fc-list { display: flex; flex-direction: column; gap: 8px; }
.fc-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--gray-700);
}
.fc-list li i { color: var(--yellow-dark); font-size: 0.75rem; }

/* ===================================
   MARKET
   =================================== */
.market { background: var(--white); }
.market-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}
.market-stat-card {
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  border: 1.5px solid var(--gray-200);
}
.market-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.primary-stat {
  background: linear-gradient(135deg, var(--yellow) 0%, #FF9500 100%);
  border-color: transparent;
  color: var(--black);
}
.msc-icon { font-size: 2rem; margin-bottom: 12px; }
.msc-num {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
  font-family: var(--font-en);
  margin-bottom: 8px;
}
.msc-label { font-size: 0.9rem; font-weight: 700; margin-bottom: 4px; }
.msc-sub { font-size: 0.78rem; color: var(--gray-400); }
.primary-stat .msc-sub { color: rgba(0,0,0,0.6); }

.market-trends { background: var(--gray-100); border-radius: var(--radius-lg); padding: 40px; }
.market-trends h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 32px; }
.trend-grid { display: flex; flex-direction: column; gap: 20px; }
.trend-item { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.trend-bar-wrap {
  grid-column: 1 / -1;
  height: 10px;
  background: var(--gray-200);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: -4px;
}
.trend-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--yellow), #FF9500);
  border-radius: 10px;
  transition: width 1.5s cubic-bezier(0.4,0,0.2,1);
}
.trend-bar.animated { width: var(--w); }
.trend-label { font-size: 0.9rem; font-weight: 600; color: var(--gray-700); }
.trend-val { font-size: 1rem; font-weight: 800; color: var(--black); font-family: var(--font-en); }

/* ===================================
   BUSINESS
   =================================== */
.business { background: var(--gray-100); }
.biz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.biz-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: var(--transition);
}
.biz-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--yellow);
}
.biz-icon { font-size: 2rem; margin-bottom: 14px; }
.biz-card h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.biz-card p { font-size: 0.87rem; color: var(--gray-700); line-height: 1.7; margin-bottom: 14px; }
.biz-tag {
  display: inline-block;
  background: var(--yellow-light);
  color: #8B6B00;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

/* ===================================
   TECH
   =================================== */
.tech-section { background: var(--gray-900); padding: 100px 24px; }
.tech-section .section-tag {
  background: rgba(245,200,0,0.15);
  color: var(--yellow);
}
.tech-section .section-title { color: var(--white); }
.tech-section .section-desc { color: rgba(255,255,255,0.6); }

.tech-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.tech-node {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 24px 28px;
  text-align: center;
  min-width: 160px;
  transition: var(--transition);
}
.tech-node:hover {
  background: rgba(245,200,0,0.1);
  border-color: rgba(245,200,0,0.3);
  transform: translateY(-4px);
}
.tn-center {
  background: rgba(245,200,0,0.12);
  border-color: rgba(245,200,0,0.35);
  transform: scale(1.05);
}
.tn-icon { font-size: 2rem; margin-bottom: 8px; }
.tn-title { font-size: 0.95rem; font-weight: 700; color: var(--white); margin-bottom: 4px; font-family: var(--font-en); }
.tn-desc { font-size: 0.78rem; color: rgba(255,255,255,0.5); }

.tech-arrow {
  color: rgba(255,255,255,0.25);
  font-size: 1.2rem;
  padding: 0 16px;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.tech-tag-item {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 50px;
  font-family: var(--font-en);
  transition: var(--transition);
}
.tech-tag-item:hover {
  background: rgba(245,200,0,0.15);
  border-color: rgba(245,200,0,0.3);
  color: var(--yellow);
}

/* ===================================
   CONTACT
   =================================== */
.contact { background: var(--white); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-left .section-tag { margin-bottom: 20px; display: inline-block; }
.contact-left h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 20px;
}
.contact-left p {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 32px;
}
.contact-items { display: flex; flex-direction: column; gap: 14px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-700);
}
.contact-item i {
  width: 36px;
  height: 36px;
  background: var(--yellow-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow-dark);
  font-size: 0.9rem;
  flex-shrink: 0;
}
.contact-item a:hover { color: var(--yellow-dark); }

.contact-form {
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 1.5px solid var(--gray-200);
}
.contact-form h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 24px;
}
.form-group { margin-bottom: 16px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: var(--font-ko);
  color: var(--black);
  transition: var(--transition);
  outline: none;
  resize: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(245,200,0,0.15);
}
.btn-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--yellow);
  color: var(--black);
  font-weight: 700;
  font-size: 1rem;
  padding: 16px;
  border-radius: 10px;
  transition: var(--transition);
  font-family: var(--font-ko);
}
.btn-submit:hover {
  background: var(--yellow-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,200,0,0.4);
}

/* ===================================
   FOOTER
   =================================== */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 60px 24px;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 60px;
  align-items: start;
}
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand .logo-text { color: var(--white); }
.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,0.55); line-height: 1.7; margin-bottom: 4px; }
.footer-copy { font-size: 0.78rem !important; color: rgba(255,255,255,0.3) !important; margin-top: 20px !important; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col h5 { font-size: 0.9rem; font-weight: 700; color: var(--white); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 0.85rem; color: rgba(255,255,255,0.5); transition: var(--transition); }
.footer-col ul li a:hover { color: var(--yellow); }

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px) translateY(-50%); }
  to { opacity: 1; transform: translateX(0) translateY(-50%); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1100px) {
  .hero-visual { display: none; }
  .hero-container { margin-left: 24px; max-width: 100%; }
}

@media (max-width: 900px) {
  .ps-grid { grid-template-columns: 1fr; gap: 40px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .fc-main { grid-column: 1 / -1; grid-row: auto; }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .tech-flow { flex-direction: column; }
  .tech-arrow { transform: rotate(90deg); padding: 8px 0; }
  .footer-container { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  section { padding: 70px 20px; }
  .nav-menu {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-110%);
    transition: transform 0.3s ease;
    z-index: 999;
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-link { width: 100%; padding: 12px 16px; }
  .btn-contact { text-align: center; }
  .hamburger { display: flex; }
  .hero { padding: 100px 20px 60px; }
  .hero-title { font-size: 2rem; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .stat-divider { width: 80%; height: 1px; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .contact-form { padding: 28px 20px; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .market-trends { padding: 24px 20px; }
  .footer-links { grid-template-columns: 1fr; }
}
