/* ============================================
   WriteDiary.online — Main Stylesheet
   Educational Colorful Theme
   ============================================ */

:root {
  --pink:    #FF6B9D;
  --purple:  #9B5DE5;
  --blue:    #4CC9F0;
  --teal:    #00B4D8;
  --green:   #00C853;
  --yellow:  #FFD60A;
  --orange:  #FF6D00;
  --red:     #FF4D6D;
  --bg:      #FAFBFF;
  --white:   #FFFFFF;
  --text:    #1A1A2E;
  --text-m:  #444466;
  --text-l:  #6B7280;
  --border:  #E8ECFF;
  --shadow:  rgba(100,100,200,0.12);
  --radius:  18px;
  --font-h:  'Fredoka One', cursive;
  --font-b:  'Nunito', sans-serif;
  --font-d:  'Caveat', cursive;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f0f0ff; }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 4px; }

/* ===== UTILITY ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ===== HEADER ===== */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--border);
  box-shadow: 0 2px 20px var(--shadow);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: 1200px; margin: 0 auto;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-h); font-size: 1.6rem; color: var(--purple);
  cursor: pointer;
}
.logo-icon { font-size: 2rem; animation: float 3s ease-in-out infinite; }
.logo span { background: linear-gradient(135deg, var(--purple), var(--pink)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  padding: 8px 16px; border-radius: 50px; font-weight: 600; font-size: 0.9rem;
  color: var(--text-m); transition: all 0.2s;
}
.nav-links a:hover { background: #F0EEFF; color: var(--purple); }
.nav-cta {
  background: linear-gradient(135deg, var(--purple), var(--pink)) !important;
  color: white !important; padding: 10px 22px !important;
  box-shadow: 0 4px 15px rgba(155,93,229,0.35);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(155,93,229,0.45) !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--purple); border-radius: 2px; transition: all 0.3s; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #FFF0FB 0%, #F0EEFF 50%, #E0F7FF 100%);
  padding: 100px 0 60px;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.bubble {
  position: absolute; border-radius: 50%; opacity: 0.5;
  animation: floatBubble 8s ease-in-out infinite;
}
.b1 { width:300px;height:300px; background:radial-gradient(circle,#FF6B9D33,transparent); top:-80px; left:-80px; animation-delay:0s; }
.b2 { width:200px;height:200px; background:radial-gradient(circle,#9B5DE533,transparent); top:30%; right:-60px; animation-delay:2s; }
.b3 { width:150px;height:150px; background:radial-gradient(circle,#4CC9F033,transparent); bottom:10%; left:20%; animation-delay:1s; }
.b4 { width:100px;height:100px; background:radial-gradient(circle,#FFD60A33,transparent); top:60%; right:25%; animation-delay:3s; }
.b5 { width:250px;height:250px; background:radial-gradient(circle,#00C85333,transparent); bottom:-60px; right:-40px; animation-delay:1.5s; }

.floating-emoji {
  position: absolute; font-size: 2rem; opacity: 0.6;
  animation: floatEmoji 6s ease-in-out infinite;
}
.e1 { top:15%; left:5%; animation-delay:0s; }
.e2 { top:70%; left:8%; animation-delay:1s; }
.e3 { top:25%; right:8%; animation-delay:2s; }
.e4 { top:80%; right:15%; animation-delay:0.5s; }
.e5 { top:45%; left:50%; animation-delay:3s; }
.e6 { top:10%; right:30%; animation-delay:1.5s; }

.hero-content {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center; position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #FFE4F7, #EDE0FF);
  border: 2px solid #DDB5FF; border-radius: 50px;
  padding: 8px 18px; font-size: 0.85rem; font-weight: 700;
  color: var(--purple); margin-bottom: 20px;
  animation: pulse 2s ease-in-out infinite;
}
.hero-title {
  font-family: var(--font-h); font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.2; color: var(--text); margin-bottom: 20px;
  animation: fadeUp 0.8s ease both;
}
.highlight {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  position: relative;
}
.hero-sub {
  font-size: 1.1rem; color: var(--text-m); margin-bottom: 32px;
  animation: fadeUp 0.8s 0.2s ease both;
}
.hero-cta {
  display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px;
  animation: fadeUp 0.8s 0.4s ease both;
}
.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: white; border: none; padding: 14px 30px;
  border-radius: 50px; font-family: var(--font-b); font-weight: 800;
  font-size: 1rem; cursor: pointer; transition: all 0.3s;
  box-shadow: 0 6px 20px rgba(155,93,229,0.4);
}
.btn-primary:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 12px 30px rgba(155,93,229,0.5); }
.btn-secondary {
  background: white; color: var(--purple); border: 2px solid var(--purple);
  padding: 12px 28px; border-radius: 50px; font-family: var(--font-b);
  font-weight: 700; font-size: 1rem; cursor: pointer; transition: all 0.3s;
}
.btn-secondary:hover { background: #F0EEFF; transform: translateY(-2px); }
.hero-stats {
  display: flex; gap: 24px; align-items: center;
  animation: fadeUp 0.8s 0.6s ease both;
}
.stat { display: flex; flex-direction: column; }
.stat-n { font-family: var(--font-h); font-size: 1.6rem; color: var(--purple); }
.stat-l { font-size: 0.78rem; color: var(--text-l); font-weight: 600; }
.stat-sep { color: var(--border); font-size: 1.5rem; }

/* DIARY MOCKUP */
.hero-visual { animation: fadeUp 0.8s 0.3s ease both; }
.diary-mockup {
  background: white; border-radius: 20px;
  box-shadow: 0 20px 60px rgba(100,100,200,0.2), 0 0 0 1px rgba(155,93,229,0.1);
  padding: 20px; max-width: 420px;
  transform: rotate(1deg);
  animation: floatCard 5s ease-in-out infinite;
}
.dm-header {
  display: flex; align-items: center; gap: 6px; margin-bottom: 16px;
}
.dm-dot { width:12px;height:12px;border-radius:50%;display:block; }
.dm-dot.red { background:#FF5F57; }
.dm-dot.yellow { background:#FFBD2E; }
.dm-dot.green { background:#28CA41; }
.dm-title { font-weight: 700; color: var(--text-m); margin-left: auto; font-size: 0.85rem; }
.dm-date { font-size: 0.85rem; color: var(--text-l); margin-bottom: 10px; font-weight: 600; }
.dm-mood { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; font-size: 0.85rem; font-weight: 600; color: var(--text-m); }
.mood-sel { cursor:pointer; font-size: 1.3rem; padding: 2px; border-radius: 6px; transition: all 0.2s; }
.mood-sel.active, .mood-sel:hover { background: #F0EEFF; transform: scale(1.2); }
.dm-editor {
  min-height: 120px; padding: 12px; border-radius: 12px;
  background: #FAFBFF; border: 1.5px solid var(--border);
  font-family: var(--font-d); font-size: 1rem; color: var(--text);
  line-height: 1.7; margin-bottom: 12px; outline: none;
}
.cursor-blink { animation: blink 1s step-end infinite; }
.dm-toolbar {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px;
}
.dm-btn {
  background: #F0EEFF; border: none; border-radius: 8px;
  padding: 5px 10px; font-size: 0.78rem; font-weight: 700;
  color: var(--purple); cursor: pointer; transition: all 0.2s;
}
.dm-btn:hover { background: var(--purple); color: white; }
.save-btn { background: linear-gradient(135deg, var(--purple), var(--pink)) !important; color: white !important; }
.dm-tags { font-size: 0.78rem; color: var(--text-l); }
.tag { background: #F0EEFF; color: var(--purple); padding: 2px 8px; border-radius: 12px; margin: 0 3px; font-weight: 700; }

/* ===== SECTION STYLES ===== */
section { padding: 90px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 {
  font-family: var(--font-h); font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--text); margin-bottom: 14px;
}
.section-header p { font-size: 1.05rem; color: var(--text-m); max-width: 600px; margin: 0 auto; }
.section-badge {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 50px; padding: 6px 18px; font-size: 0.85rem;
  font-weight: 800; margin-bottom: 16px; letter-spacing: 0.5px;
}
.section-badge.pink    { background:#FFE4F0; color:#D6336C; }
.section-badge.green   { background:#E0FFE8; color:#00875A; }
.section-badge.yellow  { background:#FFF8D6; color:#B07D00; }
.section-badge.purple  { background:#F0E6FF; color:#6B00CC; }
.section-badge.teal    { background:#E0FAFA; color:#007A7A; }
.section-badge.orange  { background:#FFF0E0; color:#C15000; }
.section-badge.blue    { background:#E0F2FF; color:#0056B3; }

/* ===== WHY DIARY ===== */
.why-diary { background: white; }
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.why-card {
  padding: 32px 24px; border-radius: var(--radius);
  border: 2px solid var(--border); background: white;
  transition: all 0.3s; cursor: default;
  position: relative; overflow: hidden;
}
.why-card::before {
  content: ''; position: absolute; inset: 0; opacity: 0;
  transition: opacity 0.3s;
}
.wc1::before { background: linear-gradient(135deg,#FFE4F0,#F0E6FF); }
.wc2::before { background: linear-gradient(135deg,#E0FFE8,#FFF8D6); }
.wc3::before { background: linear-gradient(135deg,#E0F2FF,#E0FAFA); }
.wc4::before { background: linear-gradient(135deg,#FFF8D6,#FFE4F0); }
.wc5::before { background: linear-gradient(135deg,#E0FFE8,#E0F2FF); }
.wc6::before { background: linear-gradient(135deg,#F0E6FF,#FFE4F0); }
.why-card:hover::before { opacity: 1; }
.why-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px var(--shadow); border-color: transparent; }
.why-card > * { position: relative; }
.wc-icon { font-size: 2.5rem; margin-bottom: 16px; }
.why-card h3 { font-family: var(--font-h); font-size: 1.3rem; color: var(--text); margin-bottom: 10px; }
.why-card p { font-size: 0.95rem; color: var(--text-m); }

/* ===== APP SECTION ===== */
.app-section {
  background: linear-gradient(135deg, #1A1A2E 0%, #2D1B69 100%);
  padding: 90px 0;
}
.app-section .section-header.light h2 { color: white; }
.app-section .section-header.light p { color: rgba(255,255,255,0.7); }

.diary-app {
  display: grid; grid-template-columns: 300px 1fr; gap: 0;
  background: white; border-radius: 24px;
  overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  min-height: 600px;
}
.app-sidebar {
  background: linear-gradient(180deg, #F8F0FF, #EEF0FF);
  border-right: 2px solid var(--border);
  display: flex; flex-direction: column;
}
.sidebar-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px; border-bottom: 2px solid var(--border);
}
.sidebar-top h3 { font-family: var(--font-h); font-size: 1.1rem; color: var(--purple); }
.new-entry-btn {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: white; border: none; border-radius: 50px;
  padding: 6px 14px; font-size: 0.8rem; font-weight: 700;
  cursor: pointer; transition: all 0.2s;
}
.new-entry-btn:hover { transform: scale(1.05); }
.search-bar { padding: 12px 16px; }
.search-bar input {
  width: 100%; padding: 8px 14px; border-radius: 50px;
  border: 1.5px solid var(--border); font-family: var(--font-b);
  font-size: 0.85rem; outline: none; background: white;
  transition: border-color 0.2s;
}
.search-bar input:focus { border-color: var(--purple); }
.entry-list { flex: 1; overflow-y: auto; padding: 8px; }
.entry-item {
  padding: 12px; border-radius: 12px; cursor: pointer;
  margin-bottom: 6px; transition: all 0.2s;
  border: 2px solid transparent;
}
.entry-item:hover { background: #F0EEFF; }
.entry-item.active { background: #F0EEFF; border-color: var(--purple); }
.ei-title { font-weight: 700; font-size: 0.9rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ei-meta { font-size: 0.75rem; color: var(--text-l); margin-top: 2px; }
.ei-preview { font-size: 0.8rem; color: var(--text-m); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.app-editor { display: flex; flex-direction: column; }
.editor-header {
  padding: 16px 24px; border-bottom: 2px solid var(--border);
  background: #FAFBFF;
}
.title-input {
  width: 100%; border: none; font-family: var(--font-h);
  font-size: 1.5rem; color: var(--text); background: transparent;
  outline: none; margin-bottom: 10px;
}
.meta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.date-input {
  border: 1.5px solid var(--border); border-radius: 8px;
  padding: 5px 10px; font-family: var(--font-b); font-size: 0.85rem;
  outline: none; color: var(--text-m);
}
.mood-picker { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; color: var(--text-m); }
.mood-btn {
  background: none; border: 2px solid transparent; border-radius: 8px;
  font-size: 1.3rem; cursor: pointer; padding: 2px 4px; transition: all 0.2s;
}
.mood-btn.active { background: #F0EEFF; border-color: var(--purple); transform: scale(1.2); }
.mood-btn:hover { background: #F0EEFF; transform: scale(1.15); }

.editor-toolbar {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
  padding: 10px 0 0;
}
.editor-toolbar button {
  background: #F0EEFF; border: none; border-radius: 6px;
  padding: 5px 10px; font-family: var(--font-b); font-size: 0.85rem;
  font-weight: 700; color: var(--purple); cursor: pointer; transition: all 0.2s;
  min-width: 32px;
}
.editor-toolbar button:hover { background: var(--purple); color: white; }
.editor-toolbar .sep { width: 1px; height: 20px; background: var(--border); margin: 0 4px; }
#text-color { width: 32px; height: 30px; padding: 2px; border: 1.5px solid var(--border); border-radius: 6px; cursor: pointer; }

.editor-body {
  flex: 1; padding: 24px; font-family: var(--font-d); font-size: 1.15rem;
  line-height: 1.9; color: var(--text); outline: none;
  min-height: 300px; overflow-y: auto;
}
.editor-body:empty::before {
  content: attr(data-placeholder); color: var(--text-l); pointer-events: none;
}
.editor-footer {
  padding: 14px 24px; border-top: 2px solid var(--border);
  background: #FAFBFF; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.tags-area { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tags-label { font-size: 0.85rem; font-weight: 700; color: var(--text-m); }
.tags-container { display: flex; gap: 5px; flex-wrap: wrap; }
.tag-item {
  background: #F0EEFF; color: var(--purple); border-radius: 20px;
  padding: 2px 10px; font-size: 0.78rem; font-weight: 700;
  display: flex; align-items: center; gap: 4px;
}
.tag-item button { background: none; border: none; cursor: pointer; color: var(--pink); font-size: 0.75rem; padding: 0; line-height: 1; }
#tag-input {
  border: 1.5px solid var(--border); border-radius: 20px;
  padding: 3px 12px; font-size: 0.8rem; font-family: var(--font-b);
  outline: none; width: 100px;
}
.editor-actions { display: flex; align-items: center; gap: 10px; }
.word-count { font-size: 0.78rem; color: var(--text-l); }
.btn-save {
  background: linear-gradient(135deg, var(--green), #00A048);
  color: white; border: none; border-radius: 50px;
  padding: 8px 20px; font-family: var(--font-b); font-weight: 800;
  font-size: 0.9rem; cursor: pointer; transition: all 0.2s;
}
.btn-save:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,200,83,0.4); }
.btn-delete {
  background: #FFE4EA; color: var(--red); border: none; border-radius: 50px;
  padding: 8px 16px; font-family: var(--font-b); font-weight: 700;
  font-size: 0.85rem; cursor: pointer; transition: all 0.2s;
}
.btn-delete:hover { background: var(--red); color: white; }

/* ===== FEATURES ===== */
.features-section { background: linear-gradient(135deg, #F8F0FF 0%, #E8F8FF 100%); }
.features-tabs {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 40px;
}
.ftab {
  background: white; border: 2px solid var(--border); border-radius: 50px;
  padding: 10px 24px; font-family: var(--font-b); font-weight: 700;
  font-size: 0.9rem; cursor: pointer; color: var(--text-m); transition: all 0.3s;
}
.ftab.active, .ftab:hover { background: var(--purple); color: white; border-color: var(--purple); }
.ftab-content { display: none; }
.ftab-content.active { display: block; animation: fadeIn 0.4s ease; }
.feat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.feat-card {
  background: white; border-radius: var(--radius); padding: 28px 20px;
  border: 2px solid var(--border); transition: all 0.3s;
}
.feat-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px var(--shadow); }
.fc-icon { width:56px;height:56px;border-radius:16px;display:flex;align-items:center;justify-content:center;font-size:1.6rem;margin-bottom:16px; }
.feat-card h4 { font-family: var(--font-h); font-size: 1.05rem; color: var(--text); margin-bottom: 8px; }
.feat-card p { font-size: 0.88rem; color: var(--text-m); }

/* ===== MOOD SECTION ===== */
.mood-section { background: white; }
.mood-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.mood-calendar { background: #F8F0FF; border-radius: 20px; padding: 24px; }
.mc-header { margin-bottom: 16px; }
.mc-header h4 { font-family: var(--font-h); font-size: 1.1rem; color: var(--purple); }
.mc-grid {
  display: grid; grid-template-columns: repeat(7,1fr); gap: 6px;
  margin-bottom: 16px;
}
.mc-day {
  width: 100%; aspect-ratio: 1; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; cursor: default;
  transition: transform 0.2s;
}
.mc-day:hover { transform: scale(1.2); }
.mc-legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.8rem; font-weight: 600; color: var(--text-m); }
.leg-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; }
.mood-stats h4 { font-family: var(--font-h); font-size: 1.2rem; color: var(--text); margin-bottom: 20px; }
.mood-bar-item { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 0.9rem; font-weight: 600; }
.mood-bar-item span:first-child { width: 100px; }
.mbar { flex: 1; height: 12px; background: #F0EEFF; border-radius: 50px; overflow: hidden; }
.mbar-fill { height: 100%; border-radius: 50px; animation: growBar 1.5s ease both; }
.streak-box {
  display: flex; align-items: center; gap: 16px; background: linear-gradient(135deg,#FFF8D6,#FFE4F0);
  border: 2px solid #FFD60A; border-radius: 16px; padding: 20px; margin-top: 24px;
}
.streak-fire { font-size: 2.5rem; animation: floatEmoji 2s ease-in-out infinite; }
.streak-num { font-family: var(--font-h); font-size: 2.5rem; color: var(--orange); }
.streak-label { font-weight: 700; color: var(--text-m); }

/* ===== PROMPTS SECTION ===== */
.prompts-section { background: linear-gradient(135deg, #E0FAFF 0%, #F0E6FF 100%); }
.prompts-wrapper { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.prompt-card {
  background: white; border-radius: 24px; padding: 40px 48px;
  text-align: center; max-width: 680px; width: 100%;
  box-shadow: 0 16px 50px var(--shadow);
  border: 2px solid var(--border);
  animation: fadeIn 0.5s ease;
}
.prompt-category {
  font-size: 0.85rem; font-weight: 800; color: var(--purple);
  background: #F0E6FF; display: inline-block; padding: 5px 16px;
  border-radius: 50px; margin-bottom: 20px;
}
.prompt-text {
  font-family: var(--font-d); font-size: 1.5rem; color: var(--text);
  line-height: 1.6; margin-bottom: 28px;
}
.prompt-use-btn {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: white; border: none; border-radius: 50px;
  padding: 12px 28px; font-family: var(--font-b); font-weight: 700;
  font-size: 0.95rem; cursor: pointer; transition: all 0.3s;
}
.prompt-use-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(155,93,229,0.4); }
.prompt-categories { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pcat-btn {
  background: white; border: 2px solid var(--border); border-radius: 50px;
  padding: 8px 18px; font-family: var(--font-b); font-weight: 700;
  font-size: 0.85rem; cursor: pointer; color: var(--text-m); transition: all 0.2s;
}
.pcat-btn.active, .pcat-btn:hover { background: var(--teal); color: white; border-color: var(--teal); }
.btn-new-prompt {
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  color: white; border: none; border-radius: 50px;
  padding: 12px 32px; font-family: var(--font-b); font-weight: 800;
  font-size: 1rem; cursor: pointer; transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(255,109,0,0.3);
}
.btn-new-prompt:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 10px 30px rgba(255,109,0,0.4); }

/* ===== HOW IT WORKS ===== */
.how-section { background: white; }
.steps-wrapper {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 40px;
  position: relative;
}
.step-line {
  position: absolute; top: 60px; left: 16%; right: 16%;
  height: 3px; background: linear-gradient(90deg, var(--purple), var(--pink), var(--blue));
  border-radius: 2px;
}
.step { text-align: center; padding: 0 16px; position: relative; }
.step-num {
  display: inline-block; font-family: var(--font-h); font-size: 0.8rem;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: white; padding: 3px 12px; border-radius: 50px; margin-bottom: 16px;
}
.step-icon {
  width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center; font-size: 2.2rem;
  background: linear-gradient(135deg, #F0E6FF, #FFE4F0);
  border: 3px solid white; box-shadow: 0 8px 25px var(--shadow);
  transition: transform 0.3s;
}
.step:hover .step-icon { transform: scale(1.15) rotate(5deg); }
.step h3 { font-family: var(--font-h); font-size: 1.2rem; color: var(--text); margin-bottom: 10px; }
.step p { font-size: 0.9rem; color: var(--text-m); }

/* ===== AUDIENCE ===== */
.audience-section { background: linear-gradient(135deg, #FFF8D6 0%, #FFE4F0 50%, #E0F7FF 100%); }
.audience-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.aud-card {
  background: white; border-radius: 20px; padding: 32px 24px;
  text-align: center; border-top: 4px solid var(--ac);
  transition: all 0.3s; box-shadow: 0 4px 20px var(--shadow);
}
.aud-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px var(--shadow); }
.ac-img { font-size: 3rem; margin-bottom: 16px; }
.aud-card h3 { font-family: var(--font-h); font-size: 1.2rem; color: var(--text); margin-bottom: 10px; }
.aud-card p { font-size: 0.9rem; color: var(--text-m); }

/* ===== FAQ ===== */
.faq-section { background: white; }
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 2px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none;
  padding: 22px 0; font-family: var(--font-b); font-weight: 700;
  font-size: 1rem; color: var(--text); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  transition: color 0.2s;
}
.faq-q:hover { color: var(--purple); }
.faq-arrow { transition: transform 0.3s; font-size: 0.8rem; color: var(--purple); }
.faq-q.open .faq-arrow { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 0 20px; }
.faq-a.open { display: block; animation: fadeIn 0.3s ease; }
.faq-a p { font-size: 0.95rem; color: var(--text-m); }

/* ===== QUOTES ===== */
.quotes-section { background: linear-gradient(135deg, #1A1A2E, #2D1B69); }
.quotes-section .section-header.light h2 { color: white; }
.quotes-section .section-header.light p { color: rgba(255,255,255,0.7); }
.quotes-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.quote-card {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px; padding: 32px; backdrop-filter: blur(10px);
  transition: all 0.3s;
}
.quote-card:hover { background: rgba(255,255,255,0.12); transform: translateY(-5px); }
.q-text {
  font-family: var(--font-d); font-size: 1.1rem; color: rgba(255,255,255,0.9);
  line-height: 1.7; margin-bottom: 24px;
}
.q-author { display: flex; align-items: center; gap: 12px; }
.q-avatar { font-size: 2rem; }
.q-author strong { color: white; font-size: 0.95rem; }
.q-author small { color: rgba(255,255,255,0.6); font-size: 0.8rem; }

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  padding: 100px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-bg { position: absolute; inset: 0; pointer-events: none; }
.cta-bubble { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.1); animation: floatBubble 8s ease-in-out infinite; }
.cb1 { width:300px;height:300px; top:-100px; left:-80px; }
.cb2 { width:200px;height:200px; bottom:-60px; right:-40px; animation-delay:2s; }
.cb3 { width:150px;height:150px; top:30%; right:15%; animation-delay:4s; }
.cta-content { position: relative; z-index: 1; }
.cta-emoji { font-size: 4rem; margin-bottom: 16px; animation: float 3s ease-in-out infinite; display: block; }
.cta-content h2 { font-family: var(--font-h); font-size: clamp(2rem,4vw,3rem); color: white; margin-bottom: 20px; }
.cta-content p { font-size: 1.1rem; color: rgba(255,255,255,0.85); max-width: 600px; margin: 0 auto 36px; }
.btn-cta-big {
  background: white; color: var(--purple); border: none; border-radius: 50px;
  padding: 18px 42px; font-family: var(--font-b); font-weight: 800;
  font-size: 1.1rem; cursor: pointer; transition: all 0.3s;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.btn-cta-big:hover { transform: translateY(-4px) scale(1.04); box-shadow: 0 16px 50px rgba(0,0,0,0.25); }
.cta-note { color: rgba(255,255,255,0.7); font-size: 0.85rem; margin-top: 16px; }

/* ===== FOOTER ===== */
.site-footer {
  background: #0D0D1E;
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 30px;
}
.footer-brand .logo { color: white; margin-bottom: 14px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 {
  color: white; font-family: var(--font-h); font-size: 1rem;
  margin-bottom: 16px; letter-spacing: 0.5px;
}
.footer-col a {
  display: block; margin-bottom: 8px; font-size: 0.875rem;
  color: rgba(255,255,255,0.6); transition: color 0.2s;
}
.footer-col a:hover { color: var(--pink); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; font-size: 0.82rem;
}
.footer-bottom a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--pink); }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px); z-index: 9999;
  display: flex; align-items: center; justify-content: center;
}
.modal-box {
  background: white; border-radius: 24px; padding: 40px;
  max-width: 440px; width: 90%; text-align: center;
  position: relative; animation: fadeUp 0.4s ease;
}
.modal-close {
  position: absolute; top: 16px; right: 16px; background: #F0EEFF;
  border: none; border-radius: 50%; width: 32px; height: 32px;
  font-size: 0.9rem; cursor: pointer; color: var(--purple); font-weight: 700;
}
.modal-box h3 { font-family: var(--font-h); font-size: 1.5rem; margin-bottom: 12px; color: var(--purple); }
.modal-box p { font-size: 0.95rem; color: var(--text-m); margin-bottom: 24px; }

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 30px; right: 30px; z-index: 9999;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: white; border-radius: 50px; padding: 12px 24px;
  font-weight: 700; font-size: 0.9rem;
  box-shadow: 0 8px 30px rgba(155,93,229,0.4);
  animation: slideToast 0.3s ease, fadeOut 0.3s ease 2.5s forwards;
}

/* ===== MOBILE NAV ===== */
.mobile-menu {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: white; padding: 16px; border-bottom: 2px solid var(--border);
  flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 16px; border-radius: 12px; font-weight: 600;
  color: var(--text-m); font-size: 0.95rem; transition: background 0.2s;
}
.mobile-menu a:hover { background: #F0EEFF; color: var(--purple); }

/* ===== ANIMATIONS ===== */
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
@keyframes floatCard { 0%,100%{transform:rotate(1deg) translateY(0)} 50%{transform:rotate(1deg) translateY(-12px)} }
@keyframes floatBubble { 0%,100%{transform:translateY(0) scale(1)} 50%{transform:translateY(-30px) scale(1.05)} }
@keyframes floatEmoji { 0%,100%{transform:translateY(0) rotate(0deg)} 50%{transform:translateY(-15px) rotate(8deg)} }
@keyframes fadeUp { from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
@keyframes pulse { 0%,100%{box-shadow:0 0 0 0 rgba(155,93,229,0.2)} 50%{box-shadow:0 0 0 8px rgba(155,93,229,0)} }
@keyframes growBar { from{width:0} to{width:var(--w,100%)} }
@keyframes slideToast { from{transform:translateX(100px);opacity:0} to{transform:translateX(0);opacity:1} }
@keyframes fadeOut { from{opacity:1} to{opacity:0} }
@keyframes slideIn { from{opacity:0;transform:translateX(-30px)} to{opacity:1;transform:translateX(0)} }

/* Intersection Observer Animation Targets */
[data-anim] { opacity: 0; }
[data-anim].visible { opacity: 1; }
[data-anim="fadeUp"].visible { animation: fadeUp 0.7s ease forwards; }
[data-anim="slideIn"].visible { animation: slideIn 0.7s ease forwards; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .feat-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: flex; justify-content: center; }
  .diary-mockup { transform: none; }
  .why-grid { grid-template-columns: repeat(2,1fr); }
  .audience-grid { grid-template-columns: repeat(2,1fr); }
  .quotes-grid { grid-template-columns: 1fr; }
  .steps-wrapper { grid-template-columns: 1fr; }
  .step-line { display: none; }
  .mood-demo { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .diary-app { grid-template-columns: 1fr; }
  .app-sidebar { max-height: 200px; border-right: none; border-bottom: 2px solid var(--border); }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .site-header { position: relative; }
  .feat-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  section { padding: 60px 0; }
  .why-grid { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
