/* Base Variables & Reset */
:root {
  --primary: #ED8B34;
  /* Vibrant Orange */
  --primary-hover: #D67A2A;
  --bg-cream: #FFFDF8;
  --bg-white: #FFFFFF;
  --text-dark: #2C2C2C;
  --text-light: #5B5B5B;
  --border-color: #EAEAEA;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;

  /* Icon Backgrounds */
  --icon-bg-orange: #FFF3E0;
  --icon-bg-blue: #E3F2FD;
  --icon-bg-pink: #FCE4EC;
  --icon-bg-green: #E8F5E9;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: 3.5rem;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

h2 {
  font-size: 2.25rem;
  margin-bottom: 40px;
  text-align: center;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

p {
  color: var(--text-light);
  font-size: 1.05rem;
}

.text-center {
  text-align: center;
}

/* --- Containers --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  gap: 8px;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(237, 139, 52, 0.3);
}

.btn-outline {
  background-color: transparent;
  border: 1.5px solid var(--border-color);
  color: var(--text-dark);
}

.btn-outline:hover {
  background-color: var(--bg-white);
  border-color: #ddd;
}

.btn-store {
  background-color: #1A1A1A;
  color: white;
  padding: 10px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.btn-store i {
  font-size: 1.8rem;
}

.btn-store .store-text {
  line-height: 1.1;
}

.btn-store .store-small {
  font-size: 0.65rem;
  color: #aaa;
}

.btn-store .store-large {
  font-size: 1.1rem;
  font-weight: 500;
}

.btn-store:hover {
  background-color: #333;
}

/* --- Header --- */
.header {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  /* gap: 8px; */
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo img {
  height: 50px;
  width: auto;
  object-fit: cover;
  transform: translateY(-5px) scale(1.2);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.login-link {
  font-weight: 600;
}

/* --- Modules / Cards --- */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.icon-box {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 20px;
}

.icon-orange {
  background: var(--icon-bg-orange);
  color: #E65100;
}

.icon-blue {
  background: var(--icon-bg-blue);
  color: #1565C0;
}

.icon-green {
  background: var(--icon-bg-green);
  color: #2E7D32;
}

.icon-pink {
  background: var(--icon-bg-pink);
  color: #C2185B;
}


/* --- Hero Section --- */
.hero {
  padding-top: 180px;
  /* Space for header */
  padding-bottom: 250px;
  /* Space to show the bottom illustration */
  text-align: left;
  position: relative;
  overflow: hidden;
  /* Optional: min-height: 80vh; */
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-color: #E8F5E9;
  /* Fallback color */
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom center;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.hero-content {
  max-width: 600px;
  /* Add slight text shadow or semi-transparent background to ensure readability over the sky */
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.8);
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.btn-hero {
  padding: 16px 36px;
  font-size: 1.1rem;
}

.btn-hero-outline {
  background: rgba(255, 255, 255, 0.8);
}

.btn-premium {
  padding: 16px 40px;
  font-size: 1.1rem;
  background: #D39E36;
  border: none;
}

.btn-premium:hover {
  background: #c28b25;
  box-shadow: 0 4px 15px rgba(211, 158, 54, 0.3);
}

/* --- What is DesiGems --- */
.what-is {
  padding-top: 100px;
}

.what-is-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.what-card {
  display: flex;
  align-items: center;
  text-align: left;
  padding: 24px;
  gap: 20px;
}

.what-card .icon-box {
  margin: 0;
  flex-shrink: 0;
}

.what-card h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.what-card p {
  font-size: 0.9rem;
}


/* --- How It Works --- */
.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.how-step {
  padding: 40px 24px;
}

.how-step .icon-box {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  font-size: 2rem;
}

/* Arrows between steps */
.step-arrow {
  position: absolute;
  top: 100px;
  /* Vertically align with icons */
  font-size: 1.5rem;
  color: #DDD;
}

.arrow-1 {
  left: 23%;
}

.arrow-2 {
  left: 48.5%;
}

.arrow-3 {
  left: 74%;
}


/* --- Features --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.features-grid .card p {
  font-size: 0.95rem;
}


/* --- Split Layouts (Mockups) --- */
.split-section {
  display: flex;
  align-items: center;
  gap: 60px;
}

.split-reverse {
  flex-direction: row-reverse;
}

.split-content {
  flex: 1;
}

.split-content h2 {
  text-align: left;
  margin-bottom: 20px;
}

.split-visual {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
}

/* Phone Mockup CSS */
.phone-mockup {
  width: 300px;
  max-width: 100%;
  height: 600px;
  background: white;
  border-radius: 40px;
  border: 12px solid #1A1A1A;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 25px;
  background: #1A1A1A;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  z-index: 10;
}

/* Inner App UI Mockups */
.mockup-header {
  padding: 40px 20px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 600;
  border-bottom: 1px solid #eee;
}

.mockup-body {
  padding: 20px;
}

.mockup-input {
  background: #F5F5F5;
  border-radius: 8px;
  height: 45px;
  margin-bottom: 15px;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0 15px;
  color: #888;
  font-size: 0.85rem;
}

.mockup-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.mockup-photo {
  background: #F5F5F5;
  aspect-ratio: 1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
}

.mockup-map {
  background: #E8F5E9;
  height: 150px;
  border-radius: 12px;
  margin-bottom: 20px;
  position: relative;
}

.mockup-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--primary);
  font-size: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.mockup-btn {
  background: var(--primary);
  color: white;
  border-radius: 20px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}


/* Map Mockup Specific */
.map-mockup-wrapper {
  position: relative;
  width: 100%;
  height: 500px;
}

.mockup-large-map {
  position: absolute;
  top: 0;
  left: 0;
  width: 80%;
  height: 400px;
  background: #E8F5E9;
  border-radius: var(--radius-md);
  border: 4px solid white;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.mockup-list-phone {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 260px;
  height: 480px;
  z-index: 2;
}

.map-list-item {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

.map-list-img {
  width: 60px;
  height: 60px;
  background: #ddd;
  border-radius: 8px;
}

.map-list-text {
  flex: 1;
}

.map-list-title {
  font-size: 0.85rem;
  font-weight: bold;
  margin-bottom: 4px;
}

.map-list-stars {
  color: #FFB300;
  font-size: 0.6rem;
}

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.testimonial-card {
  padding: 30px 20px;
}

.test-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #E0E0E0;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #757575;
  overflow: hidden;
}

.test-name {
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 0.95rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.badge-new {
  background: #E8F5E9;
  color: #2E7D32;
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: bold;
}

.badge-guide {
  background: #FFF3E0;
  color: #E65100;
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: bold;
}

.test-text {
  font-size: 0.85rem;
  font-style: italic;
  margin-bottom: 15px;
  line-height: 1.4;
  color: var(--text-dark);
}

.test-stars {
  color: #FFB300;
  font-size: 0.8rem;
}

.community-join-text {
  text-align: center;
  margin-top: 40px;
  font-weight: 500;
}

/* --- Premium Banner --- */
.premium-section {
  padding: 60px 0 100px;
}

.premium-box {
  background: linear-gradient(145deg, #FFFDF5 0%, #FAF0D4 100%);
  border: 2px solid #E4C07C;
  border-radius: var(--radius-lg);
  max-width: 800px;
  margin: 0 auto;
  padding: 50px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(228, 192, 124, 0.15);
}

.premium-box .fa-crown {
  font-size: 3rem;
  color: #D39E36;
  margin-bottom: 20px;
}

.premium-list {
  display: inline-block;
  text-align: left;
  list-style: none;
  margin: 30px 0;
  font-size: 1.1rem;
  font-weight: 500;
}

.premium-list li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
}

.premium-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.premium-price {
  font-size: 1.8rem;
  font-weight: bold;
  color: #4A3508;
  margin-bottom: 25px;
}

.premium-price strike {
  color: #A19276;
  font-size: 1.2rem;
  margin-left: 10px;
  font-weight: normal;
}

/* --- Footer Wrap --- */
.footer-cta {
  background: linear-gradient(135deg, #F36F21, #F8B133);
  color: white;
  text-align: center;
  padding: 80px 20px;
}

.footer-cta h2 {
  color: white;
  margin-bottom: 40px;
}

.footer-cta .badges {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-bottom {
  background: white;
  padding: 30px 0;
  border-top: 1px solid var(--border-color);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-links {
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-socials {
  display: flex;
  gap: 15px;
  font-size: 1.2rem;
  color: var(--text-light);
}

.footer-copyright {
  font-size: 0.85rem;
  color: #888;
  margin-top: 20px;
}

/* --- Static Pages (Terms, Privacy, Contact) --- */
.page-header {
  padding-top: 140px;
  padding-bottom: 60px;
  background: var(--bg-cream);
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
  font-size: 2.8rem;
  margin-bottom: 16px;
}

.page-header p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.content-section {
  padding: 60px 0;
  background: var(--bg-white);
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.article-content h2 {
  font-size: 1.8rem;
  margin-top: 40px;
  margin-bottom: 20px;
  text-align: left;
}

.article-content h3 {
  font-size: 1.3rem;
  margin-top: 30px;
  margin-bottom: 15px;
}

.article-content p,
.article-content ul,
.article-content ol {
  margin-bottom: 20px;
  color: var(--text-light);
}

.article-content ul,
.article-content ol {
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 10px;
}

/* Contact Page Specific */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: flex-start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-info h2 {
  font-size: 2.2rem;
  text-align: left;
  margin-bottom: 12px;
}

.contact-info>p {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 30px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: #fcecdb;
}

.contact-card .icon-box {
  margin: 0;
  width: 60px;
  height: 60px;
  font-size: 1.6rem;
  flex-shrink: 0;
  border-radius: 16px;
}

.contact-card h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
  color: var(--text-dark);
}

.contact-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 0;
}

.contact-form {
  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  border: 1px solid #F0F0F0;
}

.contact-form h2 {
  font-size: 1.8rem;
  text-align: left;
  margin-bottom: 25px;
  color: var(--text-dark);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #444;
}

.form-control {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #F0F0F0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-dark);
  transition: all 0.3s ease;
  background: #FAFAFA;
}

.form-control::placeholder {
  color: #BDBDBD;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-white);
  box-shadow: 0 0 0 4px rgba(237, 139, 52, 0.15);
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 40px;
}

textarea.form-control {
  min-height: 160px;
  resize: vertical;
}

.btn-submit {
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
  margin-top: 10px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.btn-submit:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(237, 139, 52, 0.3);
}



/* --- Form Validation and Toast Notifications --- */
.is-invalid {
  border-color: #f44336 !important;
  background-color: #ffebee !important;
}

.toast {
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  font-weight: 500;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: top 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
  top: 30px;
}

.toast.success {
  background: #4CAF50;
}

.toast.error {
  background: #F44336;
}

.toast i {
  font-size: 1.2rem;
}

/* --- Responsiveness --- */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .how-it-works-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .step-arrow {
    display: none;
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .what-is-grid {
    grid-template-columns: 1fr;
  }

  .what-card {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  .nav-links {
    display: none;
  }

  /* Hide on mobile for simplicity in this demo */
  .hero-content {
    margin-bottom: 40px;
    text-align: center;
    margin: 0 auto 40px;
  }

  .hero-actions {
    justify-content: center;
    flex-direction: column;
  }

  .btn-hero {
    width: 100%;
  }

  .split-section {
    flex-direction: column;
    text-align: center;
    gap: 40px;
    padding: 60px 0;
  }

  .split-reverse {
    flex-direction: column;
  }

  .split-content h2 {
    text-align: center;
  }

  .article-content h2 {
    font-size: 1.5rem;
  }

  .article-content h3 {
    font-size: 1.2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 30px 20px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer-cta .badges {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .footer-cta .badges .btn-store {
    width: 100%;
    max-width: 250px;
    justify-content: center;
  }

  .map-mockup-wrapper {
    height: 750px;
  }

  .mockup-large-map {
    width: 100%;
    position: relative;
    height: 300px;
  }

  .mockup-list-phone {
    position: relative;
    margin: -50px auto 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .header {
    padding: 16px 0;
  }

  .logo {
    font-size: 1.25rem;
  }

  .header-actions {
    gap: 12px;
  }

  .header-actions .btn {
    padding: 10px 18px;
    font-size: 0.9rem;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .hero {
    padding-top: 140px;
    padding-bottom: 80px;
  }

  .features-grid,
  .how-it-works-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .premium-box {
    padding: 30px 20px;
  }

  .btn-premium {
    padding: 12px 24px;
    width: 100%;
  }
}