/* ============================================================
   DIYStyle — Design System (Kinetic Modern direction)
   ============================================================ */

:root {
  --primary: #23201d;
  --primary-dark: #151310;
  --accent: #b5502e;
  --accent-dark: #8f3e22;
  --accent-glow: rgba(181, 80, 46, 0.35);
  --accent-rgb: 181, 80, 46;
  --bg: #f7f3ee;
  --bg-alt: #ece3d8;
  --bg-dark: #1a1815;
  --ink: #211d19;
  --muted: #6b6259;
  --border: #ddd2c4;
  --white: #ffffff;

  --font-display: "Space Grotesk", Arial, sans-serif;
  --font-body: "Inter", Helvetica, Arial, sans-serif;

  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-lg: 0px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--white); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--accent); }

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

.announcement-bar {
  background: linear-gradient(135deg, var(--accent), var(--primary), var(--accent));
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
  color: var(--white);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 9px 16px;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; }
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  background: rgba(247, 243, 238, 0.9);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.3s ease;
}
.nav.scrolled { box-shadow: 0 4px 24px rgba(35,32,29,0.1); }
.nav-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; text-transform: uppercase; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-links a { position: relative; font-weight: 600; font-size: 0.92rem; padding-bottom: 4px; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--accent); transition: width 0.3s ease; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { padding: 11px 24px; background: var(--primary); color: var(--white); font-weight: 700; font-size: 0.88rem; }
.hamburger { display: none; background: none; border: none; cursor: pointer; }

/* Hero — full-bleed, diagonal split */
.hero {
  position: relative; width: 100vw; min-height: 90vh;
  display: grid; grid-template-columns: 1.1fr 0.9fr; overflow: hidden; background: var(--bg-dark);
}
.hero-copy { position: relative; z-index: 2; color: var(--white); padding: 100px 60px; display: flex; flex-direction: column; justify-content: center; }
.hero-copy > * { opacity: 0; transform: translateY(32px); animation: heroReveal 0.8s cubic-bezier(0.16,1,0.3,1) forwards; }
.hero-copy > *:nth-child(1) { animation-delay: .1s; }
.hero-copy > *:nth-child(2) { animation-delay: .25s; }
.hero-copy > *:nth-child(3) { animation-delay: .4s; }
.hero-copy > *:nth-child(4) { animation-delay: .55s; }
@keyframes heroReveal { to { opacity: 1; transform: translateY(0); } }
.hero-eyebrow { display: inline-block; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 18px; }
.hero h1 { font-family: var(--font-display); font-size: clamp(3rem, 5.5vw, 5.4rem); font-weight: 900; line-height: 0.95; letter-spacing: -0.02em; margin: 0 0 20px; text-transform: uppercase; }
.hero p { font-size: 1.1rem; max-width: 460px; color: rgba(255,255,255,0.8); margin: 0 0 28px; }
.hero-visual { position: relative; clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; will-change: transform; }
.hero-decorative-text { position: absolute; bottom: -30px; left: -10px; font-family: var(--font-display); font-size: 11rem; font-weight: 900; color: rgba(255,255,255,0.05); z-index: 1; pointer-events: none; text-transform: uppercase; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 15px 30px; font-weight: 700; font-size: 0.92rem; border: none; cursor: pointer; transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1); }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.5); }
.btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 12px 40px var(--accent-glow); }

.fade-up { opacity: 0; transform: translateY(32px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: var(--white); }
.section-eyebrow { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 12px; display: block; }
.section-title { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.01em; margin: 0 0 20px; text-transform: uppercase; }
.gradient-text { background: linear-gradient(120deg, var(--accent), var(--accent-dark)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.separator { width: 64px; height: 4px; background: var(--accent); margin: 0 0 24px; }

/* Book cover mockup */
.book-cover-wrap { perspective: 1400px; display: inline-block; }
.book-cover {
  position: relative; width: 260px; height: 370px;
  background: linear-gradient(155deg, var(--primary), var(--primary-dark));
  transform: rotateY(-20deg); transform-style: preserve-3d;
  box-shadow: 16px 22px 46px rgba(21,19,16,0.5), inset -6px 0 12px rgba(0,0,0,0.35);
  padding: 32px 26px; display: flex; flex-direction: column; justify-content: space-between; color: var(--white);
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.book-cover-wrap:hover .book-cover { transform: rotateY(-8deg); }
.book-cover::after {
  content: ""; position: absolute; right: -9px; top: 6px; bottom: 6px; width: 9px;
  background: repeating-linear-gradient(180deg, #f7f3ee 0px, #f7f3ee 2px, #ddd2c4 2px, #ddd2c4 4px);
  transform: translateZ(-10px);
}
.book-cover .book-eyebrow { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.book-cover h3 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 900; line-height: 1.05; margin: 14px 0 0; text-transform: uppercase; }
.book-cover .book-author { font-size: 0.82rem; color: rgba(255,255,255,0.7); border-top: 1px solid rgba(255,255,255,0.2); padding-top: 14px; }

/* Pricing */
.pricing-card { background: var(--white); border: 2px solid var(--primary); padding: 44px; text-align: center; max-width: 440px; margin: 0 auto; }
.price-tag { font-family: var(--font-display); font-size: 3.2rem; font-weight: 900; color: var(--accent); }
.price-tag sup { font-size: 1.3rem; top: -1.5rem; }
.includes-list { list-style: none; padding: 0; margin: 24px 0; text-align: left; }
.includes-list li { display: flex; gap: 10px; margin-bottom: 12px; font-size: 0.94rem; color: var(--muted); }
.includes-list li::before { content: "→"; color: var(--accent); font-weight: 900; }

/* Cards / grid */
.tips-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { background: var(--white); overflow: hidden; border: 1px solid var(--border); transition: transform 0.35s ease, box-shadow 0.35s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(35,32,29,0.12); }
.card-img { overflow: hidden; aspect-ratio: 3/2; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94); }
.card:hover .card-img img { transform: scale(1.07); }
.card-body { padding: 22px; }
.pill { display: inline-block; padding: 5px 14px; background: var(--bg-alt); color: var(--accent-dark); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; }
.card h3 { font-family: var(--font-display); font-size: 1.2rem; margin: 0 0 10px; text-transform: uppercase; }
.card p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* Stats */
.stats-section { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat-number { font-family: var(--font-display); font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 900; color: var(--accent); }
.stat-label { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.6); margin-top: 6px; }

/* Testimonials */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.testimonial-card { background: var(--white); padding: 26px; border: 1px solid var(--border); }
.testimonial-card p { font-style: italic; margin: 0 0 16px; }
.testimonial-name { font-weight: 700; font-size: 0.88rem; }
.testimonial-role { font-size: 0.78rem; color: var(--muted); }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-item summary { cursor: pointer; font-weight: 700; font-family: var(--font-display); font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; text-transform: uppercase; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { color: var(--muted); margin: 14px 0 0; font-style: normal; }

/* Glass + gradient border */
.glass-card { background: rgba(255,255,255,0.08); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,0.15); padding: 40px; }
.gradient-border-card { padding: 2px; background: linear-gradient(135deg, var(--accent), var(--primary)); }
.gradient-border-card > div { background: var(--white); padding: 28px; }
@keyframes pulse-glow { 0%,100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb),0.4); } 50% { box-shadow: 0 0 0 12px rgba(var(--accent-rgb),0); } }

/* Newsletter */
.newsletter { background: var(--bg-dark); color: var(--white); padding: 80px 0; }
.newsletter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.newsletter-form { display: flex; gap: 12px; }
.newsletter-form input { flex: 1; padding: 14px 18px; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.06); color: var(--white); font-family: var(--font-body); }
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }

/* Footer */
footer { background: var(--primary-dark); color: rgba(255,255,255,0.75); padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-grid h4 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 18px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--accent); }
.footer-brand p { max-width: 300px; color: rgba(255,255,255,0.6); font-size: 0.88rem; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: 0.84rem; color: rgba(255,255,255,0.5); }
.footer-bottom a { margin-left: 18px; }
.footer-bottom a:hover { color: var(--accent); }

/* Forms */
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 0.88rem; }
.form-field input, .form-field textarea { width: 100%; padding: 14px 16px; border: 1px solid var(--border); font-family: var(--font-body); font-size: 0.94rem; background: var(--white); }
.form-success { background: #e9f5ec; color: #1f6d3a; padding: 16px 20px; margin-bottom: 20px; }
.notice { padding: 16px 20px; font-size: 0.9rem; margin: 20px 0; }
.notice-info { background: var(--bg-alt); border-left: 4px solid var(--accent); }

/* Legal */
.legal-content h2 { font-family: var(--font-display); margin-top: 40px; text-transform: uppercase; font-size: 1.3rem; }
.legal-content table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.legal-content th, .legal-content td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; font-size: 0.9rem; }
.legal-content th { background: var(--bg-alt); }

@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .tips-grid, .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-section { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .tips-grid, .testimonial-grid { grid-template-columns: 1fr; }
  .stats-section { grid-template-columns: repeat(2, 1fr); }
  .newsletter-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-decorative-text { display: none; }
}
