/* Reset & base */
*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: #0b2447;
  background: #f5f9ff;
  line-height: 1.6;
}

/* Containers */
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.section { padding: 72px 0; }
.section.alt { background: #eef6ff; }
.section-header { text-align: center; max-width: 800px; margin: 0 auto 32px; }
.section-header h2 { font-family: Poppins, Inter, sans-serif; font-weight: 700; margin: 0 0 8px; }
.section-header p { color: #1b3b6d; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: #ffffffeb; backdrop-filter: saturate(120%) blur(6px);
  border-bottom: 1px solid #d7e7ff;
}
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }

/* Logo */
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo-mark {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, #70c0ff, #2ea8ff, #1b82ff);
  color: #fff; font-family: Poppins, Inter, sans-serif; font-weight: 700; font-size: 22px;
  box-shadow: 0 8px 16px rgba(30, 130, 255, 0.25);
}
.logo-type { margin-left: 8px; letter-spacing: 2px; font-weight: 700; color: #0b2447; font-family: Poppins, Inter, sans-serif; }

/* Nav */
.nav-toggle { display: none; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; }
.nav-bar { display: block; width: 24px; height: 2px; background: #0b2447; margin: 5px auto; }
.nav-menu { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.nav-link {
  display: inline-block; padding: 10px 12px; border-radius: 8px; text-decoration: none;
  color: #0b2447; font-weight: 600;
}
.nav-link:hover { background: #e6f2ff; }

/* Hero */
.hero {
  background: linear-gradient(160deg, #eaf4ff 0%, #cfe8ff 40%, #b4dbff 100%);
  padding: 64px 0;
}
.hero-title {
  font-family: Poppins, Inter, sans-serif; font-size: clamp(32px, 6vw, 64px); line-height: 1.1;
  margin: 0 0 12px; color: #0b2447;
}
.hero-sub { max-width: 700px; color: #1b3b6d; }

/* Animated rectangle */
.message-rect {
  margin: 18px 0 24px; position: relative;
  padding: 14px 18px; border-radius: 14px;
  background: #fff; border: 1px solid #d7e7ff; box-shadow: 0 8px 20px rgba(30,130,255,0.12);
  min-height: 56px; overflow: hidden;
}
.msg-item {
  position: absolute; opacity: 0; transform: translateY(20px);
  animation: msgCycle 12s infinite; font-weight: 700; color: #0b2447;
}
.msg-item:nth-child(1) { animation-delay: 0s; }
.msg-item:nth-child(2) { animation-delay: 4s; }
.msg-item:nth-child(3) { animation-delay: 8s; }
@keyframes msgCycle {
  0% { opacity: 0; transform: translateY(20px); }
  5% { opacity: 1; transform: translateY(0); }
  28% { opacity: 1; }
  33% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 0; transform: translateY(-10px); }
}

/* Order cards */
.order-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.order-card {
  background: #ffffff; border: 1px solid #d7e7ff; border-radius: 16px; padding: 18px;
  box-shadow: 0 8px 20px rgba(30,130,255,0.1); transition: transform .2s ease, box-shadow .2s ease;
}
.order-card:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(30,130,255,0.14); }
.order-icon { width: 48px; height: 48px; color: #1b82ff; }
.order-icon svg { width: 100%; height: 100%; }
.order-icon.ig { color: #ff4fb5; }
.order-icon.tk { color: #0f0f0f; }
.order-btn {
  appearance: none; border: none; padding: 10px 14px; border-radius: 10px; cursor: pointer;
  font-weight: 700; color: white; background: linear-gradient(135deg, #2ea8ff, #1b82ff);
  box-shadow: 0 8px 16px rgba(30,130,255,0.25);
}
.order-btn:hover { filter: brightness(1.05); }

/* Cards grid */
.cards-grid.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: #fff; border: 1px solid #d7e7ff; border-radius: 14px; padding: 18px;
  box-shadow: 0 8px 20px rgba(30,130,255,0.08);
}
.card ul { margin: 12px 0 0; padding-left: 18px; }

/* Trusted logos & creator feature */
.trusted { margin-top: 32px; }
.trusted h3 { margin-bottom: 12px; }
.trusted-logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.logo-slot {
  background: #fff; border: 1px solid #d7e7ff; border-radius: 12px; padding: 12px; display: grid; place-items: center;
  min-height: 80px;
}
.logo-slot img { max-width: 100%; max-height: 48px; object-fit: contain; }
.trusted-note { color: #1b3b6d; margin-top: 8px; }
.creator-feature {
  margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: center;
}
.creator-image img { width: 100%; border-radius: 14px; border: 1px solid #d7e7ff; }
.creator-copy h4 { margin: 0 0 8px; }

/* Pricing */
.pricing-card {
  background: #fff; border: 1px solid #d7e7ff; border-radius: 16px; padding: 20px; max-width: 860px; margin: 0 auto;
  box-shadow: 0 8px 20px rgba(30,130,255,0.08);
}
.pricing-head { display: flex; align-items: center; gap: 12px; }
.pill {
  display: inline-block; padding: 6px 10px; border-radius: 999px; background: #e6f4ff; color: #0861d1; font-weight: 700; border: 1px solid #bcd6ff;
}
.cta-btn {
  display: inline-block; text-decoration: none; font-weight: 700; color: white;
  background: linear-gradient(135deg, #2ea8ff, #1b82ff); padding: 10px 14px; border-radius: 10px;
  box-shadow: 0 8px 16px rgba(30,130,255,0.25);
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact-card {
  background: #fff; border: 1px solid #d7e7ff; border-radius: 14px; padding: 18px;
  box-shadow: 0 8px 20px rgba(30,130,255,0.08);
}
.contact-link { color: #1b82ff; font-weight: 700; text-decoration: none; }
.contact-link:hover { text-decoration: underline; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.mini-btn {
  appearance: none; border: 1px solid #bcd6ff; background: #fff; color: #0b2447;
  border-radius: 10px; padding: 8px 12px; font-weight: 700; cursor: pointer;
}
.mini-btn:hover { background: #f6fbff; }

/* Testimonials */
.testimonials { margin-top: 28px; }
.testimonials-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.t-card {
  background: #fff; border: 1px solid #d7e7ff; border-radius: 14px; padding: 14px;
  display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center;
}
.avatar { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; border: 1px solid #bcd6ff; background: #eef6ff; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Footer */
.site-footer { padding: 32px 0; border-top: 1px solid #d7e7ff; background: #ffffff; }
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }

/* Full-screen modal (mobile typing safe) */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.show { display: block; }
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(7, 22, 49, 0.35);
  /* Backdrop captures scroll/taps outside the sheet to prevent page scrolling */
  pointer-events: auto;
}
.modal-sheet {
  position: fixed; inset: 0; margin: 0; background: #fff;
  display: grid; grid-template-rows: auto 1fr auto;
  border-top-left-radius: 0; border-top-right-radius: 0;
  border: none;
  z-index: 101; /* Above backdrop */
}
.modal-header, .modal-footer { padding: 12px 16px; border-bottom: 1px solid #e6f2ff; }
.modal-footer { border-top: 1px solid #e6f2ff; border-bottom: none; }
.modal-close { appearance: none; background: none; border: none; font-size: 24px; cursor: pointer; color: #0b2447; }

/* The iframe area must be focusable and scroll independently */
.modal-body {
  position: relative;
  overflow: hidden;           /* keep layout stable */
  background: #f6fbff;
}
.form-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: none;              /* only show selected form */
  background: #f6fbff;
  overflow: auto;             /* scroll inside the iframe */
  -webkit-overflow-scrolling: touch;  /* iOS smooth scrolling */
  touch-action: pan-y;        /* allow vertical scroll gestures */
  pointer-events: auto;       /* ensure taps go into the form */
}

/* When modal is open, prevent body from scrolling (but still allow typing in iframe) */
body.modal-open {
  overscroll-behavior: none;  /* prevent rubber-banding on background */
}

/* Responsive */
@media (max-width: 1024px) {
  .cards-grid.three, .contact-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .nav-toggle { display: inline-block; }
  .nav-menu {
    position: absolute; top: 64px; right: 16px; background: #fff; border: 1px solid #d7e7ff;
    border-radius: 12px; padding: 8px; flex-direction: column; gap: 6px; display: none;
    box-shadow: 0 12px 24px rgba(30,130,255,0.14);
  }
  .nav-menu.show { display: flex; }

  .order-grid, .cards-grid.three, .contact-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .trusted-logos { grid-template-columns: repeat(2, 1fr); }
  .creator-feature { grid-template-columns: 1fr; }
}

/* Focus states */
a:focus, button:focus { outline: 2px solid #1b82ff; outline-offset: 2px; }
