:root {
  --primary-color: #8C2043;
  --secondary-color: #6A1530;
  --accent-color: #B22B5B;
  --light-color: #FDF0F4;
  --dark-color: #2A0B14;
  --gradient-primary: linear-gradient(135deg, #8C2043 0%, #B22B5B 100%);
  --hover-color: #721835;
  --background-color: #FBF5F7;
  --text-color: #2E1820;
  --border-color: rgba(178, 43, 91, 0.18);
  --divider-color: rgba(140, 32, 67, 0.13);
  --shadow-color: rgba(140, 32, 67, 0.11);
  --highlight-color: #C0E0B1;
  --main-font: 'Montserrat', sans-serif;
  --alt-font: 'Poppins', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; width: 100%; }

body {
  font-family: var(--alt-font);
  color: var(--text-color);
  background: var(--background-color);
  line-height: 1.75;
  margin: 0;
  padding: 0;
  width: 100%;
  min-width: 320px;
}

img { max-width: 100%; height: auto; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

h1, h2, h3 {
  font-family: var(--main-font);
  font-weight: 700;
  color: var(--primary-color);
  margin: 0 0 1.2rem 0;
}

h1 { font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.2; }
h2 { font-size: clamp(1.5rem, 4vw, 2.4rem); line-height: 1.3; }
h3 { font-size: clamp(1.05rem, 3vw, 1.35rem); line-height: 1.4; }

p { margin: 0 0 1rem 0; font-size: clamp(1rem, 2vw, 1.08rem); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.hamburger .line {
  width: 24px;
  height: 2px;
  background: var(--primary-color);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

#menu-toggle { display: none; }

#menu-toggle:checked ~ .mobile-nav {
  max-height: 500px;
  opacity: 1;
}

.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
}

.mobile-nav ul { padding: 2rem; margin: 0; list-style: none; }
.mobile-nav li { margin: 1.2rem 0; }

.mobile-nav a {
  display: block;
  padding: 0.8rem 0;
  color: var(--text-color);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.mobile-nav a:hover {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

/* Header */
header {
  background: rgba(255, 255, 255, 0.97);
  padding: 1.2rem 0;
  position: relative;
  z-index: 1000;
  box-shadow: 0 2px 16px var(--shadow-color);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img { height: 3rem; width: auto; }

.navigation ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.navigation a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s;
}

.navigation a:hover { color: var(--primary-color); }

/* Features grid — pill cards with colored bg band */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
  width: 100%;
}

.feature-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow-color);
  transition: all 0.3s ease;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px var(--shadow-color);
}

.feature-card-band {
  background: var(--gradient-primary);
  padding: 1.4rem 1.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.feature-icon {
  font-size: 2rem;
  color: #fff;
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.28);
}

.feature-card-band h3 {
  color: #fff;
  font-size: 1.05rem;
  margin: 0;
  font-family: var(--main-font);
}

.feature-card-body {
  padding: 1.2rem 1.6rem 1.6rem;
  flex: 1;
}

.feature-card-body p {
  margin: 0;
  font-size: 0.97rem;
  color: var(--text-color);
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
  width: 100%;
}

.testimonial {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem 1.8rem;
  box-shadow: 0 3px 16px var(--shadow-color);
  transition: all 0.3s ease;
}

.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px var(--shadow-color);
}

/* FAQ */
.faq-item {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin: 1rem 0;
  padding: 1.8rem 2rem;
  box-shadow: 0 2px 10px var(--shadow-color);
  transition: all 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px var(--shadow-color);
  border-color: var(--accent-color);
}

/* Form */
input, textarea {
  transition: all 0.3s ease;
  font-family: var(--alt-font);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-color);
  font-size: 1rem;
  width: 100%;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(140, 32, 67, 0.10);
  background: white;
}

.btn, button {
  transition: all 0.3s ease;
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 1rem 2.2rem;
  border-radius: 8px;
  font-weight: 600;
  font-family: var(--alt-font);
  cursor: pointer;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  box-shadow: 0 4px 16px rgba(140, 32, 67, 0.26);
}

.btn:hover, button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(140, 32, 67, 0.34);
}

/* Random block — night timeline */
.sleep-timeline {
  position: relative;
  padding: 2rem 0;
}

.sleep-timeline-track {
  display: flex;
  align-items: stretch;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow-color);
  margin-bottom: 2.5rem;
}

.sleep-segment {
  flex: 1;
  padding: 1.4rem 1rem;
  text-align: center;
  transition: filter 0.2s;
}

.sleep-segment:hover { filter: brightness(1.06); }

.sleep-segment .seg-time {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
  opacity: 0.85;
}

.sleep-segment .seg-label {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.sleep-segment .seg-icon {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 0.3rem;
}

.sleep-segment .seg-note {
  font-size: 0.8rem;
  opacity: 0.78;
  line-height: 1.3;
}

.seg-evening  { background: #4A2060; color: #e8d6f5; }
.seg-fall     { background: #6A1535; color: #f5d6e2; }
.seg-deep     { background: #8C2043; color: #fff; }
.seg-rem      { background: #B22B5B; color: #fff; }
.seg-morning  { background: #D4758A; color: #fff; }

.sleep-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.sleep-fact-card {
  background: rgba(255,255,255,0.93);
  border-radius: 10px;
  padding: 1.4rem 1.4rem;
  box-shadow: 0 2px 12px var(--shadow-color);
  border-left: 4px solid var(--accent-color);
  transition: all 0.3s;
}

.sleep-fact-card:hover {
  transform: translateX(4px);
  box-shadow: 0 6px 20px var(--shadow-color);
}

.sleep-fact-card .fact-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.sleep-fact-card .fact-text { font-size: 0.95rem; color: var(--text-color); margin: 0; }
.sleep-fact-card strong { color: var(--primary-color); }

/* Pattern background */
.pattern-bg {
  background-image:
    radial-gradient(ellipse at 5% 50%, rgba(178, 43, 91, 0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 95% 20%, rgba(140, 32, 67, 0.06) 0%, transparent 50%),
    repeating-linear-gradient(120deg, rgba(178, 43, 91, 0.025) 0px, rgba(178, 43, 91, 0.025) 1px, transparent 1px, transparent 36px);
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 3rem 0 1rem;
}

footer a { color: var(--light-color); text-decoration: none; transition: opacity 0.2s; }
footer a:hover { opacity: 0.75; }

/* Responsive */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .navigation { display: none; }
  .mobile-nav { display: block; }

  .features-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .sleep-facts { grid-template-columns: 1fr; }

  .sleep-timeline-track { flex-direction: column; }
  .sleep-segment { padding: 1rem; }

  .faq-item { padding: 1.5rem 1.2rem; }
  #contact .grid { max-width: 100% !important; }
}

@media (max-width: 480px) {
  .container { padding: 0 0.75rem; }
  .feature-card-band { padding: 1.1rem 1.2rem 0.8rem; }
  .feature-card-body { padding: 1rem 1.2rem 1.4rem; }
}

a:focus, button:focus, input:focus, textarea:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}