/* ============================================
   Dfuse Landing Page - Pure HTML/CSS
   Optimized for 1440px viewport (28px margin each side)
   ============================================ */

:root {
  --color-dark: #0c2d2b;
  --color-muted: #737373;
  --color-border: #dde9e7;
  --color-input-border: #e5e5e5;
  --color-placeholder: #a3a3a3;
  --color-footer: #404040;
  --color-teal: #2f7f7a;
  --color-teal-light: #4aada7;
  --color-green: #7bb881;
  --color-gold: #d8ba57;
  --color-coral: #fb8876;
  --color-icon: #7fa8a3;
  --color-white: #fff;
  --font-poppins: "Poppins", system-ui, sans-serif;
  --radius-sm: 12px;
  --radius-md: 24px;
  --radius-lg: 48px;
  --radius-xl: 64px;
  --content-max-width: 1440px;
  --space-7: 28px;
  --space-10: 40px;
  --space-100: 100px;
  --gap-2: 8px;
  --gap-3: 12px;
  --gap-4: 16px;
  --gap-5: 20px;
  --gap-6: 24px;
  --gap-7: 28px;
  --gap-8: 32px;
  --gap-10: 40px;
  --gap-12: 48px;
  --gap-16: 64px;
  --card-width: 448px;
  --gradient-hero: linear-gradient(
    40deg,
    rgba(47, 127, 122, 0.3) -103.13%,
    rgba(122, 189, 130, 0.3) 9.51%,
    rgba(234, 226, 167, 0.3) 59.07%,
    rgba(247, 137, 117, 0.3) 122.15%
  );
}

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

body {
  margin: 0;
  font-family: var(--font-poppins);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-dark);
  background: var(--color-white);
}

.page {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 100vh;
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 var(--space-7);
}

/* ============================================
   Section Wrappers
   ============================================ */

.section-wrap-hero {
  padding-top: var(--space-10);
  padding-bottom: var(--gap-12);
}

.section-wrap-features {
  padding-top: var(--space-100);
  padding-bottom: var(--space-100);
  padding-left: 0;
  padding-right: 0;
}

.section-wrap-waitlist {
  padding-top: var(--gap-12);
  padding-bottom: var(--gap-12);
}

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
  position: relative;
  background: var(--gradient-hero);
  border-radius: var(--radius-xl);
  height: 702px;
  overflow: hidden;
  width: 100%;
}

.hero-bg-graphic {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg-svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--gap-8);
  width: 100%;
  height: 100%;
  padding: 32px 56px 32px 32px;
}

.hero-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: var(--gap-10);
}

.logo {
  width: 88px;
  height: 40px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--gap-5);
}

.nav-link {
  color: var(--color-dark);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
}

.nav-link:hover {
  text-decoration: underline;
}

.hero-body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-8);
  flex: 1;
  min-height: 0;
  margin-left: 85px;
  margin-right: 61px;
}

.hero-text {
  flex: 1;
  width: 565px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 50px;
}

.hero-text-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: var(--gap-5);
  width: 100%;
}

.hero-title {
  margin: 0;
  font-size: 3rem;
  font-weight: 700;
  line-height: 52px;
  color: var(--color-dark);
  max-width: min(420px, 100%);
}

.hero-description {
  margin: 0;
  font-size: 1.125rem;
  line-height: 24px;
  color: var(--color-dark);
}

.hero-decorative {
  flex: 1;
  min-width: 280px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-photo {
  width: var(--card-width);
  height: 481px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  z-index: 1;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  font-family: var(--font-poppins);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 26px;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-teal);
  color: var(--color-white);
  height: 58px;
}

.btn-accent {
  background: var(--color-coral);
  color: var(--color-white);
}

.btn-primary:hover,
.btn-accent:hover {
  filter: brightness(1.08);
}

button.btn {
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.btn.btn-appstore {
  padding: 0;
}
.btn.btn-appstore img {
  max-width: 200px;
  transition: all 0.3s ease-in-out;
}
.btn.btn-appstore img:hover {
  transform: scale(1.03);
}
/* ============================================
   Features Section
   ============================================ */

.features-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-16);
  width: 100%;
  overflow-x: hidden;
}

.features-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-8);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-3);
  justify-content: center;
}

.tag {
  padding: 4px 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 24px;
  color: var(--color-white);
  border-radius: 40px;
  text-transform: uppercase;
}

.tag-teal {
  background: var(--color-teal-light);
}

.tag-green {
  background: var(--color-green);
}

.tag-gold {
  background: var(--color-gold);
}

.tag-coral {
  background: var(--color-coral);
}

.features-title-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-4);
  width: 100%;
}

.features-title-block .section-subtitle {
  max-width: 650px;
}

.section-title {
  margin: 0;
  font-size: 40px;
  font-weight: 700;
  line-height: 48px;
  color: var(--color-dark);
  text-align: center;
}

.section-subtitle {
  margin: 0;
  font-size: 1.125rem;
  line-height: 24px;
  color: var(--color-muted);
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) var(--card-width) minmax(260px, 1fr);
  align-items: center;
  gap: var(--gap-8);
  width: 100%;
  max-width: min(calc(var(--card-width) * 3 + var(--gap-8) * 2), 100%);
  min-height: 628px;
  margin: 0 auto;
}

.card-column,
.card-column-right {
  display: flex;
  flex-direction: column;
  gap: var(--gap-6);
  min-width: 0;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: var(--gap-5);
  padding: var(--gap-8);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.card-icon {
  width: 40px;
  height: 40px;
}

.card-icon img {
  width: 40px;
  height: 40px;
}

.card-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 24px;
  color: var(--color-dark);
}

.card-text {
  margin: 0;
  font-size: 16px;
  line-height: 20px;
  color: var(--color-muted);
}

.mockup-image {
  width: 100%;
  max-width: var(--card-width);
  height: auto;
  aspect-ratio: 448 / 628;
  object-fit: contain;
  align-self: center;
}

/* ============================================
   Waitlist Section
   ============================================ */

.waitlist-section {
  background: var(--gradient-hero);
  border-radius: var(--radius-xl);
  height: 658px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.waitlist-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-8);
  width: 670px;
  max-width: 100%;
}

.waitlist-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-4);
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: var(--gap-7);
  width: 100%;
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: var(--gap-5);
}

.form-row {
  display: flex;
  gap: var(--gap-5);
}

.form-row .form-input {
  flex: 1;
}

.form-input {
  width: 100%;
  padding: 16px 20px;
  min-height: 58px;
  font-family: var(--font-poppins);
  font-size: 1.125rem;
  line-height: 24px;
  color: var(--color-dark);
  background: var(--color-white);
  border: 1px solid var(--color-input-border);
  border-radius: var(--radius-md);
}

.form-input::placeholder {
  color: var(--color-placeholder);
}

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

/* ============================================
   Footer
   ============================================ */

.footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--gap-6);
  width: 100%;
  padding: var(--gap-6) var(--space-7) var(--space-7);
  border-radius: var(--radius-md);
  background: var(--color-white);
}

.footer-copyright {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-footer);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: var(--gap-4);
}

.footer-link {
  color: var(--color-dark);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

/* ============================================
   Responsive: 1280px
   ============================================ */

@media (max-width: 1280px) {
  .hero-content {
    padding: 32px 40px 32px 32px;
  }

  .hero-body {
    margin-left: 60px;
    margin-right: 45px;
  }

  .hero-photo {
    width: min(var(--card-width), 40vw);
    height: auto;
    aspect-ratio: 448 / 481;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    min-height: auto;
    max-width: 100%;
    width: 100%;
    align-items: start;
  }

  .features-grid .mockup-image {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
    width: 100%;
    max-width: min(var(--card-width), 90vw);
    height: auto;
  }

  .features-grid .card-column {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
  }

  .features-grid .card-column-right {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
  }
}

/* ============================================
   Responsive: 1200px
   ============================================ */

@media (max-width: 1200px) {
  .hero-section {
    height: auto;
    min-height: 580px;
  }

  .hero-content {
    padding: 32px;
  }

  .hero-body {
    margin-left: 48px;
    margin-right: 32px;
  }

  .hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
    max-width: min(350px, 100%);
  }

  .hero-photo {
    width: min(360px, 35vw);
  }
}

/* ============================================
   Responsive: 1024px
   ============================================ */

@media (max-width: 1024px) {
  .hero-section {
    min-height: auto;
  }

  .hero-content {
    padding: var(--gap-6) var(--gap-7) var(--gap-7);
  }

  .hero-body {
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
    margin-right: 0;
    gap: var(--gap-10);
  }

  .hero-text {
    order: 1;
    gap: var(--gap-8);
    width: 100%;
    max-width: 100%;
  }

  .hero-decorative {
    order: 2;
    min-width: unset;
    justify-content: center;
  }

  .hero-photo {
    width: 100%;
    max-width: 420px;
    height: auto;
    aspect-ratio: 448 / 481;
    margin: 0 auto;
  }

  .hero-bg-svg {
    object-position: center 20%;
    opacity: 0.6;
  }

  .form-row {
    flex-direction: column;
  }

  .waitlist-section {
    height: auto;
    min-height: 658px;
    padding: var(--space-10) var(--gap-6);
  }

  .section-wrap-features {
    padding-top: var(--gap-12);
    padding-bottom: var(--gap-12);
  }
}

/* ============================================
   Responsive: 768px
   ============================================ */

@media (max-width: 768px) {
  .hero-section {
    border-radius: var(--radius-md);
  }

  .hero-content {
    padding: var(--gap-5);
  }

  .hero-header {
    flex-wrap: nowrap;
    gap: var(--gap-4);
  }

  .header-left {
    flex-shrink: 1;
    min-width: 0;
    gap: var(--gap-4);
  }

  .hero-title {
    font-size: 2rem;
    max-width: min(280px, 100%);
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-photo {
    max-width: 360px;
  }

  .nav-links {
    gap: var(--gap-4);
  }

  .nav-link {
    font-size: 0.9375rem;
  }

  .logo {
    width: 72px;
    height: 32px;
  }

  .hero-header .btn-primary {
    flex-shrink: 0;
  }

  .section-wrap-features {
    padding-left: var(--gap-6);
    padding-right: var(--gap-6);
  }

  .features-grid {
    grid-template-columns: 1fr;
    grid-template-rows: unset;
    gap: var(--gap-6);
  }

  .features-grid .mockup-image {
    grid-column: unset;
    grid-row: unset;
    order: -1;
    max-width: min(var(--card-width), 100%);
  }

  .features-grid .card-column,
  .features-grid .card-column-right {
    grid-column: unset;
    grid-row: unset;
    align-self: unset;
  }
}

/* ============================================
   Responsive: 640px
   ============================================ */

@media (max-width: 640px) {
  .page {
    padding-left: var(--gap-4);
    padding-right: var(--gap-4);
  }

  .section-wrap-hero,
  .section-wrap-waitlist {
    padding-left: 0;
    padding-right: 0;
  }

  .section-wrap-features {
    padding-left: var(--gap-4);
    padding-right: var(--gap-4);
  }

  .features-section {
    gap: var(--gap-6);
  }

  .section-title {
    font-size: clamp(1.375rem, 4vw, 1.5rem);
    line-height: 1.3;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .features-grid .card-column,
  .features-grid .card-column-right {
    max-width: 100%;
  }

  .feature-card {
    padding: var(--gap-5);
  }

  .card-title {
    font-size: 1.125rem;
  }

  .card-text {
    font-size: 0.9375rem;
  }

  .waitlist-section {
    border-radius: var(--radius-md);
    min-height: auto;
    padding: var(--gap-6) var(--gap-4);
  }

  .waitlist-content {
    padding: 0;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 0;
    padding-right: 0;
  }

  .tag-list {
    gap: var(--gap-2);
  }

  .tag {
    font-size: 12px;
    padding: 4px 10px;
  }
}

/* ============================================
   Responsive: 600px
   ============================================ */

@media (max-width: 600px) {
  .hero-header .btn-primary {
    display: none;
  }

  .hero-header {
    gap: var(--gap-3);
  }

  .header-left {
    gap: var(--gap-3);
  }

  .btn {
    padding: 14px 20px;
    font-size: 1rem;
  }

  .hero-title {
    font-size: 1.75rem;
    line-height: 1.3;
    max-width: min(245px, 100%);
  }

  .hero-body {
    gap: var(--gap-5);
  }

  .hero-text {
    gap: var(--gap-5);
  }

  .hero-photo {
    max-width: 100%;
  }
  .btn.btn-appstore img {
    max-width: 150px;
  }
}

/* ============================================
   Responsive: 480px
   ============================================ */

@media (max-width: 480px) {
  .hero-content {
    padding: var(--gap-4);
  }

  .hero-title {
    font-size: 1.5rem;
    max-width: min(210px, 100%);
  }

  .hero-description {
    font-size: 0.9375rem;
  }

  .logo {
    width: 56px;
    height: 25px;
  }

  .nav-link {
    font-size: 0.8125rem;
  }

  .nav-links {
    gap: var(--gap-3);
  }

  .btn {
    padding: 12px 18px;
    font-size: 0.9375rem;
  }
}
