/* =========================================
   incoinpay-app.com — 3D BLUE STYLESHEET
   File: css/style.css
   Theme: Incoinpay Deep Blue 3D
========================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ---------- ROOT VARIABLES ---------- */
:root {
  /* Core IncoinPay Colors */
  --brand-blue: #5963EE;
  --brand-blue-dark: #424DD6;
  --brand-blue-light: #7B85FF;
  --brand-blue-pale: #F0F2FF;
  --brand-white: #FFFFFF;
  
  /* 3D Shadows & Effects */
  --shadow-3d-sm: 0 4px 6px -1px rgba(89, 99, 238, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-3d-md: 0 10px 20px -5px rgba(89, 99, 238, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-3d-lg: 0 20px 30px -10px rgba(89, 99, 238, 0.4), 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  --shadow-inset: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
  
  /* Neutral Text Colors */
  --black: #111827;
  --gray-900: #111827;
  --gray-800: #1F2937;
  --gray-700: #374151;
  --gray-600: #4B5563;
  --gray-500: #6B7280;
  --gray-400: #9CA3AF;
  --gray-200: #E5E7EB;
  --gray-100: #F3F4F6;
  --white: #FFFFFF;
  
  --page-bg: #F4F6FB;
  --green: #15803D;
  --red: #B91C1C;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 30px;

  --container-width: 520px;
}

/* ---------- RESET ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  min-height: 100vh;
  background: var(--page-bg);
  color: var(--gray-800);
  font-family: 'Plus Jakarta Sans', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body, button, input, textarea, select {
  font-family: 'Plus Jakarta Sans', Arial, sans-serif;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
  color: var(--brand-blue-dark);
}

button { font: inherit; }

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

ul, ol { padding-left: 22px; }
li { margin-bottom: 8px; }

p {
  margin-bottom: 14px;
  color: var(--gray-600);
  overflow-wrap: anywhere;
}
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
  color: var(--gray-900);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

h2 { font-size: 22px; margin-bottom: 14px; }
h3 { font-size: 17px; margin: 20px 0 9px; }

::selection {
  background: var(--brand-blue);
  color: var(--white);
}

/* ---------- MAIN CONTAINER ---------- */
.shell {
  width: 100%;
  max-width: var(--container-width);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 16px;
  background: var(--white);
  box-shadow: var(--shadow-3d-lg);
  position: relative;
}

/* ---------- HEADER (3D Sticky) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
  margin: 0 -16px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--gray-200);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 15px rgba(89, 99, 238, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--gray-900);
}
.brand:hover { color: var(--gray-900); }

/* Logo Mark - 3D Style */
.brand-mark {
  display: flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  color: var(--white);
  font-size: 24px;
  font-weight: 800;
  box-shadow: var(--shadow-3d-md);
  transform: translateY(-2px);
  transition: transform 0.2s;
}
.brand-mark:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-3d-lg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
}
.brand-text strong {
  color: var(--gray-900);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.brand-text small {
  margin-top: 3px;
  color: var(--gray-500);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---------- HAMBURGER BUTTON ---------- */
.hamburger {
  display: flex;
  flex: 0 0 42px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  box-shadow: var(--shadow-3d-sm);
  transition: all 0.2s ease;
}
.hamburger:hover {
  background: var(--brand-blue-pale);
  border-color: var(--brand-blue-light);
  box-shadow: var(--shadow-3d-md);
}
.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 5px;
  background: var(--brand-blue-dark);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.hamburger[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }

/* ---------- NAVIGATION MENU (3D Dropdown) ---------- */
.nav-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 12px;
  left: 12px;
  display: none;
  flex-direction: column;
  gap: 4px;
  max-height: min(72vh, 520px);
  padding: 12px;
  overflow-y: auto;
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-3d-lg);
}
.nav-menu.open {
  display: flex;
  animation: menuDrop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--gray-700);
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s ease;
}
.nav-menu a:hover, .nav-menu a:focus-visible {
  background: var(--brand-blue-pale);
  color: var(--brand-blue-dark);
  transform: translateX(3px);
  outline: none;
}

@keyframes menuDrop {
  from { opacity: 0; transform: translateY(-10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- HERO SECTION (3D Depth) ---------- */
.hero {
  padding: 32px 20px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(180deg, var(--brand-blue-pale) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
}

/* Glow effect background */
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(89, 99, 238, 0.1) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: 90px;
  height: 90px;
  border-radius: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-3d-lg);
  transition: transform 0.3s ease;
}
.hero-logo:hover {
  transform: translateY(-5px) scale(1.02);
}

.hero h1 {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 10px;
}
.hero p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.6;
  max-width: 320px;
  margin-bottom: 24px;
}

/* ---------- 3D BUTTONS ---------- */
.btn-row {
  display: flex;
  gap: 12px;
  width: 100%;
  margin-bottom: 12px;
}

.btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  top: 0;
}

.btn-primary {
  background: linear-gradient(180deg, var(--brand-blue-light), var(--brand-blue));
  color: var(--white);
  box-shadow: 0 4px 0 var(--brand-blue-dark), var(--shadow-3d-md);
}
.btn-primary:active {
  top: 4px;
  box-shadow: 0 0 0 var(--brand-blue-dark), var(--shadow-3d-sm);
}

.btn-outline {
  background: var(--white);
  color: var(--brand-blue-dark);
  border: 2px solid var(--brand-blue);
  box-shadow: var(--shadow-3d-sm);
}
.btn-outline:hover {
  background: var(--brand-blue-pale);
  top: -2px;
  box-shadow: var(--shadow-3d-md);
}

.btn-blue {
  background: linear-gradient(180deg, #0088CC, #006FA3);
  color: var(--white);
  box-shadow: 0 4px 0 #004d73, var(--shadow-3d-md);
}

/* ---------- CONTENT CARDS (3D Float) ---------- */
.content-card {
  margin: 18px 0;
  padding: 24px 20px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-3d-md);
  scroll-margin-top: 88px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.content-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-3d-lg);
}

.content-card .section-label {
  margin-bottom: 10px;
}
.content-card h2 {
  margin-top: 2px;
  margin-bottom: 14px;
  font-size: 22px;
  color: var(--brand-blue-dark);
}
.content-card h3 {
  margin-top: 22px;
  margin-bottom: 10px;
  font-size: 16px;
}
.content-card p {
  font-size: 13px;
  line-height: 1.9;
}
.content-card ul, .content-card ol {
  margin-top: 12px;
  margin-bottom: 16px;
  padding-left: 22px;
  color: var(--gray-600);
  font-size: 13px;
  line-height: 1.85;
}
.content-card li {
  padding-left: 2px;
  margin-bottom: 8px;
}
.content-card li::marker {
  color: var(--brand-blue);
  font-weight: 800;
}

/* ---------- FEATURE GRID (3D Cards) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.feature-card {
  min-width: 0;
  padding: 16px 14px;
  border: 1px solid var(--brand-blue-pale);
  border-radius: 16px;
  background: linear-gradient(145deg, #ffffff, var(--brand-blue-pale));
  box-shadow: var(--shadow-3d-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-3d-md);
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: var(--brand-blue);
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  box-shadow: var(--shadow-3d-sm);
}
.feature-card h3 {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.02em;
}
.feature-card p {
  margin: 0;
  color: var(--gray-600);
  font-size: 11.5px;
  line-height: 1.75;
}

/* ---------- STEP LIST (3D Bubbles) ---------- */
.steps-list {
  list-style: none;
  counter-reset: step-counter;
  padding-left: 0 !important;
}
.steps-list li {
  position: relative;
  min-height: 44px;
  margin-bottom: 16px;
  padding: 2px 0 0 48px;
  counter-increment: step-counter;
}
.steps-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  color: var(--white);
  content: counter(step-counter, decimal-leading-zero);
  font-size: 11px;
  font-weight: 800;
  box-shadow: var(--shadow-3d-sm);
}
.steps-list li strong {
  display: block;
  margin-bottom: 4px;
  color: var(--gray-800);
}

/* ---------- CHECK LIST ---------- */
.check-list {
  list-style: none;
  padding-left: 0 !important;
}
.check-list li {
  position: relative;
  padding-left: 28px;
}
.check-list li::before {
  position: absolute;
  top: 2px;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #DCFCE7;
  color: var(--green);
  content: "✓";
  font-size: 11px;
  font-weight: 800;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

/* ---------- NOTICE BOX (3D Alert) ---------- */
.notice-box {
  margin: 20px 0;
  padding: 16px;
  border: 1px solid var(--brand-blue-light);
  border-left: 5px solid var(--brand-blue);
  border-radius: 14px;
  background: var(--brand-blue-pale);
  box-shadow: var(--shadow-3d-sm);
}
.notice-box strong {
  display: block;
  margin-bottom: 6px;
  color: var(--brand-blue-dark);
  font-size: 14px;
  font-weight: 800;
}
.notice-box p {
  margin: 0;
  color: var(--gray-700);
  font-size: 12.5px;
}

/* ---------- INTERNAL TEXT LINKS ---------- */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: var(--brand-blue);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
}
.text-link:hover {
  color: var(--brand-blue-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- QUICK LINK LIST (3D Buttons) ---------- */
.link-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 50px;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  background: var(--white);
  color: var(--gray-700);
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: var(--shadow-3d-sm);
  transition: all 0.2s;
}
.link-list a span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.link-list a span:last-child {
  flex: 0 0 auto;
  color: var(--brand-blue);
  font-size: 18px;
}
.link-list a:hover {
  border-color: var(--brand-blue-light);
  background: var(--brand-blue-pale);
  color: var(--brand-blue-dark);
  transform: translateX(4px);
  box-shadow: var(--shadow-3d-md);
}

/* ---------- FAQ ACCORDION (3D Cards) ---------- */
.faq-item {
  margin: 12px 0;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: 15px;
  background: var(--white);
  box-shadow: var(--shadow-3d-sm);
  transition: box-shadow 0.2s;
}
.faq-item:hover {
  box-shadow: var(--shadow-3d-md);
}
.faq-item summary {
  position: relative;
  padding: 15px 40px 15px 16px;
  color: var(--gray-800);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.65;
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  position: absolute;
  top: 50%;
  right: 16px;
  color: var(--brand-blue);
  content: "+";
  font-size: 22px;
  font-weight: 500;
  transform: translateY(-50%);
}
.faq-item[open] summary {
  border-bottom: 1px solid var(--gray-200);
  background: var(--brand-blue-pale);
  color: var(--brand-blue-dark);
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-item p {
  margin: 0;
  padding: 14px 16px 16px;
  color: var(--gray-600);
  font-size: 12.5px;
  line-height: 1.85;
}

/* ---------- DISCLAIMER CARD ---------- */
.disclaimer-card {
  border-color: var(--brand-blue-light);
  background: linear-gradient(145deg, var(--brand-blue-pale), var(--white));
  box-shadow: var(--shadow-3d-md);
}
.disclaimer-card h2 {
  color: var(--brand-blue-dark);
}

/* ---------- FOOTER (3D Base) ---------- */
.site-footer {
  margin: 24px -16px 0;
  padding: 28px 20px 24px;
  border-top: 1px solid var(--gray-200);
  background: var(--brand-blue-pale);
  text-align: center;
  border-radius: 24px 24px 0 0;
  box-shadow: inset 0 4px 6px -1px rgba(0,0,0,0.02);
}
.footer-brand {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--brand-blue-dark);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.footer-brand:hover {
  color: var(--brand-blue);
}
.site-footer > p {
  max-width: 370px;
  margin: 0 auto 16px;
  color: var(--gray-600);
  font-size: 11.5px;
  line-height: 1.8;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  margin: 20px 0;
}
.footer-links a {
  color: var(--gray-600);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s;
}
.footer-links a:hover {
  color: var(--brand-blue-dark);
  background: rgba(89, 99, 238, 0.1);
}
.site-footer .copyright {
  margin-top: 20px;
  margin-bottom: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(89, 99, 238, 0.2);
  color: var(--gray-700);
  font-size: 10.5px;
  font-weight: 700;
}
.site-footer .footer-note {
  margin-bottom: 0;
  color: var(--gray-500);
  font-size: 10px;
}

/* ---------- FOCUS ACCESSIBILITY ---------- */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(89, 99, 238, 0.5);
  outline-offset: 3px;
}

/* ---------- TABLET AND DESKTOP ---------- */
@media (min-width: 600px) {
  body { padding: 30px 0; }
  .shell {
    min-height: auto;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    overflow: visible;
  }
  .site-header { border-radius: 30px 30px 0 0; }
  .hero { margin-top: 0; padding: 40px 28px 32px; border-radius: 0; }
  .content-card { padding: 28px 24px; }
  .site-footer { border-radius: 0 0 30px 30px; }
}

/* ---------- SMALL MOBILE ---------- */
@media (max-width: 360px) {
  .shell { padding-right: 12px; padding-left: 12px; }
  .site-header { margin-right: -12px; margin-left: -12px; padding-right: 12px; padding-left: 12px; }
  .brand-mark { flex-basis: 38px; width: 38px; height: 38px; border-radius: 12px; font-size: 22px; }
  .brand-text strong { font-size: 16px; }
  .brand-text small { font-size: 8px; }
  .hero { padding: 24px 16px; }
  .hero h1 { font-size: 1.4rem; }
  .content-card { padding: 20px 16px; }
  .content-card h2 { font-size: 20px; }
  .feature-grid { gap: 8px; }
  .feature-card { padding: 12px 10px; }
  .site-footer { margin-right: -12px; margin-left: -12px; padding-right: 16px; padding-left: 16px; }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================
   INCOINPAY SCREENSHOTS (3D)
========================= */
.screenshot-section { overflow: hidden; }
.section-label {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--brand-blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.section-description {
  color: var(--gray-500);
  font-size: 14px;
  line-height: 1.8;
  margin: 10px 0 22px;
}
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.screenshot-item {
  width: 100%;
  max-width: 180px;
  justify-self: center;
  padding: 8px;
  margin: 0;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-3d-sm);
  transition: transform 0.2s;
}
.screenshot-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-3d-md);
}
.screenshot-item img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: contain;
  border-radius: 10px;
  background: var(--brand-blue-pale);
}
.screenshot-item figcaption {
  padding: 10px 2px 4px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  color: var(--gray-800);
}
.screenshot-note {
  margin: 20px 0 0;
  padding: 14px;
  background: var(--brand-blue-pale);
  border-left: 4px solid var(--brand-blue);
  border-radius: 10px;
  color: var(--brand-blue-dark);
  font-size: 12px;
  line-height: 1.7;
  box-shadow: var(--shadow-3d-sm);
}
@media (max-width: 360px) {
  .screenshot-grid { gap: 10px; }
  .screenshot-item { padding: 6px; }
  .screenshot-item img { height: 170px; }
  .screenshot-item figcaption { font-size: 11px; }
}