/* Mornix — Morning Flow Interface */

:root {
  --orange-soft: #FB923C;
  --orange-warm: #F97316;
  --peach-light: #FED7AA;
  --bg-cream: #FFFBF5;
  --bg-ivory: #FFF7ED;
  --text-deep: #2B1B14;
  --text-soft: #6B7280;
  --sunrise-glow: #FFEDD5;
  --font-heading: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --radius-card: 1.25rem;
  --radius-btn: 2rem;
  --shadow-soft: 0 4px 24px rgba(249, 115, 22, 0.08);
  --shadow-lift: 0 12px 40px rgba(249, 115, 22, 0.12);
  --transition: 0.35s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-deep);
  background: var(--bg-cream);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* —— Brand Header —— */
.brand-header {
  text-align: center;
  padding: 2.5rem 1.5rem 2rem;
  background: linear-gradient(180deg, var(--bg-ivory) 0%, var(--bg-cream) 100%);
}

.brand-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: 0.35em;
  color: var(--orange-warm);
  display: inline-block;
  transition: transform var(--transition), color var(--transition);
}

.brand-logo:hover {
  color: var(--orange-soft);
  transform: translateY(-2px);
}

.brand-tagline {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-soft);
  font-weight: 400;
}

.brand-nav {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.25rem 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.brand-nav a {
  color: var(--text-soft);
  padding: 0.25rem 0.5rem;
  transition: color var(--transition);
}

.brand-nav a:hover {
  color: var(--orange-warm);
}

.nav-dot {
  color: var(--peach-light);
  user-select: none;
}

/* —— Buttons —— */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange-soft), var(--orange-warm));
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  box-shadow: var(--shadow-lift);
}

.btn-secondary {
  background: var(--bg-cream);
  color: var(--text-deep);
  border: 1.5px solid var(--peach-light);
}

.btn-secondary:hover {
  border-color: var(--orange-soft);
  background: var(--sunrise-glow);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem 6rem;
  overflow: hidden;
  background: linear-gradient(
    165deg,
    var(--bg-cream) 0%,
    var(--sunrise-glow) 35%,
    var(--bg-ivory) 70%,
    var(--peach-light) 100%
  );
  background-size: 200% 200%;
  animation: gradientShift 18s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-sun {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 146, 60, 0.35) 0%, transparent 70%);
  pointer-events: none;
}

.hero-sun--1 {
  width: 280px;
  height: 280px;
  top: 10%;
  right: 8%;
  opacity: 0.6;
  animation: floatSun 12s ease-in-out infinite;
}

.hero-sun--2 {
  width: 160px;
  height: 160px;
  bottom: 20%;
  left: 5%;
  opacity: 0.45;
  animation: floatSun 14s ease-in-out infinite reverse;
}

.hero-sun--3 {
  width: 100px;
  height: 100px;
  top: 40%;
  left: 15%;
  background: radial-gradient(circle, rgba(254, 215, 170, 0.5) 0%, transparent 70%);
  animation: floatSun 10s ease-in-out infinite 2s;
}

@keyframes floatSun {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12px, -18px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.2;
  color: var(--text-deep);
  letter-spacing: -0.02em;
}

.hero-subtext {
  margin-top: 1.25rem;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--text-soft);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* —— Sections —— */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.5rem, 4vw, 2rem);
  text-align: center;
  color: var(--text-deep);
}

.section-lead {
  text-align: center;
  color: var(--text-soft);
  margin-top: 0.5rem;
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

/* —— Morning System —— */
.morning-system {
  padding: 5rem 0;
  background: var(--bg-cream);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.system-card {
  background: var(--bg-ivory);
  border: 1px solid rgba(254, 215, 170, 0.6);
  border-radius: var(--radius-card);
  padding: 2rem 1.75rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.system-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

.card-icon {
  font-size: 1.5rem;
  color: var(--orange-warm);
  margin-bottom: 1rem;
  opacity: 0.85;
}

.system-card h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.system-card p {
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.6;
}

/* —— Principle —— */
.principle {
  padding: 8rem 1.5rem;
  background: var(--bg-ivory);
}

.principle-quote {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  border: none;
}

.principle-quote p {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.35rem, 4vw, 2rem);
  line-height: 1.5;
  color: var(--text-deep);
  letter-spacing: -0.01em;
}

/* —— Stats —— */
.stats {
  padding: 4.5rem 1.5rem;
  background: var(--bg-cream);
}

.stats-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 2.75rem);
  color: var(--orange-warm);
  line-height: 1.1;
}

.stat-label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-soft);
  font-weight: 500;
}

/* —— Flow Steps —— */
.flow-steps {
  padding: 5rem 0;
  background: linear-gradient(180deg, var(--bg-cream), var(--sunrise-glow));
}

.flow-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 1rem;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
}

.flow-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--orange-soft);
  box-shadow: 0 0 0 6px var(--sunrise-glow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.flow-step:hover .flow-dot {
  transform: scale(1.2);
  box-shadow: 0 0 0 10px rgba(255, 237, 213, 0.8);
}

.flow-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-deep);
}

.flow-connector {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--peach-light), var(--orange-soft), var(--peach-light));
  border-radius: 1px;
  flex-shrink: 0;
}

/* —— Features —— */
.features {
  padding: 5rem 0;
  background: var(--bg-cream);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.feature-item {
  background: var(--bg-ivory);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  border: 1px solid transparent;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.feature-item:hover {
  transform: translateY(-4px);
  border-color: var(--peach-light);
  box-shadow: var(--shadow-soft);
}

.feature-item h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--text-deep);
}

.feature-item p {
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* —— CTA —— */
.cta {
  position: relative;
  padding: 6rem 1.5rem;
  overflow: hidden;
  text-align: center;
}

.cta-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--sunrise-glow) 0%,
    rgba(251, 146, 60, 0.2) 50%,
    var(--peach-light) 100%
  );
  background-size: 200% 200%;
  animation: gradientShift 20s ease infinite;
  z-index: 0;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0 auto;
}

.cta h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  color: var(--text-deep);
}

.cta-content > p {
  margin-top: 1rem;
  color: var(--text-soft);
  font-size: 1.05rem;
}

.cta-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* —— Contact —— */
.contact {
  padding: 5rem 0 6rem;
  background: var(--bg-cream);
}

.contact-form {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-deep);
  margin-top: 0.75rem;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.9rem 1.15rem;
  border: 1.5px solid var(--peach-light);
  border-radius: 0.85rem;
  background: var(--bg-ivory);
  color: var(--text-deep);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #9ca3af;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--orange-warm);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn {
  margin-top: 1.5rem;
  align-self: flex-start;
}

/* —— Footer —— */
.site-footer {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--bg-ivory);
  border-top: 1px solid rgba(254, 215, 170, 0.5);
}

.footer-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  color: var(--orange-warm);
}

.footer-nav {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

.footer-nav a {
  color: var(--text-soft);
  padding: 0.2rem 0.4rem;
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--orange-warm);
}

.footer-copy {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* —— Fade-in —— */
.fade-in {
  animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* —— Responsive —— */
@media (max-width: 768px) {
  .brand-header {
    padding: 2rem 1rem 1.5rem;
  }

  .brand-logo {
    letter-spacing: 0.2em;
  }

  .hero {
    min-height: 75vh;
    padding: 3rem 1.25rem 4rem;
  }

  .hero-sun--1 {
    width: 180px;
    height: 180px;
  }

  .principle {
    padding: 5rem 1.25rem;
  }

  .flow-connector {
    display: none;
  }

  .flow-line {
    flex-direction: column;
    gap: 0.25rem;
  }

  .flow-step {
    flex-direction: row;
    width: 100%;
    max-width: 200px;
    justify-content: flex-start;
    padding: 0.75rem 0;
  }

  .contact-form .btn {
    align-self: stretch;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-actions,
  .cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn,
  .cta-actions .btn {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
