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

:root {
  --rose: #d44c6e;
  --rose-dark: #b33a58;
  --rose-light: #fce4ec;
  --blush: #f8c8d4;
  --gold: #c9a96e;
  --cream: #fdf6f0;
  --charcoal: #2d2a2b;
  --gray: #6b6b6b;
  --gray-light: #f5f5f5;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(0,0,0,0.07);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.10);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
}

.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--charcoal);
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--rose);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 36px;
}

.nav-links a {
  text-decoration: none;
  color: var(--gray);
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--rose);
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--charcoal);
}

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

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 120px 80px 80px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 540px;
  z-index: 2;
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.6rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--charcoal);
}

.hero-content h1 em {
  font-style: italic;
  color: var(--rose);
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--rose);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--rose-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 76, 110, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border: 2px solid var(--charcoal);
}

.btn-outline:hover {
  background: var(--charcoal);
  color: var(--white);
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-circle {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose-light) 0%, var(--blush) 50%, var(--cream) 100%);
  animation: float 6s ease-in-out infinite;
}

.hero-circle-sm {
  position: absolute;
  top: 40px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blush), var(--rose-light));
  animation: float 4s ease-in-out 1s infinite;
}

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

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

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: var(--charcoal);
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  font-size: 1.05rem;
  margin-bottom: 56px;
}

/* ===== Cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  display: block;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--charcoal);
}

.card p {
  font-size: 0.92rem;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 16px;
}

.card-tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--rose);
  background: var(--rose-light);
  padding: 4px 14px;
  border-radius: 50px;
}

/* ===== Featured ===== */
.featured {
  background: var(--cream);
}

.featured-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
  align-items: start;
}

.featured-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step {
  display: flex;
  gap: 24px;
  padding: 24px;
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.step:hover {
  border-color: var(--blush);
}

.step.active {
  border-color: var(--rose);
  box-shadow: var(--shadow);
}

.step-number {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--blush);
  flex-shrink: 0;
  transition: var(--transition);
}

.step.active .step-number {
  color: var(--rose);
}

.step-info h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--charcoal);
}

.step-info p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.6;
}

.featured-visual {
  position: sticky;
  top: 100px;
}

.step-progress {
  height: 4px;
  background: var(--blush);
  border-radius: 2px;
  margin-bottom: 12px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--rose);
  border-radius: 2px;
  transition: width var(--transition);
  width: 25%;
}

.step-hint {
  font-size: 0.82rem;
  color: var(--gray);
  text-align: center;
}

/* ===== Tips ===== */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tip-item {
  background: var(--gray-light);
  border-radius: var(--radius-sm);
  padding: 28px;
  transition: var(--transition);
}

.tip-item:hover {
  background: var(--rose-light);
}

.tip-item h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--charcoal);
}

.tip-item p {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.6;
}

/* ===== Tutorial Detail Page ===== */
.tutorial-detail {
  display: none;
  padding: 100px 0 60px;
}

.back-link {
  display: inline-block;
  color: var(--rose);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 32px;
  transition: var(--transition);
}

.back-link:hover {
  color: var(--rose-dark);
}

.tutorial-header {
  text-align: center;
  margin-bottom: 56px;
}

.tutorial-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 12px;
}

.tutorial-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 16px;
}

.tutorial-intro {
  max-width: 640px;
  margin: 0 auto 20px;
  color: var(--gray);
  font-size: 1.05rem;
  line-height: 1.7;
}

.tutorial-meta {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
}

.meta-item {
  font-size: 0.88rem;
  color: var(--gray);
  background: var(--gray-light);
  padding: 6px 18px;
  border-radius: 50px;
}

.meta-item strong {
  color: var(--charcoal);
}

/* Tutorial Steps */
.tutorial-steps-full {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.t-step {
  display: flex;
  gap: 28px;
  padding: 32px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
}

.t-step:hover {
  box-shadow: var(--shadow);
  border-color: transparent;
}

.t-step-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--rose);
  flex-shrink: 0;
  line-height: 1;
}

.t-step-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--charcoal);
}

.t-step-body p {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 12px;
}

.t-step-body ul {
  padding-left: 20px;
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.8;
}

.t-step-body ul li {
  margin-bottom: 4px;
}

.t-step-body ul li::marker {
  color: var(--blush);
}

/* ===== Footer ===== */
.footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  color: var(--white);
  display: inline-block;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links h4 {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links a {
  display: block;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 10px;
  transition: var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.4);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    padding: 100px 32px 60px;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2.6rem;
  }

  .hero-circle {
    width: 240px;
    height: 240px;
    margin-top: 40px;
  }

  .hero-circle-sm {
    width: 80px;
    height: 80px;
    right: -10px;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tips-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-content {
    grid-template-columns: 1fr;
  }

  .featured-visual {
    display: none;
  }

  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 24px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transform: translateY(-120%);
    transition: transform var(--transition);
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 1.05rem;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 560px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    text-align: center;
  }

  .card-grid,
  .tips-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .tutorial-header h1 {
    font-size: 1.7rem;
  }

  .t-step {
    flex-direction: column;
    gap: 12px;
    padding: 20px;
  }

  .section {
    padding: 64px 0;
  }

  .section-title {
    font-size: 1.8rem;
  }
}
