/* =============================================
   WriteDiary - Main Stylesheet
   Educational Stylish Theme
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=DM+Sans:wght@300;400;500;600&family=Caveat:wght@400;600&display=swap');

/* ── CSS Variables ── */
:root {
  --ink: #1a1a2e;
  --ink-soft: #2d2d4e;
  --paper: #fefaf3;
  --paper-warm: #f7f0e3;
  --cream: #f0e6d3;
  --gold: #c8963e;
  --gold-light: #e8b96a;
  --teal: #2a7c6f;
  --teal-light: #3daa98;
  --coral: #e05c5c;
  --lavender: #8b6fc0;
  --white: #ffffff;
  --text-body: #3a3a5c;
  --text-muted: #7a7a9a;
  --border: rgba(200, 150, 62, 0.2);
  --shadow-sm: 0 2px 12px rgba(26,26,46,0.08);
  --shadow-md: 0 8px 32px rgba(26,26,46,0.12);
  --shadow-lg: 0 20px 60px rgba(26,26,46,0.18);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.35s 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: 'DM Sans', sans-serif;
  background: var(--paper);
  color: var(--text-body);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Typography ── */
h1,h2,h3,h4 { font-family: 'Playfair Display', serif; color: var(--ink); line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
p { color: var(--text-body); }

.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.75rem;
}
.section-title { margin-bottom: 1rem; }
.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 3rem;
}
.text-center { text-align: center; }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(42,124,111,0.3);
  white-space: nowrap;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(42,124,111,0.45);
  color: var(--white);
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent;
  color: var(--ink);
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--border);
  transition: var(--transition);
}
.btn-secondary:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-2px);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--white);
  padding: 1rem 2.4rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex; align-items: center; gap: 0.6rem;
  box-shadow: 0 6px 24px rgba(200,150,62,0.35);
  transition: var(--transition);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 10px 35px rgba(200,150,62,0.5); color: var(--white); }

/* ── Navbar ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.2rem 0;
  transition: var(--transition);
  background: transparent;
}
.navbar.scrolled {
  background: rgba(254,250,243,0.95);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  padding: 0.75rem 0;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.logo {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  flex-shrink: 0;
}
.logo-icon { font-size: 1.6rem; }
.logo-accent { color: var(--teal); }
.nav-links {
  display: flex; align-items: center; gap: 0.2rem;
  margin-left: auto;
}
.nav-links a {
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--teal); background: rgba(42,124,111,0.06); }
.nav-actions { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.nav-cta { padding: 0.65rem 1.5rem; font-size: 0.88rem; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: var(--transition);
}
.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); }

/* ── Language Selector ── */
.lang-selector { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  transition: var(--transition);
}
.lang-btn:hover { border-color: var(--teal); color: var(--teal); }
.lang-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  min-width: 160px;
  opacity: 0; transform: translateY(-8px);
  pointer-events: none;
  transition: var(--transition);
  overflow: hidden;
}
.lang-dropdown.open { opacity: 1; transform: translateY(0); pointer-events: all; }
.lang-dropdown li {
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background var(--transition);
}
.lang-dropdown li:hover { background: var(--cream); }
.lang-dropdown li[aria-selected="true"] { background: rgba(42,124,111,0.08); color: var(--teal); font-weight: 600; }

/* ── Page Layout ── */
.page-wrapper { padding-top: 80px; }
section { padding: 5rem 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Paper texture lines ── */
.lined-bg {
  background-image: repeating-linear-gradient(
    transparent, transparent 31px,
    rgba(200,150,62,0.1) 31px, rgba(200,150,62,0.1) 32px
  );
  background-size: 100% 32px;
}

/* ── Hero ── */
#home {
  min-height: 100vh;
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-soft) 60%, #1a2a4a 100%);
  display: flex; align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 0;
}
.hero-bg-pattern {
  position: absolute; inset: 0; opacity: 0.04;
  background-image: repeating-linear-gradient(
    90deg, var(--white) 0, var(--white) 1px, transparent 0, transparent 50%
  ), repeating-linear-gradient(
    180deg, var(--white) 0, var(--white) 1px, transparent 0, transparent 50%
  );
  background-size: 40px 40px;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero-glow-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(42,124,111,0.3), transparent);
  top: -100px; right: -100px;
  animation: floatGlow 8s ease-in-out infinite;
}
.hero-glow-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(200,150,62,0.2), transparent);
  bottom: -100px; left: -50px;
  animation: floatGlow 10s ease-in-out infinite reverse;
}
@keyframes floatGlow {
  0%,100% { transform: translate(0,0); }
  50% { transform: translate(30px,-30px); }
}
.hero-content {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 4rem;
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  width: 100%;
}
.hero-text { color: var(--white); }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
  animation: fadeInUp 0.8s ease both;
}
.hero-title {
  color: var(--white);
  margin-bottom: 1.2rem;
  animation: fadeInUp 0.8s ease 0.1s both;
}
.hero-title em {
  font-style: italic;
  color: var(--gold-light);
  font-family: 'Caveat', cursive;
  font-size: 1.1em;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 2.5rem;
  max-width: 480px;
  animation: fadeInUp 0.8s ease 0.2s both;
}
.hero-cta {
  display: flex; gap: 1rem; flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.3s both;
}
.hero-stats {
  display: flex; gap: 2rem; margin-top: 3rem;
  animation: fadeInUp 0.8s ease 0.4s both;
}
.hero-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem; font-weight: 700;
  color: var(--gold-light);
}
.hero-stat-label { font-size: 0.82rem; color: rgba(255,255,255,0.55); }

/* ── Diary Mockup ── */
.hero-mockup {
  animation: fadeInRight 1s ease 0.3s both;
}
.diary-book {
  background: var(--paper);
  border-radius: 4px 20px 20px 4px;
  box-shadow: -8px 0 0 var(--gold), var(--shadow-lg), 0 0 0 1px rgba(200,150,62,0.3);
  padding: 2.5rem;
  position: relative;
  min-height: 420px;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.diary-book::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 4px 0 0 4px;
}
.diary-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.5rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.diary-date {
  font-family: 'Caveat', cursive;
  font-size: 1.1rem; color: var(--gold);
}
.diary-mood { font-size: 1.4rem; }
.diary-body { flex: 1; }
.diary-title-input {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; font-weight: 600;
  color: var(--ink); margin-bottom: 1rem;
  border: none; background: none; width: 100%;
  outline: none;
}
.diary-lines {
  display: flex; flex-direction: column; gap: 0.6rem;
}
.diary-line {
  height: 1px;
  background: rgba(200,150,62,0.2);
  position: relative;
}
.diary-line.has-text::after {
  content: attr(data-text);
  position: absolute; top: -10px; left: 0;
  font-family: 'Caveat', cursive;
  font-size: 1rem; color: var(--text-body);
  white-space: nowrap;
}
.diary-cursor {
  display: inline-block; width: 2px; height: 1.2em;
  background: var(--teal); vertical-align: text-bottom;
  animation: blink 1s step-end infinite; margin-left: 2px;
}
@keyframes blink { 50% { opacity: 0; } }
.diary-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 1.5rem; padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.diary-wc { font-size: 0.8rem; color: var(--text-muted); }
.diary-save {
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  color: var(--white); padding: 0.5rem 1.2rem;
  border-radius: 50px; font-size: 0.85rem; font-weight: 600;
}

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Features Section ── */
#features {
  background: var(--white);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.feature-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  transform: scaleX(0); transform-origin: left;
  transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, rgba(42,124,111,0.12), rgba(42,124,111,0.06));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
}
.feature-card h3 { margin-bottom: 0.5rem; font-size: 1.15rem; }
.feature-card p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.6; }

/* ── How It Works ── */
#how-it-works { background: var(--paper-warm); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute; top: 40px; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  z-index: 0;
}
.step-card {
  text-align: center;
  position: relative; z-index: 1;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.step-num {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 700;
  margin: 0 auto 1.2rem;
  box-shadow: 0 4px 16px rgba(42,124,111,0.3);
}
.step-card h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.step-card p { font-size: 0.9rem; color: var(--text-muted); }

/* ── About / Why Diary Section ── */
#about {
  background: var(--white);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-visual {
  background: linear-gradient(135deg, var(--ink), var(--ink-soft));
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.about-quote {
  font-family: 'Caveat', cursive;
  font-size: 1.8rem;
  line-height: 1.5;
  color: var(--gold-light);
  position: relative; z-index: 1;
}
.about-quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 8rem;
  color: rgba(200,150,62,0.2);
  position: absolute; top: -1rem; left: 1rem;
  line-height: 1;
}
.about-author {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  position: relative; z-index: 1;
}
.about-text p { margin-bottom: 1.2rem; color: var(--text-body); line-height: 1.8; }
.about-benefits {
  display: flex; flex-direction: column; gap: 0.75rem;
  margin-top: 1.5rem;
}
.about-benefit {
  display: flex; align-items: flex-start; gap: 0.75rem;
  font-size: 0.95rem;
}
.benefit-check {
  width: 22px; height: 22px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 0.7rem; font-weight: 700;
  margin-top: 2px;
}

/* ── Daily Diary Tips ── */
#guide {
  background: linear-gradient(135deg, var(--ink) 0%, #1e2d4a 100%);
  color: var(--white);
  position: relative; overflow: hidden;
}
#guide .section-label { color: var(--gold-light); }
#guide .section-title { color: var(--white); }
#guide .section-subtitle { color: rgba(255,255,255,0.6); }
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.tip-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 2rem;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}
.tip-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(200,150,62,0.4);
  transform: translateY(-4px);
}
.tip-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem; font-weight: 700;
  color: var(--gold); opacity: 0.5;
  margin-bottom: 0.5rem; line-height: 1;
}
.tip-card h3 { color: var(--white); margin-bottom: 0.5rem; font-size: 1rem; }
.tip-card p { color: rgba(255,255,255,0.6); font-size: 0.88rem; }

/* ── Languages Section ── */
#languages { background: var(--paper-warm); }
.lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.lang-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.lang-card:hover {
  border-color: var(--teal);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.lang-flag-big { font-size: 3.5rem; margin-bottom: 0.75rem; }
.lang-card h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.lang-card p { font-size: 0.85rem; color: var(--text-muted); }

/* ── FAQ ── */
#faq { background: var(--white); }
.faq-grid { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.faq-item {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition);
}
.faq-item.open { border-color: var(--teal); }
.faq-question {
  width: 100%; padding: 1.25rem 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  text-align: left;
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 600;
  color: var(--ink);
  transition: var(--transition);
}
.faq-question:hover { color: var(--teal); }
.faq-icon {
  width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(42,124,111,0.1);
  color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; transition: var(--transition);
}
.faq-item.open .faq-icon { background: var(--teal); color: var(--white); transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-answer p {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.93rem; color: var(--text-muted); line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 300px; }

/* ── CTA Banner ── */
#cta-banner {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 50%, #1a8f7f 100%);
  padding: 5rem 0;
  text-align: center;
}
#cta-banner h2 { color: var(--white); }
#cta-banner p { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin: 1rem auto 2.5rem; max-width: 500px; }

/* ── Contact ── */
#contact { background: var(--paper-warm); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem; align-items: start;
}
.contact-info h3 { margin-bottom: 1rem; }
.contact-info p { color: var(--text-muted); margin-bottom: 1.5rem; }
.contact-items { display: flex; flex-direction: column; gap: 1rem; }
.contact-item {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.95rem; color: var(--text-body);
}
.contact-item-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  font-family: inherit; font-size: 0.93rem; color: var(--ink);
  transition: var(--transition); outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42,124,111,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-success {
  background: rgba(42,124,111,0.1);
  color: var(--teal); border-radius: var(--radius-sm);
  padding: 1rem; text-align: center; font-weight: 600;
  display: none;
}
.form-success.show { display: block; }

/* ── Keywords/SEO Content Section ── */
#why-diary { background: var(--white); }
.content-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
}
.content-col h3 { margin-bottom: 0.75rem; color: var(--teal); font-size: 1.1rem; }
.content-col p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 1rem; }

/* ── Footer ── */
#site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 0;
}
.footer-body {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem 3rem;
  display: grid; grid-template-columns: 1.5fr 2fr; gap: 4rem;
}
.footer-brand .logo { color: var(--white); margin-bottom: 1rem; }
.footer-tagline { font-size: 0.9rem; color: rgba(255,255,255,0.5); line-height: 1.7; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: 0.75rem; }
.social-link {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.social-link:hover { background: var(--teal); color: var(--white); transform: translateY(-3px); }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-col h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-light); margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a {
  font-size: 0.9rem; color: rgba(255,255,255,0.55);
  transition: var(--transition);
}
.footer-col a:hover { color: var(--white); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem;
  display: flex; justify-content: center; flex-direction: column;
  align-items: center; gap: 0.4rem;
  text-align: center;
}
.footer-bottom p { font-size: 0.85rem; }
.footer-rights { font-size: 0.78rem; color: rgba(255,255,255,0.35); }

/* ── App Page ── */
.app-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: calc(100vh - 80px);
}
.sidebar {
  background: var(--ink);
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: 1rem;
  height: calc(100vh - 80px);
  position: sticky; top: 80px;
  overflow-y: auto;
}
.sidebar-header {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-title {
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
}
.btn-new-entry {
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.82rem; font-weight: 600;
  transition: var(--transition);
}
.btn-new-entry:hover { transform: scale(1.05); }
.entry-list { display: flex; flex-direction: column; gap: 0.5rem; flex: 1; overflow-y: auto; }
.entry-item {
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
}
.entry-item:hover, .entry-item.active {
  background: rgba(255,255,255,0.1);
  border-color: rgba(42,124,111,0.4);
}
.entry-item-date { font-size: 0.72rem; color: var(--gold-light); margin-bottom: 0.25rem; }
.entry-item-title { color: var(--white); font-size: 0.88rem; font-weight: 500; }
.entry-item-preview { font-size: 0.78rem; color: rgba(255,255,255,0.4); margin-top: 0.2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.no-entries {
  color: rgba(255,255,255,0.3);
  font-size: 0.85rem;
  text-align: center;
  padding: 2rem 1rem;
  font-style: italic;
}
.editor-area {
  background: var(--paper);
  display: flex; flex-direction: column;
}
.editor-toolbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
}
.toolbar-group {
  display: flex; align-items: center; gap: 0.25rem;
  padding-right: 0.75rem;
  border-right: 1px solid var(--border);
}
.toolbar-group:last-child { border-right: none; margin-left: auto; }
.toolbar-btn {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; color: var(--text-muted);
  transition: var(--transition);
  font-weight: 600;
}
.toolbar-btn:hover { background: var(--cream); color: var(--ink); }
.toolbar-btn.active { background: var(--teal); color: var(--white); }
.mood-selector { display: flex; gap: 0.35rem; }
.mood-btn {
  font-size: 1.2rem; width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); opacity: 0.5;
}
.mood-btn:hover, .mood-btn.active { opacity: 1; background: var(--cream); transform: scale(1.2); }
.editor-main {
  flex: 1; padding: 2.5rem;
  lined-bg: true;
  background-image: repeating-linear-gradient(transparent, transparent 31px, rgba(200,150,62,0.1) 31px, rgba(200,150,62,0.1) 32px);
  background-size: 100% 32px;
}
#entryTitle {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 700;
  color: var(--ink);
  border: none; background: none; outline: none;
  width: 100%; margin-bottom: 0.5rem;
}
#entryTitle::placeholder { color: rgba(26,26,46,0.25); }
.entry-meta {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 2rem;
  font-size: 0.85rem; color: var(--text-muted);
}
.entry-meta-date { color: var(--gold); font-family: 'Caveat', cursive; font-size: 1rem; }
#entryContent {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem; line-height: 2; color: var(--ink);
  border: none; background: none; outline: none;
  width: 100%; min-height: 400px; resize: none;
}
#entryContent::placeholder { color: rgba(26,26,46,0.25); font-style: italic; }
.editor-statusbar {
  padding: 0.75rem 2rem;
  background: var(--white);
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.82rem; color: var(--text-muted);
}
.save-status { color: var(--teal); font-weight: 600; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 3rem; }
  .hero-mockup { max-width: 480px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-body { grid-template-columns: 1fr; gap: 2rem; }
  .app-layout { grid-template-columns: 1fr; }
  .sidebar { height: auto; position: relative; top: 0; }
  .content-cols { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: 70px; left: 0; right: 0;
    background: var(--white); flex-direction: column;
    padding: 1rem; gap: 0.25rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-120%); opacity: 0;
    transition: var(--transition); z-index: 999;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; }
  .nav-toggle { display: flex; }
  .nav-actions .btn-primary { display: none; }
  .steps-grid::before { display: none; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 1.5rem; }
  section { padding: 3.5rem 0; }
  .editor-toolbar { padding: 0.75rem 1rem; }
  .editor-main { padding: 1.5rem; }
}
@media (max-width: 480px) {
  .footer-links { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .lang-grid { grid-template-columns: 1fr 1fr; }
}
