/* ==========================================================================
   Access Art — global stylesheet
   Visual direction: "Puzzle" fintech landing style — near-black canvas,
   floating pill navbar, centered hero, dark glass cards with glowing
   accent edges, fully-rounded pill buttons/chips.
   Palette: --accent #ffb246 | --navy #0f1642 | --white #ffffff | --dark #151515
   Font: Arial. Cards keep glass transparency (backdrop blur).
   ========================================================================== */

:root {
  --accent: #ffb246;
  --navy: #0f1642;
  --white: #ffffff;
  --dark: #151515;

  --bg: #101013;                     /* near-black canvas */
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.09);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.62);

  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-strong: rgba(255, 255, 255, 0.18);
  --blur-amount: 16px;

  --radius: 22px;
  --radius-lg: 28px;
  --pill: 999px;

  --accent-glow: 0 0 24px rgba(255, 178, 70, 0.35);
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;

  --transition: 220ms ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(720px 480px at 85% -10%, rgba(15, 22, 66, 0.85), transparent 65%),
    radial-gradient(640px 420px at -10% 20%, rgba(255, 178, 70, 0.1), transparent 60%),
    radial-gradient(560px 420px at 110% 75%, rgba(15, 22, 66, 0.7), transparent 65%),
    radial-gradient(480px 360px at 20% 110%, rgba(255, 178, 70, 0.07), transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
}

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

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--white); }

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

/* ==========================================================================
   Header — floating pill navbar (Puzzle style)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 14px;
  z-index: 100;
  padding: 0;
}

.site-header .container { width: min(1180px, 94%); }

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 8px 10px 8px 20px;
  border-radius: var(--pill);
  background: rgba(21, 21, 21, 0.72);
  -webkit-backdrop-filter: blur(var(--blur-amount));
  backdrop-filter: blur(var(--blur-amount));
  border: 1px solid var(--glass-border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img { height: 38px; width: auto; }
.brand span {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--white);
  letter-spacing: 0.4px;
}
.brand span em { color: var(--accent); font-style: normal; }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.main-nav a {
  display: inline-block;
  padding: 10px 16px;
  border-radius: var(--pill);
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: background var(--transition), color var(--transition);
}
.main-nav a:hover { color: var(--white); background: var(--surface-strong); }
.main-nav a.active { color: var(--white); background: var(--surface-strong); font-weight: bold; }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-cta .btn { padding: 11px 22px; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--pill);
  color: var(--white);
  font-size: 1.3rem;
  width: 44px;
  height: 44px;
  cursor: pointer;
}

/* ==========================================================================
   Buttons — full pills, accent glow
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--pill);
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition),
              background var(--transition), color var(--transition);
}
.btn-primary {
  background: var(--accent);
  color: var(--dark);
  box-shadow: 0 0 0 rgba(255, 178, 70, 0);
}
.btn-primary:hover {
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: var(--accent-glow);
}
.btn-ghost {
  background: var(--surface);
  border-color: var(--glass-border-strong);
  color: var(--white);
  -webkit-backdrop-filter: blur(var(--blur-amount));
  backdrop-filter: blur(var(--blur-amount));
}
.btn-ghost:hover { background: var(--surface-strong); color: var(--white); transform: translateY(-2px); }

/* ==========================================================================
   Pill chips (hero toggle chips / tag rows)
   ========================================================================== */

.chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: var(--space-3);
}
.chip {
  display: inline-block;
  padding: 9px 22px;
  border-radius: var(--pill);
  border: 1px solid var(--glass-border-strong);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.9rem;
  -webkit-backdrop-filter: blur(var(--blur-amount));
  backdrop-filter: blur(var(--blur-amount));
  transition: border-color var(--transition), color var(--transition), box-shadow var(--transition);
}
.chip:hover { color: var(--white); border-color: rgba(255, 178, 70, 0.5); }
.chip.chip-active {
  color: var(--accent);
  border-color: rgba(255, 178, 70, 0.65);
  background: rgba(255, 178, 70, 0.08);
  box-shadow: 0 0 18px rgba(255, 178, 70, 0.18);
  font-weight: bold;
}

/* ==========================================================================
   Glass card — dark glass, glowing edge (Puzzle style)
   ========================================================================== */

.glass {
  background: var(--surface);
  -webkit-backdrop-filter: blur(var(--blur-amount));
  backdrop-filter: blur(var(--blur-amount));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}
/* top-edge light reflection */
.glass::before {
  content: "";
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}
/* bottom accent glow line */
.glass::after {
  content: "";
  position: absolute;
  bottom: 0; left: 18%; right: 18%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 178, 70, 0.55), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.glass:hover::after { opacity: 1; }

.card {
  padding: var(--space-4) var(--space-3);
  transition: transform var(--transition), box-shadow var(--transition),
              background var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  background: var(--surface-strong);
  border-color: var(--glass-border-strong);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   Sections & typography
   ========================================================================== */

.section { padding: var(--space-6) 0; }

.section-head { text-align: center; margin-bottom: var(--space-5); }
.section-head .kicker {
  display: inline-block;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: var(--pill);
  background: rgba(255, 178, 70, 0.08);
  border: 1px solid rgba(255, 178, 70, 0.35);
  box-shadow: 0 0 18px rgba(255, 178, 70, 0.12);
  margin-bottom: var(--space-2);
}
.section-head h1, .section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.2;
  letter-spacing: -0.5px;
}
.section-head p { color: var(--text-muted); max-width: 620px; margin: var(--space-2) auto 0; font-size: 1.02rem; }

/* ==========================================================================
   Preloader — futuristic rings in brand colors
   ========================================================================== */

#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  background:
    radial-gradient(640px 420px at 50% 35%, rgba(15, 22, 66, 0.9), transparent 70%),
    var(--dark);
  transition: opacity 600ms ease, visibility 600ms ease;
}
#preloader.loaded { opacity: 0; visibility: hidden; pointer-events: none; }

.pre-rings {
  position: relative;
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pre-rings img {
  width: 62px;
  height: auto;
  animation: prePulse 1.6s ease-in-out infinite;
}
.pre-rings .ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid transparent;
}
.pre-rings .r1 {
  inset: 0;
  border-top-color: var(--accent);
  border-right-color: rgba(255, 178, 70, 0.25);
  animation: preSpin 1.2s linear infinite;
}
.pre-rings .r2 {
  inset: 14px;
  border-top-color: #4a5bc4;               /* lightened navy for visibility */
  border-left-color: rgba(74, 91, 196, 0.25);
  animation: preSpin 1.8s linear infinite reverse;
}
.pre-rings .r3 {
  inset: 28px;
  border-top-color: rgba(255, 255, 255, 0.85);
  animation: preSpin 2.6s linear infinite;
}

.pre-text {
  font-size: 1.05rem;
  font-weight: bold;
  letter-spacing: 6px;
  color: var(--white);
}
.pre-text em { color: var(--accent); font-style: normal; }

.pre-bar {
  width: 180px;
  height: 3px;
  border-radius: 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}
.pre-bar span {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: preSlide 1.1s ease-in-out infinite;
}

@keyframes preSpin { to { transform: rotate(360deg); } }
@keyframes prePulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 6px rgba(255, 178, 70, 0.35)); }
  50% { transform: scale(1.08); filter: drop-shadow(0 0 18px rgba(255, 178, 70, 0.6)); }
}
@keyframes preSlide {
  0% { margin-left: -40%; }
  100% { margin-left: 100%; }
}

/* ==========================================================================
   Hero — fullscreen centered intro text
   ========================================================================== */

.hero-intro-full {
  min-height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 5;
}

.hero-intro {
  text-align: center;
  padding: 0 6vw;
}
.hero-intro h1 {
  font-size: clamp(3rem, 8vw, 5.2rem);
  font-weight: bold;
  letter-spacing: -1px;
  line-height: 1.05;
  margin-bottom: 18px;
}
.hero-intro .w-blue {
  color: #0f1642;
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.9),
    0 0 14px rgba(255, 255, 255, 0.55),
    0 0 34px rgba(255, 255, 255, 0.3);   /* white halo keeps navy legible on dark bg */
}
.hero-intro .w-orange {
  color: var(--accent);
  text-shadow: 0 0 24px rgba(255, 178, 70, 0.45);
}
.hero-intro .hero-bold {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: bold;
  color: var(--white);
  margin-bottom: 12px;
}
.hero-intro .hero-sub {
  font-size: clamp(0.95rem, 1.8vw, 1.08rem);
  font-weight: normal;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
}
.hero-intro .hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

/* Content sections layering (header is sticky @ z-100) */
.section { position: relative; z-index: 10; }
.site-footer { position: relative; z-index: 10; }

/* legacy centered hero (kept for reuse) */
.hero {
  padding: var(--space-6) 0 var(--space-5);
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.6rem);
  line-height: 1.14;
  letter-spacing: -1px;
  max-width: 880px;
  margin: 0 auto var(--space-3);
}
.hero h1 em { color: var(--accent); font-style: normal; }

.hero p.lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto var(--space-4);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

/* framed showcase panel under the headline (browser-mockup feel) */
.hero-panel {
  max-width: 880px;
  margin: 0 auto;
  padding: var(--space-2);
  border-radius: var(--radius-lg);
  text-align: left;
}
.hero-panel img { margin: 0 auto; border-radius: 12px; }
.hero-panel video {
  display: block;
  width: 100%;
  border-radius: 14px;
  background: var(--dark);
}

/* testimonial-style quote card */
.quote-card {
  max-width: 760px;
  margin: var(--space-5) auto 0;
  padding: var(--space-4);
  border-left: 3px solid var(--accent);
  text-align: left;
}
.quote-card blockquote {
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--white);
  margin-bottom: var(--space-2);
}
.quote-card .who { color: var(--text-muted); font-size: 0.9rem; }
.quote-card .who strong { color: var(--accent); }

/* Stat strip */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.stat { text-align: center; padding: var(--space-3) var(--space-2); }
.stat .num { font-size: 2rem; font-weight: bold; color: var(--accent); letter-spacing: -0.5px; }
.stat .label { color: var(--text-muted); font-size: 0.88rem; }

/* ==========================================================================
   Feature / service grids
   ========================================================================== */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }

.service-card { text-align: center; }
.service-card .icon-wrap {
  width: 92px; height: 92px;
  margin: 0 auto var(--space-3);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: rgba(255, 178, 70, 0.08);
  border: 1px solid rgba(255, 178, 70, 0.3);
  box-shadow: inset 0 0 24px rgba(255, 178, 70, 0.06);
}
.service-card .icon-wrap img { width: 54px; height: 54px; object-fit: contain; }
.service-card h3 { margin-bottom: var(--space-1); font-size: 1.15rem; }
.service-card p { color: var(--text-muted); font-size: 0.94rem; }
.service-card .more {
  display: inline-block;
  margin-top: var(--space-2);
  font-weight: bold;
  font-size: 0.88rem;
}

/* Value cards */
.value-card h3 { color: var(--accent); margin-bottom: var(--space-1); font-size: 1.08rem; }
.value-card p { color: var(--text-muted); font-size: 0.94rem; }

/* ==========================================================================
   About page
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-5);
  align-items: center;
}
.about-grid .about-img { padding: var(--space-3); border-radius: var(--radius-lg); }
.about-grid .about-img img { border-radius: 12px; }
.about-copy h2 { font-size: 1.55rem; margin-bottom: var(--space-2); letter-spacing: -0.3px; }
.about-copy p { color: var(--text-muted); margin-bottom: var(--space-2); }

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-top: var(--space-2);
  list-style: none;
}
.tech-list li {
  padding: 8px 18px;
  border-radius: var(--pill);
  background: var(--surface);
  border: 1px solid var(--glass-border-strong);
  font-size: 0.84rem;
  color: var(--text-muted);
  transition: border-color var(--transition), color var(--transition);
}
.tech-list li:hover { border-color: rgba(255, 178, 70, 0.5); color: var(--white); }

/* ==========================================================================
   Partners page
   ========================================================================== */

.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}
.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-2);
  min-height: 180px;
}
.partner-card img {
  max-height: 68px;
  width: auto;
  object-fit: contain;
  background: var(--white);          /* logos are designed for light backgrounds */
  border-radius: 12px;
  padding: 10px 16px;
}
.partner-card span { color: var(--text-muted); font-size: 0.92rem; }

/* ==========================================================================
   Contact page
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-3);
  align-items: start;
}

.contact-info { padding: var(--space-4) var(--space-3); }
.contact-info .item { display: flex; gap: var(--space-2); margin-bottom: var(--space-3); }
.contact-info .item:last-child { margin-bottom: 0; }
.contact-info .item .ico {
  flex: 0 0 48px;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: rgba(255, 178, 70, 0.08);
  border: 1px solid rgba(255, 178, 70, 0.35);
}
.contact-info .item .ico svg { width: 22px; height: 22px; fill: var(--accent); }
.contact-info .item h3 { font-size: 1rem; margin-bottom: 2px; }
.contact-info .item p, .contact-info .item a { color: var(--text-muted); font-size: 0.94rem; }
.contact-info .item a:hover { color: var(--accent); }

.contact-form { padding: var(--space-4) var(--space-3); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.form-group { margin-bottom: var(--space-2); }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 18px;
  border-radius: 14px;
  border: 1px solid var(--glass-border-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255, 255, 255, 0.35); }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(255, 178, 70, 0.65);
  box-shadow: 0 0 0 3px rgba(255, 178, 70, 0.18);
  background: rgba(255, 255, 255, 0.08);
}
.form-group textarea { min-height: 140px; resize: vertical; }

.form-note { margin-top: var(--space-2); font-size: 0.9rem; }
.form-note.ok { color: #7ee2a0; }
.form-note.err { color: #ff9b9b; }

.map-frame {
  margin-top: var(--space-3);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--glass-border);
}
.map-frame iframe { display: block; width: 100%; height: 320px; border: 0; }

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
  text-align: center;
  padding: var(--space-5) var(--space-3);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(420px 200px at 50% 120%, rgba(255, 178, 70, 0.14), transparent 70%),
    var(--surface);
}
.cta-band h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: var(--space-2); letter-spacing: -0.4px; }
.cta-band p { color: var(--text-muted); margin-bottom: var(--space-3); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  margin-top: var(--space-6);
  background: rgba(21, 21, 21, 0.7);
  -webkit-backdrop-filter: blur(var(--blur-amount));
  backdrop-filter: blur(var(--blur-amount));
  border-top: 1px solid var(--glass-border);
  padding: var(--space-5) 0 var(--space-3);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
.footer-grid h4 { margin-bottom: var(--space-2); font-size: 1rem; color: var(--white); }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; color: var(--text-muted); font-size: 0.95rem; }
.footer-grid a { color: var(--text-muted); font-size: 0.95rem; }
.footer-grid a:hover { color: var(--accent); }
.footer-brand img { height: 44px; width: auto; margin-bottom: var(--space-2); }
.footer-brand p { color: var(--text-muted); font-size: 0.95rem; max-width: 300px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-3);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms ease, transform 500ms ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover, .btn-primary:hover, .btn-ghost:hover { transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 992px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-cta .btn-ghost-nav { display: none; }
}

@media (max-width: 640px) {
  .section { padding: var(--space-5) 0; }
  .grid-3, .grid-2, .partners-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .site-header { top: 8px; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .main-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    border-radius: var(--radius);
    background: rgba(21, 21, 21, 0.95);
    -webkit-backdrop-filter: blur(var(--blur-amount));
    backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: var(--space-2); }
  .main-nav a { display: block; text-align: center; }
}
