/* Design Tokens & CSS Variables */
:root {
  /* Colors extracted from Dinr vibe */
  --color-primary: #FF734E;
  /* Apricot/coral primary */
  --color-primary-hover: #E8603C;
  --color-secondary: #0D3B2E;
  /* Deep green */
  --color-background: #FFFDF9;
  /* Soft off-white */
  --color-surface: #FFFFFF;
  --color-text-main: #2A2A2A;
  --color-text-muted: #6B6B6B;

  /* Typography */
  --font-family-main: 'Outfit', sans-serif;

  /* Shadows */
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);

  /* Radii */
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s ease-in-out;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-background: #121212;
    --color-surface: #1E1E1E;
    --color-text-main: #E0E0E0;
    --color-text-muted: #A0A0A0;
    --color-secondary: #E0E0E0;
    /* Lighter secondary text color for headers in dark mode */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.5);
  }

  .hero {
    background: radial-gradient(circle at 80% 20%, rgba(255, 115, 78, 0.05) 0%, transparent 40%),
      radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
  }

}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-main);
  background-color: var(--color-background);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  color: var(--color-secondary);
  line-height: 1.1;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

p {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  max-width: 600px;
}

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

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

/* Button */
.btn {
  display: inline-block;
  font-family: var(--font-family-main);
  font-weight: 600;
  font-size: 1.125rem;
  text-decoration: none;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
  padding: 18px 36px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Header */
header {
  padding: 32px 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

.logo {
  height: 48px;
  width: auto;
}

/* Generic Section Padding */
section {
  padding: 80px 0;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  background: radial-gradient(circle at 80% 20%, rgba(255, 115, 78, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(13, 59, 46, 0.05) 0%, transparent 40%);
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.hero-text {
  flex: 1;
  max-width: 550px;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  animation: float 6s ease-in-out infinite;
}

.hero-image img {
  max-height: 80vh;
  object-fit: contain;
  filter: drop-shadow(var(--shadow-lg));
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* Problem Section */
.problem {
  background-color: var(--color-surface);
}

.problem-content {
  display: flex;
  align-items: center;
  gap: 80px;
}

.problem-image {
  flex: 1;
}

.problem-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.problem-text {
  flex: 1;
}

/* Features Section */
.features {
  text-align: center;
}

.features h2 {
  margin-bottom: 64px;
}

.feature-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform var(--transition-smooth);
}

.step:hover {
  transform: translateY(-10px);
}

.step img {
  width: 100%;
  max-width: 260px;
  height: auto;
  margin-bottom: 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.step p {
  font-size: 1rem;
  margin-bottom: 0;
}

/* CTA Section */
.cta-section {
  background-color: #0D3B2E;
  color: white;
  border-radius: var(--radius-lg);
  margin: 40px 24px 80px 24px;
  overflow: hidden;
}

.cta-section h2,
.cta-section p {
  color: white;
}

.cta-section p {
  opacity: 0.9;
}

.cta-content {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 80px 40px;
}

.cta-text {
  flex: 1;
  max-width: 500px;
}

.cta-image {
  flex: 1;
}

.cta-image img {
  border-radius: var(--radius-md);
  transform: rotate(3deg);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-smooth);
}

@media (hover: hover) {
  .cta-image img:hover {
    transform: rotate(0deg) scale(1.03);
  }
}

/* Form Styles */
.lead-form {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.lead-form input {
  flex: 1;
  min-width: 0;
  padding: 18px 24px;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  font-family: var(--font-family-main);
  font-size: 1.125rem;
  outline: none;
  transition: all var(--transition-fast);
}

.lead-form input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(255, 115, 78, 0.2);
}

.form-message {
  margin-top: 16px;
  font-size: 0.9rem;
  display: none;
}

.form-message.success {
  display: block;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 1rem;
}

.form-message.error {
  display: block;
  color: #fecaca;
}

/* Footer */
footer {
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid var(--color-surface);
  /* Use surface color for border to support dark mode */
}

footer p {
  margin: 0;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {

  .hero-content,
  .problem-content,
  .cta-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    margin-top: 40px;
  }

  p {
    margin-left: auto;
    margin-right: auto;
  }

  .feature-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .feature-steps {
    grid-template-columns: 1fr;
  }

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

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero {
    padding-top: 100px;
  }

  .cta-section {
    margin: 20px 16px 40px 16px;
    padding: 40px 20px;
  }
}