/* ============================================================
   Secured Chain Limited — Custom Styles
   Complements Tailwind CDN
   ============================================================ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: #FFFFFF;
  color: #1E293B;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: #F1F5F9; }
::-webkit-scrollbar-thumb { background: rgba(15,23,42,0.18); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(126,217,87,0.6); }

/* ── Color Tokens (light theme) ── */
:root {
  --bg-0: #FFFFFF;
  --bg-1: #F8FAFC;
  --bg-2: #F1F5F9;
  --bg-3: #E2E8F0;
  --border: rgba(15,23,42,0.08);
  --border-md: rgba(15,23,42,0.16);
  --primary: #C7EA46;
  --primary-dark: #A8C92E;
  --up: #16A34A;
  --down: #DC2626;
  --gold: #D97706;
  --text: #1E293B;
  --muted: #64748B;
}

/* ── Typography ── */
.gradient-text {
  background: linear-gradient(135deg, #1E293B 0%, #5FB73B 50%, #7ED957 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-up   { color: var(--up) !important; }
.text-down { color: var(--down) !important; }
.text-gold { color: var(--gold) !important; }

/* ── Section Divider ── */
.section-divider { border-top: 1px solid var(--border); }

/* ── Cards ── */
.ptm-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.ptm-card:hover {
  border-color: var(--border-md);
  transform: translateY(-3px);
}
.ptm-card-interactive:hover {
  border-color: rgba(59,130,246,0.3);
  box-shadow: 0 0 0 1px rgba(59,130,246,0.1), 0 8px 32px rgba(0,0,0,0.4);
}

/* ── Navbar ── */
#ptm-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
  height: 56px;
  display: flex;
  align-items: center;
  transition: background 0.2s, box-shadow 0.2s;
}
#ptm-navbar.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(15,23,42,0.06);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 8px;
}
.nav-logo .logo-icon {
  width: 32px; height: 32px;
  background: var(--primary);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-logo .logo-icon svg { width: 16px; height: 16px; color: #0D1421; }
.nav-logo .logo-text { font-size: 14px; font-weight: 700; color: #0F172A; white-space: nowrap; }
.nav-logo .logo-text span { color: var(--primary); }

/* Desktop nav links */
.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-link {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  color: #64748B;
  text-decoration: none;
  display: flex; align-items: center; gap: 4px;
  transition: color 0.15s, background 0.15s;
  cursor: pointer;
  border: none; background: none; font-family: inherit;
}
.nav-link:hover, .nav-link.active { color: #0F172A; background: rgba(15,23,42,0.04); }
.nav-link svg { width: 13px; height: 13px; transition: transform 0.15s; }
.nav-link.open svg { transform: rotate(180deg); }

/* Dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 240px;
  background: var(--bg-1);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 16px 48px rgba(15,23,42,0.12);
  z-index: 100;
  opacity: 0;
  transform: translateY(8px) scale(0.97);
  transition: opacity 0.12s, transform 0.12s;
  pointer-events: none;
}
.nav-dropdown.open .nav-dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}
.nav-dropdown-item {
  display: block;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.12s;
}
.nav-dropdown-item:hover { background: rgba(15,23,42,0.04); }
.nav-dropdown-item .dd-title { font-size: 13px; font-weight: 500; color: #1E293B; display: block; }
.nav-dropdown-item .dd-desc { font-size: 11px; color: #64748B; margin-top: 1px; display: block; }

/* Nav actions */
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.btn-ghost-nav {
  padding: 4px 14px; height: 32px;
  border-radius: 8px;
  font-size: 12px; font-weight: 500;
  color: #64748B;
  background: none; border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color 0.15s;
  font-family: inherit;
}
.btn-ghost-nav:hover { color: #0F172A; }
.btn-primary-nav {
  padding: 0 16px; height: 32px;
  border-radius: 8px;
  font-size: 12px; font-weight: 600;
  color: #0D1421;
  background: var(--primary);
  border: none; cursor: pointer;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background 0.15s, box-shadow 0.15s;
  font-family: inherit;
}
.btn-primary-nav:hover {
  background: var(--primary-dark);
  box-shadow: 0 0 20px rgba(199,234,70,0.35);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  width: 32px; height: 32px;
  background: none; border: none; cursor: pointer;
  color: #64748B;
  align-items: center; justify-content: center;
  border-radius: 8px;
}
.nav-hamburger:hover { background: rgba(15,23,42,0.04); color: #0F172A; }

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: 56px; left: 0; right: 0; bottom: 0;
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  overflow-y: auto;
  z-index: 999;
  padding: 16px;
}
.nav-mobile.open { display: block; }
.mobile-link {
  display: block; padding: 10px 12px;
  border-radius: 8px;
  color: #64748B; text-decoration: none; font-size: 14px;
  transition: color 0.15s, background 0.15s;
}
.mobile-link:hover { color: #0F172A; background: rgba(15,23,42,0.04); }
.mobile-section-label {
  padding: 16px 12px 6px;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: #64748B;
}

/* ── Market Ticker ── */
#ptm-ticker {
  position: fixed;
  top: 56px; left: 0; right: 0;
  z-index: 999;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
  height: 34px;
  overflow: hidden;
}
.ticker-wrapper { display: flex; align-items: center; height: 100%; }
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 70s linear infinite;
  align-items: center;
  height: 100%;
}
.ticker-track:hover { animation-play-state: paused; cursor: default; }
.ticker-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 20px; white-space: nowrap; height: 100%;
}
.ticker-item .t-sym { font-size: 11px; font-weight: 700; color: #64748B; letter-spacing: 0.03em; }
.ticker-item .t-price { font-size: 11px; font-family: 'JetBrains Mono', 'Courier New', monospace; color: #0F172A; }
.ticker-item .t-change { font-size: 11px; font-weight: 500; display: flex; align-items: center; gap: 2px; }
.ticker-sep { color: rgba(255,255,255,0.08); font-size: 14px; }
/* Fade edges */
#ptm-ticker::before, #ptm-ticker::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2; pointer-events: none;
}
#ptm-ticker::before { left: 0; background: linear-gradient(to right, var(--bg-1), transparent); }
#ptm-ticker::after  { right: 0; background: linear-gradient(to left, var(--bg-1), transparent); }

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Page offset for fixed navbar + ticker ── */
.page-body { padding-top: 90px; }

/* ── Hero ── */
.hero-section {
  position: relative;
  padding: 60px 0 80px;
  background: var(--bg-0);
}
.hero-glow {
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 900px; height: 500px;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(199,234,70,0.10) 0%, transparent 100%);
  pointer-events: none;
}

/* ── Dashboard mockup ── */
.mockup-window {
  background: var(--bg-1);
  border: 1px solid rgba(15,23,42,0.10);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(15,23,42,0.10);
  position: relative;
}
.mockup-chrome {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px;
  background: var(--bg-0);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.1); }
.mockup-url { margin-left: 12px; font-size: 11px; color: #64748B; font-family: monospace; flex: 1; }
.mockup-live { width: 6px; height: 6px; border-radius: 50%; background: var(--up); animation: pulse-dot 1.5s ease-in-out infinite; }
@keyframes pulse-dot { 0%,100% { opacity:1; } 50% { opacity:0.3; } }

/* Floating card */
.floating-card {
  position: absolute;
  bottom: -12px; left: -24px;
  background: var(--bg-1);
  border: 1px solid rgba(15,23,42,0.10);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 8px 32px rgba(15,23,42,0.08);
  display: flex; align-items: center; gap: 10px;
  animation: float 4s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ── Chip / Badge ── */
.ptm-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 6px; border: 1px solid;
  font-size: 11px; font-weight: 500;
}
.chip-live   { border-color: rgba(0,192,135,0.3); background: rgba(0,192,135,0.08); color: var(--up); }
.chip-muted  { border-color: rgba(255,255,255,0.1); color: #64748B; }
.chip-blue   { border-color: rgba(199,234,70,0.3); background: rgba(199,234,70,0.08); color: var(--primary); }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 28px; height: 44px;
  border-radius: 10px;
  background: var(--primary);
  color: #0D1421;
  font-weight: 600; font-size: 14px;
  border: none; cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, box-shadow 0.15s;
  font-family: inherit;
}
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 0 24px rgba(199,234,70,0.35); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 24px; height: 44px;
  border-radius: 10px;
  background: transparent;
  color: #64748B;
  font-weight: 500; font-size: 14px;
  border: 1px solid rgba(15,23,42,0.12);
  cursor: pointer; text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
  font-family: inherit;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.2); color: #0F172A; }
.btn-copy-trader {
  display: block; width: 100%; text-align: center;
  padding: 8px; border-radius: 8px;
  background: rgba(199,234,70,0.10); color: var(--primary);
  border: 1px solid rgba(199,234,70,0.25);
  font-size: 12px; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn-copy-trader:hover { background: rgba(199,234,70,0.20); border-color: rgba(199,234,70,0.45); }

/* ── How it works grid ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(15,23,42,0.04);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 16px; overflow: hidden;
}
.step-item {
  background: var(--bg-0);
  padding: 40px 32px;
  transition: background 0.2s;
}
.step-item:hover { background: var(--bg-1); }
.step-num { font-size: 48px; font-weight: 900; color: rgba(255,255,255,0.04); margin-bottom: 20px; font-family: monospace; }

/* ── Market rows ── */
.market-row {
  display: grid;
  grid-template-columns: 36px 1fr auto auto auto;
  align-items: center; gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.12s;
  cursor: pointer;
}
.market-row:last-child { border-bottom: none; }
.market-row:hover { background: rgba(255,255,255,0.02); }
.asset-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(15,23,42,0.05);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #64748B;
}
.asset-name p { margin: 0; }
.asset-sym { font-size: 13.5px; font-weight: 600; color: #0F172A; }
.asset-full { font-size: 11px; color: #64748B; }
.asset-price { font-size: 13.5px; font-weight: 500; color: #0F172A; font-family: monospace; text-align: right; }
.asset-change { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 500; justify-content: flex-end; }
.asset-mcap { font-size: 11px; color: #64748B; text-align: right; }

/* ── Trader Card ── */
.trader-card {
  background: var(--bg-1);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px; padding: 20px;
  transition: border-color 0.2s, transform 0.2s;
}
.trader-card:hover { border-color: rgba(255,255,255,0.12); transform: translateY(-3px); }
.trader-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #A8C92E, #C7EA46);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #0D1421;
  border: 1px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
}
.win-bar {
  height: 4px; border-radius: 2px;
  background: rgba(15,23,42,0.06); overflow: hidden;
}
.win-bar-fill { height: 100%; background: var(--up); border-radius: 2px; }

/* ── Testimonial Card ── */
.testimonial-card {
  background: var(--bg-1);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px; padding: 24px;
  display: flex; flex-direction: column; gap: 16px;
}

/* ── Form ── */
.ptm-input {
  width: 100%; height: 44px;
  background: rgba(15,23,42,0.04);
  border: 1px solid rgba(15,23,42,0.12);
  border-radius: 10px;
  padding: 0 16px;
  color: #0F172A; font-size: 14px; font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.ptm-input::placeholder { color: #64748B; }
.ptm-input:focus { border-color: rgba(199,234,70,0.5); box-shadow: 0 0 0 3px rgba(199,234,70,0.15); }
.ptm-textarea {
  width: 100%; min-height: 120px;
  background: rgba(15,23,42,0.04);
  border: 1px solid rgba(15,23,42,0.12);
  border-radius: 10px;
  padding: 12px 16px;
  color: #0F172A; font-size: 14px; font-family: inherit;
  resize: none; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ptm-textarea::placeholder { color: #64748B; }
.ptm-textarea:focus { border-color: rgba(199,234,70,0.5); box-shadow: 0 0 0 3px rgba(199,234,70,0.15); }
.ptm-label { font-size: 13px; font-weight: 500; color: #64748B; display: block; margin-bottom: 6px; }
.ptm-select {
  width: 100%; height: 44px;
  background: rgba(15,23,42,0.04);
  border: 1px solid rgba(15,23,42,0.12);
  border-radius: 10px;
  padding: 0 16px;
  color: #0F172A; font-size: 14px; font-family: inherit;
  outline: none; cursor: pointer;
  transition: border-color 0.15s;
}
.ptm-select:focus { border-color: rgba(199,234,70,0.5); }
.ptm-select option { background: #FFFFFF; color: #0F172A; }

/* ── Section heading utility ── */
.section-eyebrow { font-size: 11px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; }
.section-title { font-size: 2rem; font-weight: 700; color: #0F172A; line-height: 1.2; }

/* ── Container ── */
.ptm-container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.ptm-section { padding: 80px 0; }

/* ── Footer ── */
#ptm-footer { background: #0F172A; border-top: 1px solid rgba(255,255,255,0.05); }

/* ── AOS overrides ── */
[data-aos] { transition-timing-function: cubic-bezier(0.25,0.46,0.45,0.94) !important; }

/* ── Responsive ── */
@media (max-width: 1023px) {
  .nav-links { display: none; }
  .nav-actions .btn-ghost-nav, .nav-actions .btn-primary-nav { display: none; }
  .nav-hamburger { display: flex; }
  .steps-grid { grid-template-columns: 1fr; }
  .hero-section { padding: 40px 0 60px; }
  .section-title { font-size: 1.6rem; }
}
@media (max-width: 767px) {
  .ptm-section { padding: 56px 0; }
  .market-row { grid-template-columns: 36px 1fr auto; }
  .asset-mcap, .asset-change { display: none; }
  .market-row .asset-price { display: block; }
  .floating-card { display: none; }
}
