/*
Theme Name: Gatekey
Theme URI: https://gatekey.com
Author: Gatekey
Author URI: https://gatekey.com
Description: UPI Global Network — a modern fintech theme for payment solutions and global connectivity. Edit every section directly from WordPress.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gatekey
Tags: fintech, payments, business, modern, responsive, full-site-editing
*/

/* ==========================================================================
   DESIGN TOKENS
   ========================================================================== */
:root {
  --gk-primary:        #3730a3;
  --gk-primary-light:  #eef2ff;
  --gk-accent:         #4f46e5;
  --gk-bg:             #fdfcff;
  --gk-card:           #ffffff;
  --gk-fg:             #1a1a2e;
  --gk-muted:          #f1f5f9;
  --gk-muted-fg:       #64748b;
  --gk-border:         #e2e8f0;
  --gk-radius:         0.75rem;
  --gk-font-sans:      -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --gk-font-mono:      "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --gk-shadow:         0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --gk-shadow-md:      0 4px 24px rgba(55,48,163,.08);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--gk-font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--gk-fg);
  background-color: var(--gk-bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gk-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 1rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--gk-fg);
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.gk-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.gk-section        { padding: 5rem 1.5rem; }
.gk-section-alt    { background-color: var(--gk-muted); }

.gk-section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.gk-section-header p { max-width: 42rem; margin: 0 auto; }
.gk-section-title-center { text-align: center; margin-bottom: 3rem; }

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(253,252,255,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gk-border);
  z-index: 1000;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  gap: 2rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--gk-fg);
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo img { width: 2rem; height: 2rem; object-fit: contain; }
.site-logo:hover { text-decoration: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--gk-muted-fg);
  font-size: .9375rem;
  transition: color .2s;
  text-decoration: none;
}
.nav-links a:hover { color: var(--gk-fg); text-decoration: none; }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  color: var(--gk-fg);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--gk-card);
  border-top: 1px solid var(--gk-border);
  padding: 1rem 1.5rem;
}
.nav-mobile.is-open { display: flex; }
.nav-mobile a {
  padding: .75rem 0;
  border-bottom: 1px solid var(--gk-border);
  color: var(--gk-fg);
  text-decoration: none;
}
.nav-mobile a:last-child { border-bottom: none; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .625rem 1.5rem;
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.5;
  border-radius: var(--gk-radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: opacity .2s, background-color .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; opacity: .88; }

.btn-primary  { background: var(--gk-primary); color: #fff; }
.btn-secondary {
  background: transparent;
  color: var(--gk-fg);
  border-color: var(--gk-border);
}
.btn-secondary:hover { background: var(--gk-muted); opacity: 1; }

.btn-white   { background: #fff; color: var(--gk-primary); }
.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.4);
}
.btn-outline-white:hover { background: rgba(255,255,255,.12); opacity: 1; }

.btn-lg { padding: .875rem 2rem; font-size: 1rem; }

/* ==========================================================================
   CARDS
   ========================================================================== */
.card {
  background: var(--gk-card);
  border: 1px solid var(--gk-border);
  border-radius: var(--gk-radius);
  padding: 2rem;
  box-shadow: var(--gk-shadow);
}

.card-hover { transition: border-color .2s, box-shadow .2s; }
.card-hover:hover {
  border-color: rgba(55,48,163,.35);
  box-shadow: var(--gk-shadow-md);
}

/* ==========================================================================
   ICON CONTAINER
   ========================================================================== */
.icon-container {
  width: 3rem;
  height: 3rem;
  background: rgba(55,48,163,.1);
  border-radius: .625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
  color: var(--gk-primary);
}

/* ==========================================================================
   CHECKLIST
   ========================================================================== */
.gk-checklist {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .625rem;
}
.gk-checklist li {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--gk-muted-fg);
  font-size: .9375rem;
}
.gk-checklist li::before {
  content: "";
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  background: var(--gk-primary);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpolyline points='22 4 12 14.01 9 11.01'/%3E%3C/svg%3E");
  mask-size: cover;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpolyline points='22 4 12 14.01 9 11.01'/%3E%3C/svg%3E");
  -webkit-mask-size: cover;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.gk-hero {
  padding: 9rem 1.5rem 5rem;
}

.gk-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}

.gk-badge {
  display: inline-block;
  padding: .375rem 1rem;
  background: var(--gk-primary-light);
  color: var(--gk-primary);
  font-size: .8125rem;
  font-weight: 500;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

.gk-hero-title { margin-bottom: 1.25rem; }

.gk-hero-desc {
  color: var(--gk-muted-fg);
  font-size: 1.125rem;
  max-width: 32rem;
  margin-bottom: 2rem;
}

.gk-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.gk-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gk-border);
}

/* Globe visual */
.gk-globe-wrap {
  position: relative;
  aspect-ratio: 1;
  background: linear-gradient(135deg, rgba(55,48,163,.08) 0%, rgba(79,70,229,.04) 50%, transparent 100%);
  border: 1px solid var(--gk-border);
  border-radius: 1rem;
  padding: 2rem;
}

.gk-globe-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8rem;
  height: 8rem;
  background: var(--gk-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.gk-node {
  position: absolute;
  width: 3rem;
  height: 3rem;
  background: var(--gk-card);
  border: 1px solid rgba(55,48,163,.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: gk-pulse 2s ease-in-out infinite;
}
.gk-node::after {
  content: "";
  width: .5rem;
  height: .5rem;
  background: var(--gk-primary);
  border-radius: 50%;
}
.gk-node span {
  position: absolute;
  bottom: -1.4rem;
  font-size: .6875rem;
  color: var(--gk-muted-fg);
  white-space: nowrap;
}
.gk-node:nth-child(2) { animation-delay: .3s; }
.gk-node:nth-child(3) { animation-delay: .6s; }
.gk-node:nth-child(4) { animation-delay: .9s; }
.gk-node:nth-child(5) { animation-delay: 1.2s; }
.gk-node:nth-child(6) { animation-delay: 1.5s; }

@keyframes gk-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .7; transform: scale(.92); }
}

/* ==========================================================================
   TABS
   ========================================================================== */
.gk-tabs {
  display: flex;
  justify-content: center;
  gap: .75rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.gk-tab {
  padding: .75rem 1.5rem;
  border-radius: var(--gk-radius);
  border: none;
  background: var(--gk-card);
  color: var(--gk-fg);
  font-size: .9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s, color .2s;
  border: 1px solid var(--gk-border);
}
.gk-tab:hover    { background: var(--gk-muted); }
.gk-tab-active   { background: var(--gk-primary) !important; color: #fff !important; border-color: var(--gk-primary) !important; }

.gk-tab-panel  { }
.gk-hidden     { display: none; }

.gk-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ==========================================================================
   STATS GRID
   ========================================================================== */
.gk-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.gk-stat-box {
  text-align: center;
  padding: 2rem 1rem;
}

.gk-stat       { }
.gk-stat-value {
  font-family: var(--gk-font-mono);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gk-fg);
  margin-bottom: .25rem;
}
.gk-stat-label {
  font-size: .9375rem;
  color: var(--gk-muted-fg);
}

/* ==========================================================================
   PRODUCTS GRID
   ========================================================================== */
.gk-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gk-product-icon {
  color: var(--gk-primary);
  margin-bottom: 1rem;
}

/* ==========================================================================
   PARTNERS
   ========================================================================== */
.gk-partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.gk-partner-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.gk-partner-icon {
  width: 4rem;
  height: 4rem;
  background: rgba(55,48,163,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--gk-primary);
}

/* ==========================================================================
   CTA
   ========================================================================== */
.gk-cta {
  background: var(--gk-primary);
  color: #fff;
  padding: 5rem 1.5rem;
}

.gk-cta-inner {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}
.gk-cta-inner h2 { color: #fff; margin-bottom: 1rem; }
.gk-cta-inner p  { opacity: .88; margin-bottom: 2rem; font-size: 1.0625rem; }

.gk-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  padding: 4rem 1.5rem 2rem;
  border-top: 1px solid var(--gk-border);
}

.gk-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto 3rem;
}

.gk-footer-brand p { color: var(--gk-muted-fg); max-width: 22rem; }

.gk-footer-col h4 {
  font-size: .9375rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.gk-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .625rem;
}

.gk-footer-col ul a {
  color: var(--gk-muted-fg);
  font-size: .9375rem;
  text-decoration: none;
  transition: color .2s;
}
.gk-footer-col ul a:hover { color: var(--gk-fg); }

.gk-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gk-border);
  max-width: 1280px;
  margin: 0 auto;
}

.gk-footer-bottom p { color: var(--gk-muted-fg); margin: 0; font-size: .9rem; }

.gk-footer-links {
  display: flex;
  gap: 1.5rem;
}
.gk-footer-links a {
  color: var(--gk-muted-fg);
  font-size: .9rem;
  text-decoration: none;
  transition: color .2s;
}
.gk-footer-links a:hover { color: var(--gk-fg); }

/* ==========================================================================
   UTILITY
   ========================================================================== */
.text-muted { color: var(--gk-muted-fg); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .gk-hero-grid    { grid-template-columns: 1fr; }
  .gk-globe-wrap   { max-width: 28rem; margin: 0 auto; }
  .gk-stats-grid   { grid-template-columns: repeat(2, 1fr); }
  .gk-partners-grid { grid-template-columns: repeat(2, 1fr); }
  .gk-footer-grid  { grid-template-columns: 1fr 1fr; }
  .gk-products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .gk-section      { padding: 3.5rem 1rem; }
  .gk-hero         { padding: 7rem 1rem 3.5rem; }
  .gk-cards-grid   { grid-template-columns: 1fr; }
  .gk-stats-grid   { grid-template-columns: repeat(2, 1fr); }
  .gk-partners-grid { grid-template-columns: repeat(2, 1fr); }
  .gk-products-grid { grid-template-columns: 1fr; }
  .gk-footer-grid  { grid-template-columns: 1fr; }
  .nav-links       { display: none; }
  .nav-toggle      { display: flex; }
  .gk-hero-stats   { grid-template-columns: 1fr; gap: 1rem; }
}

@media (max-width: 480px) {
  .gk-stats-grid    { grid-template-columns: 1fr; }
  .gk-partners-grid { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   WORDPRESS CORE
   ========================================================================== */
.alignleft   { float: left; margin: 0 1.5rem 1rem 0; }
.alignright  { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 0 auto 1rem; }
.alignwide   { margin-left: -2rem; margin-right: -2rem; }
.alignfull   { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); width: 100vw; }

.wp-caption-text { font-size: .875rem; color: var(--gk-muted-fg); margin-top: .5rem; }

.screen-reader-text {
  clip: rect(1px,1px,1px,1px);
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
}
