/* ==========================================================================
   Indus Appstore — Landing Page
   ========================================================================== */

:root {
  --bg: #f1f2f2;
  --text: #232323;
  --text-muted: #6b6e72;
  --line: #d7d8d9;
  --white: #ffffff;
  --danger: #e0334f;
  --success: #1a9c5c;
  --grad-orange: #f7941d;
  --grad-pink: #ec1e50;
  --grad-purple: #9b3ffc;
  --grad-indigo: #4f46e5;
  --gradient: linear-gradient(90deg, var(--grad-orange) 0%, var(--grad-pink) 35%, var(--grad-purple) 65%, var(--grad-indigo) 100%);
  --font: "Bricolage Grotesque", sans-serif;

  --fs-body: clamp(0.9375rem, 0.875rem + 0.25vw, 1.0625rem);
  --fs-main-heading: clamp(2rem, 1.4rem + 2.4vw, 3.5rem);
  --fs-sub-heading: clamp(1.05rem, 0.9rem + 0.6vw, 1.625rem);
  --fs-form-heading: clamp(1.5rem, 1.3rem + 0.8vw, 2.25rem);
  --fs-form-sub-heading: clamp(1.0625rem, 0.95rem + 0.5vw, 1.5rem);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  font-size: var(--fs-body);
  line-height: 1.5;
  overflow-x: hidden;
}

.bricolage-grotesque {
  font-family: var(--font);
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

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

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ==========================================================================
   Page shell
   ========================================================================== */

.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

/* ==========================================================================
   Background floating gradient blobs
   ========================================================================== */

.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  will-change: transform;
}

.blob-1 {
  width: 420px;
  height: 420px;
  top: -120px;
  left: -100px;
  background: radial-gradient(circle at 30% 30%, var(--grad-orange), transparent 70%);
}

.blob-2 {
  width: 480px;
  height: 480px;
  bottom: -160px;
  right: -120px;
  background: radial-gradient(circle at 60% 40%, var(--grad-pink), transparent 70%);
}

.blob-3 {
  width: 360px;
  height: 360px;
  top: 40%;
  left: 45%;
  background: radial-gradient(circle at 50% 50%, var(--grad-purple), transparent 70%);
  opacity: 0.22;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  padding: clamp(28px, 4vw, 56px) 0 0;
  text-align: center;
}

.main-heading {
  margin: 0;
  font-size: var(--fs-main-heading);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--text);
}

.sub-heading {
  margin: 14px 0 0;
  font-size: var(--fs-sub-heading);
  font-weight: 400;
  color: var(--text-muted);
}

.gradient-divider {
  display: block;
  width: 100%;
  height: 4px;
  margin-top: clamp(24px, 4vw, 44px);
  background: var(--gradient);
  transform-origin: left center;
}

/* ==========================================================================
   Main / hero grid
   ========================================================================== */

.site-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: clamp(28px, 5vw, 56px) 0;
}

.main-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
}

.hero-visual img {
  width: 100%;
  height: auto;
}

/* ==========================================================================
   Form card
   ========================================================================== */

.form-card {
  background: var(--white);
  border-radius: 20px;
  padding: clamp(28px, 3.5vw, 44px);
  box-shadow: 0 24px 60px -20px rgba(35, 35, 35, 0.12);
}

.form-heading {
  margin: 0;
  font-size: var(--fs-form-heading);
  font-weight: 800;
  color: var(--text);
}

.form-sub-heading {
  margin: 6px 0 28px;
  font-size: var(--fs-form-sub-heading);
  font-weight: 400;
  color: var(--text-muted);
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -8px;
}

.form-group {
  padding: 0 8px;
}

.col-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

.form__field {
  position: relative;
  margin-bottom: 22px;
}

.control-label {
  display: none;
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.req {
  color: var(--grad-pink);
}

.form-control {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 6px 2px 10px;
  font-family: var(--font);
  font-size: var(--fs-body);
  color: var(--text);
  outline: none;
  transition: border-color 0.25s ease;
}

.form-control::placeholder {
  color: #a8aaad;
}

.form-control:focus {
  border-bottom: 1px solid transparent;
  border-image: var(--gradient);
  border-image-slice: 1;
}

.form-control.is-invalid {
  border-bottom-color: var(--danger);
}

.form-control.is-valid {
  border-bottom-color: var(--success);
}

.field-status {
  display: block;
  min-height: 18px;
  font-size: 13px !important;
  padding-top: 4px;
}

.field-status.error {
  color: var(--danger) !important;
}

.field-status.success {
  color: var(--success) !important;
}

.form__field--checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 6px 0 26px;
}

.form__field--checkbox input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form__field--checkbox input[type="checkbox"]:checked {
  background: var(--grad-indigo);
  border-color: var(--grad-indigo);
}

.form__field--checkbox input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form__field--checkbox label {
  font-size: 0.8375rem;
  color: var(--text-muted);
  cursor: pointer;
}

.form__field--checkbox a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 2px;
}

.form__field--checkbox a:hover {
  text-decoration-color: var(--grad-indigo);
}

.text-center {
  text-align: center;
}

.btn.cta-btn {
  border: none;
  border-radius: 8px;
  background: #6b6b6f;
  color: var(--white);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 12px 40px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.btn.cta-btn:hover:not(:disabled) {
  background: var(--gradient);
  box-shadow: 0 10px 24px -8px rgba(155, 63, 252, 0.45);
}

.btn.cta-btn:active:not(:disabled) {
  transform: scale(0.97);
}

.btn.cta-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-note {
  margin: 18px 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
}

/* ==========================================================================
   Success modal
   ========================================================================== */

body.modal-open {
  overflow: hidden;
}

.success-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.success-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.success-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(35, 35, 35, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.success-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  background: var(--white);
  border-radius: 20px;
  padding: 44px 36px 36px;
  text-align: center;
  opacity: 0;
  transform: translateY(24px) scale(0.94);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  box-shadow: 0 30px 70px -20px rgba(35, 35, 35, 0.35);
}

.success-modal.is-open .success-modal__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.success-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.success-modal__close:hover {
  background: var(--bg);
  color: var(--text);
}

.success-modal__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 12px 28px -8px rgba(155, 63, 252, 0.55);
}

.success-modal__icon svg {
  width: 32px;
  height: 32px;
}

.success-modal__check-path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.success-modal.is-open .success-modal__check-path {
  animation: draw-check 0.5s ease forwards 0.25s;
}

@keyframes draw-check {
  to {
    stroke-dashoffset: 0;
  }
}

.success-modal__title {
  margin: 0 0 8px;
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
}

.success-modal__text {
  margin: 0 0 26px;
  font-size: var(--fs-body);
  color: var(--text-muted);
}

.success-modal__ok {
  width: 100%;
}

/* ==========================================================================
   Simple legal pages (terms.html / privacy.html)
   ========================================================================== */

.legal-page {
  padding: clamp(28px, 5vw, 56px) 0 80px;
}

.legal-page .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 28px;
}

.legal-page .back-link:hover {
  color: var(--text);
}

.legal-page h1 {
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem);
  font-weight: 800;
  margin: 0 0 8px;
}

.legal-page .updated {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 36px 0 12px;
}

.legal-page p,
.legal-page li {
  color: var(--text-muted);
  font-size: var(--fs-body);
  line-height: 1.7;
}

.legal-page ul {
  padding-left: 20px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .main-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: 2;
    max-width: 420px;
    margin: 0 auto;
  }

  .form-card {
    order: 1;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 20px;
  }

  .form-card {
    border-radius: 16px;
  }

  .btn.cta-btn {
    width: 100%;
  }
}
