/* ==========================================================================
   CSS Architecture for nhatkycuame.com Landing Page
   Mobile-first responsive design
   ========================================================================== */

/* ==========================================================================
   1. CSS Reset & Base Styles
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #5f6673;
  background-color: #faf6f7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   2. Typography
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Be Vietnam Pro", "Inter", sans-serif;
  font-weight: 600;
  line-height: 1.3;
  color: #24324a;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
}

/* ==========================================================================
   3. Layout & Container
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

section {
  padding: 3rem 0;
}

/* ==========================================================================
   4. Color System - Soft & Confident Feminine Palette
   ========================================================================== */
/* 
   Surfaces:
   - Page background: #FAF6F7 (soft blush)
   - Card background: #FFFFFF (pure white)
   - Accent background: #F7E8ED (soft rose)
   - Cream background: #f9f5f1 (warm cream)
   
   Text:
   - Primary text: #24324A (deep slate) - headings & important text
   - Secondary text: #5F6673 (medium gray) - body & supporting text
   - Tertiary text: #888888 (light gray) - helpers & metadata
   - Placeholder text: #B5B5B5 (very light gray)
   
   Primary CTA (Confident & Clickable):
   - Default: #cf4468 (dusty rose)
   - Hover: #C97990 (deeper rose)
   - Active: #B96880 (pressed rose)
   - Disabled: #E9D9DE (very pale pink)
   
   Secondary/Outline Buttons:
   - Text: #C97990 (matches primary hover)
   - Border: #DDA2B1 (soft rose border)
   - Hover bg: #FBECEF (very light rose)
   
   Borders & Inputs:
   - Default border: #E6D8DD (soft pink-gray)
   - Input border: #E3D6DA (slightly stronger)
   - Focus border: #cf4468 (primary CTA color)
   - Focus shadow: rgba(216, 140, 160, 0.15)
   
   Accents:
   - Logo/Brand: #cf4468
   - Links: #C97990
   - Success: #48A868
   - Error: #D65555
*/

/* ==========================================================================
   5. Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-primary {
  background-color: #cf4468;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(216, 140, 160, 0.25);
}

.btn-primary:hover {
  background-color: #c97990;
  box-shadow: 0 6px 16px rgba(201, 121, 144, 0.3);
  transform: translateY(-2px);
}

.btn-primary:active {
  background-color: #b96880;
  box-shadow: 0 2px 8px rgba(185, 104, 128, 0.3);
  transform: translateY(0);
}

.btn-primary:focus {
  background-color: #c97990;
  box-shadow: 0 6px 16px rgba(201, 121, 144, 0.3);
  outline: 3px solid rgba(216, 140, 160, 0.25);
  outline-offset: 2px;
}

.btn-primary:disabled,
.btn-primary.disabled {
  background-color: #e9d9de;
  color: #ffffff;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
  opacity: 0.7;
}

.btn-secondary {
  background-color: #ffffff;
  color: #c97990;
  border: 2px solid #dda2b1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
  background-color: #fbecef;
  border-color: #c97990;
  color: #b96880;
}

.btn-secondary:active {
  background-color: #f7e8ed;
  border-color: #b96880;
  color: #b96880;
}

.btn-secondary:focus {
  background-color: #fbecef;
  border-color: #c97990;
  color: #b96880;
  outline: 3px solid rgba(216, 140, 160, 0.15);
  outline-offset: 2px;
}

.btn-secondary:disabled,
.btn-secondary.disabled {
  background-color: #ffffff;
  color: #e9d9de;
  border-color: #e9d9de;
  cursor: not-allowed;
  opacity: 0.6;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.0625rem;
}

.btn-full {
  width: 100%;
}

/* Loading state for buttons during form submission */
.btn.loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.btn.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}

/* Focus states handled in specific button variants above */

/* ==========================================================================
   6. Header
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  background-color: rgba(250, 246, 247, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(227, 214, 218, 0.3);
  z-index: 1000;
  padding: 1rem 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.logo:hover {
  opacity: 0.85;
}

.logo-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.logo-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text {
  /* font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #24324A;
    letter-spacing: -0.02em; */
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: rem;
  color: #cf4468;
  font-weight: 700;
  margin-top: auto;
}

.logo-tagline {
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 0.875rem;
  color: #c97990;
  font-weight: 500;
  margin-top: 2px;
}

.btn-header {
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
}

/* Mobile optimizations */
@media (max-width: 480px) {
  /* Hide header CTA on very small mobile */
  .btn-header {
    display: none;
  }

  /* Optimize logo for mobile */
  .logo {
    gap: 10px;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
  }

  .logo-text {
    font-size: 1.125rem;
  }

  .logo-tagline {
    font-size: 0.8125rem;
  }
}

/* ==========================================================================
   7. Hero Section
   ========================================================================== */

.hero {
  background: linear-gradient(135deg, #fbecef 0%, #f9f5f1 100%);
  padding: 3rem 0;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.hero-headline {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #24324a;
}

.hero-subheadline {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: #5f6673;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  background: linear-gradient(135deg, #ffffff 0%, #f9f5f1 100%);
  border-radius: 24px;
  padding: 2rem 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  max-width: 400px;
  width: 100%;
  display: grid;
  gap: 1rem;
}

.preview-card {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid #f7e8ed;
}

.preview-icon {
  font-size: 2rem;
  line-height: 1;
}

.preview-content {
  flex: 1;
}

.preview-title {
  font-size: 0.875rem;
  color: #888888;
  margin-bottom: 0.25rem;
}

.preview-value {
  font-size: 1.125rem;
  font-weight: 600;
  color: #24324a;
}

/* ==========================================================================
   8. Section Titles
   ========================================================================== */

.section-title {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #24324a;
}

/* ==========================================================================
   9. Pain Points Section
   ========================================================================== */

.pain-points {
  background-color: #ffffff;
}

.pain-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.pain-card {
  background-color: #fbecef;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  border: 2px solid #f7e8ed;
  transition: all 0.3s ease;
}

.pain-card:hover {
  border-color: #dda2b1;
  box-shadow: 0 8px 24px rgba(216, 140, 160, 0.15);
  transform: translateY(-4px);
}

.pain-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.pain-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #24324a;
}

.pain-description {
  color: #5f6673;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   10. Solution Section
   ========================================================================== */

.solution {
  background: linear-gradient(135deg, #f9f5f1 0%, #fbecef 100%);
}

.solution-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #5f6673;
}

.solution-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.solution-card {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.solution-card:hover {
  box-shadow: 0 8px 24px rgba(216, 140, 160, 0.15);
  transform: translateY(-4px);
}

.solution-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.solution-title {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  color: #24324a;
}

.solution-description {
  color: #5f6673;
  font-size: 0.9375rem;
  margin: 0;
}

.solution-note {
  text-align: center;
  font-size: 0.9375rem;
  color: #888888;
  font-style: italic;
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================================================
   11. Preview Section
   ========================================================================== */

.preview-section {
  background-color: #ffffff;
}

.preview-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.demo-card {
  background: linear-gradient(135deg, #fbecef 0%, #ffffff 100%);
  border-radius: 16px;
  padding: 1.75rem;
  border: 2px solid #f7e8ed;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.demo-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f7e8ed;
}

.demo-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.demo-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #24324a;
  margin: 0;
}

.demo-body {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.demo-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.demo-label {
  font-size: 0.9375rem;
  color: #888888;
}

.demo-value {
  font-size: 1.125rem;
  font-weight: 600;
  color: #cf4468;
}

.demo-summary {
  font-size: 0.9375rem;
  color: #5f6673;
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   12. Forms (Survey & Waitlist)
   ========================================================================== */

.form-group {
  margin-bottom: 1.75rem;
}

.form-label {
  display: block;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #24324a;
  margin-bottom: 0.75rem;
}

.form-input,
.form-select {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-family: "Inter", sans-serif;
  color: #24324a;
  background-color: #ffffff;
  border: 2px solid #e3d6da;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.form-input:hover,
.form-select:hover {
  border-color: #dda2b1;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: #cf4468;
  box-shadow: 0 0 0 4px rgba(216, 140, 160, 0.15);
}

.form-input::placeholder {
  color: #b5b5b5;
}

.form-input:disabled,
.form-select:disabled {
  background-color: #faf6f7;
  border-color: #e9d9de;
  color: #888888;
  cursor: not-allowed;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.radio-option {
  display: flex;
  align-items: center;
  padding: 1rem;
  background-color: #ffffff;
  border: 2px solid #e3d6da;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.radio-option:hover {
  border-color: #dda2b1;
  background-color: #fbecef;
}

.radio-option input[type="radio"] {
  margin-right: 0.875rem;
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #cf4468;
}

.radio-option input[type="checkbox"] {
  margin-right: 0.875rem;
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #cf4468;
}

.radio-option input[type="radio"]:checked + .radio-text {
  font-weight: 600;
  color: #c97990;
}

.radio-option input[type="radio"]:checked {
  accent-color: #cf4468;
}

.radio-option input[type="checkbox"]:checked {
  accent-color: #cf4468;
}

.radio-option:has(input[type="radio"]:checked) {
  border-color: #cf4468;
  background-color: #fbecef;
  box-shadow: 0 0 0 3px rgba(216, 140, 160, 0.1);
}

.radio-option:has(input[type="checkbox"]:checked) {
  border-color: #cf4468;
  background-color: #fbecef;
}

.radio-text {
  font-size: 0.9375rem;
  color: #5f6673;
  line-height: 1.5;
}

.form-row {
  display: grid;
  gap: 1.25rem;
}

.form-message {
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  font-weight: 500;
  display: none;
}

.form-message.success {
  display: block;
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  display: block;
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.form-message.loading {
  display: block;
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

/* ==========================================================================
   13. Survey Section
   ========================================================================== */

.survey {
  background-color: #fbecef;
}

.survey-wrapper {
  max-width: 700px;
  margin: 0 auto;
}

.survey-intro {
  text-align: center;
  color: #5f6673;
  margin-bottom: 2.5rem;
}

.survey-form {
  background-color: #ffffff;
  border-radius: 20px;
  padding: 2rem 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   14. Waitlist Section
   ========================================================================== */

.waitlist {
  background: linear-gradient(135deg, #ffffff 0%, #f9f5f1 100%);
}

.waitlist-wrapper {
  max-width: 700px;
  margin: 0 auto;
}

.waitlist-benefits {
  list-style: none;
  margin: 1.5rem 0 2.5rem;
  padding: 0;
}

.waitlist-benefits li {
  padding: 0.75rem 0 0.75rem 2.5rem;
  position: relative;
  font-size: 1.0625rem;
  color: #5f6673;
  line-height: 1.6;
}

.waitlist-benefits li:before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 1.75rem;
  height: 1.75rem;
  background-color: #cf4468;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1rem;
}

.waitlist-form {
  background-color: #ffffff;
  border-radius: 20px;
  padding: 2rem 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   15. Trust Section
   ========================================================================== */

.trust {
  background-color: #ffffff;
}

.trust-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #5f6673;
}

.trust-grid {
  display: grid;
  gap: 1.5rem;
}

.trust-card {
  background: linear-gradient(135deg, #fbecef 0%, #ffffff 100%);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.trust-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.trust-title {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  color: #24324a;
}

.trust-description {
  color: #5f6673;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   16. FAQ Section
   ========================================================================== */

.faq {
  background: linear-gradient(135deg, #f9f5f1 0%, #fbecef 100%);
}

.faq-list {
  max-width: 800px;
  margin: 2rem auto 0;
}

.faq-item {
  background-color: #ffffff;
  border-radius: 12px;
  margin-bottom: 1rem;
  border: 2px solid #f7e8ed;
  overflow: hidden;
}

.faq-question {
  padding: 1.25rem 1.5rem;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #24324a;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background-color: #fbecef;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: #cf4468;
  transition: transform 0.3s ease;
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem 1.5rem;
}

.faq-answer p {
  color: #5f6673;
  line-height: 1.7;
  margin: 0;
}

/* ==========================================================================
   17. Footer
   ========================================================================== */

.footer {
  background-color: #3a3a3a;
  color: #e8e8e8;
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.footer-logo {
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #cf4468;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.9375rem;
  color: #c8c8c8;
  margin: 0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: #c8c8c8;
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.3s ease;
}

.footer-link:hover,
.footer-link:focus {
  color: #cf4468;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(216, 140, 160, 0.2);
}

.footer-bottom p {
  font-size: 0.875rem;
  color: #a8a8a8;
  margin: 0;
}

/* ==========================================================================
   18. Utilities
   ========================================================================== */

.text-center {
  text-align: center;
}

/* ==========================================================================
   19. Responsive Breakpoints
   ========================================================================== */

/* Tablet: 768px and above */
@media (min-width: 768px) {
  /* Typography adjustments */
  h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  section {
    padding: 4rem 0;
  }

  /* Hero */
  .hero {
    padding: 4rem 0;
  }

  .hero-content {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
  }

  .hero-text {
    flex: 1;
  }

  .hero-visual {
    flex: 1;
    max-width: 450px;
  }

  .hero-cta {
    flex-direction: row;
    gap: 1rem;
  }

  /* Pain Points Grid */
  .pain-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  /* Solution Grid */
  .solution-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  /* Preview Grid */
  .preview-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  /* Trust Grid */
  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  /* Forms */
  .form-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .survey-form,
  .waitlist-form {
    padding: 2.5rem;
  }

  /* Footer */
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .footer-links {
    flex-direction: row;
    gap: 1.5rem;
  }
}

/* Desktop: 1024px and above */
@media (min-width: 1024px) {
  /* Typography */
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.5rem;
  }

  section {
    padding: 5rem 0;
  }

  /* Hero */
  .hero {
    padding: 5rem 0;
  }

  .hero-headline {
    font-size: 3rem;
  }

  .hero-subheadline {
    font-size: 1.125rem;
  }

  /* Pain Points Grid */
  .pain-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Solution Grid */
  .solution-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Survey */
  .survey-form {
    padding: 3rem;
  }

  /* Waitlist */
  .waitlist-form {
    padding: 3rem;
  }
}

/* Large Desktop: 1280px and above */
@media (min-width: 1280px) {
  .container {
    padding: 0 2rem;
  }
}

/* ==========================================================================
   20. Print Styles
   ========================================================================== */

@media print {
  .header,
  .hero-cta,
  .survey,
  .waitlist,
  .footer {
    display: none;
  }
}
