/* ============================================================
   Sections: templates, tech stack, process, modal, WhatsApp
   ============================================================ */

.section-sub {
  max-width: 58ch;
  color: var(--text-dim);
  margin: -1.6rem 0 3rem;
}

.link-btn {
  background: none;
  border: none;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  cursor: none;
  padding: 0;
}
.link-btn:hover { text-decoration: underline; }

/* ============ TEMPLATES ============ */
.templates { padding: var(--space-section) var(--pad-x); }

.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.4rem;
}

.template-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(11, 11, 20, 0.6);
  backdrop-filter: blur(10px);
  transition: border-color var(--duration-normal), box-shadow var(--duration-normal);
  will-change: transform;
}
.template-card:hover {
  border-color: var(--tc);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* --- realistic mini website mockups --- */
.tpl-preview {
  background: #0d0d10;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.tpl-chrome {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0.5rem 0.7rem;
  background: #17171b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.tpl-chrome i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(242, 240, 230, 0.15);
}
.tpl-chrome i:nth-child(1) { background: #ff5f57; }
.tpl-chrome i:nth-child(2) { background: #febc2e; }
.tpl-chrome i:nth-child(3) { background: #28c840; }
.tpl-url {
  flex: 1;
  margin-left: 0.5rem;
  padding: 0.14rem 0.7rem;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.62rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}
.tpl-site {
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.tpl-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  font-size: 0.55rem;
}
.tpl-nav b {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--tc);
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.tpl-nav nav {
  display: flex;
  gap: 0.65rem;
  color: var(--text-dim);
  white-space: nowrap;
}
.tpl-nav nav span:last-child { color: var(--tc); }

.tpl-hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0.7rem;
  align-items: center;
  padding: 0.35rem 0.75rem 0.75rem;
  min-height: 0;
}
.tpl-hero img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: 8px;
  filter: saturate(0.9);
}
.tpl-hero-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 0.4rem; }
.tpl-hero-txt h4,
.tpl-center2 h4,
.tpl-banner h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1.3;
  color: var(--text);
}
.tpl-hero-txt p,
.tpl-center2 p {
  font-size: 0.55rem;
  line-height: 1.5;
  color: var(--text-dim);
}
.tpl-cta-btn {
  display: inline-block;
  padding: 0.28rem 0.7rem;
  border-radius: 99px;
  background: var(--tc);
  color: #0a0a0a;
  font-size: 0.55rem;
  font-weight: 700;
  white-space: nowrap;
}
.tpl-ghost2 {
  background: transparent;
  border: 1px solid rgba(242, 240, 230, 0.35);
  color: var(--text);
}
.tpl-btn-row { display: flex; gap: 0.45rem; margin-top: 0.2rem; }

.tpl-strip {
  padding: 0.28rem 0.75rem;
  background: color-mix(in srgb, var(--tc) 18%, transparent);
  color: var(--tc);
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tpl-products {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 0.55rem 0.75rem 0.75rem;
  min-height: 0;
}
.tpl-product2 {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 7px;
  overflow: hidden;
  min-height: 0;
}
.tpl-product2 img {
  width: 100%;
  flex: 1;
  min-height: 0;
  object-fit: cover;
}
.tpl-product2 span {
  padding: 0.25rem 0.4rem 0;
  font-size: 0.52rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tpl-product2 b {
  padding: 0.05rem 0.4rem 0.35rem;
  font-size: 0.56rem;
  color: var(--tc);
}

.tpl-center2 {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-align: center;
  padding: 0.5rem 1rem 0.9rem;
  background: radial-gradient(ellipse at 50% 120%, color-mix(in srgb, var(--tc) 22%, transparent), transparent 70%);
}
.tpl-pill {
  padding: 0.14rem 0.55rem;
  border: 1px solid var(--tc);
  border-radius: 99px;
  color: var(--tc);
  font-size: 0.5rem;
}

.tpl-banner {
  position: relative;
  flex: 1;
  margin: 0.2rem 0.75rem 0.45rem;
  border-radius: 8px;
  overflow: hidden;
  min-height: 0;
}
.tpl-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55) saturate(0.9);
}
.tpl-banner h4 {
  position: absolute;
  left: 0.7rem;
  bottom: 0.55rem;
}
.tpl-search {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  padding: 0 0.75rem 0.75rem;
}
.tpl-search span {
  flex: 1;
  padding: 0.28rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.52rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
}
.tpl-search em {
  font-style: normal;
  padding: 0.28rem 0.7rem;
  border-radius: 6px;
  background: var(--tc);
  color: #0a0a0a;
  font-size: 0.52rem;
  font-weight: 700;
}

.tpl-photos {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 0.4rem;
  padding: 0.2rem 0.75rem 0.75rem;
  min-height: 0;
}
.tpl-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  filter: grayscale(0.5) contrast(1.05);
}
.tpl-photos img:first-child { grid-row: span 2; }
.tpl-photos img:nth-child(2) { grid-column: span 2; }
.tpl-photos img:nth-child(3) { grid-column: span 2; }

.tpl-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1rem 1.1rem;
}
.tpl-meta h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}
.tpl-meta > div > span {
  color: var(--text-dim);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}
.tpl-cta {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  white-space: nowrap;
  transition: background var(--duration-normal), color var(--duration-normal), border-color var(--duration-normal);
}
.template-card { cursor: none; }
.template-card:hover .tpl-cta {
  background: var(--tc);
  border-color: var(--tc);
  color: #0a0a0a;
}
.template-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.templates-note {
  margin-top: 2.4rem;
  color: var(--text-dim);
  text-align: center;
}
.templates-note strong { color: var(--text); }

/* ============ TECH STACK ============ */
.stack { padding: var(--space-section) var(--pad-x); }

.stack-layout {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) 1.4fr;
  gap: clamp(1.6rem, 4vw, 4rem);
  align-items: start;
}
@media (max-width: 980px) {
  .stack-layout { grid-template-columns: 1fr; }
}

.code-window {
  position: sticky;
  top: 6.5rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(9, 9, 16, 0.85);
  backdrop-filter: blur(12px);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.code-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
}
.code-bar i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(244, 242, 238, 0.15);
}
.code-bar i:nth-child(1) { background: #fb7185; }
.code-bar i:nth-child(2) { background: #fbbf24; }
.code-bar i:nth-child(3) { background: #34d399; }
.code-bar span {
  margin-left: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}
.code-body {
  margin: 0;
  padding: 1.1rem 1.2rem 1.4rem;
  font-family: "Consolas", "Menlo", monospace;
  font-size: 0.8rem;
  line-height: 1.7;
  min-height: 300px;
  white-space: pre-wrap;
  word-break: break-word;
  color: #c9d1d9;
}
.code-body .tok-kw { color: #c084fc; }
.code-body .tok-str { color: #a3e635; }
.code-body .tok-fn { color: #38bdf8; }
.code-body .tok-com { color: rgba(244, 242, 238, 0.35); }
.code-caret {
  display: inline-block;
  width: 8px; height: 1em;
  vertical-align: text-bottom;
  background: var(--accent);
  animation: caret-blink 0.9s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

.stack-groups {
  display: grid;
  gap: 2.2rem;
}
.stack-group h3 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}
.sg-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--sg);
  box-shadow: 0 0 12px var(--sg);
}
.tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.tech {
  position: relative;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 500;
  background: rgba(11, 11, 20, 0.6);
  transition: border-color var(--duration-fast), color var(--duration-fast), transform var(--duration-fast);
}
.tech:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.tech::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(4px);
  width: max-content;
  max-width: 240px;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  background: #16161f;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-fast), transform var(--duration-fast);
  z-index: 10;
}
.tech:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============ PROCESS ============ */
.process { padding: var(--space-section) var(--pad-x); }
.process-list {
  list-style: none;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.process-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1rem, 4vw, 3rem);
  align-items: start;
  padding: clamp(1.4rem, 3vw, 2.2rem) 0;
  border-bottom: 1px solid var(--line);
  transition: background var(--duration-normal);
}
.process-step:hover { background: rgba(244, 242, 238, 0.02); }
.process-step b {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  color: transparent;
  -webkit-text-stroke: 1.2px var(--accent);
  line-height: 1;
}
.process-step h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
}
.process-step p {
  margin-top: 0.4rem;
  color: var(--text-dim);
  max-width: 62ch;
}

/* ============ WHATSAPP FLOAT ============ */
.wa-float {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 60;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35);
  transition: transform var(--duration-normal) var(--ease-out-expo);
}
.wa-float:hover { transform: scale(1.1) rotate(6deg); }
.wa-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: wa-ping 1.8s var(--ease-out-expo) infinite;
}
@keyframes wa-ping {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* ============ MODAL ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(4, 4, 8, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}
.modal-overlay[hidden] { display: none; }

.modal {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  background: #0d0d17;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
}
.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: none;
  color: var(--text);
  font-size: 0.9rem;
  cursor: none;
  transition: background var(--duration-fast), color var(--duration-fast);
}
.modal-close:hover { background: var(--accent); color: #06060b; }

.modal-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  line-height: 1.1;
}
.modal-head p {
  margin: 0.5rem 0 1.6rem;
  color: var(--text-dim);
  font-size: 0.92rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
}

.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field > span {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(244, 242, 238, 0.05);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  outline: none;
  transition: border-color var(--duration-fast), background var(--duration-fast);
  cursor: none;
}
.field textarea { resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(244, 242, 238, 0.3); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  background: rgba(255, 196, 0, 0.05);
}
.field select { appearance: none; }
.field select option { background: #0d0d17; }
.field input:user-invalid { border-color: #fb7185; }

.field-platforms {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  margin: 1.2rem 0;
}
.field-platforms legend {
  padding: 0 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.6rem;
}
.check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  transition: background var(--duration-fast);
  cursor: none;
}
.check:hover { background: rgba(244, 242, 238, 0.04); }
.check input { position: absolute; opacity: 0; }
.check i {
  flex: none;
  width: 18px; height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--text-dim);
  position: relative;
  transition: background var(--duration-fast), border-color var(--duration-fast);
}
.check input:checked + i {
  background: var(--accent);
  border-color: var(--accent);
}
.check input:checked + i::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #06060b;
}
.check input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }

.form-error {
  margin: 0.8rem 0 0;
  color: #fb7185;
  font-size: 0.88rem;
}

.btn-submit {
  width: 100%;
  margin-top: 1.2rem;
  border: none;
  cursor: none;
  font-family: inherit;
}
.btn-submit[disabled] { opacity: 0.6; pointer-events: none; }

.form-note {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.84rem;
  color: var(--text-dim);
}
.form-note a { color: #25d366; font-weight: 600; }

.form-success {
  text-align: center;
  padding: 2rem 0.5rem;
}
.fs-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: #06060b;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}
.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}
.form-success p { color: var(--text-dim); max-width: 40ch; margin: 0 auto; }
.form-success a { color: #25d366; font-weight: 600; }

body.modal-open { overflow: hidden; }

/* ============ HERO INLINE FORM ============ */
.hero-form-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(12, 12, 10, 0.72);
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  padding: clamp(1.2rem, 2vw, 1.8rem);
}
.hf-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 1.6vw, 1.5rem);
  line-height: 1.15;
}
.hf-sub {
  margin: 0.4rem 0 1.1rem;
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* compact variant used in the hero */
.enquiry-form.compact .form-grid { gap: 0.7rem; }
.enquiry-form.compact .field input,
.enquiry-form.compact .field select {
  padding: 0.6rem 0.75rem;
  font-size: 0.86rem;
}
.enquiry-form.compact .field > span { font-size: 0.68rem; }
.enquiry-form.compact .field-platforms {
  margin: 0.9rem 0;
  padding: 0.7rem 0.8rem;
}
.enquiry-form.compact .check-grid {
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 0.25rem;
}
.enquiry-form.compact .check {
  font-size: 0.74rem;
  padding: 0.3rem 0.35rem;
  gap: 0.4rem;
}
.enquiry-form.compact .check i { width: 15px; height: 15px; }
.enquiry-form.compact .check input:checked + i::after { font-size: 10px; }
.enquiry-form.compact .btn-submit {
  margin-top: 0.9rem;
  padding: 0.85rem 1.6rem;
  font-size: 0.88rem;
}
@media (max-width: 1023px) {
  .hero-form { max-width: 560px; }
}

/* ============ FAQ ============ */
.faq { padding: var(--space-section) var(--pad-x); max-width: 60rem; }
.faq-list { display: grid; gap: 0.8rem; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(12, 12, 10, 0.6);
  backdrop-filter: blur(8px);
  overflow: hidden;
  transition: border-color var(--duration-normal);
}
.faq-item[open] { border-color: var(--accent); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.88rem, 1.4vw, 1.05rem);
  list-style: none;
  cursor: none;
  transition: color var(--duration-fast);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-icon {
  flex: none;
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--font-body);
  transition: transform var(--duration-normal) var(--ease-out-expo), background var(--duration-normal);
}
.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  background: var(--accent);
  color: #0a0a0a;
}
.faq-item p {
  padding: 0 1.3rem 1.2rem;
  color: var(--text-dim);
  font-size: 0.92rem;
  max-width: 68ch;
}
.faq-item p strong { color: var(--text); }
.faq-item p a { color: var(--accent); text-decoration: underline; }
