/*
  TapDeck — w4 visual world
  THESIS: a payments site shaped like the POS terminal's own control panel;
          refuses the light SaaS brochure and its three feature cards.
  OWN-WORLD: near-black charcoal field throughout (#0d1014) — POS lives in dim
             bars and kitchens — with signal lime (#c6f24e) and cyan (#3ad6c6),
             a keypad grid motif and mono numerics for every amount.
  MOTION: one authored moment — the keypad keys light in sequence, then a charge
          pulse crosses the terminal.
*/

:root {
  --bg: #0d1014;
  --bg-2: #12161c;
  --bg-3: #171d25;
  --panel: #1a212b;
  --edge: #263041;
  --edge-soft: #1e2733;
  --text: #e7edf3;
  --text-dim: #93a4b7;
  --lime: #c6f24e;
  --lime-deep: #a6d62f;
  --cyan: #3ad6c6;
  --amber: #ffb454;
  --danger: #ff6b6b;
  --radius: 6px;
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "Consolas", "SF Mono", "Roboto Mono", ui-monospace, monospace;
  --shadow: 0 20px 44px -20px rgba(0, 0, 0, 0.8);
  --shadow-lime: 0 14px 34px -16px rgba(198, 242, 78, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--lime); }
.wrap { width: min(1180px, 92vw); margin: 0 auto; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* topbar */
.topbar { background: #05070a; color: var(--text-dim); font-size: 13px; font-family: var(--mono); border-bottom: 1px solid var(--edge-soft); }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 6px 24px; padding: 8px 0; align-items: center; }
.topbar .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); display: inline-block; margin-right: 6px; }
.topbar a { color: var(--text-dim); }
.topbar .sep { margin-left: auto; }

/* header / nav */
.site-head { position: sticky; top: 0; z-index: 40; background: rgba(13,16,20,.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--edge-soft); }
.nav { display: flex; align-items: center; gap: 18px; padding: 13px 0; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand svg { width: 34px; height: 34px; }
.brand b { font-size: 20px; letter-spacing: -0.01em; color: #fff; }
.brand b i { color: var(--lime); font-style: normal; }
.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav-links a { color: var(--text-dim); padding: 8px 12px; border-radius: var(--radius); font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--text); background: var(--bg-3); }
.nav-cta { background: var(--lime); color: #0d1014 !important; box-shadow: var(--shadow-lime); }
.nav-cta:hover { background: var(--lime-deep); color: #0d1014 !important; }
.nav-toggle { display: none; }

/* hero */
.hero { position: relative; padding: 78px 0 90px; overflow: hidden; background:
  radial-gradient(80% 60% at 78% 12%, rgba(58,214,198,.10), transparent 60%),
  radial-gradient(70% 60% at 10% 90%, rgba(198,242,78,.08), transparent 60%);
  border-bottom: 1px solid var(--edge-soft); }
.hero .grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 52px; align-items: center; }
.kicker { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.kicker::before { content: ""; width: 22px; height: 1px; background: var(--cyan); }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.02; letter-spacing: -0.04em; margin: 0 0 18px; font-weight: 800; color: #fff; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero p.lead { color: var(--text-dim); font-size: 1.16rem; max-width: 44ch; margin: 0 0 28px; }
.btn-row { display: flex; gap: 13px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 14px 22px; border-radius: var(--radius); font-weight: 700; font-size: 16px; border: 0; cursor: pointer; transition: transform .16s cubic-bezier(.2,.8,.2,1), box-shadow .16s, background .16s; }
.btn-primary { background: var(--lime); color: #0d1014; box-shadow: var(--shadow-lime); }
.btn-primary:hover { transform: translateY(-2px); color: #0d1014; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--edge); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--text); }

/* terminal / keypad — the signature object */
.terminal { background: linear-gradient(180deg, var(--panel), #141a22); border: 1px solid var(--edge); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); position: relative; }
.terminal .screen { background: #05080b; border: 1px solid var(--edge-soft); border-radius: 8px; padding: 16px 18px; font-family: var(--mono); position: relative; overflow: hidden; }
.terminal .screen .row { display: flex; justify-content: space-between; color: var(--text-dim); font-size: 13.5px; padding: 3px 0; }
.terminal .screen .amt { font-size: 34px; color: var(--lime); letter-spacing: -0.02em; margin: 8px 0 4px; }
.terminal .screen .status { color: var(--cyan); font-size: 13px; }
.terminal .screen::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -50%; background: linear-gradient(90deg, transparent, rgba(198,242,78,.14), transparent); animation: swipe 3.4s ease-in-out infinite; }
@keyframes swipe { 0%,60% { left: -50%; } 100% { left: 120%; } }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.keypad button, .keypad span { background: var(--bg-3); border: 1px solid var(--edge-soft); border-radius: 8px; padding: 16px 0; text-align: center; font-family: var(--mono); font-size: 19px; color: var(--text); opacity: 0; transform: translateY(6px); animation: keyin .4s ease forwards; }
.keypad :nth-child(1){animation-delay:.02s}.keypad :nth-child(2){animation-delay:.05s}.keypad :nth-child(3){animation-delay:.08s}.keypad :nth-child(4){animation-delay:.11s}.keypad :nth-child(5){animation-delay:.14s}.keypad :nth-child(6){animation-delay:.17s}.keypad :nth-child(7){animation-delay:.20s}.keypad :nth-child(8){animation-delay:.23s}.keypad :nth-child(9){animation-delay:.26s}.keypad :nth-child(10){animation-delay:.29s}.keypad :nth-child(11){animation-delay:.32s}.keypad :nth-child(12){animation-delay:.35s}
.keypad .go { background: var(--lime); color: #0d1014; font-weight: 800; border-color: transparent; }
@keyframes keyin { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .keypad button, .keypad span { animation: none; opacity: 1; transform: none; } .terminal .screen::after { animation: none; } }

/* sections */
.section { padding: 76px 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--edge-soft); border-bottom: 1px solid var(--edge-soft); }
.section-head { max-width: 62ch; margin-bottom: 40px; }
.section h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); letter-spacing: -0.035em; line-height: 1.06; margin: 0 0 14px; color: #fff; }
.section p { color: var(--text-dim); max-width: 68ch; }
.prose p { margin: 0 0 18px; }
.prose h3 { color: #fff; font-size: 1.3rem; letter-spacing: -0.02em; margin: 30px 0 10px; }

/* spec grid — terminal readout rows, not identical cards */
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--edge-soft); border: 1px solid var(--edge-soft); border-radius: 12px; overflow: hidden; }
.spec { background: var(--bg); padding: 26px; }
.spec .no { font-family: var(--mono); color: var(--cyan); font-size: 13px; }
.spec h3 { margin: 8px 0 6px; font-size: 1.2rem; color: #fff; letter-spacing: -0.02em; }
.spec p { margin: 0; font-size: 15.5px; }
.spec:hover { background: var(--bg-3); }

/* media band */
.mediaband { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.mediaband img { border-radius: 12px; border: 1px solid var(--edge); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.mediaband.flip { direction: rtl; } .mediaband.flip > * { direction: ltr; }

/* stat readout */
/* paired h3 blocks under each keyword h2 */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 22px; }
.duo > div { padding-top: 16px; border-top: 1px solid var(--lime); }
.duo h3 { margin: 0 0 6px; font-size: 1.14rem; letter-spacing: -0.02em; color: #fff; }
.duo p { margin: 0; color: var(--text-dim); font-size: 15.5px; }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { background: var(--bg-2); border: 1px solid var(--edge-soft); border-radius: 10px; padding: 22px; }
.stat .n { font-family: var(--mono); font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: var(--lime); letter-spacing: -0.02em; }
.stat .l { color: var(--text-dim); font-size: 14.5px; }

/* gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery-grid a { overflow: hidden; border-radius: 10px; border: 1px solid var(--edge-soft); }
.gallery-grid img { aspect-ratio: 1/1; object-fit: cover; transition: transform .4s ease, filter .4s ease; filter: grayscale(.2); }
.gallery-grid a:hover img { transform: scale(1.05); filter: none; }

/* team */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.member { background: var(--bg-2); border: 1px solid var(--edge-soft); border-radius: 12px; padding: 16px; }
.member img { aspect-ratio: 1/1; object-fit: cover; border-radius: 8px; margin-bottom: 12px; }
.member b { color: #fff; display: block; }
.member span { color: var(--text-dim); font-size: 14px; }

/* cta */
.cta-band { padding: 70px 0; text-align: center; background:
  radial-gradient(60% 120% at 50% 0%, rgba(198,242,78,.10), transparent 60%); border-top: 1px solid var(--edge-soft); }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--text-dim); margin: 0 auto 26px; }

/* login */
.login-shell { display: grid; grid-template-columns: 1.05fr 0.95fr; min-height: 82vh; }
.login-aside { padding: 64px 6vw; display: flex; flex-direction: column; justify-content: center; background:
  radial-gradient(70% 60% at 20% 20%, rgba(58,214,198,.10), transparent 60%); border-right: 1px solid var(--edge-soft); }
.login-main { padding: 64px 6vw; display: flex; flex-direction: column; justify-content: center; }
.card { background: var(--panel); border: 1px solid var(--edge); border-radius: 14px; box-shadow: var(--shadow); padding: 34px; max-width: 440px; width: 100%; }

/* forms */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--text); }
.field input, .field textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--edge); border-radius: var(--radius); background: #0a0d11; color: var(--text); font: inherit; }
.field input::placeholder, .field textarea::placeholder { color: #5f7186; }
.field input:focus, .field textarea:focus { outline: 3px solid rgba(58,214,198,.3); border-color: var(--cyan); }
.checkline { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-dim); }
.btn-block { width: 100%; justify-content: center; background: var(--lime); color: #0d1014; }
.btn-block:hover { background: var(--lime-deep); color: #0d1014; }
.muted { color: var(--text-dim); font-size: 14.5px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-list ul { padding: 0; margin: 0; }
.contact-list li { list-style: none; padding: 14px 0; border-bottom: 1px solid var(--edge-soft); }
.contact-list .k { font-family: var(--mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--cyan); }

/* page hero */
.page-hero { padding: 62px 0; border-bottom: 1px solid var(--edge-soft); background:
  radial-gradient(60% 100% at 85% 0%, rgba(58,214,198,.08), transparent 60%); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.035em; margin: 0 0 10px; color: #fff; }
.page-hero p { color: var(--text-dim); max-width: 62ch; margin: 0; }
.crumbs { font-family: var(--mono); font-size: 13px; color: var(--text-dim); margin-bottom: 14px; }

/* footer */
.site-foot { background: #05070a; border-top: 1px solid var(--edge-soft); padding: 54px 0 28px; color: var(--text-dim); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.site-foot h5, .site-foot .fh { color: #fff; font-family: var(--mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 14px; font-weight: 700; }
.site-foot a { color: var(--text-dim); display: block; padding: 5px 0; }
.site-foot a:hover { color: var(--lime); }
.foot-bottom { border-top: 1px solid var(--edge-soft); margin-top: 32px; padding-top: 20px; font-size: 13px; font-family: var(--mono); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* cookie */
.cookie { position: fixed; bottom: 16px; left: 16px; right: 16px; max-width: 560px; margin: 0 auto; background: var(--panel); border: 1px solid var(--edge); color: var(--text); padding: 16px 18px; border-radius: 12px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; z-index: 60; font-size: 14px; }
.cookie button { border: 0; border-radius: var(--radius); padding: 9px 16px; font-weight: 700; cursor: pointer; }
.cookie .ok { background: var(--lime); color: #0d1014; }
.cookie .no { background: transparent; color: var(--text-dim); }

/* thank-you */
.ty { text-align: center; padding: 92px 0; }
.ty .check { width: 78px; height: 78px; margin: 0 auto 22px; border-radius: 18px; background: var(--lime); display: grid; place-items: center; box-shadow: var(--shadow-lime); }

@media (max-width: 900px) {
  .hero .grid, .mediaband, .specs, .stats, .gallery-grid, .team, .contact-grid, .foot-grid, .login-shell { grid-template-columns: 1fr; }
  .stats, .team, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; position: absolute; top: 62px; left: 0; right: 0; background: var(--bg); flex-direction: column; padding: 12px; border-bottom: 1px solid var(--edge-soft); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: inline-flex; margin-left: auto; background: var(--lime); color: #0d1014; border: 0; border-radius: var(--radius); padding: 10px 14px; font-weight: 700; cursor: pointer; }
  .mediaband.flip { direction: ltr; }
  .login-aside { display: none; }
}
